News for hackers. Stuff that matters.
Re:Universal Binaries Using WASM by runeks on Tuesday February 26, 2019 @12:37PM (#19256443)
How is this different from compiling Linux from C to LLVM to native code?

And why would I ever want to generate native code for an OS at runtime?

Re:Universal Binaries Using WASM by stcredzero on Tuesday February 26, 2019 @04:33PM (#19258486)
And why would I ever want to generate native code for an OS at runtime?

Why? To get write once, run everywhere. If you can do the generation at the speed the data comes off the disk, you're paying nothing for the feature.

If you do things right, the abstract memory model can even be bit-identical. Even though there are differences in the underlying hardware, like endianess, all of the virtual ISAs can still implement the same virtual memory model. Smalltalk also does this, and it absolutely works across 100's of combinations of ISA and OS.

Re:Universal Binaries Using WASM by pjmlp on Tuesday February 26, 2019 @02:41PM (#19257626)
Not necessarily at runtime.

OS/360 (IBM z nowadays) and OS/400 (IBM i nowadays) work kind of this way.

The whole userspace is based on binaries deployed in a bytecode format.

They are than AOT compiled into native code at installation time, or anything there are system relevant changes, via a kernel JIT service.

Whole mainframe hardware migrations are possible without changing a single thing on the userspace, just doing a system refresh.