Remix.run Logo
amelius 8 hours ago

> Query based compilers are all the rage: Rust, Swift, Kotlin, Haskell, and Clang all structure their compilers as queries.

I've never heard of this. It's a pity the article doesn't go into details.

thunderseethe 7 hours ago | parent | next [-]

It is a double edged sword of the single page layout that you really have to make one point briefly and get out of there. I had to pare down many details to fit the layout.

If you want to learn more about query based compilers as a concept, I highly recommend ollef's aritcle: https://ollef.github.io/blog/posts/query-based-compilers.htm...

If you want to learn how to implement a query based compiler, I have a tutorial on that here: https://thunderseethe.dev/posts/lsp-base/ (which I also highly recommend but that might be more obvious since I wrote it)

7 hours ago | parent | prev | next [-]
[deleted]
neandrake 3 hours ago | parent | prev | next [-]

Finding this one-page was great! It gave me a new term I didn't have before that leads to all sorts of new materials to go rifling through.

femiagbabiaka 7 hours ago | parent | prev [-]

Old discussion: https://news.ycombinator.com/item?id=23644391