←back to thread

536 points helloguillecl | 1 comments | | HN request time: 0s | source
Show context
jug ◴[] No.45649741[source]
This could have been a 10 Megabyte TUI app in your terminal tab. Boggles my mind how even this kind of app manages to bring in Electron and the cloud.

Edit: Ah, so here it is: https://posting.sh

replies(6): >>45650164 #>>45651626 #>>45652525 #>>45652953 #>>45653703 #>>45663912 #
blahgeek ◴[] No.45651626[source]
> could have been a 10 Megabyte TUI app

Wow, in a world dominated by gigabytes of electron application, people thinks 10 MB is the optimal size for a simple utility TUI app.

As a reference, (from archlinux repo), vim’s install package is 2.3MB, curl is 1.2MB, lua (the complete language interpreter) is 362KB

replies(2): >>45652559 #>>45653264 #
1. colonial ◴[] No.45652559[source]
To be fair, Vim and Curl are almost certainly dynamically linked, so they get to "cheat" a little. 10 megs is entirely reasonable for a statically linked utility intended to "just work" when you dump it somewhere in your $PATH.

Take the Micro editor. It's written in Go, and packs a fair bit of functionality into a single 12 meg static binary (of which a few megs is probably the runtime.)