Thanks for your interest in contributing to Grain! There are all sorts of ways to contribute—there's core compiler work, implementing standard libraries, writing documentation, or even maintaining the website. No matter your interests or skill level, we're happy to have your help. Logistically, the best way to get involved is to chat with us on Discord. From there, we'll be able to direct you to various areas of the project.
Please note that this project is released with a contributor code of conduct. By participating in this project you agree to abide by its terms.
You can use this link to chat with us on Discord: grain-lang discord server
If it's your first time here, we suggest that you follow the Grain setup guide to get up and running. We also have build instructions listed in the README. The instructions should be fairly straightforward, but if you run into any issues please reach out to us on Discord.
There are a set of contributor docs in docs/contributor. These documents go into technical details on how things work in Grain.
When working with the compiler, you'll want to install esy globally and make it available in your $PATH
. This will allow you to have LSP services while working on the compiler code.
Once you have the compiler building, the typical flow for development is to make changes in the compiler
directory, then run:
npm run compiler build
npm run compiler test
It can sometimes be helpful to run small Grain programs directly to test some functionality without running the full test suite.
It's usually easiest to create a small Grain program that imports your library to try it out, like so: