News for hackers. Stuff that matters.
Re:Show HN: ut – Rust based CLI utilities for devs and IT by rohan_ on Sunday October 05, 2025 @03:38PM (#45484532)
is this stuff not pretty easy to do with python?

``` python -c "import base64; print(base64.b64encode('$INPUT_STRING'.encode('utf-8')).decode('utf-8'))" ```

Re:Show HN: ut – Rust based CLI utilities for devs and IT by landr0id on Sunday October 05, 2025 @03:40PM (#45484542)
I love typing python commands that are 10x longer than a shorthand.

Yes it's easy to set up an alias or shell command or whatever, but that's besides the point :p

Re:Show HN: ut – Rust based CLI utilities for devs and IT by ksdme9 on Sunday October 05, 2025 @03:50PM (#45484630)
You don't even have to go that far, `base64` is a coreutil (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.

Re:Show HN: ut – Rust based CLI utilities for devs and IT by westurner on Sunday October 05, 2025 @04:10PM (#45484783)
uutils/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
Re:Show HN: ut – Rust based CLI utilities for devs and IT by collinfunk on Sunday October 05, 2025 @05:58PM (#45485652)
Note 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.
Re:Show HN: ut – Rust based CLI utilities for devs and IT by conradludgate on Monday October 06, 2025 @01:18AM (#45487864)
For now. There's no reason this won't/can't be worked on in the future.
Re:Show HN: ut – Rust based CLI utilities for devs and IT by westurner on Monday October 06, 2025 @07:21PM (#45497437)
Which 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.

Re:Show HN: ut – Rust based CLI utilities for devs and IT by baq on Sunday October 05, 2025 @04:19PM (#45484868)
You can send a heredoc into as in a single line of shell, too.
Re:Show HN: ut – Rust based CLI utilities for devs and IT by klardotsh on Sunday October 05, 2025 @07:33PM (#45486206)
If you can remember all of that off the top of your head and find it ergonomic to type out, then sure. But much like how I prefer someone else to do my content syncing as an ergonomic appliance rather than using FTP + curlftpfs + a VCS [1], I quite like this idea of a focused toolbox (written in a language that compiles to native code) and welcome it rather than having to store these massive snippets in my head (or write shell wrappers for them).

[1] https://news.ycombinator.com/item?id=9224

Re:Show HN: ut – Rust based CLI utilities for devs and IT by dolmen on Monday October 06, 2025 @02:38PM (#45494674)
The "openssl" tool already has many of those tools and that tool is probably already available on your system.

https://docs.openssl.org/master/man1/openssl/#command-summar...

Re:Show HN: ut – Rust based CLI utilities for devs and IT by dolmen on Monday October 06, 2025 @02:31PM (#45494609)
Also with Go:

  $ go run github.com/dolmen-go/goeval@master 'fmt.Println(base64.StdEncoding.EncodeToString([]byte(os.Args[1])))' foobar
  Zm9vYmFy
Re:Show HN: ut – Rust based CLI utilities for devs and IT by dolmen on Monday October 06, 2025 @02:34PM (#45494634)
Many of this utilities are bundled with the "openssl" tool:

  $ echo -n foobar | openssl base64 -e
  Zm9vYmFy