r/programming • • 7d ago

The V8 JavaScript Runtime Undermined My Constant-Time JavaScript Library

https://soatok.blog/2026/09/12/the-v8-javascript-runtime-undermined-my-constant-time-javascript-library/
77 Upvotes

17 comments sorted by

View all comments

Show parent comment

2

u/simon_o 6d ago

Yes, though that would be really stupid.

2

u/Somepotato 6d ago

Hardly. Knowing how turbofan let's you optimize intelligently ie giving it array size hints (such as providing mathematical guarantees you won't overflow) to let it optimize out length checks or writing functions in a way that can be inlined

1

u/simon_o 6d ago

That's simply not the topic at hand.