It was never so easy to get YouTube subscribers
Get Free YouTube Subscribers, Views and Likes

Wojciech Mazur - Explaining Different Coroutine Flavours using Scala Native

Follow
Scala Days Conferences

Multiple modern languages are already using or introducing some kind of coroutines. Stackless coroutines are one of the main features of Kotlin, however, their different, stackfull, variant is powering the project Loom and the Java Virtual Threads. Coroutines are so trendy, that even C++ received support for them! It looks like everyone wants to use them! But, do you know how they work? What are their limitations?

In this talk, I will explain to you everything you need to know to get a better understatement of this powerful feature. What’s more, we’ll try to see how we can add them to Scala Native runtime. We’ll take a quick look at how the LLVM backend can transform our regular functions into welloptimized continuations, and how we might do the same using AST transformations in the Scala compiler. We’ll also acknowledge how operating systems can let us create userscheduled threads, also known as green threads.

posted by estascatstq