# \[ANN\] RepliBuild.jl - A full C/C++/rust interop toolkit for tiered FFI generation. REPL - I - BUILD

**URL:** <https://discourse.julialang.org/t/ann-replibuild-jl-a-full-c-c-rust-interop-toolkit-for-tiered-ffi-generation-repl-i-build/136122>\
**Category:** Package Announcements\
**Created:** [March 10, 2026, 5:42pm UTC](https://discourse.julialang.org/t/ann-replibuild-jl-a-full-c-c-rust-interop-toolkit-for-tiered-ffi-generation-repl-i-build/136122 "2026-03-10T17:42:57Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![obsidianjulua](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/obsidianjulua/32/221495_2.png) [@obsidianjulua](https://discourse.julialang.org/u/obsidianjulua)\
**Post date:** [September 20, 2026, 4:51pm UTC](https://discourse.julialang.org/t/ann-replibuild-jl-a-full-c-c-rust-interop-toolkit-for-tiered-ffi-generation-repl-i-build/136122/23 "2026-09-20T16:51:17Z")

</div>

![2026-09-20-114513_hyprshot](https://global.discourse-cdn.com/julialang/original/3X/3/f/3f7b7831871c4ebf3e7e9403014ec7b405a06066.png)

MLIR thunk magic, 0 GC, 0 latency, 0 allocations

---

<div class="post-metadata">

**Author:** ![obsidianjulua](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/obsidianjulua/32/221495_2.png) [@obsidianjulua](https://discourse.julialang.org/u/obsidianjulua)\
**Post date:** [September 20, 2026, 7:13pm UTC](https://discourse.julialang.org/t/ann-replibuild-jl-a-full-c-c-rust-interop-toolkit-for-tiered-ffi-generation-repl-i-build/136122/24 "2026-09-20T19:13:46Z")

</div>

![2026-09-20-141154_hyprshot](https://global.discourse-cdn.com/julialang/original/3X/4/f/4ffa3e91568e7ad154edcd72c403ee49ff8847d9.png)  
 ![2026-09-20-141232_hyprshot](https://global.discourse-cdn.com/julialang/original/3X/0/f/0f483e5720fb45c1ff2b04aed79ee0dc56e1a3dd.png)

So the honest claim is: you can drive AOT-compiled GPU kernels from Julia with AOT-compiled host marshalling, at zero allocation, through a C++ API, with no C shim and no C++ host program.

Only in Julia

> <https://github.com/obsidianjulua/RepliBuild-Hub/blob/main/examples%2FImguiDemo%2FREADME.md>

---

<div class="post-metadata">

**Author:** ![obsidianjulua](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/obsidianjulua/32/221495_2.png) [@obsidianjulua](https://discourse.julialang.org/u/obsidianjulua)\
**Post date:** [October 17, 2026, 1:54am UTC](https://discourse.julialang.org/t/ann-replibuild-jl-a-full-c-c-rust-interop-toolkit-for-tiered-ffi-generation-repl-i-build/136122/25 "2026-10-17T01:54:22Z")

</div>

clang 23 keeps inline members at default visibility even with exclude\_from\_explicit\_instantiation

sorry, this isnt a julia or repo issue namespace.h in LLVM23 applies hidden visibility by default to all std functions via a clang pragma, with no MinGW opt-out.

---

<div class="post-metadata">

**Author:** ![obsidianjulua](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/obsidianjulua/32/221495_2.png) [@obsidianjulua](https://discourse.julialang.org/u/obsidianjulua)\
**Post date:** [October 17, 2026, 2:25pm UTC](https://discourse.julialang.org/t/ann-replibuild-jl-a-full-c-c-rust-interop-toolkit-for-tiered-ffi-generation-repl-i-build/136122/26 "2026-10-17T14:25:26Z")

</div>

Fixed in v4.2.0

- Windows with libc++ 23: STL members reach the DLL export table again, so STL thunks bind.
- Windows: a void C++ function that throws through an AOT thunk raises CxxException instead of ending the process.
- discover works on a machine without a system LLVM.
- Windows: libc\_free frees through the library’s own C runtime, link\_dirs DLLs are preloaded, vtable thunks bind only exported methods, and slice file names survive case folding.
- Pkg.build on Windows no longer says the dialect is Linux-only.
- A leaked file handle that kept IR files locked on Windows.

Upgrading

- A 4.1.1 wrapper keeps working. Build-time fixes need a rebuild (delete .replibuild\_cache/project\_hash); generator fixes need a re-wrap.

Verified on Windows (MSYS2 CLANG64, LLVM/MLIR 23.1.3) with the full test suite. CI runs the toolchain-free suite on Linux and Windows. Tier 2 was not re-run on Linux for this release.

---

<div class="post-metadata">

**Author:** ![cshen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cshen/32/217287_2.png) [@cshen](https://discourse.julialang.org/u/cshen)\
**Post date:** [October 17, 2026, 4:20pm UTC](https://discourse.julialang.org/t/ann-replibuild-jl-a-full-c-c-rust-interop-toolkit-for-tiered-ffi-generation-repl-i-build/136122/27 "2026-10-17T16:20:11Z")

</div>

Hi, been following from the sidelines for a while.  
Very interesting project. I have a quick question that I couldn’t find explicitly in the docs (maybe I’m just a bad reader)

Does it also work when you only have an header, like Clang.jl? Or do you always require the full source to compile?

---

<div class="post-metadata">

**Author:** ![obsidianjulua](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/obsidianjulua/32/221495_2.png) [@obsidianjulua](https://discourse.julialang.org/u/obsidianjulua)\
**Post date:** [October 17, 2026, 5:00pm UTC](https://discourse.julialang.org/t/ann-replibuild-jl-a-full-c-c-rust-interop-toolkit-for-tiered-ffi-generation-repl-i-build/136122/28 "2026-10-17T17:00:48Z")

</div>

I use header parsing but Dwarf is the architecture and if debug is in the binary and is c, the pkg can ingest that binary and create ccall bindings that way but thats if the binary has dwarf then no source or compiling is needed just a internalized julia dwarf method into ccall bindings. Thats my equivalent to Clang.jl header parsing. Its called ingest in the docs. Different architecture completely doing mostly the same things in different ways.

You get more out of it when you parse headers, use dwarf, and MLIR for marshalling

but no it doesnt just wrap headers, thats like a few other pkgs that do that really well if a basic binding is all thats required. Anything stl, inheritance, and virtual methods is what im working on.

---

<div class="post-metadata">

**Author:** ![obsidianjulua](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/obsidianjulua/32/221495_2.png) [@obsidianjulua](https://discourse.julialang.org/u/obsidianjulua)\
**Post date:** [October 18, 2026, 11:05pm UTC](https://discourse.julialang.org/t/ann-replibuild-jl-a-full-c-c-rust-interop-toolkit-for-tiered-ffi-generation-repl-i-build/136122/29 "2026-10-18T23:05:13Z")

</div>

My thinking is if you can parse the headers than RepliBuild can most likely compile them, along with shims. So you can add -g and automate type selection by a compiler. So the workflow is “parse headers → emit minimal shims/instantiation units → compile with debug → extract DWARF → generate bindings” covers almost every library for which header-based tools already work.

but also covers the cxx methods other Pkgs cant

next step to header parsing I guess… it is the step that turns “we can see the declarations” into “we have the ABI the compiler actually used.”

I parse enums from headers basically

---

<div class="post-metadata">

**Author:** ![obsidianjulua](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/obsidianjulua/32/221495_2.png) [@obsidianjulua](https://discourse.julialang.org/u/obsidianjulua)\
**Post date:** [October 24, 2026, 11:09pm UTC](https://discourse.julialang.org/t/ann-replibuild-jl-a-full-c-c-rust-interop-toolkit-for-tiered-ffi-generation-repl-i-build/136122/30 "2026-10-24T23:09:05Z")

</div>

RepliBuild’s header path

## What the header path gathers today

Only one source-text fact reaches the JLCS lowering: the `noexcept` candidate set, and even that is confirmed by `nounwind` in the linked IR before it routes anything. Everything the thunk generator lays out comes from DWARF, the linked IR, or `nm`. The AST pass proper is one libclang walk for enums, run at wrap time, and it feeds the Julia generators, not the MLIR.

The text pass has no edge into the thunk builder: its enums and typedef signatures stop at the Julia generators, and `is_noexcept` reaches `FunctionGen` only after the linked IR’s `nounwind` has confirmed the regex.

`ASTWalker.jl` never opens an AST. It runs `clang -E -H` for the include tree and regexes for namespaces, classes and function names, and its only product is `dependency_graph.json` and a compilation order for Discovery. The real AST pass is `ClangJLBridge.extract_header_types`. The same file also carries a full Clang.jl Generators path (`generate_bindings_clangjl`, wrapped by `Generator.wrap_with_clang`), and nothing calls it: `wrap_library` goes straight to `wrap_introspective`, and `[wrap] style = "clang"` is validated but never dispatched on. (uneeded after dwarf parser provided the info)

| Fact | How it is read (where) | Lands in | Consumer | Reaches JLCS IR? |
| --- | --- | --- | --- | --- |
| Enum names, members, values | libclang via Clang.jl: `CXCursor_EnumDecl` / `EnumConstantDecl`, descending namespaces and linkage specs, in a child Julia process with `-xc++ -std=c++17` (`ClangJLBridge._extract_enums_via_ast!`, wrap time) | `metadata["header_enums"]` (`Generator.jl`) | GeneratorC and GeneratorCpp emit a supplementary `@enum` (or a bitflag const block) for each enum DWARF lacks; the underlying type is guessed from the value range (`Cint` / `UInt32` / `Int64`) | No |
| Function-pointer typedef signatures | Regex `typedef R (*Name)(params);` over header text (`extract_header_types`) | `metadata["function_pointer_typedefs"]` | `FunctionPointers._callback_typedef_signature`: the `@cfunction` example in a callback’s docstring; DWARF’s `function_pointer_signature` is the fallback | No (docs only) |
| Struct names | Regex `struct X {` | `header_types["structs"]` | Nothing reads it | No |
| `constants`, `typedefs` | Declared in the result dict, never filled | — | — | No |
| `noexcept` candidates | Regex `name(...) noexcept` over the sources and the top level of every include dir (`_scan_noexcept_functions`, build time) | `func["is_noexcept"]`, set only when the mangled definition is also `nounwind` in the linked IR (`_mark_noexcept!`) | `DispatchLogic.is_ccall_safe` tier routing; `FunctionGen` picks `jlcs.try_call` vs `jlcs.ffe_call` and sets `may_throw` on `vcall` and `dtor_call` | Yes, the one that does |
| Include graph, compile order | `clang -E -H` plus regexes (`ASTWalker`, discover time) | `dependency_graph.json` | Discovery | No |
| Macro shims, template instantiations | Generated TUs, from the TOML and not from any header scan: `replibuild_shims.c`/`.cpp` turns each `[wrap.macros.<name>]` entry (user-declared `ret` and `args`) into a typed `replibuild_shim_<macro>` function, and `replibuild_templates.cpp` turns each `[types] templates` entry into `template class T;` plus the `RB_TOUCH` odr-use block, compiled `-fno-inline`. Discovery writes both tables empty and preserves them | Compiled into the library, so DWARF and `nm` cover them | Everything downstream | Yes, through DWARF |

**What the JLCS lowering actually reads.** `JLCSIRGenerator`, `FunctionGen` and `StructGen` consume `functions` (`nm`’s mangled names and the demangler’s `class`; DWARF signatures, `is_vararg`, `has_object_pointer`; `is_noexcept` as above), `struct_definitions` (DWARF members, offsets, `byte_size`, `alignment`; enums stored as ` __enum__ <name>` with `underlying_type` and `byte_size`), `record_abi` (`DW_CC_pass_by_reference`, size, empty), `stl_methods` (`nm`) and `language`. Vtables come from `DWARFParser.parse_vtables` over llvm-dwarfdump, at load for JIT thunks and at wrap’s AOT stage for AOT ones.

SysV and Win64 classification happens in `JLCSPasses.cpp` from the struct body the generator emitted, not from any header fact.

Fable edited this to add markdown and spelling and correct ref from source.

---

<div class="post-metadata">

**Author:** ![obsidianjulua](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/obsidianjulua/32/221495_2.png) [@obsidianjulua](https://discourse.julialang.org/u/obsidianjulua)\
**Post date:** [October 30, 2026, 10:42pm UTC](https://discourse.julialang.org/t/ann-replibuild-jl-a-full-c-c-rust-interop-toolkit-for-tiered-ffi-generation-repl-i-build/136122/31 "2026-10-30T22:42:55Z")

</div>

![Screenshot 2026-10-30 172959](https://global.discourse-cdn.com/julialang/original/3X/0/5/0537dacebf833eaec543ffef232dc7164c3132f6.png)

I cant keep pace with this so almost everything from this point past the dialect is considered vibe coded, my hand edits and gating are actually holding claude back and even a local llm has surpassed what im able to control and edit manually.

Does this mean handing over architecture over to vibe implantation and testing with guidance or how has anyone else dealt with straight being overwhelmed in the field they produce code in, Im asking because my own implementation was beyond llm training since mlir abi marshalling has yet to pick up except with the clangIR and llvmABI but even spending all my time in this I got passed up in a few things and deeply in others, do I just accept those failings and use them on a kind of trust system or spend months to years verifing by hand, or do I just say Im done and let the AI deal with marhalling and any other abi in IR problem by someone else or another vibe coder with more sense… if I had motivation to beat the ai but I just dont see past me paying for what I want to impliment.

Going from builder to bottleneck is depressing

I still own the JLCS dialect its been unedited mostly for 2 major llvm releases and maintained by me and is probably the thing claude needs to be trained on but oh well. That issue is claude is writting better Julia than me and only new cpp code in a custon dialect to marshal for julia is how i beat claude…

---

<div class="post-metadata">

**Author:** ![obsidianjulua](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/obsidianjulua/32/221495_2.png) [@obsidianjulua](https://discourse.julialang.org/u/obsidianjulua)\
**Post date:** [October 31, 2026, 9:05pm UTC](https://discourse.julialang.org/t/ann-replibuild-jl-a-full-c-c-rust-interop-toolkit-for-tiered-ffi-generation-repl-i-build/136122/32 "2026-10-31T21:05:29Z")

</div>

RepliBuild.jl can now build a project made of several libraries that depend on each other, and wrap them as one Julia module. Add a [graph] section to replibuild.toml:

```julia-auto
name = "polyshape"

[graph]
source = "src" # the directory with CMakeLists.txt
targets = ["scene"] # what you want; the libraries it links come with it

```

How the graph resolves

CMake says what to build; RepliBuild doesn’t guess. RepliBuild runs only CMake’s configure step and reads its File API. That gives every target with its sources, flags, defines and include path, including the include directories and defines it inherits from the libraries it links.  
RepliBuild compiles and links every library itself, so each wrapper’s types come from debug info that matches the binary it loads.  
A static or object library is built into each shared library that links it, and never a second time into one that only reaches it through another shared library.  
Headers generated at build time come from running only those steps of the project’s own Ninja build.  
C and C++ in one project. Each library is compiled as C (with Julia’s bundled clang) or as C++ (with the system clang), depending on its own sources. A C++ library can sit on top of C libraries in the same project.  
One Julia module per library, plus one that includes them. wrap writes a wrapper for each library, then a small top-level module that includes them in dependency order:

```julia-auto
module Polyshape
include("geom/lib/Geom.jl")
include("shapes/lib/Shapes.jl")
include("scene/lib/Scene.jl")
export Geom, Shapes, Scene
end

```

Each wrapper loads its library after the libraries it links, so each library’s global state exists once, shared by everything that uses it. A library whose name Julia already uses gets an R prefix: Core becomes RCore.

Git submodules. A git dependency can now list just the submodules it needs. For example, it can take libs/math from boostorg/boost instead of cloning the whole superproject.

Current limits

CMake projects configured with Ninja, on Linux and Windows (MSYS2 CLANG64).  
Types are still per library.  
A struct defined in one library and used by another becomes a separate Julia type in each wrapper.  
Passing one library’s value to the other library’s function raises a MethodError, so for now you convert it.  
Sharing one type across libraries is the next piece of work.  
`[graph]` can’t yet take its source from a git dependency, and the per-library [wrap]/[compile] options aren’t in yet.

---

<div class="post-metadata">

**Author:** ![BambOoxX](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bambooxx/32/22179_2.png) [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Post date:** [November 5, 2026, 2:51pm UTC](https://discourse.julialang.org/t/ann-replibuild-jl-a-full-c-c-rust-interop-toolkit-for-tiered-ffi-generation-repl-i-build/136122/33 "2026-11-05T14:51:50Z")

</div>

Hi, I have only a very (insist on very) limited understanding of the uses cases, but as far as I understand RepliBuild isn’t compatible with BinaryBuilder, because both use incompatible environments right ?

The use case would be to do the wrapping with RepliBuild then use BinaryBuilder for cross-compilation. But that may be far-fetched.

---

<div class="post-metadata">

**Author:** ![obsidianjulua](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/obsidianjulua/32/221495_2.png) [@obsidianjulua](https://discourse.julialang.org/u/obsidianjulua)\
**Post date:** [November 5, 2026, 3:22pm UTC](https://discourse.julialang.org/t/ann-replibuild-jl-a-full-c-c-rust-interop-toolkit-for-tiered-ffi-generation-repl-i-build/136122/34 "2026-11-05T15:22:02Z")

</div>

The build stage happens before the wrap stage here, and the metadata the wrap stage uses get pulled in stages by either headers, dwarf or IR. I really only wanna wrap the data but I do need the compilation olin stages, if i used binarybuilder as the compiler andci deployer and jll maker of the artifacts and thunks per OS is a real dream but I still had to develop the toolxhain in order to hook a binarybuilder pipeline.

Any suggestions or help is welcome, this is really hard stuff

---

<div class="post-metadata">

**Author:** ![BambOoxX](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bambooxx/32/22179_2.png) [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Post date:** [November 5, 2026, 3:28pm UTC](https://discourse.julialang.org/t/ann-replibuild-jl-a-full-c-c-rust-interop-toolkit-for-tiered-ffi-generation-repl-i-build/136122/35 "2026-11-05T15:28:05Z")

</div>

I’m not sure I fully understood your answer, but would it mean something to use the host-side compilers to generate the metadata, then use the target-side compilers to perform the cross-compilation of the wrapped code?

---

<div class="post-metadata">

**Author:** ![obsidianjulua](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/obsidianjulua/32/221495_2.png) [@obsidianjulua](https://discourse.julialang.org/u/obsidianjulua)\
**Post date:** [November 5, 2026, 3:50pm UTC](https://discourse.julialang.org/t/ann-replibuild-jl-a-full-c-c-rust-interop-toolkit-for-tiered-ffi-generation-repl-i-build/136122/36 "2026-11-05T15:50:45Z")

</div>

yeah thats basically it. the build stage needs a compiler for the target, the wrap stage only needs what it produced: dwarf, the symbol table and two facts off the linked IR. I can only have binarybuilder build with -g and provide a binary. That works for c and can be completely done in julia with ingest but not possible for me with cpp. cpp is harder because the thunks are machine code: the JIT path needs system llvm on the user’s box which kills it for a jll, but the AOT path already compiles them at wrap time and llvm will target any triple. what’s left there is the exception guard living in libJLCS, and thats blocking my jll efforts for a dialect jll.

---

<div class="post-metadata">

**Author:** ![obsidianjulua](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/obsidianjulua/32/221495_2.png) [@obsidianjulua](https://discourse.julialang.org/u/obsidianjulua)\
**Post date:** [November 8, 2026, 5:01pm UTC](https://discourse.julialang.org/t/ann-replibuild-jl-a-full-c-c-rust-interop-toolkit-for-tiered-ffi-generation-repl-i-build/136122/37 "2026-11-08T17:01:12Z")

</div>

Release 4.4.0

A function that returns or takes std::pair, std::array or std::string\_view by value is callable, and a dependency can be a tarball pinned by its hash.

## New

Standard-library records by value. A record declared in a toolchain header keeps its layout when an exported function passes, returns or holds it by value, and the wrapper emits it as a struct (pair\_double\_double with first and second). This covers std::pair in every SysV shape, std::array, std::string\_view, and a library struct holding one. Only what an exported, non-std function crosses is kept, so the standard library’s own internals stay out. std::tuple, std::optional and std::complex are still ABI traps. A struct deriving from an empty base (std::pair, a library struct P : Tag) crosses by value; it was a trap.

Archive dependencies. `[dependencies.<n>] type = "archive"` with url and a required sha256 fetches a tarball through Pkg’s artifact engine, checks the hash before unpacking, and walks it like a clone, from subdir or the archive’s single top directory. A changed pin fetches again.

A local dependency’s exclude is applied, and its headers count as the project’s own for the shim-header check.

Also Fedora’s binutils are recognised as GNU binutils now.

---

<div class="post-metadata">

**Author:** ![obsidianjulua](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/obsidianjulua/32/221495_2.png) [@obsidianjulua](https://discourse.julialang.org/u/obsidianjulua)\
**Post date:** [November 8, 2026, 9:40pm UTC](https://discourse.julialang.org/t/ann-replibuild-jl-a-full-c-c-rust-interop-toolkit-for-tiered-ffi-generation-repl-i-build/136122/38 "2026-11-08T21:40:28Z")

</div>

![image](https://global.discourse-cdn.com/julialang/original/3X/c/3/c30e6de43a4007f9df1e2cd40e1c59d0ade2f773.png)

Ok so I merged the llama.cpp, dearimgui, and a libvterm wrappers into its own pkg with julia driving it all. Thats a active REPL on the right and attach adds it to the models context.

renders everything to markdown too

dearimgui and Llamma.cpp lower to gpu with MLIR thunks, no GC

Discover() writes the build recipe to replibuild.toml and you add macros, stl templates and varargs into the toml and rebuild it. Fully wrapped library, c or cpp, or cpp and c libraries. Make the build and wrapper recipe in a single file for supported systems.

---

<div class="post-metadata">

**Author:** ![obsidianjulua](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/obsidianjulua/32/221495_2.png) [@obsidianjulua](https://discourse.julialang.org/u/obsidianjulua)\
**Post date:** [November 14, 2026, 8:48pm UTC](https://discourse.julialang.org/t/ann-replibuild-jl-a-full-c-c-rust-interop-toolkit-for-tiered-ffi-generation-repl-i-build/136122/39 "2026-11-14T20:48:17Z")

</div>

v4.5.0 changes(rebuild the wrappers for C++)

- Linux AArch64 is supported (AAPCS64 on both tiers; devtests run on an arm64 runner).
- A `std::string` returned by value is a Julia `String`, read where C++ built it and destroyed there (libstdc++ and libc++, `char` only).
- `std::tuple`, `std::optional` and `std::complex` by value are callable.
- C++ overloads that differ on a pointer’s target or an enum are separate methods; an rvalue overload beside its `const&` twin is not emitted.
- `[wrap.rename]` names a function by hand, keyed by mangled symbol or derived name.
- C enums are open types; a pointer or reference return is typed `Ptr{T}` when the wrapper emits `T`.
- Graph mode: one Julia type per C++ type across a graph’s libraries, imported enums bring their values, and the project can be a pinned dependency checkout.
- A C record whose eightbyte holds a float beside integers crosses as C does; an over-aligned C++ member routes to Tier 2; aliased destructors keep their own symbol; a method proxy keeps its owner alive across the call.
- Julia 1.12 is the oldest supported release; CI tests 1.12 and 1.13 on Linux x86-64, Linux AArch64 and Windows.

A `std::string` parameter, `const std::basic_string<char>&` or `std::basic_string<char>` by value, takes a Julia string. The wrapper builds a real `std::string` from it in a slot of its own, passes that object’s address, and ends it after the call, whether the call returns or throws. It used to take the object’s byte stand-in, which a caller cannot construct, so no Julia string could reach such a function at all. The return side (PR#98) is the model: the layout and now the constructor are recorded by the build, and the runtime symbols are found per host at first use through the library’s own handle, never through `RTLD_DEFAULT`, never at wrap time.

---

<div class="post-metadata">

**Author:** ![obsidianjulua](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/obsidianjulua/32/221495_2.png) [@obsidianjulua](https://discourse.julialang.org/u/obsidianjulua)\
**Post date:** [November 17, 2026, 3:32am UTC](https://discourse.julialang.org/t/ann-replibuild-jl-a-full-c-c-rust-interop-toolkit-for-tiered-ffi-generation-repl-i-build/136122/40 "2026-11-17T03:32:42Z")

</div>

RepliBuild is able to wrap Jolt(cpp source) and Raylib, this is written in pure julia, claude made the sim I just make the bindings. Jolt(functions) compile to AOT thunks and is fast, the wrappers can be precompiled with sysimages aswell. I did wrap bullet3 but jolt is better for alot of reasons.

This second video is bullet3 as the physics and the boxes dont act naturally.

---

<div class="post-metadata">

**Author:** ![obsidianjulua](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/obsidianjulua/32/221495_2.png) [@obsidianjulua](https://discourse.julialang.org/u/obsidianjulua)\
**Post date:** [November 18, 2026, 2:29am UTC](https://discourse.julialang.org/t/ann-replibuild-jl-a-full-c-c-rust-interop-toolkit-for-tiered-ffi-generation-repl-i-build/136122/41 "2026-11-18T02:29:09Z")

</div>

![image](https://global.discourse-cdn.com/julialang/original/3X/1/3/135fcb49d09faf9cb44cab4e66c4915ee77f14ab.png)

The Architect wins… and users of Rust

A Rust front end: `build`, `wrap` and `use` on a Cargo crate, **as it is**. The crate needs no `extern "C"`, no `#[repr(C)]` and no other change. cargo and rustc build it; RepliBuild reads how each function is really called from that build and writes the Julia module.

---

<div class="post-metadata">

**Author:** ![obsidianjulua](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/obsidianjulua/32/221495_2.png) [@obsidianjulua](https://discourse.julialang.org/u/obsidianjulua)\
**Post date:** [November 27, 2026, 6:25pm UTC](https://discourse.julialang.org/t/ann-replibuild-jl-a-full-c-c-rust-interop-toolkit-for-tiered-ffi-generation-repl-i-build/136122/42 "2026-11-27T18:25:13Z")

</div>

![image](https://global.discourse-cdn.com/julialang/original/3X/a/3/a3d7413da297ebb8a9b57ce8d09e9b63dc7b04a8.jpeg)

Thats 3 years worth of julia to c and cpp testing through MLIR, and it scrolls down further…

RepliBuild has to pass all of these for Linux, windows and the arm64 classifier, as well as 70 plus c/cpp pkgs that express each function from Julia through its wrapper before a release. I “vibe code” a lot of this but im not sure my definition of “vibe coding” is the same

[Previous page](https://discourse.julialang.org/t/ann-replibuild-jl-a-full-c-c-rust-interop-toolkit-for-tiered-ffi-generation-repl-i-build/136122.md?page=1)
