Skip to content

Instantly share code, notes, and snippets.

@argenet
argenet / gist:69e895427c3862d622eb2ed4a58c19ec
Created September 7, 2017 00:15
ScyllaDB 2.0rc4 .deb package build log on Ubuntu 16.04
Setting up libglib2.0-data (2.48.2-0ubuntu1) ...
Setting up libnuma1:amd64 (2.0.11-1ubuntu1) ...
Setting up libpci3:amd64 (1:3.3.1-1.1ubuntu1.1) ...
Setting up pciutils (1:3.3.1-1.1ubuntu1.1) ...
Setting up libantlr3-runtime-java (3.5.2-4) ...
Setting up libstringtemplate4-java (4.0.8-2) ...
Setting up antlr3-c++-dev (3.5.2-ubuntu1) ...
Setting up autotools-dev (20150820.1) ...
Setting up libcroco3:amd64 (0.6.11-1) ...
Setting up gettext (0.19.7-2ubuntu3) ...
# ./test.py --mode release -v --name loading_cache
[1/1] RUNNING build/release/tests/loading_cache_test --collectd 0
[1/1] PASSED build/release/tests/loading_cache_test
OK.
# ./test.py --mode debug -v --name loading_cache
[1/1] RUNNING build/debug/tests/loading_cache_test --collectd 0
FAILED: build/debug/tests/loading_cache_test
with error code 201
@argenet
argenet / ArrowMap.hs
Last active September 11, 2019 20:52
ArrowMap implementation in Haskell and C++
import Prelude hiding (lookup)
class MapLike m where
empty :: m k v
lookup :: Ord k => k -> m k v -> Maybe v
insert :: Ord k => k -> v -> m k v -> m k v
delete :: Ord k => k -> m k v -> m k v
fromList :: Ord k => [(k,v)] -> m k v
newtype ArrowMap k v = ArrowMap { getArrowMap :: k -> Maybe v }