I would say "faster than C if you want to keep your sanity and don't have infinite time". It doesn't roll off the tongue though :P
- Run on GPU
- Automatic loop parallelisation
- Microbenchmarks where C is slow due to pointer aliasing (this is why Ocaml is faster than C)
[1] https://www.modular.com/blog/the-worlds-fastest-unified-matr...
I kind of agree with the obnoxiousness of the marketing, but it pays to actually read a little of what they do before jumping to conclusions.
If only because its Chris Lattner behind it, obviously not someone who is your average "modern programmer".
It's impossible to say for sure, since you can't run the benchmark on your machine and god knows what's behind the playground. However, I compared my naive implementation to find min of a rolling mean using python with numba, pandas, polars, numpy and mojo version.
Mojo version was faster than polars and numpy, which in turn were faster than pandas and numba. That's my N=1 of course, and not a reliable benchmark. But still, I find it very impressive.
When making technical claims to a technical audience, and vs Lattner leveraging reputation,
the appropriate approach is clearly not this. It's to lead with conservatively stated claims, reproducible results, and all the rest of the apparatus that is collectively understood as how adults (from which I exclude bizdev) demonstrate a better mousetrap, into an environment within which the cost of switching mousetrap technology is very great indeed at every level.
Big asks deserve and require better.
They are VC funded and this is the pitch to the VCs in order to get money.
Obviously this is not convincing on a technical level yet. But it's also really interesting as a design.
And while the code isn't open source, I for one find it pretty fascinating to see the language being iterated on in public like this.
Edit: E.g. https://github.com/modularml/mojo/blob/main/proposals/lifeti...
or
https://github.com/modularml/mojo/blob/main/proposals/value-...
In my experience the new generation of devs haven't touched C and treat it like some kind of weird arcane language, a bit like what Fortran and COBOL were when I started coding around 2000.
I doubt their potential users would care so much, as long as it's significantly faster than Python and they don't need C or C++, except as an option and not as a necessity. That's been the point of various other alternative languages.
The claim to fame of various newer compiled languages, is not just being as fast as C, but that they are better alternatives to use, for their audiences. Being easier to use, read, or/and learn. This is where some of the drama comes from, because some will make it about speed, and ignore the other elements of what is "attractive".
[1] https://en.wikipedia.org/wiki/History_of_programming_languag...
It's really minor thing but a pet peeve of mine, I remember how twenty years ago every new language claimed to be as fast or faster than C, and every time the benchmark was some ultra-optimized non-idiomatic program in that new language against a naive C implementation, and the C version was usually still 20% faster and use 10% as much RAM with the right compile flags.
Are there even Mojo benchmark in the wild? The FAQ entry[1] just finds excuses for situations where it does not perform well...
[1] https://docs.modular.com/mojo/faq.html#performance