Skip to content

Commit 16a7d0a

Browse files
update reference to Cinder
1 parent c2119c2 commit 16a7d0a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

posts/faster-jit-plan.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Free-threading is taking off, but the current JIT doesn't work with it yet.
166166

167167
The ideas for this are still a little nebuluous, but over the summer I had the fortune of contributing a little to ZJIT, Ruby's new JIT compiler, with help from Max Bernstein. It was a load of fun and I learnt a lot. Perhaps the most interesting thing is the idea of `PatchPoint` and `Ractors`. I'm basically borrowing Ruby's ideas here!
168168

169-
Ruby has had the nogil problem for their JIT compilers for ages. One way of making sure single-threaded-assumption optimizations still work is to add a watcher in the code (idea borrowed from Cinder, Instagram's JIT compiler for Python). This watcher is essentially a callback to invalidate something once an assumption holds true. This sounds not very concrete, but consider the following micro-operation trace:
169+
Ruby has had the nogil problem for their JIT compilers for ages. One way of making sure single-threaded-assumption optimizations still work is to add a watcher in the code (CPython's implementation was upstreamed from [Cinder](https://github.com/facebookincubator/cinder), Instagram's JIT compiler for Python). This watcher is essentially a callback to invalidate something once an assumption holds true. This sounds not very concrete, but consider the following micro-operation trace:
170170

171171
```
172172
_CHECK_VALIDITY

0 commit comments

Comments
 (0)