GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ballistics-lab
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles

This view

  • Original page
  • New address

GeezerVison is showing github.com — Ballistics Lab

README.md

Ballistics Lab

An open-source ecosystem for small-arms exterior ballistics

One physics core — point-mass (3‑DoF) trajectory model plus spin drift — implemented once in C/C++ and exposed natively to Python, TypeScript, Dart, and MicroPython.

Made in Ukraine


Why this exists

Ballistic trajectory math doesn’t change between platforms — only the deployment target does. Instead of re-deriving the physics for every language, this organization keeps a single C++/C99 core (bclibc / tiny_bclibc) and builds thin, idiomatic bindings around it for desktop, mobile, web, and embedded targets. One engine, one set of bugs to fix, many places it runs.

Every wrapper that can drive a py-ballisticcalc engine is checked against the same, well-covered test suite from py-ballisticcalc. This keeps the bindings numerically consistent with each other and with the C++ core, so the bindings stay numerically consistent with each other and with the C++ core. js-ballistics cannot load a Python engine, so it keeps its own port of the same suite.

flowchart TD
    A["bclibc<br><i>C++17&nbsp;core</i><br>RK4/Euler/Verlet&nbsp;+&nbsp;adaptive&nbsp;RK45<br>(Cash-Karp,&nbsp;Dormand-Prince,&nbsp;Tsitouras)<br>C&nbsp;FFI:&nbsp;BCLIBCFFI_*"]
    A2["tiny_bclibc<br><i>C99&nbsp;subset&nbsp;for&nbsp;embedding</i><br>(Tsitouras)"]
    A -->|"subset"| A2

    A --> X["py-ballisticcalc.exts<br><i>(Cython)</i>"]
    A --> D["dart-bclibc<br><i>(Dart FFI)</i>"]
    A --> J["js-ballistics<br><i>(bare WASM, zig/wasi-sdk)</i>"]
    A2 -.->|"git submodule<br>C99 subset only"| T["tiny-bclibc-wasm-py<br><i>(WebAssembly: CPython, PyPy, Pythonista)</i>"]
    A2 -.->|"git submodule<br>C99 subset only"| E["micropython-bclibc<br><i>(natmod/usermod for MCUs)</i>"]

    API{{"py-ballisticcalc<br>compatible engine API"}}
    X --> API
    D -->|"Python bridge"| API
    T -->|"engine plugin<br>(entry points)"| API
    API --> P["py-ballisticcalc<br><i>+ pure Python and SciPy engines</i>"]
    API -.-> O["shared test suite"]

    E -.-|"same Python API"| T
    D --> F["ebalistyka<br><i>(Flutter app)</i>"]
Loading

Projects

Core engine

bclibc

lang lang license release

Pure C++ ballistic solver: RK4, Euler, Cash-Karp, Dormand-Prince and Tsitouras integration, Ridder’s method for zero-finding, and a stable, versioned C FFI surface (BCLIBCFFI_*) consumable from Dart, Python, Rust, WASM or anything with a C ABI. Builds to a static core (libbclibc_core) and a shared FFI lib (libbclibc_ffi) for Linux, macOS, and Windows, and also as bare wasm32-wasi module. The repo also bundles a C99 subset (tiny_bclibc) of the same engine, used as-is by micropython-bclibc via git submodule.

Embedded / MicroPython

micropython-bclibc

lang lang license release

MicroPython bindings around the tiny_bclibc C99 subset bundled in the bclibc repo (pulled in as a git submodule), with three deployment modes: native .mpy module (x64/x86, Cortex‑M, Xtensa, RISC‑V), usermod baked directly into firmware (RP2040, ESP32, STM32…), or FFI against libtiny_bclibc.so on any Unix port. Includes a streaming/callback trajectory API for boards with as little as ~200 KB free RAM, plus a float32-vs-float64 precision comparison harness. Experimental — APIs may change.

Language bindings

py-ballisticcalc

lang license pypi

Python library for ballistic trajectory calculation, with pluggable engines (pure-Python RK4/Euler/Verlet, Cython-accelerated, or SciPy-backed) and full unit-conversion support across angular, distance, energy, pressure, temperature, velocity and weight dimensions. pip install py-ballisticcalc.

tiny-bclibc-wasm-py

lang webassembly license pypi

Ballistic solver (tiny_bclibc) as WebAssembly for CPython, PyPy and Pythonista, with a py-ballisticcalc engine

js-ballistics

lang webassembly license npm

TypeScript/JavaScript library powered by the C++ core compiled to bare-WebAssembly — runs in Node.js or directly in the browser (CDN-ready, no build step). Supports wind layers, multi-BC drag models, Coriolis effect, danger-space, and powder-temperature sensitivity. npm install js-ballistics.

dart-bclibc

lang license pub

Thin, zero-copy Dart FFI/WASM wrapper around libbclibc_ffi, bundling the bclibc C++ source as a git submodule (no pre-built binaries required). Covers the full solver surface — trajectory integration, zero-angle/apex/max-range solving, sight corrections, energy/OGW — plus a typed unit system (Distance, Velocity, Temperature, …). Supports Linux, Windows, macOS, Android, iOS and Web.

Applications

ebalistyka

lang license release

