Astrocoders / lenses-ppx

GADT lenses
MIT License
105 stars 10 forks source link

Takes ages to install #11

Closed gaku-sei closed 5 years ago

gaku-sei commented 5 years ago

On my laptop, with a decent internet connection speed, installation takes up to 25 minutes, and sometimes fails (with npm, it seems it works with yarn).

Most of the installation time is due to bsb-native takings ages to download.

I assume bsb-native is used to build ppx-lense, but it seems it's not a viable solution. Would you consider releasing on npm the compiled binaries instead?

fakenickels commented 5 years ago

bsb-native really takes a long time to build releasing pre-built binaries looks like a good alternative, do you know any setup of this already working that we could base ourselves on?

also, we actually intended to move to Esy (https://github.com/Astrocoders/lenses-ppx/issues/9) and use it to release the binaries

gaku-sei commented 5 years ago

A pretty common approach would be to host the binaries on a server, and just download the needed version on npm install (requires an extra server).

Also, I know Elm used to use binwrap for a while. They changed last month, and the binary is now version controlled (here). Could be a good alternative, since you don't need to host the binaries yourself.

fakenickels commented 5 years ago

Already rewrote with esy, now just missing to set up the pipeline to distribute the binaries.

fakenickels commented 5 years ago

Solved at v4.0.0