Hacker News new | ask | show | jobs
by jmalicki 116 days ago
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.

3 comments

Julia is actually quite nice for this. If you prefer a python-like approach consider Triton from openai, numba (https://numba.pydata.org/) or CuTe DSL from Nvidia.
Python tooling from NVidia itself, which generate the same PTX as CUDA C++.
Julia
lol no
it's legitimately among the best languages for writing GPU kernels
As someone who writes GPU kernels in Julia, yes it is. But Mojo is one of the few alternatives based on technical merit alone. Each language is better in different metrics, and it could be argued either way.

License-wise, Mojo reminds me of paid Borland compilers that were in vogue before I was born. Even if it's open-sourced, what incentive does Qualcomm have to maintain a happy path for Metal deployment? Mojo might actually be the best way to program Apple GPUs (on a technical level) and it would still lose due to politics.

If it's open sourced, Qualcomm won't need to worry about Metal support. If Mojo is popular enough, Apple might get involved. If not, no doubt there'll still be Apple users that want Mojo support, and are willing to work to get it.

Look at the Asahi Linux effort, for instance...