Rust 101 – 39: Exercises for module E (q1b)

August 20, 2024 [Programming, Programming Languages, Rust, Tech, Videos] Writing a disposable queue using Rust’s async, this time with a little help. To see the training code as I recorded the video: git clone cd teach-rs git checkout 95d9927 Series: Language basics, More syntax, Traits and generics, Building applications, Concurrency and parallelism, Trait objects, asynchronousNot…

Mini-rust in Rust 012: Parsing with backtracking

We’ve made a toy decomposer, but it won’t last long. We need to make it a little more precise. In particular, we must be able to look forward, and then backward. You can find the source code at codeberg.org/andybalaam/milk and more of my stuff at artificialworlds.net Game Online Gaming Hub

Rust 101 – 40: Practice for module E (q2a)

August 22, 2024 [Programming, Programming Languages, Rust, Tech, Videos] Wrote a small chat server in async Rust. To see the training code as I recorded the video: git clone cd teach-rs git checkout 95d9927 Series: Language basics, More syntax, Traits and generics, Building applications, Concurrency and parallelism, Trait objects, asynchronousNot safe, FFI This section (Async):…

Rust 101 – 41: Exercises for module E (q2b)

August 22, 2024 [Programming, Programming Languages, Rust, Tech, Videos] Wrote a mini client to connect to our async Rust chat server. To see the training code as I recorded the video: git clone cd teach-rs git checkout 95d9927 Series: Language basics, More syntax, Traits and generics, Building applications, Concurrency and parallelism, Trait objects, asynchronousNot safe,…

Mini-rust in Rust 011: Parsing tasks plus expressions

Last time we gave a task statement. This time: break it down, so we’re ready to execute! You can find the source code at codeberg.org/andybalaam/milk and more of my stuff at artificialworlds.net Game Online Gaming Hub

Rust 101 – 42: Why do we need to be unsafe?

06 September 2024 [Programming, Programming Languages, Rust, Tech, Videos] There is a special mode in Rust programs called unsafe – why do we need it? Series: Language basics, More syntax, Traits and generics, Building applications, Concurrency and parallelism, Trait objects, Async, Not safe This part (Async): 42: Why is it unsafe?43: Meaning of unsafe, 44:…

Mini-rust in Rust 010: Lexing tasks

We are ready to make the appropriate statements: specifically the “let” statements that will assign values ​​to variables. You can find the source code at codeberg.org/andybalaam/milk and more of my stuff at artificialworlds.net Game Online Gaming Hub

Rust 101 – 43: Two meanings of “unsafe” in Rust

07 September 2024 [Programming, Programming Languages, Rust, Tech, Videos] That unsafe keywords in Rust mean two things: “You have to read the docs!” or “I promise I’ve read the docs and followed the rules!”. Series: Language basics, More syntax, Traits and generics, Building applications, Concurrency and parallelism, Trait objects, Async, Not safe This section (Async):…

Mini-rust in Rust 009: Handling parsing errors

Our parser is somewhat functional, but needs some work to make it not so bad. We realize that we’re doing some things awkwardly or wrongly, so let’s fix them before they get out of hand. You can find the source code at codeberg.org/andybalaam/milk and more of my stuff at artificialworlds.net Game Online Gaming Hub

Rust 101 – 44: Undefined behavior

September 16, 2024 [Programming, Programming Languages, Rust, Tech, Videos] If you write unsafe Rust, you need to consider “undefined behavior”. We discuss what this means, and try to develop intuition about why we can’t predict how our program will behave if we don’t follow the rules. Series: Language basics, More syntax, Traits and generics, Building…