r/Zig • • 22d ago

Cole Updates, and Version 0.1.6

Hey everyone, some of you migh've seen and remember it now, but for others: I'm writing a compiler in Zig, for a custom language which is somewhat a recreational attempt to create a Zig-like language. I started doing this project for funsies and learning compiler development. It's been 8-9 months of mut 2-3 months of it was designing the language so the compiler work has been around for 5-6 months. Entirety of the compiler was written by hand by me, but I have to admit there has been a couple times where I couldn't figure out things in the codebase and had to consult to AI (since I have no contributors or friends that are interested in helping).

These being said, I am happy to announce that Cole version 0.1.6 is out now, with additions such as:

  • Member function calls
  • Indirect self referencing
  • STDLib improvements

    • Arena allocator
    • Struct, union and enum formatting support
    • Hashmaps and hashers
  • Escape characters
  • hex literals

plus numerous bugfixes.

If you want to know more about the language, the release, or me, you can check my blog or you can check out the Cole Website

Note: Both the blog and the website are hosted on my old laptop/homeserver, which has some performance problems from time to time, so they might be down on occasions.

13 Upvotes

0 comments sorted by