15 Feb, 2025

Mini-Rust in Rust 014: Evaluate the Task

Finally, we will run a piece of real code that actually looks like a programming language! We set the variable to the value, and then use the variable later … You can find the source code at codeberg.org/andybalaam/milk and more of my items in artificialworlds.net Game Online Gaming Hub A gaming hub can refer to […]

1 min read

Rust 101 – 40: Exercise for Module E (Q2A)

August 22, 2024 [Programming, Programming Languages, Rust, Tech, Videos] Write a small chat server on ASYNC Rust. To see the training code like when I recorded the video: git clone cd teach-rs git checkout 95d9927 Series: Basics of language, more syntax, nature and generation, building applications, concurrent and parallelism, objects of trait, ASYNCUnsafe, FFI This […]

1 min read

Mini-rust in Rust 013: Fixed a bug in our lexer

We’ve been facing a strange problem with our lexer: until now it required a space between each token. But, last time we created a backward iterator that we can use to fix this problem, so let’s go ahead and do it. You can find the source code at codeberg.org/andybalaam/milk and more of my stuff at […]

1 min read

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, […]

1 min read

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 A gaming hub can refer […]

1 min read

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: […]

1 min read

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): […]

1 min read

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 A gaming hub can refer to a central platform or space dedicated to gaming, where players can access games, […]

1 min read

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 […]

1 min read

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 A gaming hub can refer to a central platform or space dedicated to gaming, where players can access […]

1 min read