Skip to content

// ls ~/work

Work & experiments

Compilers, a web framework, music, shaders, data platforms, client sites and the odd CLI. Filter by what interests you, or search the stack.

16 of 16 projects

// now · 6

  • state count = start ?? 0
    let label = if count == 1 then "time" else "times"
    on inc = count <- count + 1
    
    Card(title: "Counter", class: "max-w-sm") {
        p(class: "text-lg") "Clicked {count} {label}"
        Button(variant: "gradient", @press: inc) "Click me"
    }
    Fullstack web framework2026 · Active

    Weft

    A fullstack web framework in Rust: a small template language, native Tailwind, WebGL, charts and an accessibility tree in every render.

    • Rust
    • WebAssembly
    • WebGL2
    • GLSL
  • 100 bpm
    
    -- bb 1-3
    @3 d1 C# d2 B# @3 E d1 D#
    
    -- bb 4-11
    {
      (d3.5/1 ~ @4 d2 C# B# E d1 D# d2 C# d3/4 F#)
      (@3 d1 G# d2 Fx B d1 A# d2 G# d3/4 A d8 G# F#)
      (@3 d4 C# D# d3/4 E d8 D# C# d4 D# G# C#)
    }
    Music composition compiler2026 · Research

    DSCH

    A compiler for an expression-oriented music DSL: concatenative on the surface, functional underneath, lowered to Standard MIDI.

    • Rust
    • pest
    • MIDI
    • tower-lsp
  • #[test]
    fn recognise_tokens() {
        let mut cursor = Cursor::new("_exp#r");
        let mut tok = cursor.advance_token();
        assert_eq!(tok.kind, Ident);
        assert_eq!(tok.len, 4);
    
        assert_eq!(cursor.first(), '#');
    
        tok = cursor.advance_token();
        assert_eq!(tok.kind, Hash);
    }
    Language tooling2026 · Early days

    kolang

    A foundation for a family of concatenative, functional, scope-delimited languages: DSCH, and in time a general-purpose language for systems programming.

    • Rust
    • test-driven
    • nanopass
  • $ cargo run -p weft-cms-server -- serve
      ▸ content   ./content
      ▸ admin     http://localhost:8080/admin/
      ▸ site      http://localhost:8080/
      ✓ ready in 0.4s
    Content management2026 · Active · private

    weft-cms

    A CMS built on Weft: secure, fast and ready out of the box, for anything from a blog to a newspaper.

    • Rust
    • Weft
    • actix-web
    • WebAssembly
  • # Query live ABS + RBA data
    {
      consumerPriceIndex(
        start: { year: 2025, month: 1 },
        end:   { year: 2025, month: 12 })
      cashRateTarget(
        start: { year: 2025, month: 1 },
        end:   { year: 2025, month: 12 })
    }
    Public policy data platform2025–26 · Rebuilding in Weft

    ausmetrics

    Economic, environmental and social indicators from the ABS, RBA and independent research, behind one GraphQL API.

    • Rust
    • async-graphql
    • actix-web
    • Leptos
  • /// Lagrange interpolation
    pub fn L(x: f32, points: Vec<Vec2>) -> f32 {
        points
            .iter()
            .cloned()
            .map(|pt| {
                let others = points.iter().filter(|q| q.x != pt.x);
                pt.y * others.fold(1.0, |fac, q| fac * ((x - q.x) / (pt.x - q.x)))
            })
            .sum()
    }
    Interpolation for DSCH2026 · Experiment

    curves

    A workbench for checking the interpolation behind DSCH's multi-point dynamic and duration ramps. It started with B-splines and ended up applying Lagrange interpolation.

    • Rust
    • bevy_ecs
    • WebAssembly

// earlier work · 10

Projects I've moved on from, most of them untouched for a year or so. What I learnt in them went into sturdier things: Weft, DSCH and kolang.

  • // Two voices, cycling pitches across threads
    let p1 = *p_iter.next().unwrap() as u8 + ((idx % 2) * 7) as u8;
    let p2 = *p_iter_2.next().unwrap() as u8 + ((idx % 2) * 7) as u8;
    tx.send(NoteOn(p1)).unwrap();
    tx.send(NoteOn(p2)).unwrap();
    let now = Instant::now();
    while now.elapsed() < Duration::from_secs_f32(d1) {}
    tx.send(NoteOff(p1));
    tx.send(NoteOff(p2));
    // → synth (BitSet phases) → cpal output
    Algorithmic composition engine2025 · Earlier work

    sound-studies

    Independent composer threads send notes over channels to a real-time synthesis engine.

    • Rust
    • cpal
    • ndarray
    • mpsc
  • cf!(
      expr   -> term | expr plus term.
      term   -> factor | term mul factor.
      factor -> ident | lparen expr rparen.
      ident  -> alpha (alpha | digit)*.
      alpha  -> 'a'..='z' | 'A'..='Z'.
      digit  -> '0'..'9'.
    )
    Grammar proc macro2025 · Earlier work

    dthc

    A proc macro that turns a context-free grammar into production rules at compile time: the start of a transpiler generator.

    • Rust
    • proc-macro
    • NFA/DFA
  • // Same hue, new tone: move through HCT, not RGB
    let hct = Hct::from_rgb(seed);
    let palette: Vec<Rgb> = [10, 20, 40, 60, 80, 90, 95]
        .iter()
        .map(|&t| hct.with_tone(t as f64).to_rgb())
        .collect();
    Material component library2025 · Earlier work

    ayu

    A Leptos component showcase on Material Design, with its own HCT colour toning algorithm.

    • Rust
    • Leptos
    • WebAssembly
    • nalgebra
  • #[component]
    fn Quote(symbol: String) -> Element {
        let series = use_resource(move || fetch_daily(symbol.clone()));
        rsx! {
            match &*series.read() {
                Some(Ok(s)) => rsx! { PriceChart { series: s.clone() } },
                Some(Err(e)) => rsx! { p { "{e}" } },
                None => rsx! { Spinner {} },
            }
        }
    }
    Stock analysis SPA2025 · Earlier work

    Finoracle

    Quote search and interactive charts, compiled to WebAssembly and running entirely in the browser.

    • Rust
    • Dioxus
    • WebAssembly
  • Router::new()
        .route("/posts", get(posts))
        .route("/cities", get(cities))       // with GPS
        .route("/menu", get(menu_items))
        .route("/images/:id", get(image))
        .with_state(Arc::new(wp))
    Content microservice2026 · Earlier work

    places-ai

    An Axum service between WordPress and a travel site's frontend that finds the places in articles and puts them on the map.

    • Rust
    • Axum
    • WordPress REST
    • Geocoding
  • POST /api/describe
    { "images": ["https://…/hero.jpg"] }
    
    200 OK
    [{ "src": "https://…/hero.jpg",
       "alt": "A lighthouse on a rocky headland at dusk" }]
    Accessibility SaaS2025 · Earlier work

    AltText Auto

    AI-generated, accessibility-ready alt text for images, with a web UI and a batch API.

    • Next.js
    • TypeScript
    • Vision models
  • @app.post("/train")
    async def train(job: TrainJob):
        model = load_base(job.base)
        for epoch in range(job.epochs):
            loss = step(model, job.dataset)
            await report(job.id, epoch, loss)
        return {"model": save(model, job.id)}
    Generative AI platform2024 · Earlier work

    ZendoAI

    Train custom image models and generate with them: a Rust and FastAPI backend under a Next.js frontend.

    • Rust
    • FastAPI
    • Next.js
    • PyTorch
  • $ dirsize ~/dev/ausmetrics
    312.47 MB
    
    $ dirsize ~/dev/ausmetrics --gitignore
    45.23 MB
    
    $ dirsize .
    1.08 GB
    CLI2025 · Earlier work

    dirsize

    How big is this project really? Directory sizes, optionally without what .gitignore ignores.

    • Rust
    • clap
    • glob
  • <Canvas camera={{ position: [0, 1, 6] }}>
      <ambientLight intensity={0.4} />
      <mesh rotation={[0, t, 0]}>
        <torusKnotGeometry args={[1, 0.3]} />
        <meshStandardMaterial color="hotpink" />
      </mesh>
    </Canvas>
    React Three Fiber2024 · Earlier work

    3D portfolio

    An earlier portfolio exploring 3D interfaces in WebGL, before Weft could do it in a template.

    • React
    • Three.js
    • React Three Fiber
    • GLSL
  • useGSAP(() => {
      gsap.timeline()
        .from(".hero h1", { y: 40, opacity: 0, ease: "expo.out" })
        .from(".hero .cta", { autoAlpha: 0, stagger: 0.08 }, "-=0.3");
    });
    Landing page build2024 · Earlier work

    Solana.com

    A high-fidelity rebuild of Solana's landing page with GSAP animation.

    • Next.js
    • Tailwind
    • GSAP