Skip to content

Instantly share code, notes, and snippets.

View bartvanhoutte's full-sized avatar

Bart Vanhoutte bartvanhoutte

View GitHub Profile
@clue
clue / 2018-07-12 non-blocking-io-for-the-masses-webengdus.md
Last active February 10, 2022 11:17
Non-blocking I/O for the masses (WebEngDUS)

I/O is everywhere. I/O is slow. There's no denying it. Using traditional blocking I/O calls can thus be seen as a huge contributor to slow applications. This talk discusses how non-blocking I/O can help in building high performance, event-driven, reactive, concurrent, single-threaded applications (bingo). Don't worry, no need to install Node.js and npm install half the internet. Let's build high-performance applications from scratch with whatever language you're most comfortable with!

20 minutes talk at @WebEngDUS (2018-07-12)

Slides

The slides are available on https://speakerdeck.com/clue/non-blocking-io-for-the-masses-webengdus.

These slides were used as part of a presentation at @WebEngDUS. The full presentation took around 20 minutes including live demonstration and a short Q/A followed by some very nice discussions.

@tburry
tburry / composer-bin-autoload.php
Last active May 16, 2019 09:46
A snippet for including your composer autoloader in your /bin files.
<?php
$paths = [
__DIR__.'/../vendor/autoload.php', // locally
__DIR__.'/../../../autoload.php' // dependency
];
foreach ($paths as $path) {
if (file_exists($path)) {
require_once $path;
break;