r/scala • • 2h ago

Shardcake is now Shard: introducing Shard 3.0

Thumbnail blog.pierre-ricadat.com
17 Upvotes

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 • • 19h ago

An RTS game made in scala 3

58 Upvotes

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 • • 1d ago

Verifying Structured Concurrency with Scala's capture checking

Thumbnail virtuslab.com
34 Upvotes

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 • • 18h ago

[London, Nov 26] Talk: LLM4S 1.0: From Idea to Production AI in Scala/JVM at LLMday London

5 Upvotes

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:

  • Building to 1.0: What worked, what failed, and how the architecture evolved.
  • Scala for LLM apps: Using strong types and explicit error handling (Result) to manage non-deterministic model outputs in production.
  • Live demos: Multi-provider support, typed tool calling, MCP, agent orchestration, memory, and observability.

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 • • 1d ago

The Scala 3 Features for Agentic Development by Adam Warski at Func Prog Conf

Thumbnail youtu.be
17 Upvotes

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 • • 20h ago

Is it worth it investing time on scala in 2027

Thumbnail reddit.com
7 Upvotes

r/scala • • 1d ago

[London Meetup, Nov 25] LLM4S 1.0: Building Production AI Agents on the JVM (Live Demos)

9 Upvotes

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 • • 2d ago

Black Friday offer on Rock the JVM

Thumbnail rockthejvm.com
32 Upvotes

r/scala • • 2d ago

Can't parse an XML file in Scala!

7 Upvotes

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 • • 2d ago

Who needs doors when you're a ghost? My deduction puzzle game just launched on Steam!

16 Upvotes
Every object projects exclusion zones onto the walls. Can you use these clues to uncover the hidden passages?

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!

πŸ‘» Ghosts Don't Need Doors on Steam


r/scala • • 3d ago

sbt 2.1.1 released

Thumbnail eed3si9n.com
23 Upvotes

r/scala • • 3d ago

This week in #Scala (Nov 23, 2026)

Thumbnail thisweekinscala.substack.com
14 Upvotes

r/scala • • 6d ago

Scala Without the JVM: Close to Rust's Speed, With 25x Less Memory Than the JVM

Thumbnail wvlet.org
172 Upvotes

r/scala • • 7d ago

Announcing Scala.js 1.23.0

Thumbnail scala-js.org
79 Upvotes

r/scala • • 7d ago

coursier 2.1.27 is out

28 Upvotes

The 2.1.27 version of coursier has just been released. The release notes are here. This release fixes a large number of mild security issues, updating is recommended to every one.


r/scala • • 8d ago

Scoverage hardening in Scala 3: Results and next steps

37 Upvotes

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 • • 7d ago

πŸ‡ΈπŸ‡¬ LLM4S at AWS Singapore: Building Agentic AI on Amazon Bedrock with LLM4S 1.0

Post image
3 Upvotes

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.

πŸ—“οΈ Featured Event: AWS User Group Singapore

"Building Agentic AI on Amazon Bedrock with LLM4S 1.0"

πŸš€ Technical Highlights

  • Amazon Bedrock: Model inference through the Converse API, IAM-based authentication, and private connectivity using VPC endpoints.
  • Agent Orchestration: LLM4S-powered agents, typed tool calling, and integration with internal APIs.
  • RAG & Memory: Building an enterprise knowledge assistant using documents stored in Amazon S3.
  • Observability: End-to-end tracing and metrics integrated with AWS CloudWatch and X-Ray.
  • Enterprise Architecture: Mapping the solution to AWS Well-Architected principles and exploring LLM4S 1.0 capabilities.

πŸ› οΈ Resources & Community

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.

Connect With Us

LinkedIn | X / Twitter | Reddit | Bluesky | Mastodon | Instagram

Looking forward to connecting with the AWS, Scala, and AI communities in Singapore! πŸš€


r/scala • • 10d ago

sbt 2.1.0 released

Thumbnail eed3si9n.com
59 Upvotes

r/scala • • 10d ago

Introducing a layering-checker plugin for Scala

Thumbnail alexitc.com
14 Upvotes

r/scala • • 10d ago

This week in #Scala (Nov 16, 2026)

Thumbnail thisweekinscala.substack.com
14 Upvotes

r/scala • • 11d ago

Singapore meetup, 17 Nov: LLM4S 1.0, building production AI in Scala/JVM (live demos)

9 Upvotes

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.

Core Architectural Features

  • Multi-Provider Clients: Unified abstractions for seamlessly integrating diverse LLM providers.
  • Typed Error Handling: Leveraging Scala 3’s advanced type system for compile-time safety and deterministic failure recovery.
  • Agent Orchestration: First-class support for autonomous agents equipped with custom tools, rigorous guardrails, and Model Context Protocol (MCP) compliance.
  • Advanced RAG & Tracing: Native pipelines for Retrieval-Augmented Generation and end-to-end observability.

πŸ—“οΈ Featured Event: Open Source Singapore Meetup

Catch co-founder Kannupriya Kalra presenting "Building Trusted AI Engineering"β€”hosted by BlackDuck.

Event graphic for Kannupriya Kalra's talk LLM4S 1.0: From Idea to Production AI in Scala/JVM, at the Open Source Singapore Meetup. LLM4S and OSSG logos over a purple-tinted night view of Marina Bay, with a circular photo of Kannupriya. Tuesday 17 November 2026, 6:30 to 8:30 PM SGT, 5 Temasek Blvd, Level 17, Singapore. Hosted by Black Duck. QR code linking to github.com/llm4s/llm4s.
  • Date: Tuesday, 17 November
  • Time: 6:30 PM – 8:30 PM SGT
  • Location: 5 Temasek Blvd, Level 17, Singapore
  • Registration: In-person attendance requires host approval via Luma Registration.

Agenda & Technical Sessions

  1. The LLM4S Journey: From the initial commit to the stable 1.0 release.
  2. Type-Driven AI: Why Scala's type system is a game-changer for reliable, production-grade AI systems.
  3. Live Technical Demos: Real-time walkthroughs covering LLM integration, tool calling, MCP implementation, agent execution flow, and telemetry.

Additional Speakers:

  • Ilya Verbitskiy on building and scaling AI-native engineering teams.
  • Matthew Alex sharing practical insights and lessons learned from benchmarking LLMs.

πŸ› οΈ Resources & Community

Connect With Us


r/scala • • 11d ago

Thanks for all the work!

117 Upvotes

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 • • 12d ago

Figlet4s 0.4.0

21 Upvotes

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:

  • Support for Scala 3 (releasing under 3.3.9 LTS)
  • Complete clean split between vanilla and effectful API to remove all dependencies
  • Upgraded to Cats Effect 3
  • More built-in fonts, more figlet features!

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.


r/scala • • 12d ago

chanterelle 0.1.7 - `.hoist`-ing and other interop goodies

Thumbnail github.com
14 Upvotes

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.