Comment by pjerem
7 days ago
> Go is a bit unique a it has a really substantial stdlib
It’s not that unique though. I can say that Python and hell, even PHP have pretty complete but also well documented stdlib.
Java is meh tier but C# is also pretty good in this aspect.
It’s totally a choice for Rust not to have a real stdlib and actually I feel like that would maybe make Rust maybe the best language overall.
java didn't have an http client (I guess it had a url 'stream') for the longest time and STILL doesn't have an http server.
It has one - it’s been a part of the JDK for a while https://docs.oracle.com/en/java/javase/11/docs/api/jdk.https...
sun is typically not available anymore / deprecated even and not available in the JRE or it's early access, but fair point.
2 replies →
java didn't have an http client [...] and STILL doesn't have an http server.
Wow.
How long has it been since you guys have used Java?
Serious question?
I tried to implement a minimal server just to realize that there is still no way to do so in java 21... I stand corrected I guess it was recently added: https://docs.oracle.com/en/java/javase/25/docs/api/jdk.https..., but it's a sun package instead of standard RT - but probably because it is still early.
1 reply →
When I run into things like this that I know are wrong, I try to remember when reading things I don't know about...
Not really? Iirc `HttpUrlConnection` has been around since the 90s?
I did mention that, but for a lot of things it is not enough compared to a full http client most stdlib's have. HttpClient was introducted for a reason.