News for hackers. Stuff that matters.
Re:micro – A Modern Alternative to nano by vdfs on Friday August 18, 2023 @09:33AM (#37175395)
20MB? just check nano executable and it's 277KB, the whole .deb packages is 860 kB

https://packages.ubuntu.com/jammy/nano

Re:micro – A Modern Alternative to nano by swozey on Friday August 18, 2023 @09:38AM (#37175459)
I thought 20MB was a lot.

I did "nano debian size" on google and one of them mentions - The Nano package contains a small, simple text editor which aims to replace Pico, ... Download size: 1.5 MB. Estimated disk space required: 20 MB.

https://www.linuxfromscratch.org/blfs/view/svn/postlfs/nano....

Re:micro – A Modern Alternative to nano by vdfs on Friday August 18, 2023 @09:40AM (#37175487)
That's not true for Debian either:

https://packages.debian.org/bullseye/nano

But building from source is a different story, if you stripe and clean build dir it will be similar to prebuilt .deb

Re:micro – A Modern Alternative to nano by xyproto on Friday August 18, 2023 @09:37AM (#37175443)
gccgo + upx can reduce the size of Go executables considerably, usually below 1M.
Re:micro – A Modern Alternative to nano by makapuf on Friday August 18, 2023 @09:54AM (#37175646)
note that it does not reduce the memory size once loaded (and even prevents sharing pages when several instances are run since memory is written when decompressed, not read as a program binary is)
Re:micro – A Modern Alternative to nano by londons_explore on Friday August 18, 2023 @10:29AM (#37176142)
> even prevents sharing pages when several instances are run since memory is written when decompressed, not read as a program binary

A shame the linux kernel doesn't have some way for packers to say "I am a packer, I run with access to nothing except the binary, therefore run me with no permissions and then share the pages I make with any user that executes me. If you like, you can even delete my output and reunpack me on-demand"

Re:micro – A Modern Alternative to nano by xyproto on Friday August 18, 2023 @03:49PM (#37181142)
That would be something!