News for hackers. Stuff that matters.
Re:The unreasonable effectiveness of the Julia programming l... by kccqzy on Friday October 09, 2020 @03:56PM (#24733770)
I believe the essence of what you are saying is that Julia is great for explorative programming, while Python et al are better suited for slightly more structured, more productionized programming.

I personally use Mathematica for this purpose and find it indispensable. I wonder if the PL designers should focus more on this class of languages, instead of features for production languages (like fancy type systems).

Re:The unreasonable effectiveness of the Julia programming l... by orthoxerox on Friday October 09, 2020 @04:54PM (#24734331)
> Julia is great for explorative programming, while Python et al are better suited for slightly more structured, more productionized programming

In Julia, explorative programming is productionized programming, you don't have to switch to a different or restricted set of tools to make your program fast, it's the same code that you can profile on the fly. With types, you can patch your hotspots by adding a specific method to the generic function, and it will get invoked automatically instead of the more general case algorithm.

Re:The unreasonable effectiveness of the Julia programming l... by fluffy87 on Friday October 09, 2020 @06:38PM (#24735140)
How fast is Julia wrt to CUDA C++, or C++/Rust?

In those languages, I can actually take the theoretical practical hardware limits (memory BW, throughput, latency), and relatively easily achieve 99% of their utilization.

When people say “very fast” and “my cores are at 100%” they often mean “my program achieves 1% of the perf the hardware can deliver”.

Re:The unreasonable effectiveness of the Julia programming l... by KenoFischer on Friday October 09, 2020 @06:51PM (#24735213)
Julia is in that class of languages. We regularly look at roofline plots when performance tuning.
Re:The unreasonable effectiveness of the Julia programming l... by drewm1980 on Saturday October 10, 2020 @12:44AM (#24736742)
Is Julia JIT deterministic / reproducible? It doesn't matter if you are writing the code to run yourself on your own machine, which is usually the case in research. But would you recommend Julia for a project has soft realtime requirements on the order of 10 ms and has to run in hundreds of machines scattered across the world, and you have to support personally?
Re:The unreasonable effectiveness of the Julia programming l... by KenoFischer on Saturday October 10, 2020 @04:51AM (#24737577)
Probably not in default configuration, but we have some people interested in this kind of thing. The compiler candy definitely be configured to make that work, but so far interest hadn't been sufficient to implement that. If you have a particular use case in mind, do let us know to see if we can help you out.
Re:The unreasonable effectiveness of the Julia programming l... by socialdemocrat on Friday October 09, 2020 @07:40PM (#24735501)
No, that is what people cannot wrap their head around. They always think there is a catch or a downside with Julia. But Julia is really to have a cake and it too.... ok you got to accept your first plot is slow ;-)
Re:The unreasonable effectiveness of the Julia programming l... by drewm1980 on Saturday October 10, 2020 @12:08AM (#24736626)
You have to accept that compilation is on the fly, so you cannot test the actually binary code your customers will run. There is an attempt at AOT in a library but it did not look stable last I checked (when Julia went 1.0).
Re:The unreasonable effectiveness of the Julia programming l... by coldtea on Saturday October 10, 2020 @06:26AM (#24737945)
>You have to accept that compilation is on the fly, so you cannot test the actually binary code your customers will run

So? That's the case for every JIT or interpreted language...

Re:The unreasonable effectiveness of the Julia programming l... by labawi on Sunday October 11, 2020 @09:38AM (#24745680)
If comment was made WRT alleged fit for demanding performance - JIT-ted languages usually can't compete and unpredictable performance could mean unpredictable failures.
Re:The unreasonable effectiveness of the Julia programming l... by dodobirdlord on Friday October 09, 2020 @04:48PM (#24734283)
Julia, by virtue of being compiled, is also probably better for production. But it’s much less well known and has less library support, which is a significant barrier to use.
Re:The unreasonable effectiveness of the Julia programming l... by mattkrause on Friday October 09, 2020 @06:10PM (#24734938)
Pycall and RCall really help with this.

Dragging something in from scikit-learn was literally like...two lines of code. It's not the same...investment as most FFI systems.

Re:The unreasonable effectiveness of the Julia programming l... by smabie on Friday October 09, 2020 @08:25PM (#24735740)
No Julia is just better than Python in every possible way