2 ms·
With things like WASM and GraalVM this is becoming more and more realistic. We don’t really write ASM anymore because it’s tedious and error prone, same can be
by whalesalad 4y ago
With things like WASM and GraalVM this is becoming more and more realistic. We don’t really write ASM anymore because it’s tedious and error prone, same can be said for C. I wouldn’t choose it today unless I absolutely had to. Abstraction is the way.
- qsort 4y agoAnd the language you use to target WASM is... C? I'm not necessarily saying it's a good language, but it's an excellent abstract machine. It won't die.
- SkyMarshal 4y agoJust about every language can compile or transpile to WASM: https://github.com/appcypher/awesome-wasm-langs https://github.com/appcypher/awesome-wasm-langs
- pjmlp 4y agoThere are plenty of WASM runtimes without any C on them.
- qsort 4y agoI'm not talking about the language you use to write the runtime. I'm talking about the language you use to write the code that becomes the WASM that the runtime runs. They not need be the same. As others have pointed out you can compile pretty much everything to WASM, but it's most often done with the same languages you'd use to compile to native code; C, C++, Rust, the usual suspects.
- pjmlp 4y agoD, Go and C# use their own bootstrapped compilers, just to give three examples from many others.
- Joel_Mckay 4y agoThe annoying part is having to endure the Astroturfing campaigns. I'd prefer a clear 1 liner in Julia or Prolog over 80 pages of unknown correctness. ;)
- pjmlp 4y agoAlready in 1961, one of the achievements of Burroughs was being an OS fully written in a safe systems languages (one of the first uses of UNSAFE code blocks), and a bytecode based format for executables. This system is still sold nowadays as Unisys ClearPath MCP.