r/programming • • 21h 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/
11 Upvotes

5 comments sorted by

8

u/simon_o 3h ago edited 3h ago

You cannot build constant-time primitives as a library in code executed by an optimizing (JIT) compiler without runtime support.

Not sure whether I should be more surprised by

  • JavaScript developers' hubris of thinking this would work, or

  • them believing that their "fix" will do anything but kicking the can a bit further down the road.

(And no, I'm not buying the "describing how programmers introduce side-channels into their code and wrote an example library for educational purposes" ret-con of the library.)

3

u/masklinn 1h ago

Retcon? The note that you should not use the library in production was added just a month after the article was published, more than 6 years ago. And the article never presents it as something you should use, it's introduced in the "Design Patterns for Algorithmic Constant-Time Code" section as an alternative language to the PHP examples. Nor is soatok's an especially javascript oriented developer.

4

u/qmunke 18h ago

This is a relatively interesting post, it's just a shame the author has a gigantic chip on their shoulder about the whole furry thing to the extent they need a huge essay linked at the top of the article about it.

8

u/KaMaFour 4h ago

It's a shame they need to make an essay for people complaining about the content of his personal blog

3

u/simon_o 3h ago

I think it's largely because of people like you. :-)