Skip to content

Instantly share code, notes, and snippets.

View fhinkel's full-sized avatar

F. Hinkelmann fhinkel

View GitHub Profile
var fs = require('fs')
for (var i = 0; i < 10000; i++) {
printLength(__filename)
}
function printLength (filename) {
fs.readFile(filename, foo)
function foo (err, buf) {
@fhinkel
fhinkel / d8.md
Last active November 7, 2019 20:05
V8 Installation and d8 shell usage

Installing V8 on a Mac

Install depot_tools

$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
$ export PATH=`pwd`/depot_tools:"$PATH"

Build v8

$ fetch v8