Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I actually used sqids algo for something very different where I had to encode arbitrary sized byte arrays. And with Ruby it was very simple to remove limit - I think it was matter of monkey-patching https://github.com/sqids/sqids-ruby/blob/main/lib/sqids.rb#L... to return infinity.

The reason for the limit is most likely to ensure interoperability with libraries in other languages where working with bignums is much more complicated.



This limit could easily be lifted with byte array encoding support.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: