Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Native Client (NaCl) programs be written in languages other than C or C++?

Tags:

Would it be possible to write a native client application in Python or Go that could then run in the browser?

like image 668
Alexis Avatar asked Oct 17 '11 23:10

Alexis


People also ask

What is Chrome Native used for?

What is the Google Chrome Native Client? Native Client is an open-source technology that allows you to build web applications that seamlessly execute native compiled code inside the browser. This Google Code project is for maintaining the Native Client implementation, including compiler and browser support.

What is Native Client application?

An application that was developed for the computer it is running in. For example, a Windows app runs only in a Windows environment, and a Mac app runs only in a Mac environment.

How do I run Native Client in Chrome?

Type about:flags in the Chrome address bar, scroll down to “Native Client”, click the “Enable” link, scroll down to the bottom of the page, and click the “Relaunch Now” button (all browser windows will restart). Verify that the Native Client plugin is enabled in Google Chrome.

What is Native Client plugin?

Native Client was a sandbox for running compiled C and C++ code in the browser efficiently and securely, independent of the user's operating system. It was deprecated in 2020 and support will end in June 2021.


2 Answers

Go used to compile to NaCl, but NaCl's been such a moving target that the support was removed from Go. It'll probably be resurrected at some point if/when NaCl settles down.

like image 98
Brad Fitzpatrick Avatar answered Oct 04 '22 10:10

Brad Fitzpatrick


It is architecturally possible, but the current SDK only has C/C++ toolchains as far as I can tell. They have the Python REPL running as a browser-based client (complete with standard library and sqlite http://lackingrhoticity.blogspot.com/2009/06/python-standard-library-in-native.html ).

like image 20
gkuan Avatar answered Oct 04 '22 12:10

gkuan