The Crystal Programming Language Forum

No LZ4, Tokyo Tyrant Bindings for crystal?

Hello,

I am new to crystal and I really really love it. Sadly there seems to be some major lack of bindings…
Could not find anything for LZ4 compression. And nothing either for tokyo tyrant (tokyo cabinet server).
Can some Crystal wizard do some magic? I just discovered the language yesterday.

https://lz4.github.io/lz4/
https://fallabs.com/tokyotyrant/

I am not sure if http framework people are aware, but as someone who come from perl and where it is pretty famous, there is something faster than libevent or libev: picoev

libgen

bindgen

generate binding from c headers

1 Like

Yeah that’d be nice. In the meantime you can roll your own manually :) https://crystal-lang.org/reference/syntax_and_semantics/c_bindings/ maybe create a shard for the rest of us to benefit from :)

LZ4 bindings for crystal can be found at https://github.com/naqvis/lz4.cr . I’ve few other compressions formats pure crystal and/or bindings available on same github.

HIH.

4 Likes

That was fast :)

Thank you for LZ4 and for Snappy in particular!

2 Likes