5 ms·
How is it possible that the design of a language do not allow for external code/libraries?
by sedeki 4y ago
How is it possible that the design of a language do not allow for external code/libraries?
- ayende 4y agoThe issue is _generic_ data structures, not external code. If I have to re-create a hash table for each scenario, I'll not invest the proper time to do so. So if I need a hash table to map inodes to strings and another to map strings to IP addresses, I'll need to create that anew each time. That means either writing a lot of code twice, or relying on manual code generation (which sucks for many reasons).
- sedeki 4y agoRight, I take my question back
- rootlocus 4y agoNo support for generics or custom allocators, combined with no desire to implement a package manager. The language author accepts that (1) Hare is just as limited as C and (2) C has no way of implementing a good hash map. > Recall that Hare is designed to be similar to C in terms of scope and goals. C also provides no general-purpose hash map, and little by way of other data structures (though some attempts exist, none of them good). So you're stuck using a crappy general-purpose hash map that you have to convince your linux distribution package managers to maintain.