News for hackers. Stuff that matters.
Re:Computers Aren’t Fast Anymore (2013) by mattgreenrocks on Thursday August 28, 2014 @01:51PM (#8238662)
Unfortunately, LLVM IR is platform-specific: http://llvm.org/docs/FAQ.html#can-i-compile-c-or-c-code-to-p...

An IR-esque approach is good, just not LLVM. Then you're back to something like the JVM.

Re:Computers Aren’t Fast Anymore (2013) by TD-Linux on Thursday August 28, 2014 @02:06PM (#8238761)
Google tried to make a platform-independent LLVM IR [1], but the ended up needing to specify a bunch of additional things, like a virtual 32-bit processor target, their own ABI, their own API (Pepper), and prevent things like assembly language instructions and intrinsics (like SIMD) from passing into the bitstream. It also got locked at one particular LLVM version. This basically ends up bringing it to the level of asm.js, except with less Javascript API interoperability.

[1] https://developer.chrome.com/native-client/reference/pnacl-b...