https://github.com/andrew-johnson-4/ffire
Quickly generate FFI bindings from any language to any language
https://github.com/andrew-johnson-4/ffire
Last synced: 7 months ago
JSON representation
Quickly generate FFI bindings from any language to any language
- Host: GitHub
- URL: https://github.com/andrew-johnson-4/ffire
- Owner: andrew-johnson-4
- License: mit
- Created: 2024-11-14T04:49:42.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-11-17T00:41:37.000Z (11 months ago)
- Last Synced: 2025-03-28T00:55:38.701Z (7 months ago)
- Size: 6.84 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FFIre
Quickly generate FFI bindings from any language to any languageLM is a typed macro assembler that can be used to generate code from templates. Here we have examples for Python to Rust or Node to C etc.
Generating FFI Bindings can usually be broken down into logically distinct stages.
* extracting information from the low-level language
* defining the API for the high-level language
* generating the glue codeThis project is structured to address these issues individually by
* providing common language parsers to extract symbol and type information from low-level languages
* providing simple macros to define the exported API to high-level languages
* using the advanced LM type system to generate good glue code that allocates resources and frees resources correctly