Re:Mojo might be the biggest thing to happen in programming ...
by doublextremevil on Wednesday May 03, 2023 @10:09PM
(#35810449)
How does Mojo deal with memory management? Does it have the same memory safety issues as C and C++?
[ Parent
| on HN ]
Re:Mojo might be the biggest thing to happen in programming ...
by jph00 on Wednesday May 03, 2023 @10:42PM
(#35810626)
At the moment, you can handle memory manually with alloc/free (and there's stuff there to help with RAII), or you can use Python ref counting. Borrow-checking is currently under development, as discussed here: https://docs.modular.com/mojo/roadmap.html#ownership-and-lif...
Re:Mojo might be the biggest thing to happen in programming ...
by chrislattner on Thursday May 04, 2023 @12:54AM
(#35811380)
Mojo has a full ownership system that learned a lot from Rust and Swift and took the next step. Some details here if you're interested: https://docs.modular.com/mojo/programming-manual.html#argume...