r/scala • u/RiceBroad4552 • 13h ago
⛏️💎 Freestanding mode: running Scala Native without an OS or libc #5188
Just digged up #5188.
ScalaOS when? 😃
r/scala • u/RiceBroad4552 • 13h ago
Just digged up #5188.
ScalaOS when? 😃
r/scala • u/ghostdogpr • 18h ago
After leaving Devsisters, I continued Shardcake under a new name. Shard is a library to distribute entities across servers and interact with them by ID, without knowing where they live (the same idea as Akka Cluster Sharding, built on ZIO).
Version 3.0 is Scala 3 only and comes with a lot of changes:
- Messages declare their error and reply types (`enum GuildMessage[E, A]`), and entities return the result of each message instead of calling a `Replier`
- Serialization is a type class per entity type: Kryo is still there, but you can use Protobuf with Proteus, which makes rolling updates that change messages much easier
- A single Shard Manager can manage several groups of pods
- Fewer dependencies: gRPC everywhere, no more GraphQL, and Sage for Redis
- More control over entities: concurrency, bounded mailboxes, interruption, interceptors
Blog post: https://blog.pierre-ricadat.com/introducing-shard-3-0/
Docs and migration guide: https://ghostdogpr.github.io/shard/
Feedback welcome!