Cubacadabra's Rust Core Eliminates Triplicate Mobile Code

The Magic Behind Cubacadabra

Cubacadabra's Rust Core Eliminates Triplicate Mobile Code

Cubacadabra shares portable app logic across iOS, Android, and web by moving it into Rust crates. Native shells handle only platform-specific UI and device services. One iOS commit removed 269 lines and added 106. The pattern handles username saves, multiplayer sessions, and rendering, with a C ABI on mobile and wasm-bindgen in the browser.

I want to work out those interactions once. I don't want every new rule to become a coordination problem between three implementations.
  1. Heliodex

    https://github.com/cubacadabra/first-game/blob/main/src/main...

    I'm puzzled by the -- @import comment syntax used in these main files. Did they have to build custom Luau tooling for type-checking across files for this, and why not use require()?

    Other than this, the example games had easily readable and clear code.

  2. jnellis

    Is it a floor wax or a dessert topping? I don't know. Don't make me follow other links or search to find out.

  3. w4yai

    Is the header image supposed to jiggle that much ? Firefox.

More from this day

2026-09-12