Skip to content

Instantly share code, notes, and snippets.

View MicahStevens's full-sized avatar

Micah Stevens MicahStevens

View GitHub Profile
@darccio
darccio / pearson-hashing.c
Last active April 11, 2023 13:14
Pearson hashing (just for fun). Includes Ruby and Golang versions for RFC 3074 and original variants.
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
/*
* Pearson hashing (from Wikipedia)
*
* Pearson hashing is a hash function designed for fast execution on processors with 8-bit registers.
* Given an input consisting of any number of bytes, it produces as output a single byte that is strongly
* dependent on every byte of the input. Its implementation requires only a few instructions, plus a

bitmachine

Idea

Generate and host a RESTful API from raw data. Public or "open data" is hosted free of charge. Private data is hosted for a fee along with user management, usage statistics and other premium features.

Opportunity