Skip to content

Instantly share code, notes, and snippets.

View lbialy's full-sized avatar

Łukasz Biały lbialy

View GitHub Profile
@lbialy
lbialy / mbp-pro-m1.txt
Last active August 3, 2025 20:46
CE 3.7.0-RC1: Queue parallel producer & consumer - Scala JVM vs Scala Native vs GraalVM
----------------------------------------
mode lto gc cap ms
----------------------------------------
jvm n/a n/a 1024 217
graalvm-ni n/a n/a 1024 342
release-full full commix 65534 517
release-fast full commix 65534 523
release-size full commix 65534 554
jvm n/a n/a 65534 555
release-full full immix 65534 562
@lbialy
lbialy / yield.scala
Created September 19, 2025 14:13
Different thread yielding techniques with Loom
//> using scala 3.7.3
//> using dep com.softwaremill.ox::core:1.0.0
import scala.concurrent.duration.*
import java.time.Instant
import ox.*
import scala.util.boundary
import java.util.ArrayList
import java.util.concurrent.locks.LockSupport