15 Feb, 2025

Rust 101 – 52: Practice for module G (q3)

October 23, 2024 [Programming, Programming Languages, Rust, Tech, Videos] Using cargo-bindgen to generate bindings automates what we need to do to deploy existing C code within a Rust project. Series: Language basics, More syntax, Traits and generics, Building applications, Concurrency and parallelism, Trait objects, Asynchronous, Unsafe, FFI This section (FFI): 49: FFI, 50: Exercise 1, […]

1 min read

Rust 101 – 53: Exercises for module G (q4)

October 23, 2024 [Programming, Programming Languages, Rust, Tech, Videos] Create a custom Python extension in Rust. Series: Language basics, More syntax, Traits and generics, Building applications, Concurrency and parallelism, Trait objects, Asynchronous, Unsafe, FFI This section (FFI): 49: FFI, 50: Exercise 1, 51: Exercise 2, 52: Exercise 3, 53: Exercise 4 Link: The course materials […]

1 min read

Application is important – Andy Balaam’s Blog

October 21, 2024 I have recently evaluated and installed software to provide comments and statistics for this blog. Here is my experience of the deployment process: Python comment system. Using one of 17 outdated installer/packaging systems for Python (none of which work). Read a lot of docs and make sure I have a virtual env […]

2 mins read

moving away from WordPress – Andy Balaam’s Blog

Share on Mastodon 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 […]

1 min read

Two meanings of “unsafe” in Rust – Andy Balaam’s Blog

Share on Mastodon The keyword `unsafe` in Rust has two meanings: “You should read the docs!” or “I promise I’ve read the documents 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): 42: Why is […]

1 min read

Undefined behavior – Andy Balaam’s Blog

Share on Mastodon If you are writing 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 applications, […]

1 min read

Unsafe types and examples – Andy Balaam’s Blog

Share on Mastodon 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 section (Async): […]

1 min read

Practice for module F (q1) – Andy Balaam’s Blog

Share on Mastodon 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: Types of unsafe, 46: […]

1 min read