3 ms·
ARM already has Java and JavaScript extensions in their CPUs, so that day isn't completely off the horizon yet. I'm not even sure it would be a terrible idea,
by mmastrac 5y ago
ARM already has Java and JavaScript extensions in their CPUs, so that day isn't completely off the horizon yet.
I'm not even sure it would be a terrible idea, as we'd have a very interesting JS/WASM-like set of opcodes that we could target with _any_ compiler.
- hajile 5y agoThe "Javascript instruction" is a bit of a misnomer. JS accidentally got part of the x86 execution model for float conversion baked into the spec. ARM added an instruction to mimic the old x86 one. It's potentially useful in some other contexts too.
- mmastrac 5y agoRegardless, FJCVTZS is still literally a "Javascript" instruction: "Floating-point Javascript Convert to Signed fixed-point, rounding toward Zero".