storacha-network / w3cli

💾 w3 command line interface
Other
30 stars 7 forks source link

evaluate SEA for standalone binaries of w3cli by prototyping something with it #176

Open gobengo opened 6 months ago

gobengo commented 6 months ago

Context

Potential Benefit

Time box

gobengo commented 6 months ago

I'm interested in scouting this out but not till landing https://github.com/web3-storage/migrate-to-w3up/pull/3

olizilla commented 6 months ago

I tried SEA before I explored pkg in https://github.com/web3-storage/w3cli/issues/104 and it was a non-starter 4 months ago (alas i did not document why!) It's definitely worth another timeboxed try out, and a different set of eyes!

My only flag it that if we end up going the "transpile node.js to single binary" route, the resulting bin has to pass a complete battery of black box tests... porting the existing w3cli test suite as a minimum. My fear is leaning on experimental compilers and having a binary we offer up for production use that fails in deeply surprising ways out in the wild that we can't debug.