agentleFS
FranciscoThiesenFranciscoThiesen/mirror_bridge/llms.txt

mirror_bridge

llms.txt89 starsChanged 11 months agoApache-2.0View on GitHub

mirror_bridge is a C++26 reflection-based binding generator: write your C++ once and get Python, Lua, JavaScript and C# bindings auto-generated with zero boilerplate. Classes and functions are discovered automatically via reflection, so there is no per-binding glue code to maintain. It needs a C++26 reflection compiler: stock GCC 16.1+ or Bloomberg's clang-p2996, whichever the CLI finds, and the provided Docker image is the easiest way to get one.

The file

Files
llms.txt
# mirror_bridge

> mirror_bridge is a C++26 reflection-based binding generator: write your C++ once and get Python, Lua, JavaScript and C# bindings auto-generated with zero boilerplate. Classes and functions are discovered automatically via reflection, so there is no per-binding glue code to maintain. It needs a C++26 reflection compiler: stock GCC 16.1+ or Bloomberg's clang-p2996, whichever the CLI finds, and the provided Docker image is the easiest way to get one.

## Docs
- [README](https://github.com/FranciscoThiesen/mirror_bridge/blob/main/README.md): Project overview, value proposition, and quick example
- [Installation](https://github.com/FranciscoThiesen/mirror_bridge/blob/main/docs/getting-started/installation.md): Set up the C++26 reflection toolchain via Docker
- [Quick Start](https://github.com/FranciscoThiesen/mirror_bridge/blob/main/docs/getting-started/quickstart.md): Get bindings working in five minutes
- [Your First Binding](https://github.com/FranciscoThiesen/mirror_bridge/blob/main/docs/getting-started/first-binding.md): Step-by-step first C++ to Python binding
- [Development Workflow](https://github.com/FranciscoThiesen/mirror_bridge/blob/main/docs/guides/workflow.md): Recommended day-to-day workflow
- [Replacing a hot Python function with C++](https://github.com/FranciscoThiesen/mirror_bridge/blob/main/docs/guides/accelerating-python.md): Measured workflow for taking one slow function out of a Python program, which shapes pay and which do not, and how to read the build report
- [Returning a vector of structs without building a list](https://github.com/FranciscoThiesen/mirror_bridge/blob/main/docs/guides/columnar-returns.md): `--columnar` returns a vector of plain structs as a sequence that describes its own memory, so numpy reads it without copying; about 200x on the return above a thousand elements, 500x end to end
- [Multi-Language Support](https://github.com/FranciscoThiesen/mirror_bridge/blob/main/docs/guides/multi-language.md): Generate Python, Lua, JavaScript and C# from one source
- [Packaging](https://github.com/FranciscoThiesen/mirror_bridge/blob/main/docs/guides/packaging.md): Distribute bindings as installable packages
- [Single-Header](https://github.com/FranciscoThiesen/mirror_bridge/blob/main/docs/guides/single-header.md): Integrate via amalgamated single-header builds
- [PCH Optimization](https://github.com/FranciscoThiesen/mirror_bridge/blob/main/docs/guides/pch-optimization.md): Cut compile times with precompiled headers

## Reference
- [API Reference](https://github.com/FranciscoThiesen/mirror_bridge/blob/main/docs/reference/api.md): C++ binding functions, concepts, and macros
- [CLI Reference](https://github.com/FranciscoThiesen/mirror_bridge/blob/main/docs/reference/cli.md): The unified mirror_bridge command-line interface
- [Configuration](https://github.com/FranciscoThiesen/mirror_bridge/blob/main/docs/reference/configuration.md): Config files for explicit control over bindings
- [Type Conversion](https://github.com/FranciscoThiesen/mirror_bridge/blob/main/docs/reference/type-conversion.md): Supported C++ to target-language type mappings
- [Errors](https://github.com/FranciscoThiesen/mirror_bridge/blob/main/docs/reference/errors.md): Error messages and troubleshooting reference
- [Architecture](https://github.com/FranciscoThiesen/mirror_bridge/blob/main/docs/internals/architecture.md): How the reflection-driven generator works internally
- [Feature Matrix](https://github.com/FranciscoThiesen/mirror_bridge/blob/main/docs/internals/features.md): Verified features across all supported languages
- [C# Backend Design](https://github.com/FranciscoThiesen/mirror_bridge/blob/main/docs/internals/csharp-design.md): Why C# generation is two-stage, the decisions behind the generated surface, and the gaps and unmeasured claims stated plainly

## Examples
- [Examples](https://github.com/FranciscoThiesen/mirror_bridge/blob/main/examples/README.md): Progressive examples from beginner to production
- [Migrating from pybind11](https://github.com/FranciscoThiesen/mirror_bridge/blob/main/docs/MIGRATION_FROM_PYBIND11.md): Transition guide for pybind11 users
- [Zero-Copy Buffers](https://github.com/FranciscoThiesen/mirror_bridge/blob/main/docs/ZERO_COPY_BUFFERS.md): Zero-copy buffer protocol support for Python

## Optional
- [Benchmarks](https://github.com/FranciscoThiesen/mirror_bridge/blob/main/docs/internals/benchmarks.md): Performance comparison vs traditional binding libraries
- [Contributing](https://github.com/FranciscoThiesen/mirror_bridge/blob/main/docs/guides/contributing.md): Develop, test, and contribute to mirror_bridge
- [Playground](https://github.com/FranciscoThiesen/mirror_bridge/blob/main/docs/playground.md): Try mirror_bridge online with no local install
- [Changelog](https://github.com/FranciscoThiesen/mirror_bridge/blob/main/CHANGELOG.md): Notable changes per release

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.