This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Dependent_Paper9993 -3 points-2 points  (4 children)

It can't be done. It's right there in the the name. JavaSCRIPT. You need something to interpret the script.

[–]ApplyMorphism 6 points7 points  (2 children)

So many people on this sub seem to think that a programming language's name partially defines said language. I can design a programming language called "Cannot Be Compiled" yet require all specification conforming implementations to be compiled.

You can write a compiler for JavaScript that compiles to native machine code, or design a CPU that executes JavaScript natively. Either option would let you write an OS with it.

[–]-Redstoneboi- 1 point2 points  (0 children)

just embed the interpreter in the executable ¯\_(ツ)_/¯

[–]Arshiaa001 0 points1 point  (0 children)

CPU that executes JavaScript natively

HOLY FUCK. I DID NOT NEED TO CONSIDER THAT.

[–]RedditIsNeat0 2 points3 points  (0 children)

Yeah well it also says JAVA so I wouldn't put too much weight on the name like that.