IC Colloquium: Taming null references

Thumbnail

Event details

Date 06.12.2021
Hour 16:1517:15
Location Online
Category Conferences - Seminars
Event Language English
By: Ondřej Lhoták - University of Waterloo
Video of his talk

Abstract
Null references have been called the Billion Dollar Mistake in programming language design for all the errors, crashes, and vulnerabilities that they have caused over several decades. If null references are so bad, why do popular programming languages still promote their use? Do they have essential use cases?

I will report on our efforts to eliminate the disadvantages of null references while keeping support for existing programming idioms. Our implementation is in the Scala language, but our conclusions can also help designers of other new programming languages.

Most uses of null references can be classified as either implementing optional values or initializing groups of related objects. For the former use case, practical alternatives exist, so the main challenge is retaining compatibility with existing codebases. The latter use case requires more fundamental changes in language design, type systems, and static analysis to ensure safety while still allowing widely used data structures and initialization patterns.

Bio
Ondřej Lhoták is an Associate Professor at the University of Waterloo and a Visiting Professor in the LAMP group at EPFL until June 2022.
His research interests are in static reasoning about the behaviour of programs in object-oriented programming languages, with a particular focus on Scala.

More information

Practical information

  • General public
  • Free

Contact

  • Hosts: Martin Odersky

Share