News for hackers. Stuff that matters.
Re:A 10x Faster TypeScript by dcre on Tuesday March 11, 2025 @11:39AM (#43333557)
In the embedded video they show some of the code side by side and it is just a ton of if statements.

https://youtu.be/pNlq-EVld70?si=UaFDVwhwyQZqkZrW&t=323

Re:A 10x Faster TypeScript by 1oooqooq on Tuesday March 11, 2025 @05:39PM (#43337324)
to be fair, there's not many ways to implement a token matcher.

though looking at that flood of loose ifs+returns, i kinda wish they used rust :)

Re:A 10x Faster TypeScript by dcre on Tuesday March 11, 2025 @07:35PM (#43338303)
I’d guess Rust compile times weren’t worth it if they weren’t going to be taking advantage of the type system in interesting ways.