An e-mail I sent to the authors of the PaxosLease paper back in the day.
One of them replied explaining how in their actual implementation of the
protocol (http://github.com/scalien/keyspace/tree/master/src/Framework/PaxosLease)
they added phase separation/tracking (bool preparing
and bool proposing
),
which would indeed solve the issue with the protocol outlined in the paper as
explained in the e-mail.
View .gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dist-newstyle/ |
View Raadsel.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main (main) where | |
import Data.SBV | |
raadsel :: Symbolic SBool | |
raadsel = do | |
vars@[s, e, n, d, m, o, r, y] <- sIntegers ["s", "e", "n", "d", "m", "o", "r", "y"] | |
-- Helper, maakt bvb. (100 * a + 10 * b + c) uit [a, b, c] | |
let woord w = sum (zipWith (*) (reverse w) (iterate (* 10) 1)) |
View get_addr.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import fcntl | |
import socket | |
import struct | |
''' | |
#include <stdio.h> | |
#include <net/if.h> | |
#include <netinet/in.h> | |
#include <sys/ioctl.h> |
View calico-cni-plugin.spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%global provider github | |
%global provider_tld com | |
%global project projectcalico | |
%global repo cni-plugin | |
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo} | |
%ifarch x86_64 | |
%global built_arch amd64 | |
%global calico_sha256 5736d46dc8f3d17eafd1d7874c49457244b698d5fccf726066c60c136ac5a318 | |
%global calico_ipam_sha256 ae32622d5c904e216cd914031e560e481c9ea9c213153172d0eacabadbb5e984 |
View README.md
View test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- See below | |
-- {-# LANGUAGE AllowAmbiguousTypes #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE RebindableSyntax #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
import Prelude hiding ((>>=), (>>), return) | |
import qualified Prelude as P | |
import Data.Functor.Identity (Identity, runIdentity) |
View abstract.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE FlexibleContexts #-} | |
{-# LANGUAGE FunctionalDependencies #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
{-# LANGUAGE ViewPatterns #-} | |
module Main where | |
import Data.Monoid | |
import Control.Lens |
View testepoll.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* $ make testepoll CFLAGS="-Wall -Werror -ggdb3" | |
* | |
* One console: | |
* | |
* $ nc -l 8000 | |
* | |
* Other console: | |
* | |
* $ ./testepoll |
View slice_xor.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdint.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <x86intrin.h> | |
#include <avx2intrin.h> | |
#ifdef __cplusplus | |
extern "C" { | |
void slice_xor(const unsigned char *data, size_t len, uint64_t *p1, uint64_t *p2); |
View cryptosplice.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Usage: | |
* | |
* $ make cryptosplice | |
* cc cryptosplice.c -o cryptosplice | |
* | |
* $ rm -f cryptosplice.out | |
* $ ./cryptosplice | |
* | |
* Now, in another terminal: | |
* |
NewerOlder