Closed dhess closed 5 years ago
@dhess I'm a fan of wide-word so I'm in favour. If @andrewthad also is then I think this would have the greenlight.
Behold! The rare package providing 128-bit words that isn’t garbage. I just took a look at wide-word, and I think it’s a solid foundation to build on top of. I’m +1 on switching to using this library.
@andrewthad I showed you that package a few months ago. I'm glad you like it still upon rediscovery.
Anyway @dhess we welcome this.
Cool. I’ll have something later this weekend.
OK, please see #52
Closed by 0742cd48f5a49a0e8718f6eb559c70d5192ac799.
wide-word
'sWord128
implements quite a few more canonical typeclass instances thanip
's internal IPv6 implementation. It would be nice to get some of these "for free" by wrapping it in anewtype
.I've taken a first pass at this in https://github.com/hackworthltd/haskell-ip/commit/bcc16b6da4051c2e9d7a52e7938a6733937f5444. It's not ready for a PR yet as it needs to be cleaned up a bit, but it does pass all tests and has comparable, perhaps even slightly better performance than the current implementation.
Before I invest any more time in this, is it something you'd be interested in?