30 karma · joined Nov 24, 2023 (3y ago) · 20 submissions
comment 1y ago · link · parent
comment 1y ago · link · parent
I'm part of the core team, and I'm honestly still a bit surprised we're switching to zig. I think it makes sense, it just kinda finally aligned and was decided now. I guess enough technical debt piled up and the core of the language was clearly discovered. So we really know what we want now.
comment 1y ago · link · parent
I think a significant portion of our pain with rust compile times is self inflicted due to the natural growth of our crate organization and stages.
I still think the rewrite in zig is the right choice for us for various reasons, but I think at least a chunk of our compile times issues are self inflicted (though this happens to any software project that grows organically and is 300k LOC)
comment 1y ago · link · parent
Personally, I find parser combinators nice for small things but painful for large and robust things.
comment 1y ago · link · parent
Not to mention, Richard has a background mostly doing higher level programming. So jumping all the way to something like C or Zig would have been a very big step.
Sometimes you need a stepping stone to learn and figure out what you really want.
comment 2y ago · link · parent
That said, it does have the fundamental issue of the query is just a string and the code author has to fundamentally deal with correctly specifying what the return type is. Technically a fancier query builder could be defined that removes the sql and instead defines both the query and return type at once to avoid the double specification.
Otherwise, something like squirrel would 100% be doable in roc. [Something similar](https://github.com/isaacvando/rtl) already exists for templating in roc via code gen.
comment 2y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
I do agree that default convention may rely heavily on a few syntaxes that aren't as common in procedural or OO languages.
comment 3y ago · link · parent
An important note is that any module could expose an append function that has the same interfaces as `List.append`, so that could easily lead to confusion.