Re:Strong arrows: a new approach to gradual typing
by adgjlsfhk1 on Thursday September 21, 2023 @02:34PM
(#37601982)
It's worth noting that the benchmarkgame is including startup time. If you look at the execution time (which is what matters once you start doing more work) the speeds are equal. For example, https://arxiv.org/pdf/2207.12762.pdf shows Julia beating hand codes BLAS kernels for the 2nd fastest supercomputer in the world.
Re:Strong arrows: a new approach to gradual typing
by tjrgergw on Thursday September 21, 2023 @02:48PM
(#37602175)
Leave him alone. He already made up his mind, you're just confusing him with facts.
Re:Strong arrows: a new approach to gradual typing
by jovial_cavalier on Thursday September 21, 2023 @04:07PM
(#37603518)
I agree that if you keep increasing n on any of these benchmarks, Julia and C should start to approach each other, but the JIT overhead is not meaningless. I think there’s a reason benchmarkgame includes it.
It sounds, though, like they’ve started to seriously address this in versions more recent than what I’ve played with. I suppose I’ll check it out again.
Re:Strong arrows: a new approach to gradual typing
by ChrisRackauckas on Friday September 22, 2023 @09:10AM
(#37611556)
I agree JIT overhead is not meaningless, but it's pretty odd that only some programming languages in the benchmark measure compilation time while others do not. If we really think it's not meaningless, then other languages (C, Fortran, etc.) should include that in the timing as well. Even better would be to have timings which include compilation and which do not. Then we would have a nice way of making a multi-dimensional comparison about the latency and runtime.
Currently, Julia's benchmarks add its compilation time while the building of the C binaries is not measured in its, so it's not a direct 1-1 comparison. And we don't have the numbers in there to really know how much of an effect it has either. More clarity would just be better for everyone.
Re:Strong arrows: a new approach to gradual typing
by jovial_cavalier on Friday September 22, 2023 @09:51AM
(#37612054)
That's because, until recently, you compiled every time you ran with Julia. It's not the case with C.
Re:Strong arrows: a new approach to gradual typing
by tjrgergw on Sunday September 24, 2023 @07:38AM
(#37632195)
It has NEVER been the case that you have to compile a function every time you run it.
Re:Strong arrows: a new approach to gradual typing
by tjrgergw on Thursday September 21, 2023 @02:28PM
(#37601863)
LOL no, it's not a little faster than python :D
I just showed you that it's possible to generate native code ahead of time but you ignored that. Now you've moved on to the "next" objection. Anyway, good luck with your life.
You'll see on that same benchmark page that C is 2-3x faster than Julia. If you want performance, use C. Julia is this weird middle ground where it has the simplified syntax of Python, is a little faster than Python, but still slower than C. Anything that needs to be done in real time will be optimized into a "real" language like C, C++ or Rust.