News for hackers. Stuff that matters.
Re:Julia and Mojo (Modular) Mandelbrot Benchmark by eddtests on Saturday September 09, 2023 @01:53AM (#37442641)
Mojo released an example of their new language which will mean readability and simplicity compared to the Python implementation will surely have been a requirement… I get someone within Modular doing some horrific looking low-level Mojo stuff could get it much quicker.
Re:Julia and Mojo (Modular) Mandelbrot Benchmark by oivey on Saturday September 09, 2023 @03:14AM (#37442987)
The Mojo one is already doing some pretty horrific low-level stuff with fairly manual SIMD. That’s why it was faster than Julia in the initial example, and the edge is lost when a couple of posters did similar things for Julia.
Re:Julia and Mojo (Modular) Mandelbrot Benchmark by patagurbon on Saturday September 09, 2023 @03:29AM (#37443068)
We have yet to see Mojo do any "sufficiently smart compiler" optimizations that Julia or similar languages don't already do. The Mojo code in the blog post does the same ugly optimizations to get good SIMD as the Julia code.

Convincing LLVM to vectorize is still a problem in both languages. I do hope Mojo can make some headway there in the future. Especially since with MLIR they might be able to capture some higher level semantics Julia can't.

Re:Julia and Mojo (Modular) Mandelbrot Benchmark by eigenspace on Saturday September 09, 2023 @04:50AM (#37443431)
> Mojo released an example of their new language which will mean readability and simplicity compared to the Python implementation will surely have been a requirement…

Did you read the Mojo code? It’s very messy and low-level dealing with explicit SIMD intrinsics and such.

Re:Julia and Mojo (Modular) Mandelbrot Benchmark by eddtests on Saturday September 09, 2023 @08:40AM (#37444661)
Yea I did but after using it quite a bit over the last 24 hours since the SDK came out I’ve already seen far worse lol