← Retour au blog
tech 31 May 2026

Racket v9.2: Key Features and Improvements

Racket v9.2 introduces major improvements, including better handling of non-linear patterns and complex number processing. Learn how this release might affect your code.

Introduction

The release of Racket v9.2 marks a significant milestone for developers using this versatile programming language. With significant changes in the handling of non-linear patterns and improvements for Typed Racket's types, this update has much to offer. Let's take a closer look at the new features and how they might influence your development.

Improved Handling of Non-linear Patterns

One of the major updates in Racket v9.2 is the improved handling of non-linear patterns in match forms. Now, when a pattern uses the same variable multiple times, the parts of the pattern must be equal. This ensures greater consistency and can prevent potential runtime errors.

Potential Impact on Existing Code

However, this improvement might also cause issues with existing code where non-linear patterns were used without this check. It is crucial to test your code with this new version to avoid unpleasant surprises.

Enhanced Types for Complex Functions

Typed Racket's types for the asin and acos functions have been adjusted to handle cases where these functions return complex numbers more accurately. This means you can now avoid incorrect results that might have occurred with previous versions.

New Features and Various Improvements

"ffi2" Foreign Interface

Racket v9.2 introduces internal support for a more static foreign interface, called "ffi2," which will be used in a future package. This feature promises to enhance how Racket interacts with other languages.

Terminal File Management

The terminal-file-position function now counts bytes written to ports connected to a terminal, such as stdin and stderr. This can be particularly useful for debugging and managing data streams.

Conclusion

Racket v9.2 represents a significant advancement with performance improvements and new features that enrich the development experience. Whether you're a seasoned developer or new to Racket, this update is worth exploring to leverage its potential.

Let's discuss your project in 15 minutes.

Racket v9.2 non-linear patterns Typed Racket ffi2
Deepthix newsletter · 100% AI · every Monday 8am

An AI agent reads tech for you.

Our AI agent scans ~200 sources per week and ships the best articles to your inbox Monday 8am. Free. One click to unsubscribe.

Visit the newsletter page →

Want to automate your operations?

Let's talk about your project in 15 minutes.

Book a call