News for hackers. Stuff that matters.
Re:Julia for Economists Bootcamp by photon_collider on Monday July 29, 2024 @06:05PM (#41104225)
Has Julia's popularity in scientific computing and data science continued to grow? I haven't heard much about it recently.
Re:Julia for Economists Bootcamp by jarbus on Monday July 29, 2024 @06:37PM (#41104415)
I use Julia regularly for experimental machine learning. It’s great for writing high performance, distributed code and even easier than Python for this kind of work, since I can optimize the entire stack in a single language. Not sure if it’s growing in popularity but it’s really solid for what it does
Re:Julia for Economists Bootcamp by nextos on Monday July 29, 2024 @06:47PM (#41104475)
Me too, and I'd like it to become mainstream. The major problem right now is that it doesn't have anything that is close to Torch or JAX in performance and robustness. Flux et al. are 90% there, but the last 10% requires a massive investment, and Julia doesn't have any corporate juggernaut funding development like Meta or Google.

This is hurting Julia's adoption. The rest of the language is incredibly elegant, as there is no 2-language divide, like in Python. Furthermore, it is really performant. With very little effort one can write code that is within 2-1.5x of C++, often closer.

One possibility is that something like Mojo takes Julia's spot. Mojo has some of the advantages of Julia, plus very tight integration with Python, its syntax and its ecosystem. I would still prefer Julia, but this is something to keep in mind.

Re:Julia for Economists Bootcamp by anonylizard on Monday July 29, 2024 @09:29PM (#41105319)
LLMs massively compound the advantage of existing popular languages, namely python. Any new learner will find it infinitely easier to use sonnet 3.5 to overcome the so called '2 language barrier' for python, while the lacking data for Julia becomes the real barrier.

This issue will remain until LLMs get so smart they can maybe self-iterate and train on a given language. By then though, we'd likely get languages designed and optimized for LLMs.

Re:Julia for Economists Bootcamp by moelf on Monday July 29, 2024 @11:01PM (#41105714)
More fragmented, calling-some-api based python code actually causes LLM to hallucinate and mix libraries more: https://www.stochasticlifestyle.com/chatgpt-performs-better-...
Re:Julia for Economists Bootcamp by SatvikBeri on Monday July 29, 2024 @09:44PM (#41105386)
For what it's worth I've found Claude Sonnet to work really well with Julia.

One fun exercise was when a friend handed me a stack of well-written, very readable Python code that they were actually using. They were considering rewriting it in C, which would have been worth it if they could get a 10x speedup.

I had Sonnet translate it to Julia, and it literally ran 200x faster, with almost identical syntax.

Re:Julia for Economists Bootcamp by samatman on Monday July 29, 2024 @10:11PM (#41105513)
To back up the sibling comment, I've found ChatGPT quite capable where Julia is concerned. It does hallucinate the occasional standard library function, but a) it gets it right after it's told it was wrong about half the time and b) Julia's documentation is fairly good, so finding what that function is really called is not a big deal.

It can even debug Pkg/build chain problems, which... Julia could use a bit of polish there. On paper the system is quite good, but in practice things like point upgrades of the Julia binary can involve a certain amount of throwing spaghetti at the wall.

Re:Julia for Economists Bootcamp by minetest2048 on Monday July 29, 2024 @10:53PM (#41105685)
There is a paper that claims that Julia performs the best in ChatGPT: https://arxiv.org/abs/2308.04477

Chris blog on that: https://www.stochasticlifestyle.com/chatgpt-performs-better-...

Re:Julia for Economists Bootcamp by adgjlsfhk1 on Monday July 29, 2024 @09:54PM (#41105434)
IMO Mojo's memory model is way too unfriendly for python programmers.
Re:Julia for Economists Bootcamp by bitvoid on Monday July 29, 2024 @10:10PM (#41105507)
Could you elaborate? As far as I understand, if you treat it like Python (e.g. use defs and stick with the copy-on-modification default), you'll still see performance improvements without even thinking about memory.
Re:Julia for Economists Bootcamp by tkuraku on Monday July 29, 2024 @07:35PM (#41104727)
I want to really like Julia. For me it felt like more work than python for simple stuff and not that much less work than c++ if you are trying to get the best performance. It is a cool language though.
Re:Julia for Economists Bootcamp by currymj on Monday July 29, 2024 @06:50PM (#41104502)
certainly yes in scientific computing, less so in ML/data science. there's much of the culture of scientific computing in economics -- lot of heavy numerical stuff in addition to the statistical modeling you might expect.
Re:Julia for Economists Bootcamp by cactusfrog on Monday July 29, 2024 @06:21PM (#41104324)
I think it has correctness issues
Re:Julia for Economists Bootcamp by maximilianroos on Monday July 29, 2024 @06:52PM (#41104515)
Source?
Re:Julia for Economists Bootcamp by minetest2048 on Monday July 29, 2024 @06:54PM (#41104531)
Re:Julia for Economists Bootcamp by ben_sisko on Monday July 29, 2024 @10:51PM (#41105677)
This link lays out the case in an exceptionally thorough and damning (for Julia) way.
Re:Julia for Economists Bootcamp by cpfiffer on Tuesday July 30, 2024 @08:28PM (#41115418)
I think my general sense of this article is that all of these have been fixed. The language is relatively new, and the core devs are responsive. Using anything new comes with risks. I think the community appreciated a detailed and generally well-reasoned diagnosis, but at the same time these things are relatively easily addressed.
Re:Julia for Economists Bootcamp by ysofunny on Monday July 29, 2024 @06:14PM (#41104289)
isn't julia just another brand-name (™,®, and ©) python? like anaconda? or possibly the R language???
Re:Julia for Economists Bootcamp by jordanb on Monday July 29, 2024 @06:24PM (#41104336)
R is an open source version of S, which was a competitor to SAS.

Julia, from when I looked at it years ago was trying like a new version of Matlab or Mathematica. It was very linear-algebra focused, and were trying to replace those packages plus Fortran. They had some gimmicks like an IDE that would render mathematical notion like TeX for your matrices.

Python wasn't the obvious "Fortran killer" scientific language it is today. In fact it's arguably really weird that Python ended up winning that segment. In any case, I think Julia's been struggling since its inception.

Re:Julia for Economists Bootcamp by tomrod on Monday July 29, 2024 @08:14PM (#41104922)
I was in Austin while Travis Oliphant's wave from numpy led to Anaconda. After that we got to bring them in as consultants. It was wild talking to the team and hearing the inside-track dev info. It isn't a surprise to me that Python, as flexible and glue code as it is, became the Excel language of Scientific Computing.
Re:Julia for Economists Bootcamp by nequo on Monday July 29, 2024 @11:47PM (#41105896)
What kinds of things did you hear from them?
Re:Julia for Economists Bootcamp by tomrod on Wednesday July 31, 2024 @01:37PM (#41121309)
Mostly the vision and ideals which became Anaconda, conda, and miniconda, as well as the translation of ideas to use cases to implementations, and some ideas that came about later in other forms or libraries (numba, pytorch).

Basically a mini/beta/in-progress version of Pycon each week.

Re:Julia for Economists Bootcamp by wdkrnls on Monday July 29, 2024 @08:52PM (#41105122)
R and S are also very linear algebra focused. R developers just try to make C++ behave like R as much as possible when they need more speed. Hence, Rcpp. Otherwise, we prefer our LISPy paradise.
Re:Julia for Economists Bootcamp by frakt0x90 on Monday July 29, 2024 @06:17PM (#41104303)
Not at all? Totally different programming paradigm and performance. Certain communities pull towards Julia a lot more than others. Mostly I've seen scientific fields that require HPC but don't want to do everything in FORTRAN and C. Paging Chris Rackauckas!
Re:Julia for Economists Bootcamp by minetest2048 on Monday July 29, 2024 @06:46PM (#41104468)
Julia feels like a Matlab++ with its one based indexing and `function end` syntax Mojo is what you're thinking of
Re:Julia for Economists Bootcamp by ls612 on Monday July 29, 2024 @06:53PM (#41104527)
I primarily use MATLAB and what stops me from using Julia is the package management.

Also the VSCode extension has weird performance problems when trying to debug Julia code.

Re:Julia for Economists Bootcamp by adgjlsfhk1 on Monday July 29, 2024 @07:14PM (#41104618)
> what stops me from using Julia is the package management.

Can you expand on this? Julia's package manager IMO is one of the best parts of the language.

Re:Julia for Economists Bootcamp by ls612 on Monday July 29, 2024 @07:47PM (#41104772)
I hate with a burning passion having to manage packages myself. MATLAB comes preinstalled with everything and the kitchen sink.
Re:Julia for Economists Bootcamp by adgjlsfhk1 on Monday July 29, 2024 @07:50PM (#41104794)
Fair enough. It probably would make sense to have a Conda like release of Julia that comes out every year with a broad but curated selection of packages.
Re:Julia for Economists Bootcamp by stillyslalom on Friday August 02, 2024 @11:20PM (#41144448)
Long ago, I trawled through Matlab's docs to come up with a set of Julia packages matching what's build into Matlab: https://discourse.julialang.org/t/julia-for-matlab-users-clu...

I don't think you'd actually want to include each of those packages in a standard distro: does the average user really need to programmatically send emails or deal with Voronoi tessellations? Probably not, but I still think there's value in a batteries-included approach, especially when working with students.

Re:Julia for Economists Bootcamp by ForHackernews on Monday July 29, 2024 @06:17PM (#41104304)
No. It's not.
Re:Julia for Economists Bootcamp by SatvikBeri on Monday July 29, 2024 @09:34PM (#41105343)
It's reasonably popular, growth has continued at a slow but steady pace. It's never going to become Python or anything but it's great in its niche.

We use Julia in our hedge fund, it allows our researchers to write Python-like syntax while being very easy to optimize – compared to numpy code we've had a relatively easy time getting Julia to run 20x-1000x faster depending on the module, which has resulted in a very large reduction in AWS bills.