Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.

 help



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.

I 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

so 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.


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.

see comments above for correction

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: