News for hackers. Stuff that matters.
Re:Google Introduces Portable Native Client by kodablah on Saturday May 18, 2013 @02:08AM (#5728067)
How much of a subset of LLVM is it? Can other LLVM frontends target it easily (e.g. Rust or http://terralang.org/)?
Re:Google Introduces Portable Native Client by pcwalton on Saturday May 18, 2013 @02:15AM (#5728074)
Rust could target it, but not as easily as you might think. LLVM IR is not portable (for example, here's some of the code necessary to get the calling conventions right in the LLVM IR for x86-64 [1]). The runtime and scheduler would have to be ported to the Pepper API if you wanted stuff like GC, I/O, and threads (which most Rust programs will want).

[1]: https://github.com/mozilla/rust/blob/master/src/librustc/mid...

Re:Google Introduces Portable Native Client by anon1385 on Saturday May 18, 2013 @12:14PM (#5729395)
Possible still seems preferable to impossible, which is the situation with Rust on asm.js (correct me if I'm wrong…)
Re:Google Introduces Portable Native Client by pcwalton on Saturday May 18, 2013 @12:31PM (#5729456)
asm.js Rust is no harder than PNaCl Rust.
Re:Google Introduces Portable Native Client by vanderZwan on Saturday May 18, 2013 @05:46AM (#5728376)
Andrew Wilkins is working on a Go frontend that can also target PNaCL[1], but since it's a spare time project and he just had a baby it's slowed down. So if anyone want to help him out...

[1] http://blog.awilkins.id.au/2012/12/go-in-browser-llgo-does-p...