Cross-platform ballistic calculator app (Linux, Windows, Android — macOS/iOS in progress) built with Flutter, consuming bclibc through the dart_bclibc wrapper. Shooting profiles, trajectory tables, an SVG mil-reticle with live drop/windage indication, and profile import/export. Alpha software.


Shared concerns across the ecosystem

  • One physics model. Atmosphere density, Coriolis effect, drag-curve interpolation (PCHIP), and cant correction are implemented once in C++/C99; every binding just marshals data in and out.
  • Precision tiers. Where it matters for embedded targets, both float32 and float64 builds are validated against each other (see micropython-bclibc’s precision-comparison suite).

Warning

Risk notice

These libraries perform approximate simulations of complex physical processes. Calculation results must not be considered a complete or fully reliable reflection of actual projectile behavior. Use for educational purposes only — results must not be relied upon in any context where an incorrect calculation could cause financial harm or put a human life at risk. Code is provided “AS IS”, without warranty of any kind. See each repository’s README for the full notice.


bclibc · micropython-bclibc · py-ballisticcalc · js-ballistics · dart_bclibc · ebalistyka

© 2026 Ballistics Lab · Ukraine 🇺🇦

Pinned Loading

  1. bclibc bclibc Public

    Pure C++ Ballistic Solver Engine

    C++ 5

  2. ebalistyka ebalistyka Public

    Forked from o-murphy/ebalistyka

    A high performance cross-platform ballistic calculator

    Dart 1

  3. js-ballistics js-ballistics Public

    Forked from o-murphy/js-ballistics

    ISC library for small arms ballistic calculations based on point-mass (3 DoF) plus spin drift.

    TypeScript 2

  4. py-ballisticcalc py-ballisticcalc Public

    Forked from o-murphy/py-ballisticcalc

    LGPL library for small arms ballistic calculations based on point-mass (3 DoF) plus spin drift.

    Python

Repositories

Loading
Type
Language
Sort
Showing 10 of 13 repositories
  • bclibc Public

    Pure C++ Ballistic Solver Engine

    Uh oh!

    There was an error while loading. Please reload this page.

    ballistics-lab/bclibc's past year of commit activity
    C++ 5 LGPL-3.0 0 1 2 Updated Nov 28, 2026
  • tiny-bclibc-wasm-py Public

    Ballistic solver (tiny_bclibc) as WebAssembly for CPython, PyPy and Pythonista, with a py-ballisticcalc engine

    Uh oh!

    There was an error while loading. Please reload this page.

    ballistics-lab/tiny-bclibc-wasm-py's past year of commit activity
    Python 0 LGPL-3.0 0 0 0 Updated Nov 25, 2026
  • .github Public

    An open-source ecosystem for small-arms exterior ballistics

    Uh oh!

    There was an error while loading. Please reload this page.

    ballistics-lab/.github's past year of commit activity
    Python 0 0 0 0 Updated Nov 25, 2026
  • dart-bclibc Public

    LGPL library for small arms ballistic calculations based on point-mass (3 DoF) plus spin drift.

    Uh oh!

    There was an error while loading. Please reload this page.

    ballistics-lab/dart-bclibc's past year of commit activity
    Dart 0 LGPL-3.0 0 0 0 Updated Nov 24, 2026
  • cibuildmp Public

    🎡 Build MicroPython native C extensions for every target, from one config — cibuildwheel for MicroPython

    Uh oh!

    There was an error while loading. Please reload this page.

    ballistics-lab/cibuildmp's past year of commit activity
    Python 3 MIT 0 0 0 Updated Nov 23, 2026
  • micropython-bclibc Public

    Pure C99 Ballistic Solver Engine for MicroPython

    Uh oh!

    There was an error while loading. Please reload this page.

    ballistics-lab/micropython-bclibc's past year of commit activity
    Python 1 LGPL-3.0 0 2 0 Updated Nov 21, 2026
  • py-ballisticcalc Public Forked from o-murphy/py-ballisticcalc

    LGPL library for small arms ballistic calculations based on point-mass (3 DoF) plus spin drift.

    Uh oh!

    There was an error while loading. Please reload this page.

    ballistics-lab/py-ballisticcalc's past year of commit activity
    Python 0 LGPL-3.0 23 0 0 Updated Nov 19, 2026
  • ebalistyka Public Forked from o-murphy/ebalistyka

    A high performance cross-platform ballistic calculator

    Uh oh!

    There was an error while loading. Please reload this page.

    ballistics-lab/ebalistyka's past year of commit activity
    Dart 1 GPL-3.0 1 0 0 Updated Nov 19, 2026
  • js-ballistics Public Forked from o-murphy/js-ballistics

    ISC library for small arms ballistic calculations based on point-mass (3 DoF) plus spin drift.

    Uh oh!

    There was an error while loading. Please reload this page.

    ballistics-lab/js-ballistics's past year of commit activity
    TypeScript 2 ISC 3 0 0 Updated Nov 19, 2026
  • micropython-native-ci Public archive

    Uh oh!

    There was an error while loading. Please reload this page.

    ballistics-lab/micropython-native-ci's past year of commit activity
    0 MIT 0 0 0 Updated Aug 24, 2026
View all repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Uh oh!

There was an error while loading. Please reload this page.

Most used topics

Loading…

Uh oh!

There was an error while loading. Please reload this page.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.