News for hackers. Stuff that matters.
Re:Julia 1.6 addresses latency issues by smabie on Tuesday May 25, 2021 @05:53PM (#27283211)
So I used to be a big proponent of Julia, and in some ways, I still am. But I very recently tried to write a high performance production system in it, and was sorely disappointed. The tooling is just so buggy and it's clear that the community isn't really interested in using it for anything besides modeling/research in a Jupyter notebook.

Things that kind of suck about using Julia for production:

1. Never could get Revise to work, had to restart my REPL everytime I changed any code. Even though Julia 1.6 was a lot faster than 1.5, it still took too long.

2. Couldn't find a static type checker that actually worked (I tried JET and StaticLint). I feel like static typing is just so important for a production system, but of course the community isn't really interested because of the research focus.

3. Editor tooling. The LSP server absolutely sucks. I first tried using it with emacs (both lsp-mode and eglot mode), but it would crash constantly. I think switched to VSCode (much to my chagrin), and that worked marginally better though still very poorly. It was clear that the LSP server had no idea what was going on in my macro heavy code. It couldn't jump to definitions or usages much of the time. It could never correctly determine whether a variable was unused or misspelled either. Coupled with the lack of static type checking, this was extremely frustrating.

4. Never felt like the community could answer any of my questions. If you have some research or stats question, they were great, but anything else, forget about it.

Will all of that being said, I do still use Julia for research and I find it works really well. The language is very nicely designed.

All and all, I decided to ditch Julia and decided to go with Rust (after some consideration of OCaml, but unfortunately the multi-core story still isn't there yet) and am a lot happier.

Re:Julia 1.6 addresses latency issues by east2west on Tuesday May 25, 2021 @07:33PM (#27284177)
I agree with most of what you said and share your frustration with the tooling of Julia. However, I am not sure how well I would expect a static checker to work for Julia. Julia after all is a dynamical language, and while you may disagree with that choice, the dynamical typing permeates the language. There is no pattern matching and no language features to manipulate types, for example. Julia's AST and IR share a lot in basic data structure thanks in large part to Julia's dynamical nature. Since adding static typing to Julia at the current stage of its development would be almost an upheaval, I am not counting on it.

This means there is an upper bound to how good the editing and refactoring tooling will be. I suspect the best will be a little below Pythong's tooling, because Python's class helps in disambiguating methods.

One feature of Julia I think could be improved upon is the `include` statement to import code, similar to C's `include` macro directive. This makes finding functions within a package an absolute nightmare. I think this also restricts LSP's ability to find definition and usage since this tends to make Julia packages one big source file as far as the compiler is concerned. I saw that in Julia's compiler code, the core developers include C source files, not header files mind you, in other C source files, so perhaps the feature stems from their personal preference. Python's file-module may be too restricting, but Julia's including is too loose.

Re:Julia 1.6 addresses latency issues by snicker7 on Tuesday May 25, 2021 @10:45PM (#27285587)
Your concerns are absolutely valid. Julia tooling is lacking, and tooling quality can be more important than language quality. There is a reason why Java is so popular.

I feel that most of your points can be addressed if the compiler's "abstract interpreter" (static analysis) procedures were exposed and reliable/stable. Some packages (e.g. Mjolnir.jl [0]) attempt to re-implement it. Others (e.g. JET.jl [1]) try to hook into Julia's undocumented/private compiler internals (CoreCompiler). Rightfully so, only the most intrepid are willing to do this.

[0]: https://juliapackages.com/p/mjolnir

[1]: https://juliapackages.com/p/JET

Re:Julia 1.6 addresses latency issues by jampekka on Tuesday May 25, 2021 @07:01PM (#27283877)
It's sad to see that the Julia ecosystem does not address these issues at all. Maybe Julia people are in some kind of bubble of people who like Julia and generalize that to all potential users and contributors. The true process is probably that people with other workflows (eg. non-REPL/Notebook) and past experiences (esp. more "general purpose" languages) just give up and are never heard of again.

I've ranted about very similar things for some time now, and had some fruitful discussions, and I even offered to help to try to scratch some of the itches me and others are suffering from. I've now mostly given up too.

It's a bit sad for me. I think Julia has many things right and the core concepts are potentially revolutionary. But for me it seems that Julia ecosystem is a bit too jealous of their discovery to let it free. Weird.

Re:Julia 1.6 addresses latency issues by orbots on Tuesday May 25, 2021 @07:27PM (#27284120)
I'm a Julia user who has also given up as a Julia community member. The bubble is real. I found too often when I wanted to do something outside of that bubble and asked for help, I got unhelpful advice which amounted to "why do you want do something outside of our bubble?"
Re:Julia 1.6 addresses latency issues by dklend122 on Tuesday May 25, 2021 @07:44PM (#27284280)
Can you give some examples?
Re:Julia 1.6 addresses latency issues by orbots on Tuesday May 25, 2021 @08:49PM (#27284772)
One example. Not a very important one, but illustrative.

https://discourse.julialang.org/t/why-no-base-iterators-map/...

The "bubble effect" here was assumption that everyone has internet access and dependencies to external ( community maintained ) packages are zero cost.

Happily 2 years later this was resolved to my satisfaction.

Re:Julia 1.6 addresses latency issues by jampekka on Tuesday May 25, 2021 @07:16PM (#27284015)
Actually not probably that weird. May be a sort of impedance mismatch between academia and software scenes. It's very common in academic circles to be quite jealous of ideas, especially good ones. The academic game is often to get your name associated with some good idea, and this is what carries a researcher in their career. I find this rather counterproductive and try to avoid it myself.

I'm a researcher but I have a background in software development, and especially open source. Academia is way behind software in openness, which is rather bizarre as the institutional role of academia is usually seen as providing new ideas and challenging old thinking so the community can prosper. There's some kind of a bug in the current academic culture that causes it to freeze up when it should fulfill its promise to share its findings with the world.

Probably a good way to debug this thing is to follow the money and why on earth do we have these weird hats and robes?

Re:Julia 1.6 addresses latency issues by acmj on Wednesday May 26, 2021 @08:55AM (#27289887)
I agree. The Julia community is defensive. When you criticize Julia, often their first reaction is to say you are doing something wrong or to convince you Julia is perfect for everything. I was enthusiastic about Julia but not anymore.
Re:Julia 1.6 addresses latency issues by Tainnor on Wednesday May 26, 2021 @11:14AM (#27291581)
It's not the first community with that attitude that I've witnessed. I've first seen this with Ember.JS (the Javascript framework everybody has forgotten about), then later with the Swift programming language. It could be interesting to investigate why things like this happen and how a community needs to be managed in order not to run into the same problem.
Re:Julia 1.6 addresses latency issues by mbauman on Wednesday May 26, 2021 @01:36PM (#27293576)
I'm a moderator at Julia's discourse site. We've seen this happen and we're working on improving this, but I'm also (biased and) sympathetic to the "Julia community" writ large.

Julia's optimal sorts of workflows are different than many expect — especially for folks coming from static languages. Julia is a dynamic language. But also, Julia isn't Python. There are ways in which your workflows from other languages just aren't optimal in Julia. So when someone comes in "hot" and rants about how their workflow isn't working out how they expect, others jump in and — yes, defensively at times — point out alternatives that work for them.

I think some of this tension comes from an expectation mismatch. Some of the changes noted in these comments about how Julia is presented on julialang.org were made specifically due to this sort of expectation mismatch.

This doesn't mean that nobody in the community cares about improving workflows — in fact I know that's not true. But if you want to use Julia today, there are definitely some happy paths that we should guide folks towards.

Re:Julia 1.6 addresses latency issues by Tainnor on Wednesday May 26, 2021 @02:21PM (#27294159)
> Julia's optimal sorts of workflows are different than many expect — especially for folks coming from static languages. Julia is a dynamic language. But also, Julia isn't Python. There are ways in which your workflows from other languages just aren't optimal in Julia. So when someone comes in "hot" and rants about how their workflow isn't working out how they expect, others jump in and — yes, defensively at times — point out alternatives that work for them.

And that's exactly what I've seen over and over again, in different communities, such as the ones I've mentioned, this attitude of "you're holding it wrong".

No language or tool can be everything to everybody, that's perfectly reasonable. If the goal of Julia is different from that of people that want to run applications in production—or at least those concerns aren't the most important ones—fair enough. But all too often (and I'm not necessarily talking about Julia here; I haven't spent enough time on the Julia forums, I'm mostly referring to some of the other examples I've cited) real concerns are just dismissed out of hand.

I also don't believe that enforcing certain very specific workflows at the exclusion of any others is necessarily a great way to become a language that lots of people want to use. People come from different backgrounds and have different preferences and needs (sometimes for very good reasons), successful languages like Python recognise this and let you work with a wide range of tools.

Finally, I'm just very skeptical about a certain kind of NIH syndrome that I've seen in some of these communities, something like "encapsulation? well, all these other languages might need it, but we actually don't, because XYZ" or similar things.

Re:Julia 1.6 addresses latency issues by ChrisRackauckas on Wednesday May 26, 2021 @09:20PM (#27298259)
>And that's exactly what I've seen over and over again, in different communities, such as the ones I've mentioned, this attitude of "you're holding it wrong".

You're really reading this wrong. The issue is moreso about personal knowledge. I see this on the Discourse sometimes where someone comes blazing in saying "I want to use PyCharm for Julia and I run into ...", "Special Lisp-only IDE has a Julia plugin and it fails because ...", or "I have this special terminal setup and I no 0 latency and ...". The answer of course is, if you need help, use VS Code or Juno/Atom. Those have a larger userbase which that has fixed exactly those issues and has a helpful dev community on those site which will get you up and running. That's not "you're holding it wrong", that's people trying to help you into an area where they know how to help you. You can shrug it all off and blame it on them, but at the end of the day, people are sharing what they know works, a reliable solution they built for exactly this problem, and then are getting flamed on the internet for having "NIH syndrome" for not fixing some random IDE plugin they've never used. I just don't see how you can expect every person to be an expert on every possible workflow you can imagine and start throwing flame when someone tries to lead you to water.

In the Julia community in particular you tend to have people who are more experts in their scientific domains. I am in that category: I can help you in anything ML, high performance computing, differential equations, etc. but I use Windows and the Juno IDE. If you open an issue about something weird happening on emacs, I wouldn't even know how to get it installed, sorry, that's not my expertise. The Julia community has a lot more people in probabilistic programming than it has Javascript devs, and so people share how they know how to fix your problem "can you run it in VS Code and show the profile?", not "here's how to run some daemon server thing" etc. And that's perfectly fine, it has its advantages and disadvantages.

Re:Julia 1.6 addresses latency issues by mbauman on Wednesday May 26, 2021 @02:51PM (#27294549)
I mean, you're totally free to blaze your own development workflow trail. Even better if you can help in the ongoing clearing and paving of the less-used trails. But when someone complains that a less-used trail is rocky, it's gonna be hard for everyone on the golden brick road to avoid suggesting taking their route... especially if it's leading to the same destination.

And yes, that destination does include production.

Re:Julia 1.6 addresses latency issues by jampekka on Wednesday May 26, 2021 @08:07PM (#27297735)
Yes you are, but then you have to wait a minute or so after any single change to any file if you do a script workflow. If you do a Revise workflow you end up doing mostly the same because it just breaks all the time and you have to reload the session. Or you can use some bizarre hack like DaemonMode.jl that also just breaks all the time.

Julia is hard to debug as is (and this is fully acceptable to me due to the architecture) and these hacks on hacks make it just impossible.

Julia suffers from the same "fancy calculator" approach than e.g. R and Matlab, and like those, they refuse to take note of the decades of experience in software development that this just leads to a total mess if you have anything more complicated than a one-off analysis. It's like insisting on editing files with ed because that's how it's always been done.

Re:Julia 1.6 addresses latency issues by mbauman on Thursday May 27, 2021 @05:10PM (#27308596)
And this is precisely why this dynamic exists — because there are workflows with far less friction than what you've experienced. I and others successfully use them every day for things far more complicated than one-off analyses.

I think your view of Julia as a "fancy calculator" may be part and parcel to the difficulty. I do use it as a fancy calculator, but I also use local packages all the time — and that's where you'll find the best success in both tooling and code structure for sustainable (and modern) development. We need to do a better job of helping folks more effectively develop and work with Julia before it becomes frustrating.

Re:Julia 1.6 addresses latency issues by jampekka on Thursday May 27, 2021 @09:25PM (#27310747)
Friction in general, or friction specific to Julia?

My view is that Julia (and R and Matlab etc) ecosystem's view is a "fancy calculator". It's hard to integrate to anything else, it almost actively tries to make e.g. unix-type workflow difficult (not much CLI, everything done in REPL, e.g. package management). Not as bad as e.g. R where its almost impossible to just run a file of code instead of doing a "workflow session".

Perhaps there is some disconnect in how different parties of the discussion see the whole thing. For me this sounds a lot like "you're holding it wrong". What background are you coming from and what languages/programming environments you are familiar with? I get the impression that you don't have much general purpose programming background and somehow tend to assume that people are using "wrong workflows" due to being just stupid or something. But this is how it comes off to me, I think you mean something else, but I don't know what that is.

My approach is: I want files with code and I want to run some of those with some kind of entry point. And preferably organize it to files or something like that. This is the usual setup for general purpose programming languages. In general purpose programming you rarely tend to stick solely to one language, any larger project is usually a mishmash of different stuff, e.g. glue code in python, tight loops in C, maybe some bash thrown around to do some more trivial chores.

This is the overall structure of practically all general purpose programming languages. This requires interfacing with these languages (often done in bash or something in unixy systems at least) and tools that work regardless of language (e.g. version control, grepping, Make etc). Julia (and R and Matlab etc) just plain refuse to even consider this as a valid approach. If you mention it somewhere, you tend to get some bizarre instant putdowns that provide no real rationale, i.e. "you're just holding it wrong".

In programming I tend to think the whole computer and its OS and so on as the programming tool. My impression is that for Julia folks Julia is something totally separate from anything else in the computer. But I don't understand why. Is it that its felt that changing syntax on the fly is too cognitively demanding or something? This is something that one gets used to very fast. And also tends to ease the IMHO weird hung-ups on syntax. In fact, I think Julia has made some (IMHO misguided) syntactic decisions because they just want to do something differently from Python just for the sake of being different. I find this totally senseless.

Us CLI folks are not even asking for much. Just a way to call a program with arguments and so that you don't have to do compile identical code every time you do something. That's it. Is that unreasonable? It wouldn't take anything away from people using REPLs and Notebooks. We don't want to change the language, the language is fine and that's why we'd like to use it but just cant because these paper cuts!

I've expanded on my rationale for my workflow and how Julia makes it really difficult e.g. here, where I admittedly started with too strong wordings out of frustration: https://news.ycombinator.com/item?id=26134970

Re:Julia 1.6 addresses latency issues by ChrisRackauckas on Friday May 28, 2021 @06:00AM (#27313522)
>Perhaps there is some disconnect in how different parties of the discussion see the whole thing. For me this sounds a lot like "you're holding it wrong". What background are you coming from and what languages/programming environments you are familiar with? I get the impression that you don't have much general purpose programming background and somehow tend to assume that people are using "wrong workflows" due to being just stupid or something. But this is how it comes off to me, I think you mean something else, but I don't know what that is.

No, you're not stupid. You've correctly identified current flaws in the tools, and the community tries to lead you to the tools that are known to work well in spite of the issues. We need to work a little bit more on the other tools to make them as good, but large parts of the community are just not the right people to work on that problem. It's not a design problem, it's fixable, but you just have more people who know how to make new differential equation solvers than you have people who can compile a binary, so the tooling ecosystem moves at a different pace from the scientific packages. This is changing with the help of some commercialization aspects though, but it is something we have to be cognizant of.

Re:Julia 1.6 addresses latency issues by acmj on Friday May 28, 2021 @11:07AM (#27316270)
IMO, if Julia lacks the necessary tooling, don't over-advertise it. When I say the lack of static compilation is a design problem, I mean such a critical feature should be in v1.0. Without it, many common tasks in other languages become difficult in Julia. For language adoption, you often only have one chance. If you push someone away, it is much harder to win them back.
Re:Julia 1.6 addresses latency issues by eigenspace on Friday May 28, 2021 @03:39PM (#27319617)
IMO, you are overestimating how big a deal static compilation is. Yes, there are usecases where it's important, but acting like a language shouldn't tag version 1.0 without static compilation just sounds ignorant and self centred.

The world is bigger than you.

Re:Julia 1.6 addresses latency issues by IlyaOrson on Friday May 28, 2021 @05:26PM (#27320720)
This kind of comment just enforces the defensive perception towards the community. He clearly stated that it was just his opinion. Why not just point out that "common tasks" always refers to each own's bubble?

There is no need to insult people around.

Re:Julia 1.6 addresses latency issues by eigenspace on Friday May 28, 2021 @06:19PM (#27321192)
He says it's his opinion, but then states that the language shouldn't have tagged version 1.0 without it, and that people should not advertise julia because it's such a important feature.

I totally get that there are workflows that Julia is inappropriate for, but when someone says that a tool shouldn't be released because it doesn't target their workflow, I really don't know what to call that other than blindingly self centred.

Re:Julia 1.6 addresses latency issues by ChrisRackauckas on Friday May 28, 2021 @05:31PM (#27320769)
Why is static compilation such a major feature for large-scale differential equation solving? That's what I advertise Julia as good for. Probabilistic programming as well. Etc.
Re:Julia 1.6 addresses latency issues by acmj on Friday May 28, 2021 @09:55PM (#27322480)
Static compilation is not needed for numeric computing which Julia is great at. However, Julia is advertised as a general purpose language, which IMO is obvious in your "What is Julia?" section. You pose Julia as a mighty language for everything and your supporters think this way, too. I have had conversations with multiple Julia supporters who thought Julia ought to replace python and even C. When people like jampekka pointed out Julia lacks necessary features to make this happen, these supporters got defensive and made absurd claims beyond their domain of knowledge.
Re:Julia 1.6 addresses latency issues by cbkeller on Friday May 28, 2021 @11:13PM (#27322750)
Ah yes, Python, the famously statically compiled general-purpose programming language :p

More seriously though, just because some language may be considered "general purpose" doesn't mean it's the best language for everything, or should replace other languages outside of whichever particular applications where it excels.

Re:Julia 1.6 addresses latency issues by ChrisRackauckas on Saturday May 29, 2021 @05:43AM (#27324130)
>You pose Julia as a mighty language for everything

No I don't. It needs some work in some places.

Re:Julia 1.6 addresses latency issues by cbkeller on Friday May 28, 2021 @01:39AM (#27312094)
> Us CLI folks are not even asking for much. Just a way to call a program with arguments and so that you don't have to do compile identical code every time you do something. That's it. Is that unreasonable?

Look, everyone wants static compilation, and it's almost certainly going to happen eventually. It's not unreasonable at all to want that. The only thing that would be unreasonable is to (apparently repeatedly!) imply or assert that this lack of static compilation (and/or better caching) is due to some bizarre perversion on the part of the community.

If you want it to happen faster, then stop complaining about it on HN, get familiar with the current attempts at true static compilation in e.g. https://github.com/tshort/StaticCompiler.jl/pull/46 and start contributing yourself.

Re:Julia 1.6 addresses latency issues by jampekka on Tuesday June 01, 2021 @05:09PM (#27361328)
I don't especially want a static compiler. I'm fairly happy with Python workflow even though it's totally dynamic and interpreted, but it's dog slow on numerical stuff and the design is showing its age.

I like the "AOT-JIT" approach of Julia, and I think a separate compilation step is quite a stupid idea in the first place. I see it as some historical relic from computers with extremely limited memory (by current standards) and outdated business models that want obfuscated binaries.

My main gripe is just that I have to do it every time I run anything if I'm not using a REPL/Notebook, which drive me insane with their inconsistent and opaque global state. This could be solved mostly by caching the compilation results and compiling new stuff incrementally. But I'm starting to lose any hope that this is gonna actually happen.

Some lesser stuff follows from lack of this, but they should be relatively easily fixed.

Re:Julia 1.6 addresses latency issues by acmj on Friday May 28, 2021 @01:48AM (#27312133)
Couldn't agree more. What you said is a design flaw that the Julia community keeps denying. The Julia community also behaves defensively when it comes to performance. They refuse to accept that Julia doesn't compete with C/Rust on many non-numeric tasks in the real world. In addition, the Julia community has its own circle, its own style to write code. They will trash your code even if it is efficient and logically correct. I once compared implementations in different languages and found Julia is slower than others. Several of them jumped at me, criticized my coding style and blamed me for their fault. But in the end they couldn't improve the performance. At the Julia discourse, I was alone in the argument. That was a really bad experience.
Re:Julia 1.6 addresses latency issues by dklend122 on Friday May 28, 2021 @10:18AM (#27315592)
Can you please post a pointer to the thread in question?
Re:Julia 1.6 addresses latency issues by acmj on Friday May 28, 2021 @10:46AM (#27315951)
Sorry, I would like to keep my online anonymity.
Re:Julia 1.6 addresses latency issues by eigenspace on Friday May 28, 2021 @03:41PM (#27319628)
If you won't post a link publicly, could you at least contact the julia community stewards [1]? If there are community dynamics that are pushing people away, the stewards need to be told.

For what it's worth, I've seen some nasty (though well meaning) pile-ons in the julia discourse, but for the most part it's a pretty nice place. I find though that the Zulip [2] and Slack communities are generally more friendly and relaxes places though.

[1] https://julialang.org/community/stewards/

[2] https://julialang.zulipchat.com/

Re:Julia 1.6 addresses latency issues by tbenst on Tuesday May 25, 2021 @08:56PM (#27284823)
I use Julia as my main driver these days and have shared some of this experience but not all

1) I use VScode and have had 0 problems with Revise. It Just Works when using the Julia extension + built in REPL. I actually prefer the Julia environment to Python in VScode, I have way fewer problems when doing a Notebook-like workflow where I’m writing library code at the same time

2) Agreed, I also wish there was a better story here. I’m constantly frustrated by how little static support there is. It’s getting better though, eg precompilation in 1.6.

3) I haven’t had any issues here outside of the occasional update to VScode Julia extension that botches things

4) I’ve had quite a lot of luck on discourse and GitHub issues, as well as slack for the occasional small question

Rust is great for use cases where you have specific resource management needs, although seems an odd choice for general purpose scientific computing.

Re:Julia 1.6 addresses latency issues by neolog on Tuesday May 25, 2021 @09:09PM (#27284905)
> had 0 problems with Revise

Try changing a struct.

Re:Julia 1.6 addresses latency issues by gugagore on Wednesday May 26, 2021 @11:54AM (#27292135)
Yes, that is an important limitation of Revise that I hope goes away.

Until then, consider this work-around: https://github.com/BeastyBlacksmith/ProtoStructs.jl

Re:Julia 1.6 addresses latency issues by dm3 on Wednesday May 26, 2021 @05:32AM (#27288224)
That's definitely a problem. I work around by naming all my structs with a `_1` suffix and `%s/_1/_2/g` (VIM find-replacing) every time a struct changes. Otherwise I find Revise works great.
Re:Julia 1.6 addresses latency issues by fishmaster on Wednesday May 26, 2021 @09:29AM (#27290231)
Wrap it in a module, then you can change it without any problems. It's not ideal, but it works very well in practice.
Re:Julia 1.6 addresses latency issues by jonniedie on Wednesday May 26, 2021 @09:58AM (#27290552)
Revise can’t change structs in modules either. The only sane way I’ve found to handle this is using a Pluto notebook. But that’s not for everybody.
Re:Julia 1.6 addresses latency issues by fishmaster on Thursday May 27, 2021 @02:40PM (#27306531)
I can definitely redefine a struct in a module.
Re:Julia 1.6 addresses latency issues by jonniedie on Thursday May 27, 2021 @04:36PM (#27308104)
Really? I’d love to know how to do that because I run against this issue every day. Are you in the package’s environment or using `includet`?
Re:Julia 1.6 addresses latency issues by xiaodai on Tuesday May 25, 2021 @07:45PM (#27284293)
What you've pointed out might all be valid. But they seem to be issues with maturity. When Python was at a similar age, did it have all these issues worked out?

Not sure if you can generalize it to "Julia community isn't interested".

If we have more ppl liking Julia and using it for general purpose computing (which it is capable of), then more of these tools will become mature overtime.

Also, Julia is not in the same niche as Rust though, it's more like a Python, so not sure if the comparison is apt.

Re:Julia 1.6 addresses latency issues by pythrowaway on Tuesday May 25, 2021 @10:07PM (#27285326)
Problem for Julia is, the Python ecosystem gets better every year. Python might be getting better faster than Julia can catch up.
Re:Julia 1.6 addresses latency issues by m_mueller on Wednesday May 26, 2021 @01:54AM (#27286873)
I highly doubt it for one core feature: performance. For a little while it looked like Python 4 might fix this (by using type hints to JIT) , but it was quickly given up. IMO a big shame as it is the one thing holding python back.
Re:Julia 1.6 addresses latency issues by oscardssmith on Wednesday May 26, 2021 @03:19AM (#27287388)
I think Julia actually does a pretty good job of showing that the problem isn't types. The problem is semantics. Julia's restriction is eval to the global scope is a perfect example of this. It has a pretty minor on code, but a massive effect on performance. Python has a ton of things like this where a slightly different (and totally breaking) semantic change prevents optimization.
Re:Julia 1.6 addresses latency issues by m_mueller on Wednesday May 26, 2021 @09:55AM (#27290528)
My poinr wasn’t about type system per se but the ability to compile code down to natively execute without going through an interpreter. Whether you solve that through type inference or type hints I honestly don’t care, but afaik Julia has an easier job by allowing you to make types explicit on the data structure side while being flexible for the algorithms. Semantics are certainly also a big part, but it would be nice to have first party support for what Numba does, JITing a reduced set of semantics but keep everything else compatible.
Re:Julia 1.6 addresses latency issues by pjmlp on Wednesday May 26, 2021 @01:58AM (#27286892)
Julia runs fast enough to catch Python, because Python will never improve the main reason why Julia was created in first place, the community embracing a JIT compiler instead of re-writing working code into C.
Re:Julia 1.6 addresses latency issues by Tainnor on Tuesday May 25, 2021 @06:37PM (#27283636)
I would also add:

5. The module system is very primitive.

6. The testing framework is extremely barebones.

I agree with your assessment, Julia is great for crunching numbers etc., but I wouldn't write a whole application in it.

Re:Julia 1.6 addresses latency issues by adgjlsfhk1 on Tuesday May 25, 2021 @07:36PM (#27284206)
Anything in specific you feel like is missing from the module system and testing framework? Knowing what features people want helps a lot with setting development priorities.
Re:Julia 1.6 addresses latency issues by Tainnor on Wednesday May 26, 2021 @08:26AM (#27289603)
I could make a laundry list of features (for example: not being forced into a linear order of includes (or at least having idempotent "include"s), no namespace collision for test files, not having to list all the tests in "runtests.jl",[1] support for pending tests, support for parameterised tests, proper assertion libraries with more useful error output, etc. pp.), but I also feel like Julia developers could just look at any of the other major general purpose languages, almost all of which have better module systems and testing frameworks because these are things that matter to application developers.

[1]: I actually tried to automate some of this in a project: https://gitlab.com/pfrasa/morcrypto/-/blob/master/test/runte...

Re:Julia 1.6 addresses latency issues by adgjlsfhk1 on Saturday May 29, 2021 @01:00AM (#27323150)
Some of these would definitely be good to have issues/pull requests to track progress on. That said, I'm not sure how useful parametrized tests are in a language with first class functions. Also, for more useful error outputs, there was a PR merged just a few days ago that helps with improving the error output.

In general though, specific issues with use-cases (or even better PRs) are the best way to direct change in an open source language. It's much easier to prioritize development if we know that a specific feature is wanted.

Re:Julia 1.6 addresses latency issues by smabie on Tuesday May 25, 2021 @07:46PM (#27284309)
It seemed to me that no one actually made projects that used the module system at all? Like no name spacing what so ever, just a bunch of include!s
Re:Julia 1.6 addresses latency issues by ChrisRackauckas on Tuesday May 25, 2021 @07:59PM (#27284429)
Every package is a module, and Julia is well-known to not have monorepos and instead split packages into small modules. So I don't quite see how this follows: there's no PyTorch, instead there's Flux, NNLib, NNLibCUDA, NNLibAMDGPU, CUDA, GPUCompiler, KernalAbstractions, ... (it keeps going), all of which are documented packages in their own modules that make up the ML stack.
Re:Julia 1.6 addresses latency issues by krastanov on Tuesday May 25, 2021 @07:57PM (#27284420)
I feel like the DifferentialEquations package is a screamingly obvious counterexample to your claim. It has many sub-modules. Moreover, the whole point of multimethods is to live in the main semantic namespace, you do not need as many name spaces because there are no names to clash.
Re:Julia 1.6 addresses latency issues by Tainnor on Wednesday May 26, 2021 @08:48AM (#27289820)
> you do not need as many name spaces because there are no names to clash.

You know, maybe you're right and I can't prove you wrong, but this is the kind of thing that IMHO application developers read and think "yeah no, been there, done that, never again". Because many people's experience is that names do clash, again, and again, and again, and I fail to see why multimethods should solve that.

Re:Julia 1.6 addresses latency issues by krastanov on Wednesday May 26, 2021 @03:33PM (#27295034)
Does this example help: There is a name defined in Base, e.g. `pop`. In languages that do not use multumethods, when you created your own "FancyContainerLibrary" you need to create a new `pop` and ensure it does not clash with `Base.pop`. In languages with multimethods you just extend `Base.pop` to work on your new type. Julia can do both: it has perfectly normal support for namespaces, but frequently you will be extending Base methods instead of working in your own namespace (of course, all your private functions are usually unexported and available only from your namespace and do not polute the global space).
Re:Julia 1.6 addresses latency issues by skybrian on Tuesday May 25, 2021 @09:19PM (#27284991)
I've only kicked the tires on Julia a bit, but it seems like while methods are less likely to clash, they still might if you happen to use the same name and argument types? Or maybe unexpected method resolution causes a bug?
Re:Julia 1.6 addresses latency issues by ddragon on Tuesday May 25, 2021 @09:42PM (#27285159)
While that might happen (and probably cause a method redefinition), there is an important convention that helps preventing it: your package must either own the function or at least one of the types used for arguments, otherwise you're practicing type piracy [1]. I've seen an automated scripts that can detect type piracy, so hopefully it could be part of a linting toolset eventually since not everyone might be aware, but at the very least popular packages shouldn't have them - or at least not in a way that may cause bugs (and if any package has it unintentionally it's probably worth creating an issue).

[1] https://docs.julialang.org/en/v1/manual/style-guide/#Avoid-t...

Re:Julia 1.6 addresses latency issues by neolog on Tuesday May 25, 2021 @09:20PM (#27285008)
Re:Julia 1.6 addresses latency issues by adgjlsfhk1 on Tuesday May 25, 2021 @09:43PM (#27285164)
I'm kind of unclear what module signatures would be since Julia lets code define modules at runtime, so I don't think this could be meaningfully defined for Julia.
Re:Julia 1.6 addresses latency issues by neolog on Tuesday May 25, 2021 @10:32PM (#27285496)
Re:Julia 1.6 addresses latency issues by oxinabox on Saturday May 29, 2021 @02:30PM (#27327234)
For most intents and purposes one can use a (potentially Singleton) type passed as a argument to functions instead of a module containing functions. And doing that gets you all the tooling and power you could want. (But probably in a different way to you want it). Since multiple dispatch takes care of that.

You can compare and contrast MLDatasets.jl (uses submodule per dataset) vs CorpusLoaders.jl (uses a extra type argument per dataset)

Re:Julia 1.6 addresses latency issues by kruxigt on Tuesday May 25, 2021 @07:05PM (#27283918)
I agree with you guys. I have been coding in Julia for 2 years and very little has happened in tooling. For example, the graphical profiler is buggy. I love the language though. Hoping things will change!
Re:Julia 1.6 addresses latency issues by xvilka on Tuesday May 25, 2021 @09:04PM (#27284876)
> after some consideration of OCaml, but unfortunately the multi-core story still isn't there yet

It is supposed to land in the release after 4.13, which is the next one.

Regarding the scientific computations library there is Owl[1][2] which now has an almost finished book[3].

[1] https://ocaml.xyz/

[2] https://github.com/owlbarn/owl

[3] https://ocaml.xyz/book/

Re:Julia 1.6 addresses latency issues by xianwen on Friday May 28, 2021 @01:29AM (#27312041)
I'm just curious. Do you do symbolic math in Rust? I found a crate [1] that is a wrapper for SymEngine. However, it is no longer maintained.

[1] https://github.com/podo-os/symengine.rs

Re:Julia 1.6 addresses latency issues by diragon on Wednesday May 26, 2021 @04:09AM (#27287734)
How did you cope with the lack of REPL on Rust's side?
Re:Julia 1.6 addresses latency issues by smabie on Wednesday May 26, 2021 @11:46PM (#27299176)
Rust REPL'S do exist, though I don't need it very often because the static typing allows me to know exactly what's going on with each line of code.