xxHash bindings for Perl6
Pull request Compare This branch is 22 commits ahead of Rotwang:master.
Latest commit 52fb202 Feb 7, 2017 @atweiden mv META.info META6.json
rename META.info to META6.json to be more compatible with S22 spec [1]

[1]: https://design.perl6.org/S22.html#DISTRIBUTION



Perl6 bindings for xxHash. 32 bit functions recommended pending unsigned long long support in NativeCall.


# 32 or 64 bit xxHash from string, depending on architecture
say xxHash("dupa");

# 32 bit
say xxHash32("dupa");

# 64 bit
say xxHash64("dupa");

# 32 or 64 bit xxHash from file
say xxHash(:file<filename.txt>);

# 32 or 64 bit xxHash from Buf
say xxHash(buf-u8 => Buf[uint8].new(0x64, 0x75, 0x70, 0x61))


  • Rakudo Perl6
  • libxxhash (mac, pac)


This is free and unencumbered public domain software. For more information, see http://unlicense.org/ or the accompanying UNLICENSE file.