jordiae
jordiae
MModular
Created by jordiae on 10/30/2023 in #questions
Examples of Python code that will never work with Mojo?
Hello, afaik, Mojo is intended to be a Python superset (a sort of Python++), but at the same time, Modular has made it very clear that Mojo won’t be a “Python compiler”, implying that some of the more dynamic Python features won’t work as expected in Mojo (that’s what I understood from some of the Q&A sessions and interviews). Do you have any specific examples of Python features that will never work with Mojo, not because they aren’t supported yet, but because by design Mojo won’t be able (or willing) to compile them? For example, redefining intrinsics/builtins? Walking and modifying its own AST and semantics (as some Python-based DSLs do)? Deleting and redefining class methods or attributes? C extensions, C++/Rust bindings?
13 replies
MModular
Created by jordiae on 9/13/2023 in #questions
Can I call a (compiled) Mojo function from Python?
Otherwise, do we have any ETA for when that is going to be available? It seems like the killer feature for Mojo.
16 replies