Skip to content
Rust Search
← RustFest 2018

Declarative programming in Rust

Rust Programming Language
RustFest 32:45 4774 views

One of the secret ingredients in many successful, big code bases is that they found a good level of abstraction. One helpful technique is to write declarative code: You describe “what” you want to do, but don’t mix it with the “how”. While this is not specific to Rust, the language and its ecosystem help us write declarative code. This talk will go over some examples, covering famous crates and APIs as well as more obscure ones, to then dive into ways to use this to your advantage in your own co

Player unavailable or embedding blocked? Use the YouTube link above.

Other talks by Pascal Hertleif

rustfix

FOSDEM

Rust programmers often seem happy to get compiler errors. Understandably so, the compiler is known to not just catch what would in other languages become a run time bug, but also to be quite helpful. On top of that, the clippy project adds more than 200 additional lints, to catch even more errors, but also help guide users towards writing more idiomatic code. This talk is about the dream of automatically fixing many of these errors (based on compiler-provided suggestions) with rustfix.

Writing Idiomatic Libraries in Rust

Rust Programming Language
RustFest 27:53 54108 views

The existence of libraries with nice, user-friendly interfaces is one of the most important factors when choosing a programming language. And while there are lots of books about how to write idiomatic libraries in other languages, finding the same information for Rust is more difficult. With this in mind, this talk will present several techniques that help developers take advantage of all that Rust has to offer and create idiomatic APIs: From implementing conversion traits and session types to using custom iterators and decorating built-in types. Pascal Hertleif https://twitter.com/killercup https://github.com/killercup https://users.rust-lang.org/users/killercup/activity