Brian Gesiak has started a new tutorial series called Getting Started with Swift Compiler Development, with the first part already covering setting up your environment, building your own copy of the Swift compiler, and added a small change to get things started.
It’s certainly true that compiler development isn’t easy, but Brian has such as a relaxed style that it’s hard not to get sucked in:
The wall of text from the backtrace is intimidating at first, but no worries: in upcoming posts, I'll explain what each portion of the Swift compiler does. In the end, the Swift compiler is just a command-line program; there's nothing magical or scary about it.
Brian is well known in the Swift community, having already done a huge amount of work towards porting Swift to Android, and if you want to read more in this compiler series you should consider supporting him on Patreon.
Delving into the Swift compiler is something that has been on my mind for a while now, and this tutorial makes it look so easy – it will be interesting to see what gets covered in future installments!
Paul Hudson is the creator of Hacking with Swift, the most comprehensive series of Swift books in the world. He's also the editor of Swift Developer News, the maintainer of the Swift Knowledge Base, and Mario Kart world champion. OK, so that last part isn't true. If you're curious you can learn more here.