Live data from Hacker News

Flint: A Visualization Language for the AI Era

microsoft.github.io

21–30 of 81 posts

Re: Flint: A Visualization Language for the AI Era

#21
post #15

unfortunately JSON is doomed to fail in "the AI era" LLMs are surprisingly bad at generating JSON.

You can use skills or harnesses to have them validate their json (using plain old JSON validation or schemas) and they seem to have a very high success rate with that gate in place. It's slightly more tokens, but it's reliable

Re: Flint: A Visualization Language for the AI Era

#22
post #20
post #10

Even in the Era AI, GGPlot's API is still the best charting API. The name "Grammar of Graphics" isn't just marketing, they literally sought to write a god damn grammar to was capable of expressing all possible qualitative graphics. They even wrote a book about how they went about it (not that it speaks to the quality of the API) https://link.springer.com/book/10.1007/0-387-28695-0 I actually stumbled upon this book w…

Note that if you are affiliated with a University you probably can download a pdf of the book in the link for free.

Yeah that's how I got a copy, found it on my unis digital library.

Re: Flint: A Visualization Language for the AI Era

#23
post #6

Why is this "for the AI era"? Isn't it kind of not for the AI era since an LLM can create a gnarly python or js chart of whatever you want in seconds?

It can write anything, but that's not a guarantee it can easily read and comprehend it later

Re: Flint: A Visualization Language for the AI Era

#24

This is just json right? One issue with llms right now it's that if you give them a json specification, they're not always amazing at following it. I think it makes sense to have an agent tool that takes llm json, a file name and a spec path and only writes out the file if it conforms.

> give them a json specification, they're not always amazing at following it

Used correctly, this hasn't been true for a quite a while. Most inference engines have a form of grammar constrained decoding. See, for example: https://vllm.ai/blog/2025-01-14-struct-decode-intro

Re: Flint: A Visualization Language for the AI Era

#25
post #10

Even in the Era AI, GGPlot's API is still the best charting API. The name "Grammar of Graphics" isn't just marketing, they literally sought to write a god damn grammar to was capable of expressing all possible qualitative graphics. They even wrote a book about how they went about it (not that it speaks to the quality of the API) https://link.springer.com/book/10.1007/0-387-28695-0 I actually stumbled upon this book w…

> They even wrote a book about how they went about it (not that it speaks to the quality of the API)

Wilkinson’s Grammar of Graphics inspired ggplot. The textbook doesn’t even mention ggplot.

Shameless plug for my own GoG inspired DSL, Algraf:

https://williamcotton.github.io/algraf/demos

There’s a Minard plot in the demos!

Re: Flint: A Visualization Language for the AI Era

#26
post #10

Even in the Era AI, GGPlot's API is still the best charting API. The name "Grammar of Graphics" isn't just marketing, they literally sought to write a god damn grammar to was capable of expressing all possible qualitative graphics. They even wrote a book about how they went about it (not that it speaks to the quality of the API) https://link.springer.com/book/10.1007/0-387-28695-0 I actually stumbled upon this book w…

To be fair, the Vega-lite backend is json mostly based on GG ideas.

In this vein, I think I prefer ggsql that made it to HN recently [0].

[0]: https://ggsql.org/

Re: Flint: A Visualization Language for the AI Era

#27
Maybe they’re not selling this well. Maybe they’re so close to the AI research that this seems like an obviously good idea.

But there’s not one word of why this is good for LLMs, or how they tested/measured that.

My gut would tell me that a new solution put up against all the vega lite specs it’s already be trained on would be a hard thing to win.

Re: Flint: A Visualization Language for the AI Era

#29
post #10

Even in the Era AI, GGPlot's API is still the best charting API. The name "Grammar of Graphics" isn't just marketing, they literally sought to write a god damn grammar to was capable of expressing all possible qualitative graphics. They even wrote a book about how they went about it (not that it speaks to the quality of the API) https://link.springer.com/book/10.1007/0-387-28695-0 I actually stumbled upon this book w…

How would you quantify the magic of these older charts? What is it that makes them have charm and character?
Post reply on HN