5 ms·
> 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 w
by pjerem 8mo 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.
- himata4113 8mo agojava 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.
- lukaszkorecki 8mo agoIt has one - it’s been a part of the JDK for a while https://docs.oracle.com/en/java/javase/11/docs/api/jdk.httpserver/com/sun/net/httpserver/HttpServer.html https://docs.oracle.com/en/java/javase/11/docs/api/jdk.https...
- himata4113 8mo agosun is typically not available anymore / deprecated even and not available in the JRE or it's early access, but fair point.
- vips7L 8mo agoI get what you’re saying but this is actually a public api in HotSpot. It was provided in JEP 408: https://openjdk.org/jeps/408 https://openjdk.org/jeps/408
- himata4113 8mo agoso this is what it feels to be old... but to clarify, this was about a year ago where I struggled to find an auto completion for HttpServer and when I searched it up jdk HttpServer was simply not in the results so I made assumptions that were wrong.
- atherton94027 8mo agoNot really? Iirc `HttpUrlConnection` has been around since the 90s?
- himata4113 8mo agoI 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.
- bilbo0s 8mo agojava 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?
- IcyWindows 8mo agoWhen I run into things like this that I know are wrong, I try to remember when reading things I don't know about...
- himata4113 8mo agoI 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.httpserver/com/sun/net/httpserver/HttpServer.html 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.
- himata4113 8mo agosee comments above for correction