News for hackers. Stuff that matters.
Re:Mozilla Wants To Split Off Its Thunderbird Email/Chat Client by icebraining on Tuesday December 01, 2015 @09:35AM (#10655574)
All languages can be compiled to native code, it's just harder for some. For example, here's an AOT compiler for JS: https://github.com/tmikov/jscomp
Re:Mozilla Wants To Split Off Its Thunderbird Email/Chat Client by danellis on Tuesday December 01, 2015 @09:40AM (#10655618)
It's still a scripting language, and you still can't write an OS in it. There's no low-level access to the hardware. You could of course write all the low level parts in C, but then you haven't written an OS in JavaScript.
Re:Mozilla Wants To Split Off Its Thunderbird Email/Chat Client by adrianN on Tuesday December 01, 2015 @10:59AM (#10656294)
C also doesn't have low level access to the hardware. The interesting bits of the OS are written in assembly.
Re:Mozilla Wants To Split Off Its Thunderbird Email/Chat Client by danellis on Tuesday December 01, 2015 @02:03PM (#10657867)
I think the only bit that really needs to be in assembly is the context switch, but even that can be embedded in the C (which you might consider cheating, but isn't even an option in JavaScript).