Now my personal life and work is more stable, I would like to learn roc/rust to help someday. Should I study one or two months of Rust before reading the compiler source? Any recomended Rust resources?
Hi Gabriel :) ,
It depends how much time you have available but I'd recommend studying and using Rust for two months.
The [rust book] is what I started with back in the day, [rust by example] is also a good resource. I thinks it's a good idea to alternate reading with some practice, exercism is really great for that.
I would second Rust book, as it is where I got all Rust concepts from.
you can also learn enough Rust to get the compiler running, play with some tests, and then let the types guide you as you try to solve issues. The Rust compiler is a good coach and you can reference specific chapters in the book as new things come up. Just depends on what approach you like better. I prefer to work on stuff and just consume docs as I go. It means sometimes you may be operating with missing knowledge but the reward of closing PRs is a good motivating factor.
maybe think of a small project (1-3 days). use that to force you to search around the book and rust docs. perhaps a command line app that reads data from githubs API and displays it in the terminal
I'm also a fan of things like exercism, codewars, hackerrank, etc.
If you have never even touched, looked at, or ran any Rust. The first few chapters of the book helps you bootstrap a small project. Once you can use cargo, I'd run off to a small project
Hi Ju! Because you posted in "Where to start?" I assume that's the question you're trying to get an answer to? :)
Are you interested in learning rust?
Hi Anton! I'm not sure how that message ended up here, I was meaning to post it to introductions :) Never used Zulip before, so it might be that!
No problem :)
@Ju Liu @Peter Fields @Gabber
Hi all, Our most common "first PR" project is implementing a builtin during a pairing session. This time I think Num.isOdd
and Num.isEven
would be good candidates.
Doesn't really require any rust knowledge (we can just follow the compiler error messages). Lmk if you want to do this this (or next) weekend.
I'm also happy to walk someone through adding a builtin. Just ping me whenever
Folkert de Vries said:
Ju Liu Peter Fields Gabber
Hi all, Our most common "first PR" project is implementing a builtin during a pairing session. This time I think
Num.isOdd
andNum.isEven
would be good candidates.Doesn't really require any rust knowledge (we can just follow the compiler error messages). Lmk if you want to do this this (or next) weekend.
Hey @Folkert de Vries that would be great! I have to run some errands today, but I'll be around tomorrow. Let me know!
Folkert de Vries said:
Ju Liu Peter Fields Gabber
Hi all, Our most common "first PR" project is implementing a builtin during a pairing session. This time I think
Num.isOdd
andNum.isEven
would be good candidates.Doesn't really require any rust knowledge (we can just follow the compiler error messages). Lmk if you want to do this this (or next) weekend.
I am available today and tomorrow. Let me know what times could work for you?
So if I want to ask a question, should I open a new topic?
The actual question is: Are functions operating on open records monomorphized or do they do dynamic field lookups of some kind?
monomorphized!
at runtime, records always end up being plain old structs
(also, new topic per question is great!)
Great, thanks!
Last updated: Jul 06 2025 at 12:14 UTC