Finally i’m gonna be able to contribute!
Good thing that this isn’t actually possible…
Don’t tempt fate. There are already two kernels written in javascript
Why would God allow this to happen?
To punish us for the sin that is inventing JavaScript.
Why do you think God stays in heaven, in fear of what He created?
How? You’d need to compile it down to machine code somehow, for the processor to have any clue how to run it. And you’d need some custom library with custom compile instructions, to be able to control memory allocations, memory addresses etc…
I did a quick search and found two operating systems written in JS, both of which cop out when it comes to the kernel. Did you maybe mix it up with those?
There’s almost always at least a little ASM sprinkled into any kernel, so that’s not a big deal.
OTOH, there is the factor of “you know how Chrome takes up 2GB per tab? What if that was a whole OS?”
If we are rewriting it, we should use holyc to make it the way god intended.
Ring 0 all the way baybee!!
Anything is better than C, right? Even 🤮 PHP.
PHP and C are both fine languages, they have their strengths and their weaknesses. They’re tools and if you feel the need to shit on them then you clearly need more practice using a diversity of languages.
Ah yes, the almighty counter “everything is relative”. “Malbolge is a fine language with its strengths and weaknesses. It has perfectly valid usecases and can never be shit on, ever.”