crystal-community / crystal-libraries-needed

A list of libraries that are needed or wanted for the Crystal-Language
141 stars 4 forks source link

Zstandard (zstd) bindings #93

Closed Sija closed 5 years ago

Sija commented 5 years ago

https://github.com/facebook/zstd

BlackHabanero commented 5 years ago

Here you have it. I don't know if this one is what you will find comfortably useful - but constructive criticism will be appreciated

alexanderadam commented 4 years ago

Just FYI: It seems that there's now a second shard for zstd.

BlackHabanero commented 4 years ago

Sure I know about it, author wrote this to me. Can't decide how to solve this, his code is good in some ways I think, maybe better. I don't know...

alexanderadam commented 4 years ago

Ah nice. I missed this bit. :wink:

I usually like it when projects merge because this means more maintainers and usually more features/less bugs and I also think that having more Crystal than C would be the better approach but performance and reducing GC load doesn't sound bad either. :wink:

But of course I'm not the one to decide here. Whatever you chose will be alright. :+1:

Independent from that I think that it's a wonderful thing that you are in a dialogue. :pray:

didactic-drunk commented 4 years ago

Second shard maintainer here. @BlackHabanero and I independently started zstd bindings around the same time. My first commit (with working compression/decompression) was around the same time he published his project. What are the chances?

Unfortunately travel and other projects with similar duplicate effort issues delayed my release for 2? months. I had no idea the other project existed until I went to register the name as @BlackHabanero's didn't exist when I started.

@BlackHabanero looks new to crystal and I absolutely don't want to discourage his efforts. At the same time I have a side project that has particular performance requirements and can't sacrifice speed.

didactic-drunk commented 4 years ago

To avoid duplicate shards here's a partial list of my future compressor projects:

If there is funding the chance of these starting increases proportionally to the amount.

alexanderadam commented 4 years ago
  • brotli 50% of starting in 1-5 months.

Be aware that there's also brotli.cr from naqvis now.

didactic-drunk commented 4 years ago

Thanks @alexanderadam. The awesome crystal compression section now has everything in one place.