News for hackers. Stuff that matters.
Re:Guide to Java Virtual Threads by DeathArrow on Thursday March 16, 2023 @05:46AM (#35179944)
async/wait is using tasks which are the equivalent of virtual threads.

What I do like to see in C# is something akin to goroutines from Go or actors in Elixir.

Re:Guide to Java Virtual Threads by shellac on Thursday March 16, 2023 @07:43AM (#35180703)
This response confuses me since goroutines and Erlang processes are really very similar to project Loom's virtual threads.

The mistake is that async/await is not equivalent to virtual threads: the former can do only a subset of what the latter can.

Re:Guide to Java Virtual Threads by guiriduro on Thursday March 16, 2023 @07:45AM (#35180712)
Virtual actors for C# are offered by solutions like MS Orleans as I understand it.
Re:Guide to Java Virtual Threads by masklinn on Thursday March 16, 2023 @08:44AM (#35181120)
> What I do like to see in C# is something akin to goroutines from Go or actors in Elixir.

A task is equivalent to a goroutine.

Re:Guide to Java Virtual Threads by DeathArrow on Thursday March 16, 2023 @02:25PM (#35186133)