It’s also not a scripting language.
It definitely is a scripting language.
hello-world.js
:
#!/usr/bin/env node
console.log("Hello world");
Your favorite command line tool:
chmod +x ./hello-world.js
./hello-world.js
You just need to install npm
, eg via apt-get install npm
.
As someone who’s written pipelines who do exactly that on Windows, macOS, Linux across x86_64, aarch64, and MIPS, with optimized, unoptimized, instrumented for ASAN, instrumented for TSAN, and instrumented for coverage, and does it all in a distributed containerized workflow… It’s not as easy as it sounds. Honestly macOS is way more of a hassle to deal with than Linux.
Unless you need ROS. ROS is utter garbage. ROS is popular in robots. ROS is, unlike its name, not actually an operating system but rather a system of tools and utilities which do not follow any standards and certainly not the OS standards. I literally hate ROS. I would burn that shit to the ground and rebuild-the-world if I had the time to.