Beyond Loom

Eric Kolotyluk eric at kolotyluk.net
Thu Feb 15 05:31:55 UTC 2024


Years ago I tried playing with 'Delimited Continuations' in Scala.

I seriously hurt my brain. 😱

Eventually, some yahoos implemented Delimited Continuations in Loom, and 
life was better. 🥳

I really enjoy Virtual Threads and Structured Concurrency, but now I 
wonder what is next. 🤔

I can program in Scala and Kotlin just fine, but there is a high 
cognitive load sometimes... I am always looking to Java where my brain 
can relax, where it's Five O'Clock Somewhere. 😎

I have been looking at 'Effects Systems' a lot, but there is still a lot 
to learn. 😳

Probably one of the best videos I have seen is Effect Systems in Scala: 
An introduction <https://www.youtube.com/watch?v=AvwlvRp3d3w>.

While I have been playing with FS2 <https://fs2.io>, I really want to 
wrap my brain around Algebraic Effects, and I am wonder where Caprese 
<https://twitter.com/odersky/status/1546552401368334339?lang=en> is 
going? Cats Effect and Zio look interesting, and necessary for FS2, but 
neither seem to be based on Algebraic Effect as explained in DIRECT 
STYLE SCALA <https://www.youtube.com/watch?v=0Fm0y4K4YO8>.

I am not telling the Loomers what to do, I and just speculating on where 
they go after Loom. 🧐

I also found Haskell'23] The Evolution of Effects 
<https://www.youtube.com/watch?v=m821Vz8N_bo> very satisfying, as a way 
to update my dormancy in Computing Science in recent years.

Java Streams are a big disappointment, in that we should be able to hang 
those methods off the collections directly, so they are not lazy... the 
way Scala separates Collections from Views. Sometimes you don't want the 
overhead of a Stream, as I discovered play with Loom. Not a biggie, just 
a gotcha. Maybe with Effects and Resources, we cannot do that?

But, those Java Architects, they sure seem good at paying attention to 
future proofing Java, and on a six month release cycle, it is really 
entertaining, and useful to see what they come up with next...

Cheers, Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20240214/8be917f4/attachment.htm>


More information about the loom-dev mailing list