5 ms·
I need FFI (foreign function interface) to fall C functions from the scripting language. My glance into TCL did not turn up a native FFI.
by SlowRobotAhead 7y ago
I need FFI (foreign function interface) to fall C functions from the scripting language. My glance into TCL did not turn up a native FFI.
- tyingq 7y agoAhh. It has good support for extensions written in C. But no scriptable ffi where you can dynamically load libraries and run functions.
- blacksqr 7y agoFfidl (https://prs-de.github.io/ffidl/ https://prs-de.github.io/ffidl/) is the standard library extension for Tcl to make use of FFI. Tcl's philosophy is to keep the core lean and extend functionality via loadable libraries.
- SlowRobotAhead 7y agoI'll take a look, thanks. EDIT: Not too bad actually. I'll take a look and compare to Lua. I'm not ::crazy::about:TCL's syntax, but it's not that bad.