LOADING

Safer Code with LLMs: Scala Types Silver Bullet?

Code generation is one of the most promising applications of large language models (LLMs), offering substantial productivity boosts for developers. However, this benefit is tempered by serious concerns surrounding the correctness and security of the generated code - especially outside the happy path.

Andrei Kucharavy
Professor @ HES-SO Valais
About This Talk

Code generation is one of the most promising applications of large language models (LLMs), offering substantial productivity boosts for developers. However, this benefit is tempered by serious concerns surrounding the correctness and security of the generated code - especially outside the happy path.

Several solutions have been put forward to mitigate this, ranging from agentic code review to exhaustive test generation to formal verification.

In this talk, I present evidence from our research that these approaches are not currently sufficient to mitigate those concerns and instead suggest an alternative, more viable path forward based on the Scala type system.

I conclude by offering an insight from the perspective of LLM developers on why this approach is working and how even more secure coding LLMs can be developed, thanks to Scala features.

more great talks

Might Be Interesting

Day 1
  —  
2:35 pm
arrow pointing right icon

Beyond `flatMap`: Is Kyo the Future of Scala Effects?

For nearly a decade, Scala's concurrency has been driven by Akka, Cats Effect and ZIO, each with its own vision for purity, safety, and pragmatism. Kyo enters this incredible ecosystem with a fresh perspective.This talk provides a critical, technical comparison of these systems through a unified framework.

Day 1
  —  
8:00 pm
arrow pointing right icon

Scalar Afterparty

Don't miss out on this opportunity to connect with Scalar community and create lasting memories!

Day 1
  —  
9:00 am
arrow pointing right icon

How can we trust our agents?

In my talk I will argue that we can do much better by relying in a systematic way on types and capabilities.

Day 1
  —  
12:25 pm
arrow pointing right icon

Protobuf Goes Scala-First

Protobuf is commonly associated with code generation. However, in large projects with tens of thousands of message definitions, this approach can lead to an overwhelming amount of generated code. In this talk, I’ll share my journey in search of a different approach to this problem.

Day 1
  —  
4:50 pm
arrow pointing right icon

Effects as Capabilities

When writing software, we currently seem to have to choose between an imperative style - easy to read and write, hard to reason about - and a monadic style - hard to read and write, easy to reason about.This talk is about being greedy and getting the best of both worlds, because we deserve it.

Day 2
  —  
9:00 am
arrow pointing right icon

NamedTuples in Action

I would like to present the use of NamedTuples to implement some cool things in SQL Libraries

See All Events
Join us!

We're looking for amazing speakers.
CFP is open till 10.01.2023

Fill in Call for Papers
location icon

Location

Centrum Konferencyjne POLIN, Poland
stay in touch icon

Follow Us

Contact Us