Skip to content

Instantly share code, notes, and snippets.

View fmassot's full-sized avatar
🎯
Focusing

François Massot fmassot

🎯
Focusing
View GitHub Profile
@fulmicoton
fulmicoton / leader_election_scuttlebutt.txt
Last active September 29, 2022 00:44
Leader election on top of scuttlebutt.
Leader election on top of Scuttlebutt.
-----------------------------------------------
The following makes it possible to cheaply get a leader election
on top of a Cassandra-like membership using scuttlebutt + phi accrual detection.
# TDLR about Scuttlebutt and phi accrual detection
Scuttlebutt is a anti-entropy gossip algorithm.
It makes it possible for every node in a cluster to
@pervognsen
pervognsen / shift_dfa.md
Last active July 7, 2024 06:26
Shift-based DFAs

A traditional table-based DFA implementation looks like this:

uint8_t table[NUM_STATES][256]

uint8_t run(const uint8_t *start, const uint8_t *end, uint8_t state) {
    for (const uint8_t *s = start; s != end; s++)
        state = table[state][*s];
    return state;
}
@danielmai
danielmai / 1_summary.md
Last active January 11, 2024 01:32
fio tests on aws instances

Summary: Fio tests

r5.2xlarge

r5.2xlarge instance in eu-west-1 with 200 GB EBS io1 volume and 3000 IOPS.