Earlier quoted context omitted.
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
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.
Show HN: ut – Rust based CLI utilities for devs and IT
41–50 of 66 posts
Re: Show HN: ut – Rust based CLI utilities for devs and IT
#42I can understand why people would find `ut` convenient. That said, I would caution against trying to include too much functionality. What is too much? I don't have a clear idea on this yet. But I would probably argue that including HTTP functionality is going too far. Why? Because there are already amazing tools dedicated to this already. On the client side, see `xh` [1]. On the server side, see `miniserve` [2]. Both…
I agree. this tool feels like an all-in-one swiss knife. granted, it is useful. But it goes directly against one of the UNIX core values which is "do one thing and do it well". as well, including too much functionality in one single package will eventually bloat it, and there are many examples of this happening (windows, systemd, etc.).
Re: Show HN: ut – Rust based CLI utilities for devs and IT
#43Slightly odd suggestion: package it up as both a Python and an NPM module - both just thin wrappers around the combined binary - and then people within those ecosystems will be able to run: uvx ut md5 ... Or: npx ut md5 ... To execute it without having to figure out cargo or how to add a Rust binary to their path. I've seen a few tools do things like this recently, it's a pretty interesting pattern. I believe there's…
Another suggestion is to enable cargo-binstall, it allows just to install cargo binaries conveniently, and cargo-binstall is just a single-binary to install itself.
Re: Show HN: ut – Rust based CLI utilities for devs and IT
#44I can understand why people would find `ut` convenient. That said, I would caution against trying to include too much functionality. What is too much? I don't have a clear idea on this yet. But I would probably argue that including HTTP functionality is going too far. Why? Because there are already amazing tools dedicated to this already. On the client side, see `xh` [1]. On the server side, see `miniserve` [2]. Both…
I maintain a Rust-based CLI HTTP server that embeds Nushell. It’s a handy little Swiss-army knife that’s replaced Nginx and Caddy for my personal projects. You can serve a folder of static assets like this: http-nu :3021 '{|req| .static "www" $req.path}' https://github.com/cablehead/http-nu
Re: Show HN: ut – Rust based CLI utilities for devs and IT
#45Thanks for disclosing your use of GenAI, that kind of transparency is nice to see up front. On that note though, I took a random example (`calc.rs`) and noticed there was no unit or integration testing validating the parsers or etc. did what was expected of them, or that the end results were correct. Are tests for these tools planned? I get sketched out a bit when I see GenAI code with no automated validations, but I…
Re: Show HN: ut – Rust based CLI utilities for devs and IT
#46On what basis are new features included? Has the creator thought about the definition of "done"? Will it grow indefinitely like a katamari ball? [1]: https://en.wikipedia.org/wiki/Katamari
Re: Show HN: ut – Rust based CLI utilities for devs and IT
#47I can understand why people would find `ut` convenient. That said, I would caution against trying to include too much functionality. What is too much? I don't have a clear idea on this yet. But I would probably argue that including HTTP functionality is going too far. Why? Because there are already amazing tools dedicated to this already. On the client side, see `xh` [1]. On the server side, see `miniserve` [2]. Both…
I agree. this tool feels like an all-in-one swiss knife. granted, it is useful. But it goes directly against one of the UNIX core values which is "do one thing and do it well". as well, including too much functionality in one single package will eventually bloat it, and there are many examples of this happening (windows, systemd, etc.).
Re: Show HN: ut – Rust based CLI utilities for devs and IT
#48Slightly odd suggestion: package it up as both a Python and an NPM module - both just thin wrappers around the combined binary - and then people within those ecosystems will be able to run: uvx ut md5 ... Or: npx ut md5 ... To execute it without having to figure out cargo or how to add a Rust binary to their path. I've seen a few tools do things like this recently, it's a pretty interesting pattern. I believe there's…
Re: Show HN: ut – Rust based CLI utilities for devs and IT
#49In this title you tell exactly zero information about what your tools actually do, but somehow find it important to mention the language they're written in.
Re: Show HN: ut – Rust based CLI utilities for devs and IT
#50The new versions 7 and 8 are really a must these days, especially v7.