3 ms·
i think the "JS is assembly for the web" strictly refers to the fact that you cannot write closer-to-the-metal code than javascript. it'c certainly not the C-of
by leeoniya 14y ago
i think the "JS is assembly for the web" strictly refers to the fact that you cannot write closer-to-the-metal code than javascript. it'c certainly not the C-of-the-web either, but some combination of the two. i do agree that there are more parallels to C than to asm, but nit-picking the differences will lead to no adage at all :)
"Assembly varies wildly between architectures" - but javascript runs on a single architecture. it's just that browser vendors all implement the same one.
the other points are valid, but i dont think this was ever supposed to be that deep a comparison.
- stormbrew 14y ago> i think the "JS is assembly for the web" strictly refers to the fact that you cannot write closer-to-the-metal code than javascript. This exactly. JS is the lowest level of code you can reliably run through a browser. That makes it, by definition, the 'metal' of the web. And that will probably not change for a very long time.
- pekk 14y agoyou "cannot" write closer-to-the-metal code only because of artificial controls on the platform, not because of how low-level it is.