this post was submitted on 19 Feb 2022
7 points (88.9% liked)

Open Source

31173 readers
387 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] mogoh@lemmy.ml -1 points 2 years ago (2 children)

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?

[–] Cloak@lemmy.ml 2 points 2 years ago* (last edited 2 years ago)

Also interested

[–] Yujiri@lemmy.ml 0 points 2 years ago (1 children)

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

[–] mogoh@lemmy.ml 0 points 2 years ago

That is interesting. Thanks.