Skip to content

Instantly share code, notes, and snippets.

View bengl's full-sized avatar
Set your status

Bryan English bengl

Set your status
View GitHub Profile
bengl /
Last active October 5, 2021 16:31
Where to buy Multithreaded Javascript

Where to buy Multithreaded JavaScript:

This is an incomplete list! If you find a listing for "Multithreaded JavaScript: Concurrency Beyond the Event Loop" in your favourite bookstore, please leave a comment or DM @bengl on Twitter to have it added here.



bengl / http-next.js
Last active September 13, 2020 09:17 — forked from wesleytodd/framework.js
Just noodling on the future Node.js and http
View http-next.js
import http from 'http-next'
import fs from 'fs'
const server = http.createServer({
allowHTTP1: true,
allowHTTP2: true,
allowHTTP3: true,
key: fs.readFileSync('localhost-privkey.pem'),
cert: fs.readFileSync('localhost-cert.pem')
View pitesti-on-deno.js
import pitesti from ''
import streams from ''
import { assertEquals } from ""
const outputStream = new streams.Writable({
write (data, encoding, cb) {
bengl /
Last active September 23, 2018 20:46
bundled cowsay app demo for qbundler

This is an example app that has been bundled with qbundler.

It's a bundled version of

You can try this yourself!

Just npm i -g qdd, then download this JS file and run it. A server will be running after it quickly downloads its dependencies, like magic!

View qdd-cowsay-demo.js
// Try running this file with:
// npx -p bengl/qdd qdd-node qdd-cowsay-demo.js
// `qdd-node` will read the package-lock data below, use it to install the
// dependencies to the qdd cache, then run this file with a shimmed module
// loader that will load from the qdd cache!
// This would also work with an ordinary package-lock.json file in the $PWD.
View funfunfunfun.js
const { Readable } = require('stream');
const oldOn = Readable.prototype.on;
Readable.prototype.on = function on(name, fn) {
oldOn.apply(this, arguments);
if (name !== 'allData' || this._readableState.objectMode) {
View loopyfunctioney.js
// Try running this file in Node 8.2.1
// Try running this file in Node 8.3.0
// Try running this file in d8 for Node 8.3.0
function empty() {}
let i, j, d;
for(j = 0; j < 5; j++) {
d =;
for (i = 0; i < 1e7; i++) {
#!/usr/bin/env bash
echo "This works!"
View NodeTodo Getting
  • Create a GitHub account (if you don't already have one)
  • On the command line, in your home directory or a directory you have for projects, run: git clone
  • When that is done: cd node
  • Go to and use the "Fork" button to fork your own repo of node
  • On the page for your fork, use the "Clone or download" button and copy the URL for cloning to your clipboard, then run: git remote add mine <paste that URL here!>
  • Follow the instructions at to build Node.js.
  • Email or tweet at @NodeTodo to get a good first contribution to work on or to get help with any of the above steps.