Live data from Hacker News

Julia and Mojo Mandelbrot Benchmark

discourse.julialang.org

11–20 of 168 posts

Re: Julia and Mojo Mandelbrot Benchmark

#11

Be sure to check out the comments on the page - lots of optimisations for the julia code.

Not if you want to avoid condescending "I cannot look at the Python code my eyes hurt" comments. Good to know the Julia community hasn't made any progress in that regard, though.

Re: Julia and Mojo Mandelbrot Benchmark

#12
post #4

In my opinion, the issue that will make more of a difference in the long run is Mojo's first-class support for AoT compiled binaries (as well as JIT compilation). Julia's poor AoT support (with small binaries) is a major Achilles heel. I really wish that the Julia developers had taken that more seriously earlier on.

If anyone is interested in compiling small binaries with Julia do check out staticcompiler.jl and supporting statictools.jl that manages to produce small binaries without the Julia runtime , Ofcourse it's a wip , and not fully mature , I'm just putting it out there for people to know. There's some really cool demonstrations come out of this ... Wasm fluid simulation in Julia: https://alexander-barth.github.io/FluidSi…

Yep, I was aware of StaticCompiler.jl. I wish it was more mature.

Static compilation is indeed possible with Julia. But it's very limited in its capabilities and certainly not as effortless as a simple `mojo build myfile.mojo`.

Re: Julia and Mojo Mandelbrot Benchmark

#13
As long as you can copy and paste Python code to Mojo and it is 1:1 compatible with all your existing libraries and is hundreds of times faster than Python, that is much better than wasting time rewriting it in another language that is 8x faster than Mojo (in its first release) with hand-optimizations from Julia language experts.

I expect Mojo's first release to be fast enough that it would get the Python folks using it over Julia and that the next Mojo release or future ones will get another 8x or 10x faster.

The same outcome happened with Bun 1.0 and already claimed the top spot in speed and compatibility in the node ecosystem in its first release and it isn't even done yet.

The least amount of effort to get something done much faster wins by default.

Re: Julia and Mojo Mandelbrot Benchmark

#14
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 Mandelbrot Benchmark

#15

Be sure to check out the comments on the page - lots of optimisations for the julia code.

Not if you want to avoid condescending "I cannot look at the Python code my eyes hurt" comments. Good to know the Julia community hasn't made any progress in that regard, though.

Well, still a much better community than most where having an opinion is considered a sin.

Re: Julia and Mojo Mandelbrot Benchmark

#16

Be sure to check out the comments on the page - lots of optimisations for the julia code.

Not if you want to avoid condescending "I cannot look at the Python code my eyes hurt" comments. Good to know the Julia community hasn't made any progress in that regard, though.

I only see one of those among 32 constructive ones - a rather better ratio than this site!

Re: Julia and Mojo Mandelbrot Benchmark

#17
post #13

As long as you can copy and paste Python code to Mojo and it is 1:1 compatible with all your existing libraries and is hundreds of times faster than Python, that is much better than wasting time rewriting it in another language that is 8x faster than Mojo (in its first release) with hand-optimizations from Julia language experts. I expect Mojo's first release to be fast enough that it would get the Python folks using…

> The least amount of effort to get something done much faster wins by default.

And then you’re stuck with a proprietary language “subscribe to download”? Not sure it’s the least amount of effort honestly.

Re: Julia and Mojo Mandelbrot Benchmark

#19
post #13

As long as you can copy and paste Python code to Mojo and it is 1:1 compatible with all your existing libraries and is hundreds of times faster than Python, that is much better than wasting time rewriting it in another language that is 8x faster than Mojo (in its first release) with hand-optimizations from Julia language experts. I expect Mojo's first release to be fast enough that it would get the Python folks using…

The Mojo code in this post cannot be run in Python. So in this case, you wrote code for Mojo language, not Python.

Re: Julia and Mojo Mandelbrot Benchmark

#20

Does anyone know of examples of Mojo for GPU computations? The website makes multiple claims about it being able to run seamlessly on the GPU but I couldn't find any documentation on it...

The language is really new, it only supports amd64 Linux at the moment (at least publicly)
Post reply on HN