Mini-rust in Rust 003: A much more beautiful glitch

More about the basic structure of our interpreter: making error messages from the lexer point to the right lines of code, in a pretty way. 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 – 49: Foreign function interfaces (interacting with other languages)

October 23, 2024 [Programming, Programming Languages, Rust, Tech, Videos] Calling C code from Rust, Rust code from C family languages, using cargo-bindgen, and creating Python extensions. Series: Language basics, More syntax, Traits and generics, Building applications, Concurrency and parallelism, Trait objects, Asynchronous, Unsafe, FFI This section (FFI): 49: FFI50: Exercise 1, 51: Exercise 2, 52:…

Mini-rust in Rust 002: Error while lexing

Continuing to write our mini-rust in Rust. Figure out how to make mistakes when lexing is wrong. 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 – 50: Practice for module G (q1)

October 23, 2024 [Programming, Programming Languages, Rust, Tech, Videos] Calling C code from Rust, Rust code from C family languages, using cargo-bindgen, and creating Python extensions. 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 151: Exercise 2, 52:…

Mini rust in Rust 001: Lexing and int

October 31, 2024 [Programming, Programming Languages, Rust, Tech, Videos] #mini-rust Introducing my new series: writing a bit of a Rust-like language in Rust. It will be an interpreted language, and (at least for now) it will try to work as much as real Rust. Maybe someday it will be a useful language, but for now…

Mini rust in Rust 001: Lexing and int

October 31, 2024 [Programming, Programming Languages, Rust, Tech, Videos] #mini-rust Introducing my new series: writing a little Rust-like language in Rust. It will be an interpreted language, and (at least for now) it will try to work as much as real Rust. Maybe someday it will be a useful language, but for now it’s just…

Rust 101 – 51: Practice for module G(q2)

October 23, 2024 [Programming, Programming Languages, Rust, Tech, Videos] Trying to call Rust code from a C program (it helps to call Rust from any language compiled to native). 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,…

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

Rust 101 – 53: Practice 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…

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…