News for hackers. Stuff that matters.
Re:Declarative Data Visualization by vosper on Wednesday August 05, 2020 @07:21PM (#24066686)
Some of the examples pass what appears to be a JSON string to a function called `jsan`, and some use a function called `json`. I would have put this down to a typo, but there are several examples of each.

I'm curious, now: can a Scala person (this is Scala, right?) explain what the difference is between these two things?

Re:Declarative Data Visualization by maxov on Wednesday August 05, 2020 @07:42PM (#24066805)
It looks to be a custom function for parsing JSON arrays: https://github.com/haifengl/smile/blob/5bf4075b2978af68b31c7...

The benefit is that the type will be known to be JSArray without need for runtime casting (at least, outside the scope of the function). For comparison, `json` returns a JSObject.

I honestly haven't seen this before working with Scala, and it's defined just for the smile repository.

Re:Declarative Data Visualization by vosper on Friday August 07, 2020 @01:35AM (#24078709)
Thanks for looking into that :)