Unofficial Hacker News companion — get notified on comment replies, and more.

So, I rewrote my game in C3 (opens external site)

159 points by lerno 5 days ago www.madrigalgames.com 46 comments (opens Hacker News) Vote (opens Hacker News)

View full thread · View on Hacker News

Comment thread (3)

  1. I have become very sensitive to iteration time

    For a while it was hard to ditch C because every alternative had worse compile speed

    I eventually settled on D, stripped everything i diddn't need, discovered -betterC, and now my entire engine (~40k LOC) fully recompiles in 200ms

    C3 and Odin's creators share similar concerns, and despite relying on LLVM, they achieve decent results. 3s for ~100k (assumed) codebase is quite respectble

    From my experiments, Odin achieves better results, but at the cost of saturating all your CPU threads, wich is very noticeable on laptops (fans/battery) or when multitasking

    I don't remember how C3 handles multithreading, and ot wich extent, but IMO, parallelism should complement compiler efficiency, not compensate for its lack of it

    On the case of Zig, they promised a lot, but looks like they bit more than they can chew.. wich is unfortunate, i was (and still am) very exited for its eventual 1.0

    Replies (1)
    1. I am not surprised you get that compilation speed out of it.

      DMD (the Digital Mars D compiler) has its own backend which allows it to outclass languages based on LLVM or GCC in terms of compilation. Walter's C++ compiler was faster than the competition's as well.

      Just well crafted.

      Replies (1)
      1. Additionally, Energize C++ and Visual Age for C++ v4, allowed for a Lisp Machines/Smalltalk like development for C++, but failed in the market due to high prices and hardware requirements.

        Now there is only CERN's CINT, Live++ and VC++ hot reload.