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

Indeed. Memory usage is a point I never addressed in my comment. When managing large Java applications, that is indeed one of the most important issues that one has to be aware of. Some runtimes tries to be more automatic than others, and there are books worth discussions to be had about that.

As for the second paragraph, thank you for clarifying that. I used poor terminology. I should probable have said pointer sharing, or copying.

For ownership transfer to be zero cost, the compiler have to be clever enough to figure out that the original reference isn't used after copy. This can be handled by the compiler itself, or be enforced by the language (as is the case with Rust, as far as I understand).



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

Search: