Criticizing Hare language approach for generic data structures
1–10 of 272 posts
Re: Criticizing Hare language approach for generic data structures
#2But that's not "modern" applications, which often deal with a ton of data structures. C applications that do so usually have a few "template headers" lying around (indeed, certain operating systems ship with them), though one of the most frequently used data structures in C is of course the intrusive linked list. Which is not a good data structure to use in most cases. Why is it used so much in C? Because it is easiest to implement. Why does that matter? Because C makes implementing generic data structures tedious. Is it a good idea to replicate that model?
qed.
Re: Criticizing Hare language approach for generic data structures
#3Re: Criticizing Hare language approach for generic data structures
#4Re: Criticizing Hare language approach for generic data structures
#5Re: Criticizing Hare language approach for generic data structures
#6Re: Criticizing Hare language approach for generic data structures
#7What's the problem? People will just use libraries. Why does it need to be part of the base language? Seems like that made C++ quite a mess in fact, while NPM-like ecosystems have done well.
Re: Criticizing Hare language approach for generic data structures
#8What's the problem? People will just use libraries. Why does it need to be part of the base language? Seems like that made C++ quite a mess in fact, while NPM-like ecosystems have done well.
[1] https://harelang.org/blog/2021-03-26-high-level-data-structu...
Re: Criticizing Hare language approach for generic data structures
#9What's the problem? People will just use libraries. Why does it need to be part of the base language? Seems like that made C++ quite a mess in fact, while NPM-like ecosystems have done well.
Re: Criticizing Hare language approach for generic data structures
#10Anyone can write a hash map, in the same way that anyone can write an HTTP server over a weekend. Doesn't mean it will be production quality.
Glibc's obstack doesn't count, it's non-standard and the only type it supports is (of course) void*, which is a bad interface.