HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
gambit
python
Scheme2022–2025
gambit / python

python

An interface to Python for Gambit Scheme

2Distinct people
4Mentions
0Explicit recommenders
20GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

An interface to Python for Gambit Scheme

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 11:56:56 AM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year4 dated mentions

Observed mentions: 2022-09-07 19:04:21 UTC to 2025-05-07 17:53:02 UTC.

01232022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 3 mentions; 1 submissions, 2 comments20222023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments20232024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-01-01 00:00:00 UTC to 2026-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2025

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC312
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC000
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC000
20252025-01-01 00:00:00 UTC2026-01-01 00:00:00 UTC101

What Hacker News says

4 sources
Hey, I'm writing this from Pr Feeley's lab :) I understand your comment was tongue-in-cheek, but we certainly have an interest in cross-language interoperability! You can check out our work here: - https://try.gambitscheme.org is Gambit compiled to JavaScript with the universal backend. Evaluate \alert("hello!") at the REPL to see the JS<->Scheme Syntactic FFI in action. - https://codeboot.org is our own Python interpreter running in the browser. It has a Python<->JS FFI. Evaluate \alert("hello!") at the REPL to test it out. You can even import JS libraries using the standard Python syntax by replacing the identifier with a string: import "https://mycdn.com/mylibrary.js". - https://github.com/gambit/python is a Gambit module that integrates Gambit with CPython, using the same syntactic FFI. You can import PyPI modules from Gambit. Referen
Read the rest
ces to conferences/papers describing these features can be found on my GH profile (https://github.com/belmarca). AMA if you wish!
In Polycompiler: Merge Python and JavaScript code into one file that runs in both
> Pyffi automatically exports Python modules as scheme objects and that's quite > practical. I'm quite pleased how well that feature works. > We worked on this briefly while building the Gambit interface to > CPython (https://github.com/gambit/python), but ran into some quirks with the > current Gambit macro and module systems that forced us to postpone. It is > definitely something we want! I just watched your video from Scheme 22 and I liked how you handled "passthroughs" and threads. Currently pyffi if more "one sided". The motivation was mainly to use Numpy (and friends) from Racket.
In Pyffi – Use Python from Racket
Pyffi automatically exports Python modules as scheme objects and that's quite practical. We worked on this briefly while building the Gambit interface to CPython (https://github.com/gambit/python), but ran into some quirks with the current Gambit macro and module systems that forced us to postpone. It is definitely something we want! Our syntactic interface based on Gambit's infix parser (SIX) is quite ergonomic and allows you to write expressions that look just like Python, within Scheme code (and vice-versa). It's much more natural than directly[1] passing strings to 'eval', although you can certainly do so (the whole low-level API is available). Here's the 'cal' example: > \import calendar > (display (\calendar.month 2022 09)) September 2022 Mo Tu We Th Fr Sa Su 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Read the rest
17 18 19 20 21 22 23 24 25 26 27 28 29 30 [1]: SIX expressions are compiled to strings and eventually evaluated by CPython's eval.
In Pyffi – Use Python from Racket
belmarca·Sep 7, 2022Submission

Show HN: FFI Between Gambit Scheme and CPython

Hi HN, Pr. Marc Feeley and I have just released a new module for Gambit. The 'python' module is available at https://github.com/gambit/python. It is a Foreign Function Interface (FFI) to CPython which combines a low-level API with a syntactic interface that allows Gambit users to interface with Python code. The module also offers a Foreign Procedure Call mechanism that bridges the CPython and Gambit threading models. For example, it is now possible for Gambit users to import Python modules as such: > \import math > (cos \math.pi) -1. This module requires a recent Gambit version compiled with the '--enable-multiple-threaded-vms' option. The GitHub repo contains a short README with instructions as well as a few examples to get you started. We will be giving a talk about our work at the upcoming Scheme Workshop (https://icfp22.sigplan.org/de
Read the rest
tails/scheme-2022-papers/7/An-F...). You can get a preprint of the accompanying article at https://andykeep.com/SchemeWorkshop2022/scheme2022-final22.p... . We had fun developing this and while there are still a few known kinks, the software is generally quite stable and enjoyable. Please notify us of any problems, or just to showcase your work! Cheers!
2 points · Open discussion

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.