# Scala 3.8.3 is now available!

DevFeed: [Scala 3.8.3 is now available!](<https://devfeed.tech/articles/scala-3-8-3-is-now-available-43573.md>)

Original publisher: [Read original article](<https://www.scala-lang.org/news/3.8.3/>)

Published: 2026-03-30T22:00:00Z

Content type: release

Language: en

Sources: [The Scala Programming Language](<https://devfeed.tech/sources/the-scala-programming-language.md>)

Topics: [Scala](<https://devfeed.tech/topics/scala.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [test-coverage](<https://devfeed.tech/topics/test-coverage.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>)

Tags: [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [coverage](<https://devfeed.tech/tags/coverage.md>), [performance](<https://devfeed.tech/tags/performance.md>), [programming](<https://devfeed.tech/tags/programming.md>), [scala](<https://devfeed.tech/tags/scala.md>), [scala-3](<https://devfeed.tech/tags/scala-3.md>)

## AI overview

Scala 3.8.3 is available with local coverage exclusions, an experimental safe mode for capability-safe and untrusted code, and the Scala 2 JVM backend optimizer ported to Scala 3.

## Source excerpt

Scala 3.8.3 is now available! Release highlights Local coverage exclusions with // $COVERAGE-OFF$ blocks (#24486) Coverage-instrumented builds can now disable coverage for a selected region of code, instead of excluding a whole file or class. This is useful for generated code, intentionally defensive branches, or support code that would otherwise distort coverage results. //> using scala 3.8.3 //> using options --coverage-out coverage-data class Parser: def parse(input: String): Int = input.toInt // $COVERAGE-OFF$ def debugFallback(input: String): Int = if input == "zero" then 0 else -1 // $COVERAGE-ON$ @main def CoverageTest = { val parser = Parser() assert(parser.parse("42") == 42) } Only the code between the markers is skipped by coverage instrumentation. The rest of the file is still measured as usual. Safe mode for capability-safe code (#25307) Scala 3.8.3 introduces safe mode, a new experimental language subset that can be enabled with import language.experimental.safe or -language:experimental.safe. As described in the safe mode reference, this is not just "stricter capture checking": it is a capability-safe subset intended for agent-generated or otherwise untrusted code. The underlying model is also described in the research paper Tracking Capabilities for Safer Agents, which proposes using Scala 3 with capture checking as a programming-language-based safety harness for AI agents. When safe mode is enabled, the compiler rejects unchecked casts and unchecked pattern matches, forbids escape hatches such as caps.unsafe, @unchecked, and runtime reflection, turns on capture checking with mutation tracking, and restricts access to global APIs unless they are known-safe or explicitly reviewed. That last point is what makes the feature practical. Safe code is meant to call a restricted set of APIs directly, while effectful or implementation-dependent behavior can still be exposed through wrappers marked @assumeSafe. The implementation in #25307 makes that boundary e