-
As I understand it, Mojo is a compiled language. It supports constructs such as Add the same time it also supports running by Python code which is a dynamic language. Mojo will sometimes use CPython to do this. But Mojo makes Python run faster if you simply add type annotations to the Python code too. Does this mean that Mojo has a somewhat constrained Python interpreter built-in? Does it compile the typed-Python code into a faster representation? So my question is, does Mojo include a garbage collector? If yes, does a garbage collector simply skip the parts that are completely memory managed? If not, what’s the memory management story of Mojo? Is it similar to Swift where ARC is used by default, but you can opt into more manual memory management? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Refer to https://docs.modular.com/mojo/programming-manual.html#behavior-of-destructors
|
Beta Was this translation helpful? Give feedback.
-
Please see #80 |
Beta Was this translation helpful? Give feedback.
Please see #80