You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5f1bb82
Browse filesBrowse the repository at this point in the historyBrowse files
Show how to import a callback and read its result from Erlang and Elixir. List the native build prerequisites, explain when re-import sessions release their modules, and point readers to the current guides for shared state and memory caps.
Copy file name to clipboardExpand all lines: README.md
+8-12Lines changed: 8 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ evaluate expressions, and stream from generators - all without blocking Erlang
16
16
schedulers.
17
17
18
18
**Parallelism options:**
19
-
-**Worker mode** (default, recommended) - Works with any Python version. With free-threaded Python (3.13t+), provides true parallelism automatically.
19
+
-**Worker mode** (default, recommended) - Works with every supported Python version. With free-threaded Python (3.13t+), provides true parallelism automatically.
20
20
-**OWN_GIL sub-interpreters** (Python 3.14+) - Each interpreter has its own GIL, true parallelism.
21
21
-**BEAM processes** - Fan out work across lightweight Erlang processes.
22
22
@@ -38,7 +38,8 @@ Key features:
38
38
## Requirements
39
39
40
40
- Erlang/OTP 28 or later (tested on OTP 28 and 29)
41
-
- Python 3.12+ (3.13+ for free-threading)
41
+
- CPython 3.12+ with matching development headers (`Python.h`); 3.13+ for free-threading
42
+
- rebar3 and CMake 3.18 or later
42
43
- C compiler (gcc, clang)
43
44
44
45
## Building
@@ -112,11 +113,8 @@ Register Erlang or Elixir functions that Python code can call back into:
@@ -632,7 +628,7 @@ Bulk data crosses through shared memory (`py_shm`, with the optional
632
628
[iommap](https://hex.pm/packages/iommap) dependency). See
633
629
[Isolated Contexts](docs/isolated.md).
634
630
635
-
**Worker mode is recommended** because it works with any Python version and automatically benefits from free-threaded Python (3.13t+) when available. Each context owns a dedicated pthread, providing stable thread affinity for libraries with thread-local state (numpy, torch, tensorflow).
631
+
**Worker mode is recommended** because it works with every supported Python version and automatically benefits from free-threaded Python (3.13t+) when available. Each context owns a dedicated pthread, providing stable thread affinity for libraries with thread-local state (numpy, torch, tensorflow).
636
632
637
633
**Why OWN_GIL requires Python 3.14+**: Some C extensions (e.g., `_decimal`, `numpy`) have global state bugs in sub-interpreters on Python 3.12/3.13. These are fixed in Python 3.14.
Copy file name to clipboardExpand all lines: docs/isolated.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ Options of `py_context:new/1` specific to this mode:
49
49
50
50
| Option | Default | Meaning |
51
51
|---|---|---|
52
-
|`python`| interpreter matching the embedded runtime (`py:python_executable/0`), or `isolated_python` app env | Executable to run|
52
+
|`python`|`isolated_python` application setting if set, otherwise the interpreter matching the embedded runtime (falling back to `python3` on `PATH`) | Executable for the child process|
53
53
|`rlimits`|`#{}`|`#{as => Bytes, cpu => Seconds, nofile => N}`, applied with `setrlimit` before any user code |
54
54
|`cgroup`| none | Path of a cgroup v2 directory the child joins (limits written by you: `memory.max`, `cpu.max`, `pids.max`) |
55
55
|`env`|`#{}`| Extra environment variables for the child |
0 commit comments