Hacker News new | ask | show | jobs
by AlotOfReading 22 days ago
If you're manually calling malloc in Rust, your code is almost certainly wrong. It might be called as an implementation detail when you create new objects, but std can generally be used as if it were managed automatically.
1 comments

I'm using malloc as synecdoche for all forms of allocation, including Arc<Box<T>> stuff.