4 ms·
> Java also lacks green threads. So weird. Java used to only have green threads. The very name, "green threads", comes from the fact that's what the JVM called
by tedunangst 8y ago
> Java also lacks green threads.
So weird. Java used to only have green threads. The very name, "green threads", comes from the fact that's what the JVM called them. Literally invented the name.
- spion 8y agoToo bad they were removed. I don't see why a non-system language should use anything other than green threads nowadays.
- pjmlp 8y agoBecause Java also runs bare metal and in those scenarios, it is indeed a systems language. The HN community is too focused on OpenJDK/Oracle when talking about Java, when there are as several JDKs toolchains across the industry, some with very specialized deployment scenarios.
- spion 8y agoThe lesson from that being, the extreme of "write once run anywhere" is not necessarily a good idea. Sometimes its best to implement specialized libraries and runtime (green threads) for specialized environments (servers) that are not available in others.