Login
You're viewing the ruby.social public feed.
  • Nov 23, 2026, 2:54 PM

    @complexmath You can do reference counting in D but it doesn't play well w/ the current immutability model.

    But reference counting is not 'pause-free' or deterministic either - you can have unbounded 'random' cascades.

    💬 1🔄 0⭐ 0

Replies

  • Nov 23, 2026, 2:55 PM

    @complexmath Also agree on concurrency as `shared` still feels very undercooked but w/o it (or something similar) and immutability in the language I don't think std.concurrency can be replicated really.

    If you are comfortable w/ current C++ approach of picking arbitrary parts of the language or standard library to ignore you would feel right at home w/ D (including avoiding built-in GC).

    💬 1🔄 0⭐ 0
  • Seancomplexmath@hachyderm.io
    Nov 23, 2026, 6:16 PM

    @neku42 You know, one thing with the D runtime that I wish people had cared more about is that it's actually three distinct libraries with well-defined interfaces between them--the compiler runtime, the garbage collector, and a small set of core standard library features like the thread implementation (because the GC needs to know about threads, etc). With the way it's set up, the selection of a garbage collector could be a link-time decision, and a compiler writer could drop in their own compiler runtime without having to fuss with threading or garbage collection at all, making for a clear separation of concerns for implementers. Initially, the runtime literally shipped as three separate libraries, but no one wanted to deal with it so I wound up bundling them into one as a packaging step. So like if you look at the LLVM D implementation it clones the entire standard library (last I checked) even though it doesn't need to.

    💬 0🔄 1⭐ 2