Magdeburger DevDays: Why I Think Everybody Should Learn Rust

Поделиться
HTML-код
  • Опубликовано: 29 сен 2024
  • Recording of my session at the community conference "Magdeburger Developer Days 2024" (md-devdays.de/....
    Curious about why Rust has consistently been one of the most beloved programming languages? Wondering why its adoption is soaring in major projects like the Linux kernel, Android, Windows, and cloud computing? Join Rainer Stropek in this engaging session for a whirlwind tour of Rust, designed to help you decide if you want to explore this captivating language further. This is NOT a structured into to Rust! It is NOT filled with slides and theory. This hands-on demonstration involves building an end-to-end sample-a socket-based chatbot utilizing the brand-new OpenAI GPT-4o LLM. Along the way, Rainer highlights practical Rust language constructs and tools that he finds invaluable. This is a session by a developer, for developers.
    GitHub Repo: github.com/rst...
    00:00:00 Welcome, intro
    00:04:51 Rust has macros
    00:06:54 Async IO with tokio
    00:09:20 Error handling with Result and anyhow
    00:11:28 No "return" needed
    00:12:45 Setting up socket listener (with await)
    00:16:18 Error propagation ("?")
    00:19:20 Background work with tokio
    00:21:05 Immutable variables
    00:28:30 Handling user input
    00:30:12 enums in Rust
    00:32:17 Arrays
    00:34:09 Reading from socket
    00:35:04 match statement
    00:41:00 Echoing back to user
    00:43:23 More about results
    00:46:13 Using create to access OpenAI GPT 4o
    00:55:03 Closing, summary
    00:57:24 Q&A

Комментарии •