MCPcopy Index your code
hub / github.com/MultithreadedJSBook/code-samples

github.com/MultithreadedJSBook/code-samples @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
101 symbols 176 edges 49 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Multithreaded JavaScript Code Samples

These are the code samples to accompany the book Multithreaded JavaScript.

If you find an issue with the book, please use the Errata for Multithreaded JavaScript page to submit the problem. However, if you find an issue directly with the code, then you may submit an issue to this repository.

Core symbols most depended-on inside this repo

write
called by 11
ch6-ring-buffer/ring-buffer.js
exec
called by 4
ch2-patterns/rpc-worker.js
setBool
called by 4
ch4-serialization/booleans.js
exec
called by 3
ch6-mutex/mutex.js
sleep
called by 3
ch2-patterns/worker.js
getBool
called by 3
ch4-serialization/booleans.js
exec
called by 2
ch6-actors/rpc-worker.js
read
called by 2
ch6-ring-buffer/ring-buffer.js

Shape

Function 48
Method 34
Class 19

Languages

TypeScript88%
C12%

Modules by API surface

ch6-ring-buffer/ring-buffer.js13 symbols
ch5-game-of-life/thread-gol.js8 symbols
ch5-game-of-life/gol.js7 symbols
ch1-c-threads/happycoin-threads.c7 symbols
ch8-template-render/rpc-worker.js6 symbols
ch6-thread-pool/rpc-worker.js6 symbols
ch6-mutex/mutex.js6 symbols
ch6-actors/rpc-worker.js6 symbols
ch7-happycoin-as/happycoin.ts5 symbols
ch2-patterns/worker.js5 symbols
ch2-patterns/rpc-worker.js5 symbols
ch1-c-threads/happycoin.c5 symbols

For agents

$ claude mcp add code-samples \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact