Hacker News new | ask | show | jobs
by finn888 78 days ago
Faster than C++ is always a head-turner. Curious what "magic" enables that with memory safety.
1 comments

Usually strict aliasing.
If it's just strict aliasing then you can't be as fast as C++ in all cases. So you have to either provide an escape hatch like Rust (making the memory safety claim only mostly true), or accept worse performance in some cases (making the performance claim only mostly true).