Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What other programming languages run on PNaCl? [closed]

As I understand it, PNaCl is designed to support C and C++. Has anyone managed to get any other languages (that compile to native code) to run in PNaCl?

like image 278
J D Avatar asked Nov 15 '13 21:11

J D


2 Answers

Ruby, Lua, and a number of other languages have been ported to NaCl already. See the list of NaCl ports for full documentation. https://code.google.com/p/naclports/wiki/PortList

like image 55
NaClPM Avatar answered Oct 01 '22 14:10

NaClPM


There are a couple of different approaches for targeting other languages to PNaCl. One is compiling the language interpreter with the PNaCl toolchain. Since most interpreters/VMs are written in C and C++, this turns out to be easy in practice. naclports already has Lua, Python and Ruby running in this manner.

A more direct approach is taken by llgo - actually emitting PNaCl bitcode. There were also discussions about Mono (which does run on NaCl) on PNaCl - https://groups.google.com/forum/#!topic/native-client-discuss/Km1FOVH6yn0

The real answer is - it's still early (PNaCl was released publicly last week!); this is a ripe field for disruption because the technology is new. If someone wants to port other languages, it would be very welcome.

like image 33
Eli Bendersky Avatar answered Oct 01 '22 14:10

Eli Bendersky