An FFI between Gambit Scheme and CPython
summary
An FFI implements a bidirectional bridge between Gambit Scheme and CPython that actually converts values, wraps CPython objects via Gambit’s CFFI, and handles reference counting and movable GC interactions; it exposes 400,000 PyPI packages to Scheme, provides an infix parser so Python syntax embeds in Scheme, and builds a working foreign procedure calls (FPC) system that pairs Gambit and Python threads to run Flask HTTP handlers concurrently.
AI-written summary · about
chapters (8)
- 0:00Start
- 0:15Goals and Motivations
- 9:42Gambit and C Python Manage Memory
- 10:41Threading Model
- 12:01Foreign Procedure Calls
- 17:33The Gambit Scheme in Fix Extension Parser
- 19:36Python Import
- 21:35Http Requests with Flask
related talks
36mA lightweight approach for accessing Python modules from Gambit Scheme
36mPython, C, C++, and Fortran Relationship Status: It’s Not That Complicated
06mLessons learned from using the C Foreign Function Interface
28mCall a C API from Python becomes more enjoyable with CFFI
01h 01mFrom F# to Python with Fable
31mCFFI, Ctypes, Cython The Good, The Bad and The Ugly
45mGo(lang) to Python
24mPython & Flutter: can birds and snakes really be friends?
