cl-libfarmhash

2016-10-31

cl-libfarmhash - Common Lisp Binding for Google's Farmhash.

Usage

note: all results shown below are from a 64bit Mac OS platform.

farmhash

FARM> (farmhash "test")
2929758365

farmhash32

FARM> (farmhash32 "test")
168770635

farmhash32-with-seed

FARM> (farmhash32-with-seed "test" 12345)
687740529

farmhash64

FARM> (farmhash64 "test")
656818571139125405

farmhash64-with-seed

FARM> (farmhash64-with-seed "test" 12345)
1329645378812687902

farmhash64-with-seeds

FARM> (farmhash64-with-seeds "test" 12345 54321)
2807312541950536949

farmhash128

FARM> (farmhash128 "test")
278051559519782271719215074689603618262

farmhash128-with-seed

FARM> (farmhash128-with-seed "test" 1234554321)
8373479877626909324346027983011427843

farmhash-fingerprint32

FARM> (farmhash-fingerprint32 "test")
1633095781

farmhash-fingerprint64

FARM> (farmhash-fingerprint64 "test")
8581389452482819506

farmhash-fingerprint128

FARM> (farmhash-fingerprint128 "test")
334882099032867325754781607143811124132

Installation

Just (ql:quickload :cl-libfarmhash). All exported functions has been simply tested on SBCL, CCL, Allegro CL and LispWorks.

Author

  • David Gu (macdavid313@gmail.com)

Copyright (c) 2016 David Gu (macdavid313@gmail.com)