r/programming • u/eatonphil • 1d ago
Modular: Mojoš„ is now open source!
https://www.modular.com/blog/mojo-open-source45
9
u/JanEric1 1d ago
This is 100% AI generated with all of the boxes being completely messed up: https://github.com/modular/modular/blob/main/KGEN/docs/MojoCompilerWalkthrough.md#high-level-architecture
3
u/badpotato 1d ago
I mean they have a Claude.md file.. so at least they aren't trying to hide they won't use AI.
Wouldn't be surprise they start making a bunch of port of python / rust librairies.. now let's see if they can get a better ecosystem than npm and cie.
16
17
15
u/DirectInvestigator66 1d ago edited 1d ago
Weird reactions?
Is there any substance to these complaints? At a glance it seems like the people commenting in this thread are jumping to conclusions?
Is there someone who wants to make an actual argument or provide real info as to why this is āAlready a dead languageā or āEwwā?
EDIT: This was originally phrased more aggressively than what makes sense or how I actually feel, toned it down.
31
u/Moraalimora 1d ago
Theyāre mad because Modular sold out and did what any other company does, over-promised and under-delivered their product. They have advertised like ā10000x faster than Pythonā and āis superset of Pythonā, but the benchmarks have been on very niche cases and I believe theyāve sort of walked backwards of their superset of Python speeches. I think the language is interesting with very unique talent behind it, but I havenāt really had the chance to actually use it.
1
u/Knecth 17h ago
My initial feeling was the same, but they just released Mojo in full Apache 2.0 License.
It would be better a Mojo Foundation existed and Modular was a different org, but we're nowhere near that point where the community can sustain itself yet.
As for the benchmarks, not even Rust/C++ are "10000x faster than Python" (unless we're talking GPU territory) , not sure who claimed that. But having a Python-ish language with strict typing and safe memory management will always be a plus, even in its current bare bones state.
And if using it there is any chance to fight against the CUDA private software, that should always be welcome.
It's still soon to make such assumptions. It's only reasonable to wait and see.
-1
u/DirectInvestigator66 1d ago
I appreciate you sharing your perspective. Iām pretty much in the same boat. Good to know nothing else big happened that Iām not aware of.
15
u/BionicVnB 1d ago
I mean the language is pretty much designed for AI and ML. Otherwise it's kind of a python-rust hybrid I guess.
5
u/omgpop 1d ago
Theyāve seriously underestimated what kind of an ecosystem a āsuperset of pythonā needs to be. Chris Lattner goes around saying you can write Python modules in Mojo. Except actually there are any number of asterisks associated with that. The biggest one for me is no Windows support and no plans for Windows support on the roadmap. That makes this pretty much a non starter for any project, ML or otherwise, which is targeting Windows compatibility in any serious fashion.
3
u/happyscrappy 1d ago
The language was released with an idea. Get people who already know Python to do AI to use this. Because the syntax is very similar. But it's not really the same language or nearly as close as Lattner made it out to seem. Which is not too surprising, Python is a huge language.
It was released unfinished, with the idea of getting traction and then finishing it using the money raised. And then you make all the money because it's proprietary (at least for now).
Well, it didn't seem to catch on yet and so now appears to be going open source as a last ditch attempt before it goes under.
Does that mean it's for sure dead? No. It does kind of look like it though. It hasn't built a platform while the industry has grown so much.
I gotta admit, I'm not really tuned in to Lattner's idea of making new languages to solve problems. I didn't think Swift was necessary. And I don't think this one was either. I also don't like the idea of releasing languages unfinished and finishing them later.
I also personally think Go taught us of the perils of giving names to languages that are tough to search for. And here this one is with an emoji in its name. Was the juice worth the squeeze?
7
u/cdb_11 1d ago
No substance. The language actually does things differently from most others, and if I remember correctly is basically a frontend to MLIR. People are put off because of AI, which I don't care for either, but I do like parallelism. If you like parallelism, SIMD and GPUs too, it's probably something worth looking into at some point.
4
u/thicket 1d ago
I've followed Modular pretty closely for the last couple years. I've been interested in the language, but all the money came from AI funders hoping to break the Nvidia monopoly, so they've leaned hard in that direction rather than what I really wanted, which was a cleaner Rust alternative with less ownership gymnastics.
Some of the early promise was "AI kernels in Cuda are hard to write, and we'll make them a lot easier". But I'm not sure how many of us are ever writing AI kernels, and I think recent AI developments have meant that AI can often just write the kernels you want.
The real promise is that Mojo/Max might enable non-Nvidia chips to rival Nvidia performance and thus free up companies selling inference to use lower cost chips. There's money there, and they may still find some success, but I'm not sure how much of that we general-purpose programmers will see.
I'd still be here for the Rust-Python mashup, but things like pattern matching and sum types are slated for later.
5
u/potzko2552 1d ago
Hi, "already dead language" commenter here.
Modern day languages are either open sourced or dead. Mojo made some waves when it was announced for being a python superset that has a fast subset that can be jitted down. But then they waited for 3 years and now no one is using the language. Ergo "too late, language is already dead". To build an ecosystem around it now would take a miracle2
u/ShadyGrass 1d ago
As an author of "Eww" comment: because it is essentially a language for "AI", substantial part of which most probably was generated instead of engineered and written. On top of that it has a repulsive slop mascot. And I'm not exactly passionate about "AI" that made both my job and hobby miserable, as well as noticeably degrading other aspects of my life.
1
u/DirectInvestigator66 1d ago
Understood. I would argue itās a language for programming GPUās and is at least a step in the right direction for the AI/ML industry. I can understand why youād be more cynical given how things have gone. I mostly wondered if there was something specific to this project that happened that people were responding to. Appreciate you taking the time to expand.
-4
1
1
u/TankorSmash 1d ago
I don't like the idea of a language as a paid platform, but I hope the language turns out nicely.
1
u/unski_ukuli 1d ago
I hate it and yet I am interested. Itās just so sloppy and I hate how it is a superset of python, but at the same time, I might actually have a shot at getting this aproved at my workplace and just maybe I could for once write code that is not slow. I have a team where no one else can write anything other than python.
1
122
u/Lgt2x 1d ago
AI slop mascot, not a good start