Will Mojo be a "true" systems programming language?
Will you be able to create things like device drivers or even operating systems like you can in Rust?
11 Replies
@Jack Clayton would you have an input on if this should be possible in the future?
Hi @denden absolutely it will! OS is an interest of mine as a hobbyist, and others on the team who have worked on operating systems. I think the experience will be great and I'm really looking forward to it. We'll need to build libraries as a community to support it though, and there's a lot of work to do. I'm hoping it gets traction!
so @Jack Clayton says, he and others in his team see forward to program an Operating System in the superset Python++ of Mojo-lang? Whut?
What is the name of Mojo-lang's interpreter, (jit-)compiler? Can we see it? lay hands on it?
There is no interpreter or jit, Mojo is compiled to machine code like Rust or C++
It's a superset in syntax and semantics, not implementation.
Oh- yes that makes sense. But @Chris Lattner said in an interview that it was all inside the modular stack: interpreted, jit compiled and statical compiled ..
hmm, I think I recall that as well 🤔
Congrats @denden, you just advanced to level 1!
I wouldn’t be surprised if the repl was interpreted, some compiler bugs seem to behave differently in it
But there could be some other explanation for that
The repl is built on top of LLDB https://www.youtube.com/live/9GW6sK8vyVg?si=lanv53qiQcw-nGSq&t=2865
Modular
YouTube
Modular Community Livestream - Mojo🔥 SDK
Mojo🔥 is here! Join us on our upcoming community livestream as we discuss all things Mojo🔥 SDK! - Getting started, features, building and running Mojo🔥 co...
When you use "mojo build" you get an a.out executable. When you use "mojo" as a repl, it is jit compiling
(and yes, built into and with LLDB)
The compiler uses an interpreter internally for evaluating metaprogramming stuff also, but that should be invisible to the user.