c2ffi VS abi-cafe

Compare c2ffi vs abi-cafe and see what are their differences.

c2ffi

Clang-based FFI wrapper generator (by rpav)

abi-cafe

Pair your compilers up at The ABI Café! (by Gankra)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
c2ffi abi-cafe
4 2
216 160
- -
5.7 3.1
6 days ago 5 months ago
C++ Rust
GNU Lesser General Public License v3.0 only -
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

c2ffi

Posts with mentions or reviews of c2ffi. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-11-26.
  • sketch, sdl2, c2ffi on M1 Mac?
    6 projects | /r/Common_Lisp | 26 Nov 2022
    Quickloading :sketch or :sdl2 wants the c2ffi library which seems to be available on neither Quicklisp nor Homebrew. Downloading that library from source and following the build instructions (and several alternative variants found by Googling ) leads to errors like:
  • C Isn't a Programming Language Anymore
    4 projects | news.ycombinator.com | 7 Nov 2022
    > C compiler based tool that 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. But it emits plain JSON and depends only on LLVM (albeit a specific version thereof), and I don't see any reason why you couldn't build e.g. a Python auto-binding library on top of it.

  • Alternative to ECL?
    5 projects | /r/lisp | 27 Apr 2021
    There is the cl-autowrap that can generate lisp packages from C header filesc- I am unsure if it sticks to ANSI C or goes beyond. It inturn depends on c2ffi for the first time around.
  • Installing c2ffi on Ubuntu
    2 projects | dev.to | 17 Feb 2021
    git clone https://github.com/rpav/c2ffi git checkout -b llvm-11.0.0 refs/remotes/origin/llvm-11.0.0 cd build cmake .. # -DBUILD_CONFIG=Release LIBRARY_PATH=/usr/lib/llvm-11/lib/ make # -j8 sudo checkinstall

abi-cafe

Posts with mentions or reviews of abi-cafe. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-11-07.
  • C Isn't a Programming Language Anymore
    4 projects | news.ycombinator.com | 7 Nov 2022
    It also kinda sorta sounds like this tool the author wrote: https://github.com/Gankra/abi-cafe

    > This tool helps automate testing that two languages/compilers agree on ABIs for the purposes of FFI. This is still in early development so lots of stuff is stubbed out.

    ...

    > By running this natively on whatever platform you care about, this will tell you what FFI interfaces do and don't currently work. Ideally all you need to do is cargo run, but we're dealing with native toolchains so, expect toolchain bugs!

  • rustc_codegen_gcc: Progress Report #11
    2 projects | /r/rust | 5 May 2022
    You might be able to find more differences in this abi checker and you can read more about it in this blog article.

What are some alternatives?

When comparing c2ffi and abi-cafe you can also consider the following projects:

cl-autowrap - (c-include "file.h") => complete FFI wrapper

c-mera - Next-level syntax for C-like languages :)

mal - mal - Make a Lisp

chibi-scheme - Official chibi-scheme repository

CMake - Mirror of CMake upstream repository

cl-sdl2-image - SDL_image 2.0 wrapper

cl-sdl2 - Common Lisp bindings for SDL2 using C2FFI.

processing - Source code for the Processing Core and Development Environment (PDE)

veloren

cl-sdl2-ttf - A common lisp wrapper for SDL2_TTF used for loading fonts and creating text assets

dmd - dmd D Programming Language compiler