The Rust Programming Language with Examples

Facoltà di scienze informatiche - Segreterie degli studi

Data: 20 novembre 2024 / 09:00 - 11:00

USI East Campus, Room D0.02

Speaker: Austen Nelson, Portland State University, Portland Oregon, United States

Biography: Mathematics PhD candidate at Portland State University with main research focuses of numerical linear algebra algorithms and their implementations in high performance computing environments

Abstract: Rust is a statically typed general purpose programming language focused on low level and systems programming applications which require consistent high performance. Designed as being an alternative to C++ but with a focus on safety and correctness. For more information visit https://www.rust-lang.org.

This seminar is a two hour introduction to the Rust programming language. The first hour will be faster paced and mostly examples / lecture style (but still open to interruptions and questions). The focus topics will be:

- Using 'cargo' to build and run programs with CLI examples that do IO and argument parsing
- Basic Type System (primitives, structs, enums, compound types, and error handling)
- Ownership (references, borrowing, mutability, and lifetimes / memory management)
- Advanced Type System (generics, traits, and matching)
- Functional Features (closures, iterators / combinators, and higher order functions

In the second hour we hack a small application together.

Ideas for such application are available at the following link https://gist.github.com/aujxn/eb6acb8e248354908f9584cc907bf67f, please leave a comment with your preferences/suggestions.

Host: Dr. Patrick Zulian

Virtual participation is possible by clicking here.