Hacker GitHub

← All repos

rpav/c2ffi

View on GitHub ↗ ★ 285 C++

Clang-based FFI wrapper generator

7 mentions on Hacker News by 4 people: 0 stories, 7 comments · first 2017-09-06 · latest 2024-05-08

Mentions per year 7 mentions · busiest year 2018 (2)
20082026
  1. Some Common Lisp FFIs have opted to coax this information out of the compiler. https://github.com/rpav/c2ffi is a C++ tool that links to libclang-cpp and literally outputs JSON with sizes and alignments. (It is then used by…
    comment by orivej · 2024-05-08 · in Pair Your Compilers at the ABI Café
  2. …itself is transmitted. For an example of why language/format matters, consider the tool c2ffi ( https://github.com/rpav/c2ffi ). It generates a JSON description of a C header file. The header file itself is a pain to parse and extract…
  3. …outputs DWARF or DWARF-like debug output that actually lays out everything That sounds like C2FFI: https://github.com/rpav/c2ffi The only language ecosystem where I've seen it used is Common Lisp, in the CL-Autowrap library (…
    comment by nerdponx · 2022-11-07 · in C isn't a programming language anymore
  4. …in any programming language and does not require access to the source code. I mentioned C2FFI ( https://github.com/rpav/c2ffi ) in another post in this thread. That's an extra "spec.json" file that you need to distribute along with your…
    comment by nerdponx · 2022-11-07 · in C isn't a programming language anymore
  5. I like the idea of this tool: https://github.com/rpav/c2ffi (Although despite planning to use it for some personal project I haven't got around to it yet...) It parses C/C++/Objective-C into JSON metadata. It uses clang/LLVM so the…
    comment by skissane · 2018-05-02 · in PicoLisp
  6. …C is a pretty nasty language to parse, so you end up using something like http://www.swig.org/ or https://github.com/rpav/c2ffi to parse it for you. But the challenge with adopting those sort of tools for Java is they aren't written in…
  7. …languages call directly into C++, yes that's quite a pain (nearly impossible without something like https://github.com/rpav/c2ffi ). Note also that calling into non-C ABI functions in any language is hard (and most HLLs don't support…