Skip to content

Commit 85a882a

Browse files
committed
Add back removed code blocks
1 parent 440e233 commit 85a882a

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

  • content/posts
    • language-summit-2026-free-threading-post-era
    • language-summit-2026-spicycrab

‎content/posts/language-summit-2026-free-threading-post-era/index.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ wait()
102102

103103
There are [many more examples available on GitHub](https://github.com/microsoft/bocpy/tree/main/examples). This proof of concept, implemented using subinterpreters, is available for anyone to try: [bocpy](https://microsoft.github.io/bocpy), available on the [Python Package Index](https://pypi.org/project/bocpy):
104104

105+
```sh
106+
python -m pip install bocpy
107+
```
108+
105109
Checking bocpy against their own criteria of simplicity, safety, and performance: bocpy is simple, as can be seen in the above examples. On the safety front, bocpy today runs in “stable Python”, and for this reason only isolation has been implemented so far. “We don’t yet have ownership, you can’t implement [ownership] as a third-party library”, as this would require changes to the runtime. Performance is “good for programs that aren’t communication dominated” due to “communication being expensive for subinterpreters”.
106110

107111
The bocpy package provides three features:

‎content/posts/language-summit-2026-spicycrab/index.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ Kushal Das brought a project that fills a niche for Python users who hit a perfo
1616
<figcaption>Photo by Hugo van Kemenade (<a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en">CC BY-NC-SA 4.0</a>)</figcaption>
1717
</figure>
1818

19+
```sh
20+
crabpy transpile greet.py -o greet
21+
```
1922

2023
This simple demo produces Rust source code at `greet/src/main.rs`, which can be run with `cargo run`.
2124

0 commit comments

Comments
 (0)