Which engine is being used on MacOS for OXT Lite 1.08?

All flavors welcome.
Forum rules
Be kind.
Post Reply
User avatar
richmond62
Posts: 3922
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Which engine is being used on MacOS for OXT Lite 1.08?

Post by richmond62 »

The engine will now return the correct value for the systemVersion on all macOS versions.
No: it just does not.
-
Screenshot 2024-10-20 at 9.24.01.png
Screenshot 2024-10-20 at 9.24.01.png (158.21 KiB) Viewed 1358 times
-
Needless-to-say, your 'fix' works properly:
-
Screenshot 2024-10-20 at 9.26.26.png
Screenshot 2024-10-20 at 9.26.26.png (34.8 KiB) Viewed 1354 times
-
The ONLY SNAG being for types like me who tend to forget 'things': 't'ain't in the Dictionary. 8-)
https://richmondmathewson.owlstown.net/
User avatar
tperry2x
Posts: 2508
Joined: Tue Dec 21, 2021 9:10 pm
Location: Somewhere in deepest darkest Norfolk, England
Contact:

Re: Which engine is being used on MacOS for OXT Lite 1.08?

Post by tperry2x »

I've mentioned this many times previously, however here it is again.
You can check that from the "help" menu > "IDE information".

In the messagebox, you can also use:

Code: Select all

put version()
Image]
Image
Image
Image
Image
User avatar
tperry2x
Posts: 2508
Joined: Tue Dec 21, 2021 9:10 pm
Location: Somewhere in deepest darkest Norfolk, England
Contact:

Re: Which engine is being used on MacOS for OXT Lite 1.08?

Post by tperry2x »

richmond62 wrote: Sun Oct 20, 2024 6:25 am No: it just does not.
Yes. It does.
As mentioned previously, here, back in v0.94 of OXT Lite.
To quote myself fully:
Added a global variable for getting the system version (as 'get the SystemVersion' did not function correctly under MacOS 11+). You can now use 'put tSystemVersion' - returns "MacOS 14" for example. You can alternatively use 'put tSystemVersionNumber' to just get the short version string. - would have liked to replace the built in systemversion but it's inside the engine.
(I mention that, back here.)
As far as my revised function to get the correct system version on MacOS, that's already in the custom dictionary which is where additions can go in my text version - (so it's extendable for mere mortals, without sql database editing required). I added this as a way for IDE stacks and scripts to reliably get the systemversion, more of a benefit for MacOS users than anything else. So you can use put tSystemVersionNumber or you can use put osversion() - whatever floats your boat as this is the same command:
is-in-dict.png
is-in-dict.png (45.86 KiB) Viewed 1326 times
As to the second part of this, the engine version:

Linux is on a more updated engine as that's the only one that compiles properly.
9.6.3 for MacOS and Windows
9.7.0-dp1 for Linux (as that's the last version of the engine, which was available in the LCC github, as much as I hate github - this is where the engine code came from as I wanted the most 'vanilla' (non-modified) version to base OXT lite on, with the most updated engine I could get my hands on).

Also, as mentioned previously, here's a copy of the engine source - in case it 'disappears' from github at any point.
richmond62 wrote: Sun Oct 20, 2024 6:25 am The ONLY SNAG being for types like me who tend to forget 'things': 't'ain't in the Dictionary. 8-)
If you mean the engine version, It's already in the dictionary under "version"
eng-ver.png
eng-ver.png (41.36 KiB) Viewed 1326 times
The Engine version is just something I added to show in OXT Lite, - if nothing else, it helps me diagnose issues if someone is able to easily quote the engine version when reporting any issue.
ver-stack.png
ver-stack.png (19.32 KiB) Viewed 1305 times
Attachments
versions.oxtstack
(2.24 KiB) Downloaded 19 times
User avatar
OpenXTalkPaul
Posts: 2276
Joined: Sat Sep 11, 2021 4:19 pm
Contact:

Re: Which engine is being used on MacOS for OXT Lite 1.08?

Post by OpenXTalkPaul »

Also OXT 'macOS Native Tools' (among a bunch of other mac-platform specific handlers) has:
macOSVersion() -- which also returns accurate system version on macOS 11+

The advantage of OXT 'macOS Native Tools' library is that due to being setup as an extension library, it can easily be included with a standalone via the inclusions tab of the standalone builder.
User avatar
tperry2x
Posts: 2508
Joined: Tue Dec 21, 2021 9:10 pm
Location: Somewhere in deepest darkest Norfolk, England
Contact:

Re: Which engine is being used on MacOS for OXT Lite 1.08?

Post by tperry2x »

OpenXTalkPaul wrote: Sun Oct 20, 2024 4:50 pm The advantage of OXT 'macOS Native Tools' library is that due to being setup as an extension library, it can easily be included with a standalone via the inclusions tab of the standalone builder.
That's a good point. I should have mentioned that.
The osversion() is also an extension library in OXT Lite too.
User avatar
OpenXTalkPaul
Posts: 2276
Joined: Sat Sep 11, 2021 4:19 pm
Contact:

Re: Which engine is being used on MacOS for OXT Lite 1.08?

Post by OpenXTalkPaul »

tperry2x wrote: Sun Oct 20, 2024 5:05 pm
OpenXTalkPaul wrote: Sun Oct 20, 2024 4:50 pm The advantage of OXT 'macOS Native Tools' library is that due to being setup as an extension library, it can easily be included with a standalone via the inclusions tab of the standalone builder.
That's a good point. I should have mentioned that.
The osversion() is also an extension library in OXT Lite too.
Oh Good! I like the idea of library that can return additional infos about the host OS like you have there, such as precise language dialect (US English, UK English, etc.), in a platform agnostic way (including HTML5). I would like to also be able to retrieve information about things like what Linux distro or kernel version it's running on (so on macOS kernelVersion() would return 'Darwin version'), or CPU infos/speed so as to know what kind of load the system might be able to handle, because currently on Emscripten engine the processor() returns a very unhelpful 'js'. That sort of thing. Maybe call it: 'System_Infos_Lib' or something like that.

I tried to run new version OXT Playground (https://openxtalk-org.github.io/OpenXTalk-Playground/) on my Android (10.x) TV, the tinySynth I added to use with Piano Widget works but on 'TV browser's it lags like hell for some reason, so it would be good to check what OS CPU the browser is running on. Which can be done in a browser using JavaScript, but I don't want to have to remember the JS, I want to use a simple function from xT! So I think a 'wrapper' library is in order.
User avatar
neville
Posts: 46
Joined: Wed Jul 31, 2024 1:03 am
Location: Canberra, Australia
Contact:

Re: Which engine is being used on MacOS for OXT Lite 1.08?

Post by neville »

https://openxtalk.org/forum/download/file.php?id=5056

Just noticed this. Nice, but does this mean tSystemVersionNumber is now a reserved name? If so, perhaps not a good choice: with Hungarian notation tFoo is usually a user temporary variable so this doesn’t look like a name for a system global A global function like ‘the SystemVersionNumber’ or even version() would seem more appropriate
User avatar
OpenXTalkPaul
Posts: 2276
Joined: Sat Sep 11, 2021 4:19 pm
Contact:

Re: Which engine is being used on MacOS for OXT Lite 1.08?

Post by OpenXTalkPaul »

neville wrote: Tue Oct 22, 2024 1:04 pm https://openxtalk.org/forum/download/file.php?id=5056

Just noticed this. Nice, but does this mean tSystemVersionNumber is now a reserved name? If so, perhaps not a good choice: with Hungarian notation tFoo is usually a user temporary variable so this doesn’t look like a name for a system global A global function like ‘the SystemVersionNumber’ or even version() would seem more appropriate
I'd prefer that it drop the 't' (which I read as 'tEmporary variable'). systemVersionNumber() and systemVersionName() as that would be much more like the Engine's 'systemVersion'().
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests