socketry / nio4r

Cross-platform asynchronous I/O primitives for scalable network clients and servers.
Other
967 stars 86 forks source link

Distribute pre-compiled nio4r #247

Open HoneyryderChuck opened 4 years ago

HoneyryderChuck commented 4 years ago

nokogiri is about to distribute its first version not requiring compilation on install. From what I gathered, the bulk of the work is being handled by rake-compiler-dock, while additional "magic" is done to handle the darwin/alpine case.

How hard would it be to integrate it in nio4r? I'm asking because it's a direct rails/puma dependency, whose compilation times are noticeable on install time, and influences the size of docker images, which have to have the gcc "toolchain" available.

ioquatix commented 4 years ago

I would be happy to work towards this. I'm not sure what the final solution looks like, as I'm trying to avoid using rake, but I'd be happy to explore options.

HoneyryderChuck commented 4 years ago

I'm trying to avoid using rake...

What's the issue with rake you're trying to avoid? What's the alternative? AFAICT nio4r already uses rake-compiler for the java builds, and I personally like the convenience of rake release, for instance.