logoalt Hacker News

Show HN: 18KB ls alternative in no_std rust and Libc

17 pointsby tracyspacytoday at 1:49 PM4 commentsview on HN

Comments

weinzierltoday at 4:15 PM

For comparison: GNU coreutils ls 9.4 is 139 KiB on my system.

BusyBox v1.36.1 is 2.1 MiB and has 272 tools which is just about 7.6 KiB per tool, so when it comes to space efficiency BusyBox is probably hard to beat.

The (probably statically linked) 9base-6 Plan 9 ls is 961 KiB.

show 1 reply
gregdaniels421today at 3:45 PM

Looks like nice human written rust code, I wonder if for your use case it might have been easier to write a small python script to use glob and pathlib to just add your emojis or note which is a file or dir since that shouldn't be super slow and would be using less space too(assuming you have python on your pi)

show 1 reply