Skip to content

Unofficial ports to other languages #4

@N-R-K

Description

@N-R-K

The following are ports of ChibiHash to other languages.

Repo Language v2 v1 License
jimexist/chibihash python, rust Apache License 2.0
thevilledev/ChibiHash-rs rust MIT
eranchetz/ChibiHashGo Go Unlicense
thevilledev/ChibiHash-hs Haskell MIT
seanmiddleditch/chibihash_cpp c++ Unlicense
rainrambler/ChibiHashGo Go MIT
thevilledev/ChibiHash-zig zig MIT

Note that I do not maintain these ports, so I cannot personally verify their quality of implementation.


If you want your port to be added to the above list, then comment down below on this thread.

To test the correctness of your port, you can test against the following results which were obtained from the original implementation (Version 2):

// chibihash64(string, len, seed)  Version 2
chibihash64("", 0, 55555) => 0x58AEE94CA9FB5092
chibihash64("", 0, 0) => 0xD4F69E3ECCF128FC
chibihash64("hi", 2, 0) => 0x92C85CA994367DAC
chibihash64("123", 3, 0) => 0x788A224711FF6E25
chibihash64("abcdefgh", 8, 0) => 0xA2E39BE0A0689B32
chibihash64("Hello, world!", 13, 0) => 0xABF8EB3100B2FEC7
chibihash64("qwertyuiopasdfghjklzxcvbnm123456", 32, 0) => 0x90FC5DB7F56967FA
chibihash64("qwertyuiopasdfghjklzxcvbnm123456789", 35, 0) => 0x6DCDCE02882A4975
Below is the output from Version 1
// chibihash64(string, len, seed)  Version 1
chibihash64("", 0, 55555) => 0x2EED9399FC4AC7E5
chibihash64("", 0, 0) => 0x9EA80F3B18E26CFB
chibihash64("hi", 2, 0) => 0xAF98F3924F5C80D6
chibihash64("123", 3, 0) => 0x893A5CCA05B0A883
chibihash64("abcdefgh", 8, 0) => 0x8F922660063E3E75
chibihash64("Hello, world!", 13, 0) => 0x5AF920D8C0EBFE9F
chibihash64("qwertyuiopasdfghjklzxcvbnm123456", 32, 0) => 0x2EF296DB634F6551
chibihash64("qwertyuiopasdfghjklzxcvbnm123456789", 35, 0) => 0x0F56CF3735FFA943

There is also a community website available here: https://chibiha.sh/

(NOTE: I do not personally maintain the website either).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions