Stream: compiler development

Topic: Glue Types Specification


view this post on Zulip Luke Boswell (Jun 20 2024 at 08:26):

Just wondering what the best places to find information on how the roc types are implemented.

We don't have a spec or anything right? That would be something for much later I assume.

The zig builtins would be probably the easiest, followed by the roc_std implementation right?

Would the ultimate base truth be emitting llvm-ir?

Basically, if I am working on implementing the std lib or glue, where should I go for the source?

view this post on Zulip Folkert de Vries (Jun 20 2024 at 08:31):

for stdlib either zig or rust, depending on what is most familiar

view this post on Zulip Folkert de Vries (Jun 20 2024 at 08:32):

zig is more code because it implements the builtins, that's good (examples!) and bad (more code to read)

view this post on Zulip Folkert de Vries (Jun 20 2024 at 08:33):

for tag unions I think reading the source is the only way to be really sure, though the names make sense once you know them


Last updated: Jul 06 2025 at 12:14 UTC