Crate rust_dd

Source

Practical Rust engineering notes on async, SIMD, CUDA, embedded and quant finance, backed by benchmarks and code. Plus open-source crates and Rust consulting. Written by DanielBoros and DanielZelei.

§Latest

22 min readin low_level

Inside metal-oxide: compiler architecture, kernel ABI, and async execution

A source-level walkthrough of metal-oxide: the Rust and Metal build pipelines, GPU IR validation, artifact ABI, dependency scheduling, and resource lifetime across asynchronous GPU execution.

use metal_oxide::device::{DisjointBuffer, ReadBuffer, thread_index};

#[metal_oxide::kernel(requires(x.len() == y.len()))]
pub fn saxpy(a: f32, x: ReadBuffer<f32>, mut y: DisjointBuffer<f32>) {
    let index = thread_index();
    if let Some(y) = y.get_mut(&index) {
        *y += a * x.as_slice()[index.get()];
    }
}

§Modules

async
Futures and pinning explained, and what to put behind a lock.
web
Tako, GraphQL and WebSocket backends, and Rust in the browser through WebAssembly.
low_level
SIMD, inline assembly, union types, bit tricks and a Rust vs Zig vs C benchmark.
quant
Stochastic processes, rough volatility and option pricing with stochastic-rs.
embedded
Rust on the ESP32, from a blinking LED to a DHT11 sensor driver.
mobile
Rust inside React Native and Flutter apps.
ai
Retrieval-augmented generation and the iTransformer in pure Rust.
ops
Deploying Rust to Google Cloud Run.
meta
News from Rust-DD and a look back at Rust in 2024.

§Posts

36 posts, newest first

§Authors

DanielBoros
Senior Rust Engineer at Qdrant. Stochastic processes, SIMD, async Rust and Tako.
DanielZelei
Embedded Rust on the ESP32, deployment, and the Rust 2024 wrap-up.
BEFORE YOU GO

Keep your latest words?

You have changes that haven’t been saved. Stay here to keep writing, or leave without saving them.