The Hare programming language
harelang.org
The Hare programming language
1–10 of 323 posts
Re: The Hare programming language
#2Re: The Hare programming language
#3Does it do something better than any other language?
Re: The Hare programming language
#4I don't see any explanation of why this language exists. Does it do something better than any other language?
Hare attempts to improve upon C while still remaining a very simple language, with much better error handling, support for arrays and slices, a rich but still minimal standard library, more concise and powerful function return values using tagged unions, improved memory safety, and other things you can find here:
* https://harelang.org/blog/2021-02-09-hare-advances-on-c/
* https://harelang.org/tutorials/introduction/
Disclaimer: I worked on Hare and this is just my personal opinion. I hope everyone can judge whether or not they like Hare for themselves by playing with the language!
Re: The Hare programming language
#5Wouldn't it be faster to write things in Tortoise?
Re: The Hare programming language
#6I don't see any explanation of why this language exists. Does it do something better than any other language?
If I were to speak generally about Hare compared to other efforts, I would focus on its simplicity and stability goals. It's the only new language in this space that's arguably simpler than C, in my opinion, and the goal is to provide a small, stable foundation that can be depended on for a long time, much like C is. Unlike many other languages in this space, its trade-offs also tend to position it to do anything C can already do - Rust has famous issues with linked lists, ownership when linking to things like libwayland, and they have their hands full getting into Linux; Go's runtime and GC rules it out for many applications; and so on.
Re: The Hare programming language
#7Re: The Hare programming language
#8How does this compare to Zig? They seem to share the same problem space.
Andrew might be able to expand on this.
Re: The Hare programming language
#9How does this compare to Zig? They seem to share the same problem space.
Hare is much simpler than Zig and has a much different design, things like Zig's comptime is absent in Hare. Hare also has, in my opinion, a more fleshed out standard library than Zig. However, they don't compete in some respects: Zig targets nonfree platforms like Windows and macOS, and being based on LLVM gives Zig a greater range of platforms/architectures OOTB. Andrew might be able to expand on this.