A lightweight approach for accessing Python modules from Gambit Scheme
summary
Lightweight Gambit–CPython bridge provides a bi‑directional interface to CPython 3.5+ using the CPython C API and Gambit’s C FFI, builds on Linux/macOS/Windows (tested), and runs Python packages from a virtualenv for Gambit. A high‑level six infix reader embeds Python/JS‑like expressions in Scheme with automatic conversions (table↔dict, vector→bytes) and callable Scheme closures via capsule-backed scheme‑procedure stubs; examples include requests, Flask, and a copied TensorFlow tutorial. Work remains on auto-registered converters, GIL/threading, and cross‑platform robustness.
AI-written summary · about
chapters (7)
- 0:00Start
- 5:47Mark Andre Belanger
- 11:17Syntactic Interface
- 17:50Pass Scheme Objects to Javascript
- 19:09Module Imports
- 26:50Tensorflow Example
- 34:33How Does the Scheme Garbage Collector Know that this Pointer Exists Over from the Python Heap into the Scheme Data
related talks
24mAn FFI between Gambit Scheme and CPython
45mGo(lang) to Python
01h 01mExtend and Embed Python with C++
36mPython, C, C++, and Fortran Relationship Status: It’s Not That Complicated
25mHow to bring your C++ project to Python land
28mOn Bridging Prolog and Python to Enhance an Inductive Logic Programming System
33mParens for Python
05mgopy: extending CPython with Go
