Hacker News new | ask | show | jobs
by pbsdp 4706 days ago
> "Google contributed ports of NaCl for ARM and Amd64."

So, Mono/C# in Chrome? If NaCl/PNaCl becomes available outside the Chrome App Store, that could be pretty exciting -- Mono does an excellent job with AOT performance and mobile-scale memory utilization.

3 comments

Mono has been running in Chrome for a while. Bastion's NaCl version is Mono based.
I think they had to use a Mono fork when they released Bastion, though. This might be just Google integrating that fork.
It would be great to hear more about this, are there any 'Hello World' examples? I assume the API's that NaCl-exposed have a corresponding set of C# interfaces? How does one write to the browser window, get user input, network I/O, etc?
https://groups.google.com/forum/#!msg/native-client-discuss/...

That post is old, but the instructions are still valid.

> I assume the API's that NaCl-exposed have a corresponding set of C# interfaces? How does one write to the browser window, get user input, network I/O, etc?

Unfortunately there is nothing available to expose Pepper interfaces directly to the managed environment that is shipped with this, though it is possible to auto generate bindings and glue code to make it work. What you'll see in the HelloWorld example I linked above is a very manual way of doing this, exposing an internal call that itself just calls directly through the C Pepper interface, effectively allowing Pepper calls from C#.

I hope they are secretly testing C#->LLVM->asm.js as well.