Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Falling in love with OpenBSD again. Parent comment
Examples:
Type erasure means the standard library doesn’t quite use generics right, so you end up sprinkling unchecked casts all over the place.
It is nearly impossible to handle resource lifetimes correctly, even with autoclosables.
No unsigned types, so many advanced algorithms are neigh-impossible to express, let alone rediscover.
Encapsulation for primitive types comes with a high runtime overhead (cache misses, gc pressure)
Package-private doesn’t quite do what you want for large projects, where you want to split API implementations into multiple packages.
There are no comments on this comment yet.
Examples:
Type erasure means the standard library doesn’t quite use generics right, so you end up sprinkling unchecked casts all over the place.
It is nearly impossible to handle resource lifetimes correctly, even with autoclosables.
No unsigned types, so many advanced algorithms are neigh-impossible to express, let alone rediscover.
Encapsulation for primitive types comes with a high runtime overhead (cache misses, gc pressure)
Package-private doesn’t quite do what you want for large projects, where you want to split API implementations into multiple packages.