3 ms·
Java, V8, or the .net CLR could sense the processor features at run time , and JIT the code into more efficient instructions? A lot of things are interpreted n
by jasonjayr 9y ago
Java, V8, or the .net CLR could sense the processor features at run time , and JIT the code into more efficient instructions?
A lot of things are interpreted nowadays, if the interpreter is updated to understand the processor features, it can take advantage of it.
- the8472 9y agoIn addition to JIT-compiled code there also are libraries that do runtime detection of available processor features and dispatch to optimized implementations. Pretty much anything number-crunchy such as software image/video processing will do this.
- saosebastiao 9y agoHow much do these VMs actually optimize with newer instructions? Last I checked (oracle java 8), the jvm still had really spotty autovectorization optimizations, and SSE has been around since 1999, with the most recent SSE4 coming out over 10 years ago. I get that they technically could do so, but how much do they do it in practice?