Earlier quoted context omitted.
What else are you going to write CUDA kernels in that will be better than Mojo? This doesn't compete with Python. Like if someone wrote a competitor to VHDL that looked like TEMU Python... Python would not be its competitor, VHDL would.
Julia
Mojo 1.0
131–140 of 172 posts
Re: Mojo 1.0
#132Earlier quoted context omitted.
Mojo is much faster than Rust, but slower than Go. I don't have much experience with Zig. Mojo is designed to be very fast to compile, so many decisions were made to keep the core language simple, one example is in `where` clause, the checking there happens entirely in the parser. It can be stupid in situations where other languages are smart, and make you explicitly do checks that could be inferred in other language…
From experience, Zig compile times are at least as fast as Go for debug builds that don't need to do linking with C libraries, etc. It does have to use LLVM for release builds however which is a lot slower.
Re: Mojo 1.0
#133Earlier quoted context omitted.
I never understood this. What kind of special whitespace requirements do people have?
I like significant invitation, but I still wouldn’t choose it if I was designing a language today. Functional-style programming has become much more popular since Python was designed in the 1990s, and there doesn’t seem to be a good way to have Python-like significant indentation and also support true anonymous functions.
Re: Mojo 1.0
#134Interesting. Heard about Mojo a few years now, never really tried it. My Python brain cannot really write C++ or Rust but still need the performance.
Take a look into numba, you add a decorator to your function and it turns it into compiled code.
Re: Mojo 1.0
#135Re: Mojo 1.0
#136Earlier quoted context omitted.
It's supposed to be (currently) a fully native, Python-like language, but for GPUs primarily. Though I am seeing it as having a future as a fully native Python alternative that might get interesting. I hope with 1.0 (havent fully read the article yet) they stop breaking language features / syntax because they did quite a few different changes over time, their overall goal is to be a fully native superset of Python. I…
> their overall goal is to be a fully native superset of Python Not any more. That was the initial announcement, but I think then somebody actually looked at Python and realised what a complex language it is - so they refocused on being a Python-like language. Python has a reputation for being a simple language, but in reality it isn’t at all.
To preempt all of the inevitable responses: yes, I'm aware that this was started by the same guy who started LLVM and Swift. That doesn't automatically mean anything he comes up with will be great, especially when it's specifically trying to be "like" a language that doesn't really have much on common with either of those; there are plenty of instances of very smart people having an overabundance of confidence when jumping into something they assume they'll excel at and getting humbled. I'd also argue both Swift and LLVM have some common criticisms that very much are in line with the same concern I've expressed here (i.e. long term design suffering due to expanded or pivoted scope; even the name LLVM alludes to some of that history of having a somewhat different goal originally). His name is enough that I'll probably always click to take a first look at anything he comes up with, but I'm not going to ignore things that seem like issues because of that either. Smart people don't need to held to a lower standard because their work should be able to speak for itself.
Re: Mojo 1.0
#137Earlier quoted context omitted.
Wow, so Lattner became a billionaire. Pays to be in compilers.
For once. A former colleague once quipped: The only way to make decent money in the business of language runtimes is to get a job at a big company that depends on it.
Re: Mojo 1.0
#138Earlier quoted context omitted.
The value has already been materialized. They were acquired by Qualcomm for $3.9 billion.
That’s insane, for a language that seems to be Temu-Python. OTOH Python itself is the world’s most popular programming language, yet has only recently had the money to support more than a single full-time developer.
Re: Mojo 1.0
#139Earlier quoted context omitted.
I like significant invitation, but I still wouldn’t choose it if I was designing a language today. Functional-style programming has become much more popular since Python was designed in the 1990s, and there doesn’t seem to be a good way to have Python-like significant indentation and also support true anonymous functions.
Haskell has significant indentation and anonymous functions.
Re: Mojo 1.0
#140Earlier quoted context omitted.
So, without significant indentation?
When has it ever been an issue in use? People complained about this in 1999 but then I used it and it's never mattered.