News for hackers. Stuff that matters.
Re:Makie, a modern and fast plotting library for Julia by twobitshifter on Tuesday July 04, 2023 @02:15PM (#36590551)
in terms of being the only charting library to update based on diffs, this might be true for julia but javascript charting libraries have been doing this for a while. my favorite is echarts.
Re:Makie, a modern and fast plotting library for Julia by krumbie on Tuesday July 04, 2023 @02:46PM (#36591014)
I don't think we claim we are the only library that uses something like Observables, as you say there are others that do. VegaLite also uses a signal mechanism for interactivity, for example. Makie has been inspired by many libraries that came before (although I can't say that I knew echarts, specifically :) )

Every plotting library has something to offer, there are so many choices to make when building one that you can't cover everything. I envy the pure javascript libraries a little for their easy embedding in websites. But when you already do data work in Julia, especially with custom types and such, it's nice not having to move across a language barrier, and instead make use of Julia's multiple dispatch some more by using a native plotting library.

Re:Makie, a modern and fast plotting library for Julia by nsajko on Tuesday July 04, 2023 @03:24PM (#36591462)
Tangential: No Grammar to Rule Them All: A Survey of JSON-style DSLs for Visualization

https://arxiv.org/abs/2207.07998

Both Vega and Echarts are covered, among others.

Re:Makie, a modern and fast plotting library for Julia by twobitshifter on Tuesday July 04, 2023 @08:40PM (#36594284)
Thanks, I was looking at the quote from Alex Gardner under the discussion of observables. It might be I’m misinterpreting what was meant by that.
Re:Makie, a modern and fast plotting library for Julia by simondanisch on Wednesday July 05, 2023 @04:07AM (#36597232)
We're not using diffing! Diffing has a pretty big overhead for calculating the shadow dom and going through all values and seeing if they're the same, which can be very expensive for huge plots. We use signals that get wired through from the user up to the gpu, so if the user changes something, it gets immediately and directly changed on the gpu too! that's very different from diffing and much faster.. We're surely also not the only ones doing something like that, but Alex is referring to the whole package of Makie offering the ui, performance, simplicity and visuals to do this easily
Re:Makie, a modern and fast plotting library for Julia by twobitshifter on Thursday July 06, 2023 @03:39PM (#36621651)
ok, that’s interesting. The other libraries don’t diff the dom either (so many different diffs in this world) but compare the chart configuration and use this to determine what’s changed. And when you provide a partial configuration the existing stuff is implicitly left unchanged, so only new data is compared.