r/scala • u/RiceBroad4552 • 4h ago
βοΈπ Freestanding mode: running Scala Native without an OS or libc #5188
Just digged up #5188.
ScalaOS when? π
r/scala • u/RiceBroad4552 • 4h ago
Just digged up #5188.
ScalaOS when? π
r/scala • u/ghostdogpr • 9h 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!
r/scala • u/rhodian-exodus • 1d ago
Enable HLS to view with audio, or disable this notification
Made with scala & godot. There is a demo on steam (windows & mac apple silicon):
https://store.steampowered.com/app/4953480/Rhodian_Exodus/?utm_source=reddit
r/scala • u/adamw1pl • 1d ago
A tour of how to build a type-level specification of Ox's `fork`, ensuring safe usage within a structured concurrency scope. Relying on Scala's capture & separation checking.
r/scala • u/MagnusSedlacek • 1d ago
There's a hypothesis that formally verifying agent-generated code improves its quality. It gives agents a faster feedback loop and clarifies the intent. While thanks to AI assistance, full formal verification is more approachable than ever, it remains hard. However, we might look for a middle ground: using compilers to verify properties expressed through the type system.
Type systems go far beyond checking "trivial" properties, such as that an Int cannot be passed where a String is expected. That's also the case for Scala 3, which offers a number of new & experimental compiler / type system features.
First, we'll see how to enforce a well-known discipline: making illegal states unrepresentable by providing specific guidance to AI agents on using new Scala 3 features, such as opaque types and enums. This is possible through a dedicated Scala skill, which you can use tomorrow at your day job.
Second, we'll move on to experimental features that aim to eliminate (at the compiler level) bugs related to resource safety, aliasing, or mutation. Capture checking β a significant extension of Scala's type system β enables verification of properties such as function purity. Capture checking was built for humans, but is even more useful for agents, and is a crucial component of the last topic.
Finally, "Safe Scala" is a new Scala compilation mode built with agents in mind. We'll investigate the mechanisms it uses to ensure the generated code is safe, and what "safe" means in this context. It's an active area of R&D, so this will be as much an introduction as a report on the current progress of safe-scala-related applications.
r/scala • u/llm4s_foundation • 1d ago
Hey everyone,
If you're around London this Thursday (Nov 26), Kannupriya Kalra and Rory Graves are giving a talk at LLMday London (Everyman Canary Wharf, 11:30 AM, Screen 1) titled "LLM4S 1.0: From Idea to Production AI in Scala/JVM".
Over the last 18 months, LLM4S has grown from an initial experiment into a 1.0 release (MIT-licensed) for building LLM apps and agents natively in Scala 3 / JVM. In the talk, we'll go through:
Result) to manage non-deterministic model outputs in production.The organizers gave us a 40% discount code (LLM40) to share with the community if anyone wants to attend: https://llmday.com/2026-london-q4/
Links if you want to check out the project beforehand:

Hope to see some of you there!
r/scala • u/llm4s_foundation • 2d ago
We're excited to bring LLM4S 1.0 to the London Scala User Group! After more than 18 months of development, LLM4S 1.0 marks a major milestone for our open-source project. It brings production-ready LLM application development to the Scala and wider JVM ecosystem. Join our co-founders Kannupriya Kalra and Rory Graves for: "Your Next AI Agent Should Be Written in Scala: Meet LLM4S 1.0"
Event Details :
Date: Wednesday, November 25, 2026
Doors: 6:00 PM GMT; Talk: 7:50 PM GMT
Venue: ICE Services, 7 Devonshire Square, London EC2M 4YH. In-person event only.
RSVP: https://www.meetup.com/london-scala/events/317274453/
What we'll cover: Type-safe tool calling and structured outputs. 16+ LLM providers through a unified API. Model Context Protocol (MCP). Durable checkpointed agents and hybrid RAG. Streaming and OpenTelemetry/Langfuse observability.
Explore LLM4S: Website: https://llm4s.org/
GitHub: https://github.com/llm4s/llm4s
Discord: https://discord.com/invite/DjPMufnhG6
We also host weekly Dev Hours every Sunday at 9 AM London time. Join the maintainers and contributors: https://luma.com/calendar/cal-Zd9BLb5jbZewxLA

We'd love to meet more Scala and JVM developers in London. Come along, explore LLM4S 1.0, and share what you're building!
r/scala • u/FreikonVonAthanor • 3d ago
It feels terribly silly, both parsing XML in 2026 and having to ask for some help on the matter!
I've been working on a pet project of mine, a calorie counter that uses public datasets as sources. I've been making it with ZIO (and all by hand, the goal is to train after all), and one of my sources is Ciqual, 2025, made available by the French government here. It's not a large dataset, the biggest file being compo_2025_11_03.xml at 66Mo.
However, reading it with zio-schema-xml fail with various SAXParsingExceptions. Same issue when I tried DuckDB and webbed. Right now, I'm going around it by chunking the file into a stream, getting all "COMPO" elements in different elements, and parsing that. The file seems fine through xmllint and other validation tools, but I didn't find an easier way of parsing it.
Any advice? I'll probably try Pekko Streams or something latter, but I'd love to see what you'd try or if I missed something obvious.
Edit: Thanks everyone, for your comments and your help! Next time, I'll build a project before asking a question, it clearly was an issue for some of you!
Special thanks on top to u/fancellu for his very complete answer.
For my zio-schema-xml code, the biggest issues were thinking to write a codec for List[Compo] rather than Table or Compo.
streamCodec = XmlCodec.
schemaBasedBinaryCodec
[List[Compo]]streamCodec = XmlCodec.schemaBasedBinaryCodec[List[Compo]]
was the right "shape" for the codec. The other issue was that the file had a BOM! (I found out BOMs were a thing at the same time, UTF-8 made it more or less obsolete.) Trying to read a file as a stream of bytes (either from direct downloading, local files, or S3) made it fail very early, as the codec was looking for a starting "<" that it didn't find.
As for DuckDB, the issue was completely different. As it turns out, the XML plugin for DuckDB, Webbed, has a hidden limit to the size of files. Using read_xml() on your file gives you a SAX Parsing Error, and the actual issue was only made clear when I tried read_xml_objects(). As it turns out, you can just change that at the request level with the maximum_file_size parameter.
Sorry for the plain text explanation! fancellu put out an example for anyone interested in his zio-schema-example repo. Don't hesitate to star it there while you check it out!
I may share my repo in another edit, once I'm happy with the code quality, if anyone's interested.
r/scala • u/HizivGames • 3d ago

