Hacker News Viewer

JSIR: A High-Level IR for JavaScript

by nnx on 4/8/2026, 12:59:05 AM

https://discourse.llvm.org/t/rfc-jsir-a-high-level-ir-for-javascript/90456

Comments

by: jcuenod

I came across this project in the last couple of days too. Being able to decompile from Hermes bytecode sounds awesome.<p>Here&#x27;s the repo: <a href="https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;jsir" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;jsir</a> (it seems not everything is public).<p>Here&#x27;s a presentation about it: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=SY1ft5EXI3I" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=SY1ft5EXI3I</a> (linked in from the repo)

4/8/2026, 2:04:54 AM


by: hajile

I want them to finish the official TC39 binary AST proposal. Nearly twice as fast to parse and a bit smaller than minified code makes it a pretty much universally useful proposal.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;tc39&#x2F;proposal-binary-ast" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tc39&#x2F;proposal-binary-ast</a>

4/8/2026, 2:19:44 AM


by: sheepscreek

This is exciting stuff!<p>My interpretation: If the JSIR project can successfully prove bi-directional source to MLIR transformation, it could lead to a new crop of source to source compilers across different languages (as long as they can be lowered to MLIR and back).<p>Imagine transmorphing Rust to Swift and back. Of course you’d still need to implement or shim any libraries used in the source language. This might help a little bit with C++ to Rust conversions - as more optimizations and analysis would now be possible at the MLIR level. Though I won’t expect unsafe code to magically become safe without some manual intervention.

4/8/2026, 1:56:02 AM


by: croes

IR = Intermediate Representation<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Intermediate_representation" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Intermediate_representation</a>

4/8/2026, 2:28:28 AM