5 ms·
You don't even have to go that far, `base64` is a coreutil (https://github.com/coreutils/coreutils/blob/ebfd80083b4fe4ae37f50bbc2fcf3cfaee50a248/src/basenc.c#L4
by ksdme9 1y ago
You don't even have to go that far, `base64` is a coreutil (https://github.com/coreutils/coreutils/blob/ebfd80083b4fe4ae37f50bbc2fcf3cfaee50a248/src/basenc.c#L467 https://github.com/coreutils/coreutils/blob/ebfd80083b4fe4ae...).
The point of ut is not to replace or invent new tooling. It is meant to be a set of tools that are simple, self exploratory and work out of the box with sane defaults. So, essentially, something that you don't have to remember syntax for or go through help/man pages everytime you want to use it.
- westurner 1y agouutils/coreutils has a `base64` in Rust which just gained better performance due to the base64-simd crate for SIMD: https://github.com/uutils/coreutils/pull/8578 https://github.com/uutils/coreutils/pull/8578
- collinfunk 1y agoNote that uutils does not work if the file does not fit into memory. With GNU coreutils: $ base64 /dev/zero | head -c 1 | wc -c 1 With uutils doing the same would exhaust your systems memory until either it freezes or oomd kills the process.
- conradludgate 1y agoFor now. There's no reason this won't/can't be worked on in the future.
- westurner 1y agoWhich BusyBox, toybox, and coreutils commands fail with data larger than RAM? Has that been part of the spec yet? Just realized `LC_COLLATE=C sort` must be specified if you don't want it to ignore leading underscores in sorting due to LC_COLLATE=en_US.utf8 being the default these days.