TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Common *nix commands written in Rust

80 点作者 lowonkarma大约 5 年前

6 条评论

burfog大约 5 年前
From the ls replacement: &quot;Why spend your time squinting at black and white text?&quot;<p>Uh, because squinting at blue-on-black text is much more difficult. Human eyes focus best at yellow-green, they see that as brightest, and they don&#x27;t even have long-wavelength (blue) receptors in the fovea.<p>I also looked at the alternatives to ps, top, cat, find, and du.<p>My overall feeling is that these are really not like UNIX tools at all. They are not very scriptable. Output is full of Unicode, color, column dividers, headers, underlining, and pagination. Values are in so-called &quot;human readable&quot; form, like &quot;1.4M&quot; instead of 1474560 or whatever it may be, which is a real pain for scripting.<p>I also notice some features that seem out of place to me, a long-time UNIX user. The tools waste space on displaying things related to git, docker, and network connections. I would expect the proper tools to be more like &quot;git ls&quot;, &quot;docker ls&quot;, &quot;docker ps&quot;, and &quot;netstat -p&quot;. (for those ones that don&#x27;t actually exist, take that as a suggestion for a coding project) Not all the world is devops on a web site.
评论 #23207438 未加载
评论 #23207503 未加载
评论 #23214958 未加载
评论 #23212373 未加载
评论 #23209410 未加载
platinumrad大约 5 年前
There are sometimes good reasons, usually related to features although sometimes related to performance, to prefer newer utilities like ripgrep over older ones like grep. Implementation language is not one of them.
评论 #23211135 未加载
评论 #23207260 未加载
评论 #23209427 未加载
评论 #23207354 未加载
merlinsbrain大约 5 年前
This isn’t too compelling a story on its own, I’m assuming this is someone who wrote a collection for themselves and made it public on their blog.<p>Glad they wrote their collection, but not something I’m excited about.<p>In general I’d love to hear “this was better in Rust because of X, Y and Z and the tradeoffs I had to make were A, B and C”.<p>But again, this isn’t on the author to do, I’m pretty sure I can find other articles on the internet that talk to that.<p>Edit: most of the READMEs of the projects look pretty good about that on a quick skim.
harikb大约 5 年前
What I would like to see is something like Hadoop, Kafka, Spark rewritten in Rust. Something that will fundamentally change the landscape. Rewriting these Unix cli is only good learning experience
评论 #23222148 未加载
nailer大约 5 年前
nushell is a better idea though - structured output, no text scraping.<p>And it&#x27;s Rust! <a href="https:&#x2F;&#x2F;www.nushell.sh&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.nushell.sh&#x2F;</a>
评论 #23207611 未加载
nine_k大约 5 年前
It&#x27;s a nice collection of common CLI utilities that make one&#x27;s life a bit more comfortable.<p>The poster is not the author, but the collector.