HP Forums
Plus42 Equations, Preview Release - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: Not HP Calculators (/forum-7.html)
+--- Forum: Not quite HP Calculators - but related (/forum-8.html)
+--- Thread: Plus42 Equations, Preview Release (/thread-17724.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40


RE: Plus42 Equations, Preview Release - Thomas Okken - 04-19-2022 05:22 PM

Initializing using AGRAPH instead of PIXEL:

Code:
00 { 120-Byte Prgm }
01▸LBL "VITA"
02 CLLCD
03 -1ᴇ-6
04 STO 00
05 -5ᴇ-5
06 STO 01
07 HEIGHT
08 1ᴇ3
09 ÷
10 1.00008
11 +
12▸LBL 00
13 WIDTH
14 1ᴇ3
15 ÷
16 1.00044
17 +
18▸LBL 01
19 CLA
20 44
21 STO 02
22▸LBL 04
23 CLX
24 RAN
25 256
26 ×
27 XTOA
28 DSE 02
29 GTO 04
30 R↓
31 AGRAPH
32 ISG ST X
33 GTO 01
34 R↓
35 ISG ST X
36 GTO 00
37 TIME
38 STO ST L
39▸LBL 02
40 LIFE
41▸LBL 03
42 LASTX
43 TIME
44 HMS-
45 X>? 00
46 GTO 03
47 X>? 01
48 GTO 02
49 GTO "VITA"
50 END



RE: Plus42 Equations, Preview Release - johanw - 04-19-2022 08:36 PM

This new version runs indeed much faster on desktop.


RE: Plus42 Equations, Preview Release - Thomas Okken - 04-19-2022 11:33 PM

New update:

1. Added XVIEW function. This works just like AVIEW, except it takes the text from the X register rather than the ALPHA register, so it doesn't have the 44-character length restriction of AVIEW.
Note that XVIEW requires the X register to contain a string. This is not intended a replacement for VIEW ST X; it's meant to make it possible to display longer messages than what AVIEW can handle.


RE: Plus42 Equations, Preview Release - Thomas Okken - 04-20-2022 09:51 AM

(04-19-2022 03:03 PM)johanw Wrote:  It tends to run faster on my phone too but that difference is not as much.

The laptop is a modern i7, the phone runs a 2019 Exynos CPU so the laptop should have much more raw power.

Some of that is probably due to the Windows version still being 32-bit. The Linux and MacOS versions are 64-bit, and the Android and iOS versions are 32/64-bit fat binaries, which means you'll be running 64-bit code on almost everything nowadays.
Is it time to switch the Windows version to 64-bit?


RE: Plus42 Equations, Preview Release - ggauny@live.fr - 04-20-2022 10:06 AM

yes, I think so.
Window version on 64 bits.
I also asking if the HP50g ORDER is in your mind, this was very useful and I often use it in 50g.


RE: Plus42 Equations, Preview Release - Thomas Okken - 04-20-2022 10:33 AM

(04-20-2022 10:06 AM)ggauny@live.fr Wrote:  I also asking if the HP50g ORDER is in your mind, this was very useful and I often use it in 50g.

See https://thomasokken.com/plus42/#directories
Scroll down to "Directory, program, and variable management"

Using REFMOVE is rather different from using ORDER, and probably not very intuitive, but it is very flexible, letting you move things between directories, reordering programs, etc.


RE: Plus42 Equations, Preview Release - rprosperi - 04-20-2022 12:11 PM

(04-20-2022 09:51 AM)Thomas Okken Wrote:  Is it time to switch the Windows version to 64-bit?

Definitely. I touch 10+ PCs every week, and I have not seen a 32-bit machine in years.

Of course, there are many users of old PCs among this crowd (aka ingeniously cheap individuals) which are indeed often 32-bit and they may not find this as beneficial, but as most applications have abandoned 32-bit binaries at this stage, you will be in the forward-looking majority rather than dragging your feet a bit.


RE: Plus42 Equations, Preview Release - johanw - 04-20-2022 02:49 PM

I see no reason not to do both. The Android abi code can apparently seamlessly build for 32 and 64 bit (Google won't let you in Google Play if you only deliver a 32 bit version so it will have to do that), I see no reason why we can't have a Plus42 (and Free42) 64 and 32 version. Maybe it will be easier for the decimal version, I'm not sure, but is the decimal version used that often anyway?


RE: Plus42 Equations, Preview Release - John Keith - 04-20-2022 03:12 PM

I would also vote for the windows version being 64 bit. I only have one 32-bit Windows computer, used for running old software that won't run on newer Windows versions.


RE: Plus42 Equations, Preview Release - Thomas Okken - 04-20-2022 03:16 PM

(04-20-2022 02:49 PM)johanw Wrote:  I see no reason not to do both.

There is one: it's a hassle for me.

With MacOS, iOS, and Android, you can set up your project so that it builds the machine code for multiple CPU architectures, and bundles them all into one final executable. It takes a bit longer to compile and the final executable is larger, but the hassle for the developer is zero. But Microsoft, in their infinite wisdom, don't support this.

(Linux doesn't support fat binaries either, but all the major Linux distros have long since killed off 32-bit support, something Microsoft is dragging their feet with. They are still selling 32-bit Windows to consumers even today!)


RE: Plus42 Equations, Preview Release - Michael de Estrada - 04-20-2022 03:16 PM

(04-20-2022 12:11 PM)rprosperi Wrote:  
(04-20-2022 09:51 AM)Thomas Okken Wrote:  Is it time to switch the Windows version to 64-bit?

Definitely. I touch 10+ PCs every week, and I have not seen a 32-bit machine in years.

Of course, there are many users of old PCs among this crowd (aka ingeniously cheap individuals) which are indeed often 32-bit and they may not find this as beneficial, but as most applications have abandoned 32-bit binaries at this stage, you will be in the forward-looking majority rather than dragging your feet a bit.

I'm one of those "cheap" individuals with a lot of older PCs using a 32-bit OS that would like to continue using these emulators on them. Specifically, my only laptop is running 32-bit Windows Vista, and it's too old to update to a newer 64-bit OS. I've already had to deal with the abandonment of Windows XP support by Free42, so please don't take away my ability to run Plus42 on my Vista machine.


RE: Plus42 Equations, Preview Release - Thomas Okken - 04-20-2022 06:24 PM

(04-20-2022 03:16 PM)Thomas Okken Wrote:  
(04-20-2022 02:49 PM)johanw Wrote:  I see no reason not to do both.

There is one: it's a hassle for me.

On second thought, maybe it doesn't have to be. The Windows build is automated to the point where going from source code to having the Free42Windows.zip file (or Plus42Windows.zip) only requires running one script. If I can create a 64-bit patch for the Intel library and 64-bit versions of the VS projects, I should be able to build 32- and 64-bit executables in one go.
It would mean uploading two zip files for Windows for each release, or one containing both versions, but that's not a problem.

I will look into it...


RE: Plus42 Equations, Preview Release - Thomas Okken - 04-20-2022 10:52 PM

Experimental: Plus42Windows-64.zip Plus42Windows.zip

(UPDATE: The 32-bit version is now Plus42Windows-32bit.zip)


RE: Plus42 Equations, Preview Release - Michael de Estrada - 04-21-2022 02:30 AM

(04-20-2022 10:52 PM)Thomas Okken Wrote:  Experimental: Plus42Windows-64.zip

Just tried the decimal version on my 64-bit Win 10 machine, and it seems to work fine.


RE: Plus42 Equations, Preview Release - ggauny@live.fr - 04-21-2022 07:21 AM

Here too, work fine.

Win10 pro 64 bits, version decimal Plus42.


RE: Plus42 Equations, Preview Release - Thomas Okken - 04-21-2022 10:27 AM

Awesome! OK, I'll build both from now on, then.
Now to make the same changes in Free42...


RE: Plus42 Equations, Preview Release - tgray - 04-21-2022 08:52 PM

Plus42 sounds really exciting! I use Free42 and my DM42 almost everyday.

Two quick questions:
- is there a beta I could try for iOS yet?
- any chance of this ever making it to a Swiss micros hardware unit?


RE: Plus42 Equations, Preview Release - Thomas Okken - 04-21-2022 10:50 PM

(04-21-2022 08:52 PM)tgray Wrote:  - is there a beta I could try for iOS yet?

If you send me an email with your phone's UDID, I'll add you to the ad hoc profile so you can install the betas. (You can use https://udid.tech/ to get the UDID without connecting the phone to a computer.)

(04-21-2022 08:52 PM)tgray Wrote:  - any chance of this ever making it to a Swiss micros hardware unit?

I'm not aware of any such plans.


RE: Plus42 Equations, Preview Release - Michael de Estrada - 04-22-2022 12:15 AM

(04-21-2022 08:52 PM)tgray Wrote:  Plus42 sounds really exciting!...any chance of this ever making it to a Swiss micros hardware unit?

This would require a completely new hardware platform with an additional row of keys. Either that, or share the top row of keys with the softkeys, a la HP 42S with a TOP.FCN toggle. Anyways, this is a question you should ask of SwissMicros (Michael Steinmann), not Thomas Okken.


RE: Plus42 Equations, Preview Release - Thomas Okken - 04-22-2022 08:49 AM

Really minor update:

1. Fixed MEM so it can handle ≥ 4294967296 bytes