Live data from Hacker News

Julia and Mojo Mandelbrot Benchmark

discourse.julialang.org

21–30 of 168 posts

Re: Julia and Mojo Mandelbrot Benchmark

#21

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.

So Julia has --pedantic by default ?

Re: Julia and Mojo Mandelbrot Benchmark

#24
post #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)

I am aware it's new, but they state for example on their website:

> Write Python or scale all the way down to the metal. Program the multitude of low-level AI hardware. No C++ or CUDA required.

I just thought they might already have something to show on that end...

Re: Julia and Mojo Mandelbrot Benchmark

#25

tldr: in the test's first implementation mojo was faster but then the refactored and made the julia code faster by 8x over mojo. that's cool but mojo literally just came out

We have seen many languages cycle in popularity, but Julia is one of the few high-level languages that could actually match... or in some cases exceed C/C++ performance. There are always tradeoffs, and it usually takes a few weeks for people to come to terms with why Julia is unique. Definitely falls into the fun category. =)

How can Julia exceed C/C++ performance?

Re: Julia and Mojo Mandelbrot Benchmark

#27

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.

[flagged]

Re: Julia and Mojo Mandelbrot Benchmark

#28

Earlier quoted context omitted.

We have seen many languages cycle in popularity, but Julia is one of the few high-level languages that could actually match... or in some cases exceed C/C++ performance. There are always tradeoffs, and it usually takes a few weeks for people to come to terms with why Julia is unique. Definitely falls into the fun category. =)

How can Julia exceed C/C++ performance?

C is not the fastest language. Fortran can often beat them because is has non-aliasing function arguments and does not treat arrays like pointers.

https://fortran-lang.discourse.group/t/fortran-is-faster-tha...

Re: Julia and Mojo Mandelbrot Benchmark

#29

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.

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

#30

Earlier quoted context omitted.

We have seen many languages cycle in popularity, but Julia is one of the few high-level languages that could actually match... or in some cases exceed C/C++ performance. There are always tradeoffs, and it usually takes a few weeks for people to come to terms with why Julia is unique. Definitely falls into the fun category. =)

How can Julia exceed C/C++ performance?

There are a few cases where it's easier to get LLVM to generate certain code I imagine. Semantic things like aliasing, in lining, and type information.

In general though it's just a question of which hoops you have to jump through for which language comparing C/C++/Julia/Fortran when using LLVM

Post reply on HN