C++ roadmap
Luke Hutchison
luke.hutch at gmail.com
Thu Nov 14 23:59:44 UTC 2019
On Sat, Aug 17, 2019 at 1:20 PM Luke Hutchison <luke.hutch at gmail.com> wrote:
> Yes, lowering C++ to C is exactly what I was describing -- for each
> syntactic construction, generating code that mimics the semantics of that
> construction, then using partial evaluation to compose these semantics into
> a set of generated bindings with a simple C function interface.
>
There is a great video here about how Rust bindings for the enormous C++
library PhysX were generated by lowering the C++ API to C using Clang's
LibTooling. A similar approach could work for Panama.
https://www.youtube.com/watch?v=RxtXGeDHu0w
https://github.com/EmbarkStudios/physx-rs/tree/master/physx-sys
More information about the panama-dev
mailing list