logoalt Hacker News

duke_of_vandalsyesterday at 8:27 PM3 repliesview on HN

If you didn’t need to look at the code at all, why not write it in asm instead of Rust, and make it even faster?


Replies

robbie-cyesterday at 8:30 PM

Ha I did consider that! But 70x is plenty fast enough (we still have to query an actual database!) and the parser runs in a shared process on untrusted input, so it wasn't worth the security risk

ncrucestoday at 12:14 AM

This is a good point.

If we don't care about inspecting the output, why don't we just replace the Rust compiler with something that generates assembly from Rust source, and then cross check the output with a few million random Rust programs?