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