-
Notifications
You must be signed in to change notification settings - Fork 3
node js
[https://nodejs.org/en/about/]
According to [https://en.wikipedia.org/wiki/Node.js] the V8 javascript engine compiles the code into machine language rather than interpreting it at runtime.
See a comparison between python code and Node.js code [http://www.cdotson.com/2014/08/comparing-node-js-and-python-on-the-raspberry-pi/]
# credit [http://thisdavej.com/beginners-guide-to-installing-node-js-on-a-raspberry-pi/]
# IF uname -m <> “armv6” then
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
# the preceding script also updates the package list from the repos
# so you can now just install
sudo apt install nodejs
node -v
# e.g. v7.5.0
# see also [http://thisdavej.com/upgrading-to-more-recent-versions-of-node-js-on-the-raspberry-pi/]
On the Pi Zero or Model 1 performance is rather bad [http://techfindings.one/archives/2053] - see also a comparison with other single board processors [http://smartmobilestudio.com/2014/01/20/node-js-raspberry-pi/]
However by using exectuables that are compiled directly for the armv7 hard floating point architecture, you can get much better performance.
[http://www.networkworld.com/article/3050703/internet/raspberry-pi-google-coder-html-css-js-node-js-way-cool.html]