News for hackers. Stuff that matters.
Re:Java 21 makes me like Java again by kaba0 on Sunday September 17, 2023 @09:38AM (#37544953)
> Async enables clear contract for a type that represents a delayed result.

It's not really a type, otherwise it would be something like Future<T> in Java and plenty other languages. It is usually implemented as a transformation to a state machine.

Also, Loom is M:N and calling them green threads doesn't give you the whole picture at all. Not exactly sure what you mean by easily interleave -- functionality wise the two is more or less equivalent. You just get to keep your simpler mental model (and tooling) with virtual threads.

There are no comments on this comment yet.