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

> I guess Rust and C++ also "pause the world"

Rust does not ship a garbage collector with your binary, so there is nothing to pause your code.

When the compiler adds those drop() statements, they just free the respective memory at runtime. There is no need to pause your application to do that.

The garbage collector needs to pause the application because it takes time to calculate in runtime which parts of the application memory are safe to clean. If the application was running in the meantime, there's no guarantee that the blocks it marked as "safe" are actually still so.



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

Search: