Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

So AssemblyScript can beat JavaScript if you benchmark every function and then optimize them by hand every time it is slower?

So most (all?) of the code posted which looked like a straight port to AssemblyScript was slower than JavaScript before optimizing it? I don‘t know how you feel, but i personally don‘t want to optimize every function to get the promised speed :(



If your app is doing most of the work it needs to do in 1ms, but one path takes 200ms, then clearly you only need to optimize things on the slow path. You don't have to optimize everything to get a huge perf improvement.


AssemblyScript is still in development, if you're interested in WASM optimizing an app, Rust or C are better bets




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: