Affiliate Disclosure
If you buy through our links, we may get a commission. Read our ethics policy.

Swift creator brings new AI programming language to the Mac

Mojo flame logo

Last updated

New programming language Mojo is now on the Mac, bringing Python-like tools specifically for AI developers.

The development of Mojo has been led by Chris Lattner, who was the main driver behind Apple's Swift programming language. While at Apple, he also worked on Xcode, before briefly moving to Tesla, then to the Google Brain AI project in 2017.

In 2022, he co-founded Modular AI, which is the firm behind the new Mojo.

"Mojo is a new programming language for AI developers that will grow into being a superset of Python over time," says the company. "It already supports integrating with arbitrary Python code seamlessly and has a scalable programming model to target performance-critical systems, including accelerators (e.g. GPUs) that are pervasive in AI."

Modular originally launched Mojo on May 2, 2023, with a Mojo Playground tool. It was followed by a Linux edition in September 2023.

"[In] just over a month we've seen tens of thousands of downloads and amazing community projects," said the firm's Shashank Prasanna in a blog post. "[From] all the feedback we received, one request stood out on Discord, on social media and was the most upvoted feedback on GitHub."

"We heard you loud and clear, and today, we are excited to share that Mojo is now available on Mac (Apple Silicon)," it continues.

The company also says that it is possible to use Mojo on Intel-based Macs, "via Docker containers."



7 Comments

sloth77 3 Years · 42 comments

Fantastic.  Because what the world needs is Yet Another Programming Language.

coolfactor 20 Years · 2341 comments

sloth77 said:
Fantastic.  Because what the world needs is Yet Another Programming Language.

Yah, I've had it on my bucket list to learn Objective-C for 20+ years, and still haven't.  And then along came Swift and it's still untouched. Python is interesting, and to know that there's a variant of it specifically for AI programming... Mojo will become a very popular language, since Python was already the go-to language for AI programming.

Alex1N 8 Years · 153 comments


Installing on Mac requires HomeBrew.

Shame that HomeBrew is getting all of the love, and MacPorts doesn't. MacPorts is vastly easier to use for installing packages! I've used HomeBrew a few times, but always had one problem or another, whereas MacPorts has never failed me.

Exactly the same here with MacPorts vs. HomeBrew. I used it once, then uninstalled. MacPorts is highly robust and very easy to use.

dewme 10 Years · 5775 comments

sloth77 said:
Fantastic.  Because what the world needs is Yet Another Programming Language.

Yah, I've had it on my bucket list to learn Objective-C for 20+ years, and still haven't.  And then along came Swift and it's still untouched. Python is interesting, and to know that there's a variant of it specifically for AI programming... Mojo will become a very popular language, since Python was already the go-to language for AI programming.

I think it comes down to deciding whether you want to dabble in multiple programming languages or try to become proficient in one or two programming languages. Heck, being proficient in any one language is a huge undertaking and nearly unattainable if you try to stay up to date with all of the derivations of the language you started with. For example, if you came into programming through K&R C whose reference manual looks like a pamphlet compared to the monstrosities associated with modern languages like C++, Java, C#, or Swift, each of which can trace their language lineage back to C, trying to keep up with each of these derivations, all of which have grown to be massive with their plethora of libraries, is a monumental task. 

Today, being proficient in a just a single language is nearly impossible when you consider all of the runtime dependencies, operating system dependencies, specialized silos of libraries that address specific domain requirements, like SwiftUI, and of course the constant growth, scope creep, and language extensions that keep being added by the language standardization bodies. Once one language settles on a clever new way to improve a language's capability or improve programmer productivity, every other language that is still being maintained will come up with a way to achieve the same gains within their language's scope. It never ends, unless you as a programmer decide to park yourself in a functional area or job that doesn't feel compelled to keep chasing all of the shiny new things. For example, some embedded programmers can limit their experience and knowledge to something like C++ or even C.

Being very good at one thing is better, in my opinion, than being average or mediocre at several things. Humans are in fact, lousy multitaskers, despite what some folks claim to be. Don't overfill your bucket.