• @mogoh@lemmy.ml
    link
    fedilink
    12 years ago

    There are many languages that try to be a better C. For example Zig, D, C#, Swift, rust, Odin, etc. Has Hare some unique goals, or what sets it apart?

    • @Yujiri@lemmy.mlOP
      link
      fedilink
      22 years ago

      If you want a TLDR of how it compares to other languages, I think this: https://drewdevault.com/2021/03/19/A-new-systems-language.html

      First I’ve heard of Odin, I think most of the languages you list can’t be considered true altneratives to C. A key aspect of C is manual memory management; probably any language with garbage collection cannot replace C in its appropriate use cases (kernels, interpreters, device drivers, etc).

      My impression is that Hare aims to be drastically simpler than Rust, but borrows at least one major idea from it: pattern matching. I suspect a big reason Drew didn’t consider Zig satisfactory is because of its lack of unicode string support. See this fascinating thread where he argues with the Zig developers about their decision to leave it out: https://github.com/ziglang/zig/issues/234