3 ms·
> I'm not familiar with what idioms might the Mojo compiler be able to optimise better > I don't know if there is more "compiler friendly" code with the same s
by sundarurfriend 3y ago
> I'm not familiar with what idioms might the Mojo compiler be able to optimise better
> I don't know if there is more "compiler friendly" code with the same semantics for Mojo
The Mojo code here is from the official docs [1], so it's from the people best placed to know what the most "compiler friendly" code for Mojo would be, and what idioms they should use to get the best performance Mojo can provide.
[1] https://docs.modular.com/mojo/notebooks/Mandelbrot.html https://docs.modular.com/mojo/notebooks/Mandelbrot.html
- suavesito 3y agoThanks for the link! Then I guess there is not a lot more that can be said currently, except that maybe Mojo still needs more compiler work. Still, I prefer how readable is the Julia code. :)