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…

Mini-rust in Rust 008: Refactoring our parser

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 – 45: Unsafe types and examples

September 27, 2024 [Programming, Programming Languages, Rust, Tech, Videos] A look at some types of code you would use if you were doing unsafe Rust, and some types of unsafe code you might want to use. Series: Language basics, More syntax, Traits and generics, Building applications, Concurrency and parallelism, Trait objects, Async, Not safe This…

Breaking down the differences between traditional togel and its online counterpart.

Togel, a popular numbers-based game of chance with roots in Southeast Asia, has evolved significantly over the years. While traditional togel and online togel share the same fundamental mechanics, there are several key differences between the two. These differences span across accessibility, gameplay features, and the overall player experience. Let’s explore these distinctions: 1. Accessibility…

Rust 101 – 46: Exercises for module F (q1)

07 October 2024 [Programming, Programming Languages, Rust, Tech, Videos] Coding a linked list based on raw pointers in Rust. Series: Language basics, More syntax, Traits and generics, Building applications, Concurrency and parallelism, Trait objects, Async, Not safe This section (Async): 42: Why is it unsafe?, 43: Meaning of unsafe, 44: Undefined behavior, 45: Type unsafe,…

Mini-rust in Rust 007: Evaluating operations

Now that we can break it down, let’s evaluate it. By the end of this, we should be able to use our little language as a mini calculator (just to add up so far). You can find the source code at codeberg.org/andybalaam/milk and more of my stuff at artificialworlds.net Game Online Gaming Hub

Caution: stay away from WordPress

October 16, 2024 [Writing] Here’s a heads up: I’m actively working on moving this blog from WordPress, to a static site built using Zola. I plan to keep as many URLs working as possible, and the RSS feed URLs should not change. (With any luck, the permalinks inside won’t change either, but I won’t retain…

Mini-rust in Rust 006: Unraveling operations

We’re finally ready to break it all down! Our lexer can do almost enough to let us handle “3 + 5”, so we’ll set that up, and then parse that expression into a syntax tree. You can find the source code at codeberg.org/andybalaam/milk and more of my stuff at artificialworlds.net Game Online Gaming Hub