Archived legacy site - a preserved snapshot of robobus before the site overhaul, no longer maintained. Go to the current site →

Multi-language bindings

robobus bridges many protocols, and each carries the same PQC-hardened frames:

Protocol robobus module native language ecosystems (a sampling)
shared-memory bus robobus core any language with mmap + a crypto lib
ROS 1 ros1_adapter C++, Python, Lisp, Java, JS, C#, Go, Rust
ROS 2 ros2_adapter C++, Python, Rust, Java, JS, C#, Go, Ada, C
LSL lsl_adapter C, C++, Python, C#, Java, MATLAB, Rust, Julia, Octave
ZeroCM transports.zcm C, C++, Java, Python, MATLAB, NodeJS, Go, Julia
MQTT transports.mqtt ~every language (Paho + others)
AMQP / RabbitMQ transports.amqp ~every language
Zenoh transports.zenoh C, C++, Rust, Python, REST, Kotlin
CAN / CAN-FD transports.can C, C++, Python, Rust, Go
TCP / UDP / serial transports.* universal (stdlib sockets/serial everywhere)

So "multi-language" is the union of all these ecosystems, effectively every mainstream language.

The Speed matrix: every binding, measured live

"Multi-language" is no longer a claim: the Speed matrix measures the same workloads in 33 language configs on real toolchains, with no faked cells:

The shims are the honest generalisation of "reach it from any language": the crypto/transport work happens in one audited C core, and every language calls it through its native FFI at near-zero overhead, the same pattern librobobus uses. Two ways to reach robobus from any language:

1. Native endpoint (implement the wire format)

The format (PROTOCOL.md) is small: an mmap seqlock ring, a codec frame, an AES-256-GCM (RBX1) frame, and fixed-layout schema structs. Implement those and you have a full, hardened robobus peer. Proven today:

Embed it anywhere, librobobus (C ABI): librobobus/ builds a dependency-light shared library (robobus.dll / librobobus.dylib / librobobus.so + a static lib, via CMake on every OS) exposing AES-256-GCM RBX1 seal/open and the codec behind a stable C ABI. Any language links it over its FFI (ctypes, P/Invoke, JNA/Panama, ffi-napi, bindgen). It is proven byte-identical to the Python reference on Linux, macOS, Windows and five emulated ISAs including big-endian s390x, its C self-test embeds the exact bytes Python emits, and a ctypes test cross-conforms both directions (tests/test_cabi.py, .github/workflows/shared-lib.yml).

Packaged & publishable: Rust → crates.io (Cargo.toml), JS → npm (package.json + TypeScript types), Java → Maven Central (pom.xml, sources+javadoc+GPG). cargo package / npm pack / javac all build locally; a tag runs .github/workflows/publish-bindings.yml (each registry gated on a repo variable). * Struct codegen for the layout, Schema.render(lang) emits all 14: C, C++, Rust, Go, Java, C#, TypeScript, Python, Julia, MATLAB/Octave, Swift, Kotlin, Ruby, Lua, and every one is compile/run-verified: its generated reader parses Python's packed little-endian bytes byte-for-byte in tests/test_codegen.py.

Every toolchain, actually run, no silent skips. tools/all-languages.Dockerfile installs all of these toolchains in one image (gcc/clang, Go, Rust, JDK, .NET, Node+TypeScript, Julia, Octave, Swift, Kotlin, Ruby, Lua, Python+Cython) and runs the full polyglot conformance with a hard "versions print or abort" gate, 12-language codegen + the six native seal/open bindings, green together. It reproduces on any machine with Docker (docker build -f tools/all-languages.Dockerfile …), so "all languages pass" is a command anyone can re-run, not a claim.

2. Via a transport client (reach the bus over a wire it already speaks)

A language with no native binding but any MQTT/AMQP/Zenoh/TCP client can talk to robobus: run a robobus <transport> bridge, and have the app implement just the RBX1 AEAD (one AES-256-GCM call, available in every platform crypto lib) to send/receive hardened frames. Example: a Swift/iOS app uses an MQTT client + CryptoKit AES-256-GCM.

Language matrix (hardened endpoints)

Every row below is measured live on the Speed matrix, codec decode, the full 26-primitive crypto suite, and all 12 transports, not just asserted. "Native" = the language's own stdlib/crypto stack; "shim" = the labeled librbcrypto / librbxport C core reached over the language's FFI (near-zero overhead).

Language AEAD path full crypto suite transports struct codegen
C / C++ native (OpenSSL EVP) yes native + liboqs yes all 12 yes
Rust native (RustCrypto) yes native + shim yes all 12 yes
Go native (crypto/cipher) yes native + cgo shim yes all 12 yes
Zig native (std.crypto) yes native + shim yes all 12 yes
Swift native (CryptoKit) yes native + shim yes all 12 yes
Nim / Crystal / Nelua native/EVP FFI yes yes all 12 (Crystal via codegen)
Haskell / OCaml / LuaJIT / Julia native/EVP FFI yes yes all 12 yes Julia
Java / Kotlin native (JCE + BouncyCastle) yes native + FFM shim yes all 12 yes
C# / .NET native (System.Security.Cryptography) yes native + P/Invoke shim yes all 12 yes
Python (CPython/PyPy/Cython) native (cryptography) yes native + cffi shim yes all 12 yes
Ruby / Perl / Node.js / Lua / Mojo native + shim yes yes all 12 yes (TS/Ruby/Lua)
Fortran / Pascal / COBOL / Octave shim via C interop yes yes all 12 yes (Octave)

That's 33 configs (the runtime/accelerator variants, PyPy, Cython, NumPy, PDL, vectorize, batch, share their base language's crypto). Every one has an AES-256-GCM path and a liboqs route, so national- security-grade hardening (CNSA 2.0 / FIPS) is reachable in all of them.

Build from source & release automation

One portable command builds every artifact from source into dist/, no conda/ROS, runs on Linux, macOS, and Windows (Git Bash); each component is skipped-and-reported if its toolchain is absent:

scripts/build_release.sh            # or: make release

It produces the native librobobus C-ABI library (shared + static + header, KAT-self-tested), the Rust .crate, the npm .tgz, the Java .jar, the Python wheel + sdist, and a SHA256SUMS. For the native library on every CPU ISA via Docker/QEMU (aarch64, armv7, ppc64le, riscv64, big-endian s390x): tools/package-librobobus-arches.sh (make release-arches).

On a v* tag, release.yml runs the same build across Linux/macOS/Windows + the five ISAs and attaches the packaged librobobus artifacts to the GitHub Release alongside Sigstore-signed + SLSA-attested Python wheels and a CycloneDX SBOM; publish-bindings.yml publishes the Rust/npm/Maven packages, one tag, every language, every platform.

Adding a language to render()

Add a type map + a _render_<lang> method in robobus/schema.py (see the eight existing ones). The layout is fixed little-endian packed, so a generator is ~20 lines; add a compile check to tests/test_codegen.py if a toolchain is available.