One of the reasons Lua is all over the place, is its VM code is very well written and easy to integrate in a code-base.
There is still room for VM's to solve a lot of the current platform-war problems.
One reason that was done is that it made porting games between CPU architectures (OSes weren’t that much of an issue, as games ran on bare metal) easier.
Zork had one in 1979 (https://en.wikipedia.org/wiki/Z-machine). I think that ended when games became truly interactive, as opposed to command-based, because, when that happened, performance became a bottleneck.
Another reason could have been is that it made programming easier, as 8-bit CPUs are so weak that running a virtual machine for the convenience of having such luxuries as 16-bit arithmetic sometimes made sense even then (e.g. https://en.wikipedia.org/wiki/SWEET16)
And of course, there is Forth, the ultimate “give me a VM that is tailored to this specific program” language (every word you define can be seen as a new instruction for your virtual machine)
Counterexample: the recently posted article series about Another World - a VM-based game released in 1991 that was very interactive and graphics-heavy.
I don't think Inferno people themselves said this, but I remember one of the things that people said in favor of memory safe JIT language operating systems was that the JIT would be able to optimize across multiple programs, or between kernel and user mode, since it didn't need to care about MMU based protections like a language with arbitrary pointers. And indeed you wouldn't need the high cost of the context switch.
In light of Spectre and meltdown that now sounds like a bad idea to me.
Anyway I think I was describing a broader topic than Inferno. Eg. There was the singularity project at Microsoft that people spoke similarly about. Maybe Midori too? The latter may have moved away from the jit idea, there is some writing online about it that I have not read.
The business model of consoles is subsidized hardware, with the bulk of revenue coming from game licensing fees (per copy). These vulnerabilities would reduce the security of the consoles which would directly put that business model at risk (unlicensed games + piracy).
>Especially if the game console is airgapped because I'm playing a single-player game from a cartridge or optical disk.
Between 10% and 30% (depending on who you ask) exclusively play only online games. The number of mixed is harder to discern but significant. About 50 million people use xbox live, microsoft's paid online gaming service. Last year, over 80% of game sales were digital. The business and consumer landscape simply would not accept airgapping.
These consoles are often used for other entertainment and health applications. Many of them have cameras attached to them (I know, I know). They are tied into peoples' cloud accounts. They are used for web browsing. They are used to watch porn. People deserve privacy, I think we can all agree.
You, personally, may not be affected, but these are concerns that cannot be ignored, both by users and business.
Usually there's SOC that manages IO, and the ROM contains a key/publisher cert. To run code on the main CPU, the SOC has to bless it. No code other than what's on the SOC's EEPROM can run on the EEPROM. And flashing the EEPROM requires the manufacturer's key; you load a potential image into the SOC's RAM, it verifies the image, it flashes the image.
Getting unlicensed code to run on modern consoles is generally more difficult than jailbreaking an iPhone. And even if you get your code to run by tapping the bus or whatever, there's no data in main memory that's worth stealing, nothing that could help you get a persistent break or anything. The valuable data lives in the SOC.
Preventing Spectre/Meltdown is less important than the extra 2-4% performance.
I think they're of similar difficulty.
I do have contact details in my bio.
I think that the use of such systems has only increased, thanks to mainstream adoption of IoT devices and cloud environments.
OEMs can change their hardware at will while supporting existing applications, and cloud environments can be heterogeneous, without much issues moving applications around.
Not just mainframes either, AS/400 (for minicomputer-class machines, as opposed to mainframes) is the same way. A binary, hardware-independent VM is the officially-supported programming environment.
https://arstechnica.com/gadgets/2018/03/a-history-of-the-ami...
It didn't really have anything to do with the original Amiga. It was a rebranding of a strange high-performance VM designed by some very clever people in UK:
"Tao had created a product that was so innovative that few people understood what it actually was. Taos was an operating system that was coded in VP1, an advanced assembly language that used instructions for an imaginary, idealized RISC CPU. When Taos programs were loaded into memory, the system translated the VP1 opcodes into the equivalent ones for whatever CPU it happened to be running on. Taos could run on an x86, a MIPS, a PowerPC, or a transputer, and many more—or even different combinations running at the same time. Because VP1 instructions were more compact than most CPU’s native opcodes, Taos programs would often load and run faster than native ones, even when you included the time it took to do the translation. Taos was a little bit like magic."
Of course HN past has the details on this interesting bit of alternative software history:
https://news.ycombinator.com/item?id=9808159