←back to thread

160 points todsacerdoti | 1 comments | | HN request time: 0s | source
Show context
stabbles ◴[] No.41902228[source]
What makes me skeptical is reading

> I just don’t think we’ve exhausted all the possibilities of making JavaScript tools faster

and then

> Sometimes I look at truly perf-focused JavaScript, such as the recent improvements to the Chromium DevTools using mind-blowing techniques like using Uint8Arrays as bit vectors, and I feel that we’ve barely scratched the surface.

Bit vectors are trivial?

I think the author is too ignorant about those "faster languages". Sure, maybe you can optimize javascript code, but the space of optimizations is only a small subset of what is possible in those other languages (e.g. control over allocations, struct layout, SIMD, ...)

replies(2): >>41902737 #>>41903990 #
1. gagaq ◴[] No.41903990[source]
If JS runtimes take type hints into consideration, then they can be much faster. SIMD is not really hard to support, though value types can be hard to retrofit.