Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@dominictarr
dominictarr / logdb.md
Last active July 29, 2016 17:06
ideas for a modular database

intro

we've had great success building modular database stuff on top of leveldb with node, but as I have learnt more about databases it's become apparent to me that the idea of a modular database would be better implemented at a slightly lower level.

Level db provides a sorted key:value store, which, because of the sorted property, many things can be implemented on top of. For example, for replication, or for consistent materialized views, we often need a write ahead log. This can easily be implemented via a batch write to level, and writing the log into a section of the leveldb key space which is treated as append only.

@bvssvni
bvssvni / gist:18aa2ebac87081cafdd0
Last active August 29, 2015 14:20
Notation for reasoning about parsing - described in its own notation
whitespace { optional }:
whitespace?
token("whitespace")
select(
token("?") as optional
token("!") as !optional
)
whitespace?
parameter { name, args, value }:
From f5908efac9f55216d5aabdee72687b2b47f1c89c Mon Sep 17 00:00:00 2001
From: Chang Liu <cliu712@aucklanduni.ac.nz>
Date: Mon, 13 Apr 2015 09:36:31 +0000
Subject: [PATCH] Add support for linux-musl in build system. Fix glibc
assumptions in code.
---
autoconf/config.sub | 7 +++++--
lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp | 2 +-
lib/Support/DynamicLibrary.cpp | 4 ++--