So, I rewrote my game in C3

(madrigalgames.com)

50 points | by lerno 2 days ago

3 comments

  • ricardobeat 26 minutes ago
    Love the SL3 idea! The c3c compile times are so fast (usually <5s) that it doesn't bother me, but my other solution is to embed a tiny JS engine - also written in C3 [1].

    I've been writing a 3D renderer and game engine in C3 and having a blast, hopefully it will gain popularity for games. The language is solid, fast, free of traps, and much friendlier than Rust/Zig/etc.

    [1] https://github.com/ricardobeat/boomkat

    • shoobiedoo 1 minute ago
      Looks great. Btw your code commenting is heaven. Details everywhere, nicely formatted. Great learning resource
  • ivanjermakov 22 minutes ago
    15s for a warm cache LLVM debug build for Windows sounds quite slow. My 10kLOC game takes 5s on a 8yo laptop, most of which is emitting LLVM of course.
    • sarchertech 12 minutes ago
      The code in question is 10 times longer than yours.
  • andai 56 minutes ago
    Great post, goes into a lot of details.

    I did a bunch of (tiny game jam) games in wasm, in C++, Rust, Zig and Odin, a while ago. I found Odin very pleasant at the time.

    C3 also looks very pleasant. I haven't tried it yet. I might have to give it a go :)

    • christophilus 48 minutes ago
      I also haven’t tried C3, but Odin is my favorite of the rest. Pragmatic, simple, and ergonomic. I’m looking forward to working more with it.