News for hackers. Stuff that matters.
Re:What's Great about Julia? by the__alchemist on Wednesday December 07, 2022 @08:16PM (#33902826)
I wanted to like Julia, but have been unable to. If I want fast numerical/scientific code, I have Rust. If I want to prototype numerical algorithms, plot things, prototype, REPL etc, I have Python. I was hoping Julia could replace the latter, but it's too slow-to-compile; need fast iteration.

Julia's numerical syntax is unbeaten. I wish other languages would adopt it.

Re:What's Great about Julia? by adgjlsfhk1 on Wednesday December 07, 2022 @08:24PM (#33902885)
If compile time is a major bottleneck and you want to use Julia, I highly recommend using -O1. Julia uses -O2 by default which is faster, but has a quite notable compile time impact (often 2x or so).
Re:What's Great about Julia? by cbkeller on Thursday December 08, 2022 @12:06AM (#33904412)
Latency / "ttfx" for all sorts of things has also dropped dramatically over the past ~year, and will get another big boost with the native code caching PR
Re:What's Great about Julia? by xchkr1337 on Thursday December 08, 2022 @02:21AM (#33905182)
Why don't they just add an interpreter and only compile when needed, like V8 does?
Re:What's Great about Julia? by syockit on Thursday December 08, 2022 @07:59AM (#33907399)
It is already doing what V8 does. It's only compiling when needed. The problem is when you start to put in too many things in the startup script, which is going to compile the things it says it "needs", even though you may never use when running.
Re:What's Great about Julia? by adgjlsfhk1 on Thursday December 08, 2022 @07:50AM (#33907321)
Julia actually already has an interpreter that it uses for some stuff (like code in the global scope). adding more of a teired jit approach is on the Todo list, but it's a very large project.
Re:What's Great about Julia? by goerz on Thursday December 08, 2022 @06:24AM (#33906735)
"just"
Re:What's Great about Julia? by singularity2001 on Thursday December 08, 2022 @03:17AM (#33905583)
Julia has the most beautiful syntax but a doubtful runtime/toolchain.

Rust has the most beautiful runtime/toolchain but a doubtful syntax.

Re:What's Great about Julia? by cies on Thursday December 08, 2022 @03:57AM (#33905820)
> Rust has the most beautiful runtime/toolchain but a doubtful syntax.

When you want to use it for the type of number crunching programs that Julia is made for.

Rust is made for making programs that currently C and C++ are used for: every tick counts, close to the metal kind of code (kernels, drivers, hi-perf, soft-realtime, etc). Julia is not even considered in that space.

Re:What's Great about Julia? by jakobnissen on Thursday December 08, 2022 @01:28AM (#33904868)
What if you want both though? IMO projects where Python wraps a compiled language is likely to get you the worst of both worlds.

The latency of Julia does really suck though. I would wait it out if I were you and check in in two-three years and are if it's better (which it very much should be!)

Re:What's Great about Julia? by bobbylarrybobby on Thursday December 08, 2022 @04:20PM (#33913593)
Do you use the REPL-driven workflow in Julia? With Revise.jl you only really have to pay the startup cost once; subsequent changes you make are usually fast enough to feel instant.