r/ProgrammingLanguages • • 7d ago

Cole v0.2.0 Announcement

Hello everybody, it's me again. And I'm happy to share with you that I have finally resolved the last bugs in the new QBE backend and now thrilled to announce that Cole v0.2.0 is out!

What happened in this release:

  • We have implemented the new backend, QBE
  • Since the C backend is complete, QBE backend was refined to the point where every test (except to C specific ones) pass, demos compile and Jedy (my custom terminal based text editor written in Cole) compile successfully
  • New unit tests were added by our new contributor "casimirknight" on codeberg,
  • Reworked the @opaque and @align metadata usage,
  • Updated the inline code syntax for flexibility
  • Fixed a couple bugs in the stdlib.

Overall, I'm really excited that I now have an optimizing compiler, even though the optimizier is not by me. Bu still, yayy!

I hope you all have a great day! Or night!

More information about the language can be found at the Cole website

21 Upvotes

9 comments sorted by

5

u/Less-Resist-8733 6d ago

website is buggy on mobile; left side gets cropped in reference

3

u/The2ndSlimShady 5d ago

Thanks for the feedback. I guess my web skills aren't as strong as my systems skills.

3

u/omniuni 6d ago

This is pretty neat. I always like the concept of functions as first-class variables.

2

u/AustinVelonaut Admiran 5d ago

You mean "types as first-class values"? Most programming languages have first-class functions.

3

u/The2ndSlimShady 5d ago

In Cole, functions are plain expressions, not definition statements. I think they meant that, and not as in being able to pass functions around.

2

u/AustinVelonaut Admiran 5d ago

Ah, I see -- so the name binding (via let) is uniform and separate from the value (i.e. all functions are names bound to lambda expressions).

1

u/The2ndSlimShady 5d ago

Exactly. Though we don't (and probably won't) have closures. They're just plain functions.

2

u/Inconstant_Moo 🧿 Pipefish 5d ago

Your link to Zig at the bottom of the landing page isn't rendering properly.

1

u/The2ndSlimShady 5d ago

Heyy Inconstant_Moo, thanks for the feedback. I'll look into it.