Stream: ideas

Topic: static site generator


view this post on Zulip Brian Hicks (Apr 19 2022 at 18:40):

I've been kicking around an idea for a static site generator that works just on tree-sitter parsers for a while now. I think Roc might be a nice platform to accomplish this! It'd basically work like:

Anyway enough people have built static site generators that surely this has been explored before, but I'm not going to read the docs for every single SSG in existence just to find ideas, so… what have y'all heard of? Is there something like this that exists already? If you've used something like it, have you encountered a lot of problems with it?

(this didn't start out as secretly another excuse to play with build system ideas but it ended up that way. Apparently this is just the way my mind works.)

view this post on Zulip Brian Hicks (Apr 20 2022 at 01:37):

I guess this'd probably need to have some level of parallelism to be at all performant. Where are we at on that? Is it safe to pass RocStr and friends between threads? It doesn't look like we have any concurrency primitives yet?

view this post on Zulip Ayaz Hafiz (Apr 20 2022 at 01:44):

That sounds sweet! I haven't heard of anything like that in the SSG space, AFAIK Gatsby and Jekyll are very waterfall-y and don't do the optimizations you propose

We don't have concurrency primitives on the Roc side yet but you could do it on the platform side. I think passing RocStr should be fine with the atomic ref counts @Brendan Hansknecht added recently


Last updated: Jun 16 2026 at 16:19 UTC