NMNyakio Mainainnyakio.hashnode.dev·Dec 25, 2024 · 4 min readWebAssembly Overview1. Introduction What is WebAssembly (Wasm)? WebAssembly is a low-level, assembly-like code format that is safe, portable, and optimized for efficient execution and compact representation. It acts as a compilation target for many programming languages...00
NMNyakio Mainainnyakio.hashnode.dev·Oct 14, 2024 · 2 min readRust And Pico2So here’s the simple tutorial to build and flash a Rust application to the Pico 2 microcontroller Step 1: Environment set-up Clone the Pico SDK: git clone https://github.com/raspberrypi/pico-sdk Set the PICO_SDK_PATH environment variable: export...00
NMNyakio Mainainnyakio.hashnode.dev·Aug 24, 2024 · 3 min readFunctional Programming in RustImagine entering a world where functions rule, data remains unaltered, and every operation is a neatly packaged process that never steps outside its boundaries. This is the realm of Functional Programming (FP), a paradigm designed to make your code m...00
NMNyakio Mainainnyakio.hashnode.dev·Jul 17, 2024 · 3 min readRust’s Magic BoxCooked up exercises to really get into the guts of how Box ticks Basic Box Allocation: Create a Box that contains a single i32 value. Print the value to confirm it's correctly allocated. Box and Functions: Write a function that takes a Box<i32> and...00
NMNyakio Mainainnyakio.hashnode.dev·May 3, 2024 · 3 min readBig O notationI recently went to the Kenya National Library to search for some history books. Let's use this scenario to explain what Big O notation is—a mathematical concept used to describe how the performance of an algorithm changes as the amount of data it nee...00