Sandbox to play with different pthread threading features exposed by libuv
git checkout simple-main
make main
./bin/main /dev/random
git checkout reader+writer
make main
./bin/main /dev/random
git checkout writable
make main
./bin/main /dev/random
This parser supports pushing chunks to it asynchronously via the writable.write
.
It will block the reader thread if it runs out of chunks and waits until the main thread pushes
more data.
git checkout json-parser
make main
./bin/main <path>/<to>/<file.json>
MIT