Yes, that was also among the takeaways from the earlier thread on this.richmond62 wrote: ↑Fri Apr 24, 2020 12:16 pmWhat comes out of this "jolly love-in" is that LiveCode can pick up information from other software (i.e.the operating system) but
NOT from the hardware.
^ this.Mind you, if a 32-bit system runs on a machine, who gives a flying "ffffffffffffff" about the processor as,
presumably, 32-bit LiveCode standalones will run on that machine.
The original question that started this thread was about differentiating application behavior based on platform. The platform function satisfies that request.
Later in the thread, you'd asked about the processor, satisfied by the processor function.
Both real-world needs presented here have been satisfied by one-word functions already in the engine.
This leaves us only with the theoretical edge case of an application running in an emulated environment but needs to know the architecture of the host. For that shell calls have been presented.
Where shell calls may not be useful, or may be difficult to arrive at, may ultimately be a philosophical question:
Emulation comes in many forms. What if the emulation of an architecture takes place in a container, such as a VM or a Docker instance?
It may be interesting to know the architecture of the host, but the architecture reported by LC is the architecture it's running under, so I can't consider the processor function remiss in reporting what it's using.
And what if you have an emulation running in a container that's running in a VM that's running in a physical machine?
Once we start down the road of guessing which layer may be of interest in any given scenario, the challenge of attempting to report things outside the layer affecting a given LC app becomes ever murkier.
In those rare cases, rather than change the existing processor function, a new function may be a better idea.
And even then, in our modern container-driven world, we'd have to accept that some of that information may not be available. After all, if an app can reach outside of the container it's running in, the container hasn't done a complete job of providing containment.