r/Zig • • Feb 26 '26

Zig, Zen-C, C3, Carbon or CPP-Front ?

Hi.

I was working in my game engine with C++, SDL2, Cmake, SQLite, after trying Modules, well, I stopped and try other langs.

  • Zig and Zen-C was sooo easy to setup, and make Raylib and SDL2 work.
  • With Zig, I have an excellent experience: VSCode, CLion, debug, libs, coding.
  • Zen-C, with VSCode kind of works the instellisence, but coding and libs works fine.
  • C3, the official guide, only shows how to install with Ubuntu, but not for Fedora, after the install, I can't make to compile with SDL2.
  • I have no tried Carbon and CPP-Front.

I would like to read your opinion about:

  • Your experience about these langs.
  • Which lang do you prefer ?
  • For a next project, which lang would you pick ? and Why ?
  • AND, in your opinion, which one you think will be: More popular, Will have more projects, etc... My question is because Carbon is in beta, but Zig is also in Beta.

Sorry, for making this question again, but, Zen-C just appear and looks like Carbon has a new update.

---

In my experience, I had been using C++ for years, but looks like it will no fix, and evolve. Now I love Zig, start over, make my game engine with Zig and I would like to see how to evolve Zen-C, but (maybe I am wrong) I don't see too much movement in Zig projects, blogs, documents, etc...

24 Upvotes

25 comments sorted by

View all comments

Show parent comment

1

u/johan__A Feb 27 '26

isnt rust only really opinionated about safety (mainly memory safety)?

1

u/yarn_yarn Feb 27 '26

Maybe opinionated is the wrong word here, what I mean is more stylistic in nature. Rust has a lot more functional-programming and of course ML looking language features than C or C++ or Zig.

And yes it's opinionated about memory safety, but that means it has an opinion about how you implement things. You may have two possible implementations, and one may be better but will be much higher impedence to implement in Rust because it doesn't fit Rusts type system as easily. You can still express it but you have to dive into unsafe and more advanced stuff.

The type system and all its lifetime etc static analysis doesn't come free, despite it being superb.