Procedural Macros for Network Programming (and everything else)

Talk by Moritz Gutfleisch at our third "Nix Your Bugs & Rust Your Engines" meetup in Heidelberg on April 29, 2024. Procedural macros allow executing functions that produce Rust syntax at compile time. They allow for very sophisticated code generation and can drastically reduce boilerplate and redundancies. We'll look at how these macros can be used to make dissecting and handling network packets significantly more convenient to motivate them. Then, we'll learn how to write them and what tools the Rust ecosystem provides us to do so.

LicenseDefault alugha License

More videos by this producer

Flake it until you make it: Nix Flakes in a Nutshell

by Stefan Machmeier The flakes experimental feature is a major development for Nix, it introduces a policy for managing dependencies between Nix expressions, it improves reproducibility, composability and usability in the Nix ecosystem. Although it's still an experimental feature, flakes have been

Reading from Streams and Writing to Sinks

by Benjamin Sparks Robust data streaming is a complex task, requiring low runtime overhead, safe buffer management, and robust error handling. To address these challenges, this talk showcases managing data streams in Rust, by using the well-known Tokio libraries to asynchronously read from and writ

Using NixOS for Pragmatical Self-hosting

by Andre Dossinger Nix and NixOS enable new ways of managing systems. This talk is about using and abusing NixOS within a self-hosting setup. Do not expect best practices from this talk, but insights into how NixOS can be used in a problem oriented manner to preserve privacy and make complex setups