News for hackers. Stuff that matters.
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`?