News for hackers. Stuff that matters.
Re:Lucet: Native WebAssembly Compiler and Runtime by steveklabnik on Thursday March 28, 2019 @07:28PM (#19517680)
LLVM is not really a VM in the sense of the JVM. LLVM-IR is not platform independent, and was never intended for this use-case.

It is also significantly more complex than wasm, which is partially why wasm ended up working. Start small, add over time: that's the way of the web platform.

Re:Lucet: Native WebAssembly Compiler and Runtime by kllrnohj on Friday March 29, 2019 @01:13AM (#19519314)
More importantly LLVM-IR isn't stable. It's intended to just be an intermediate between the bundled front-ends & back-ends. There's some limited compatibility provided ( http://llvm.org/docs/DeveloperPolicy.html#ir-backwards-compa... ), but nothing close to suitable for an actually persisted format.
Re:Lucet: Native WebAssembly Compiler and Runtime by writepub on Friday March 29, 2019 @04:40AM (#19520027)
There's a subset of LLVM-IR that IS platform independent. PNacl, and many others rely on this.

The reason for wasm's victory is two found:

1. WASM is a stack based VM (LLVM IR is register based). Additionally, instructions chosen for wasm were inspired by the byte code representation used in existing JS JIT compilers. This meant that WASM almost fit effortlessly into the browser compiler pipeline. Compare this to adding the LLVM jit engine that the nacl philosophy uses. WASM was easier to implement. Stack based VMs are also (apparently) easier to sandbox, with a significantly lower attack surface

2. Firefox was philosophically against nacl/PNacl. Considering how Webview Safari eventually chose LLVM jit for it's JS JIT, as of 2019, PNacl would probably have won, given Microsoft (chromium edge), Google and Safari all support LLVM jit anyways.

Re:Lucet: Native WebAssembly Compiler and Runtime by kryptiskt on Friday March 29, 2019 @06:35AM (#19520437)
Safari ditched LLVM JIT for B3 a couple of years ago and V8 has never used it, so it was never really established for JS engines.
Re:Lucet: Native WebAssembly Compiler and Runtime by Sophistifunk on Thursday March 28, 2019 @10:56PM (#19518770)
Every reliable complex system started as a reliable simple system and evolved.
Re:Lucet: Native WebAssembly Compiler and Runtime by jodrellblank on Friday March 29, 2019 @12:36AM (#19519190)
"Worse Is Better", but describing it from the other side.
Re:Lucet: Native WebAssembly Compiler and Runtime by StavrosK on Thursday March 28, 2019 @07:31PM (#19517697)
I see, that's a very good point. Thank you.