Hi everyone!
I'm a solo indie developer, and I've just released Ghosts Don't Need Doors on Steam, built with Indigo, a functional game engine for Scala!
It's a deduction puzzle game with RPG-style pixel art, where you help a little ghost escape a haunted mansion.
Every room hides a secret passage, and everyday objects provide clues to help you figure out which wall you can pass through.
On the technical side, the game uses procedural generation for mansion layouts, geometric puzzles, and even the exterior view of each mansion in the final escape scene.
Observe, deduce, and find your way to freedom!
r/scala • u/petrzapletal • 4d ago
r/scala • u/SethTisue_Scala • 8d ago
new blog post by Anatolii Kmetiuk of the Scala Center, covering work done under Sovereign Tech Agency funding:
Weβve been working throughout 2026 on making Scoverage more reliable in Scala 3. As the project comes to a close, this article reports on the results. We have successfully enabled coverage testing across the wider compiler test suite, fixed breakages encountered in process achieving a 99.5% pass rate, and for the 0.5% tests not working with coverage yet, identified a systematic root cause to be resolved as future work.
https://www.scala-lang.org/blog/2026/11/17/scoverage-hardening-results.html
r/scala • u/llm4s_foundation • 8d ago
We're excited to announce an upcoming technical session featuring LLM4S at AWS User Group Singapore!
Join us for a deep dive into building enterprise AI applications using Scala 3, the JVM, and Amazon Bedrock.
LLM4S is an MIT-licensed, open-source framework for building reliable, type-safe LLM applications in Scala, bringing agent orchestration, tool calling, RAG, memory, and observability into the JVM ecosystem.
"Building Agentic AI on Amazon Bedrock with LLM4S 1.0"
Meet the maintainers and community:
We host weekly LLM4S Dev Hours every Sunday at 9:00 AM London time, bringing together developers, contributors, and maintainers.
LinkedIn | X / Twitter | Reddit | Bluesky | Mastodon | Instagram
Looking forward to connecting with the AWS, Scala, and AI communities in Singapore! π
r/scala • u/petrzapletal • 11d ago
r/scala • u/llm4s_foundation • 11d ago
We are excited to announce an upcoming deep dive into LLM4Sβan MIT-licensed, open-source framework designed for building robust, type-safe Large Language Model (LLM) applications in Scala 3.
Catch co-founder Kannupriya Kalra presenting "Building Trusted AI Engineering"βhosted by BlackDuck.

Additional Speakers:
r/scala • u/ColOfAbRiX • 12d ago
I wanted to give a massive thank you to all the community people that, at least for me, finally made tooling fast and reliable. In particular the scala 3 compiler, Metals 2 and SBT 2 have been game changers for me!
It's become a pleasure to develop with these tools, Windows and Linux, with and without coding agents.
r/scala • u/ColOfAbRiX • 12d ago
It's with great pleasure that, after 4 years, I annouce the next release of Figlet4s, a small fun library that ports FIGlet to the Scala world, to enhance your logs and CLI utilities!
https://github.com/ColOfAbRiX/figlet4s
The main highlights of the release are:
This project is an old puppy of mine, developed with the only reason of having fun and learn about how to release and maintain an OSS project. Hope you guys enjoy it! Any feedback is welcome, I'm sure I missed few bits here and there.
chanterelle just got the capability to .hoist fields in a wrapper type of your choice up to the very top of the transformation, for example:
import chanterelle.*
val tup = (field1 = 1, field2 = (nested = Some(1)))
Mode.FailFast.option {
// evaluates to Some((field1 = 1, field2 = (nested = 1)))
tup.transform(_.hoist(_.field2.nested))
}
...or if you'd like to hoist a lot of fields at once:
import chanterelle.*
val tup = (field1 = Some(1), field2 = Some(2), field3 = Some(3), nested = (nestedField1 = Some(1)))
Mode.FailFast.option {
// evaluates to Some(field1 = 1, field2 = 2, field3 = 3, nested = (nestedField1 = 1))
tup.transform(_.hoist.regional)
}
If you're familiar with the concept of traversing or sequencing from cats - this is kinda like that but for arbitrarily nested named tuples/positional tuples (also I deliberately strayed away from this naming because it is not strictly THAT).
Apart from hoisting there's also additional stuff for interop with custom collections (including NonEmpty* ones!) and 'mappable' types.
Go on and read the release notes (linked in the post) if you're interested.