DEV Community

Discussion on: if javascript only needs the browser to compile why can't other languages do it

 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

You don't need a separate runtime environment though. Depending on what system you're compiling for, your compiler could easily just turn argc and argv into two globals, one being 0 and the other an empty array, or add some boilerplate code that reads them from somewhere else, like some external sensor. One could get creative with that.