FFI in Programming Languages

The cluster focuses on Foreign Function Interfaces (FFI), particularly C interoperability, performance, ease of use, and comparisons across languages like Python, Lua, Java, Rust, and others.

➡️ Stable 0.5x Programming Languages
1,918
Comments
20
Years Active
5
Top Authors
#7368
Topic ID

Activity Over Time

2007
3
2008
5
2009
8
2010
17
2011
40
2012
47
2013
65
2014
112
2015
92
2016
100
2017
139
2018
138
2019
116
2020
139
2021
136
2022
211
2023
154
2024
203
2025
187
2026
6

Keywords

PLT CPU FFI JIT OP ML FWIW SWIG hello.dart QEMU ffi language python jit java native library function calls rpc

Sample Comments

cheriot Dec 27, 2021 View on HN

For many languages isn't that the FFI to C?

pjmlp Jul 7, 2022 View on HN

Just like any language with FFI capabilities to call the same libraries.

wtetzner Jan 26, 2020 View on HN

Unless it has good FFI support for C...

Why Java interoperability instead of a good C FFI? That's what Perl/Ruby/Python/Lua/... are doing, and it works for them.

HexDecOctBin Nov 10, 2024 View on HN

Any plans to add C bindings? Most other languages have a decent FFI story, and being usable from C will make it more universally usable.

dom96 May 13, 2016 View on HN

Are you aware of any language's whose FFI is that trivial?

atilaneves May 20, 2016 View on HN

Having a C API for easy FFI doesn't imply a C implementation

atgreen Feb 3, 2018 View on HN

libffi author here...Did you consider writing a purpose-built JIT compiler? I believe the FFI use-case is narrow enough that a tiny hand-written JIT compiler would be pretty easy... like the old QEMU template based JIT.

jcromartie Nov 9, 2010 View on HN

It has FFI, so you can call other libs as long as they are C-compatible.

s_y_n_t_a_x Jul 26, 2019 View on HN

LuaJIT w/ FFI seems better imo.