Hck
Dev tools
command line text processing
SHOW HN2021
How HN took it
2 positive, 4 neutral or asking, 0 mixed, 2 critical, out of 8 comments about the project. Thread score 0.00.
Idea: 2 for, 0 againstDocs: 0 for, 1 againstDesign: 0 for, 1 against
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
What people liked
Faster than alternatives like choose in benchmarks
From 1 comment
It is interesting to note how it compares to "choose" (also in Rust) in the benchmarks. single character ``` hck 1.494 ± 0.026s hck (no-mmap) 1.735 ± 0.004s choose 4.597 ± 0.016s…
bilalhusain on HN
Support for compressed files and multiple delimiters
From 2 comments
I saw about `hck` recently on twitter, was impressed to see support for compressed files. From the current todo list, I hope complement is implemented for sure. I see Negative…
asicsp on HNYay, no more piping multiple cuts when you have multiple delimiters.
queuebert on HN
Objections
README assumes readers know what cut is
From 1 comment
The README and description should not assume the reader knows what `cut` is or what it's used for. Maybe reference it and then ELI5
rendall on HN
Code is hard to read for non-Rust developers
From 2 comments
Nice one op. It’s mostly due to my lack of knowledge of rust but the code is not easy to read unlike golang. Does anyone feel the same ? (between nothing to do with how op wrote…
technological on HNI don't think even Rust fans would argue that. Rust has roughly 2x the amount of reserved words, more operators, and so on. There's a larger basic set of things to learn before…
tyingq on HN
Requests
Support for complement and negative indexes
From 1 comment
I saw about `hck` recently on twitter, was impressed to see support for compressed files. From the current todo list, I hope complement is implemented for sure. I see Negative…
asicsp on HN
Perl one-liner benchmark comparison
From 1 comment
It was indeed an great exercise! Part of the motivation for me was also performance oriented. I should add some Perl one liners to the benchmarks to see where they land as well.…
totalperspectiv on HN
Questions
Why single-character delimiter case is faster, and whether the regex constraint affects it
From 1 comment
It is interesting to note how it compares to "choose" (also in Rust) in the benchmarks. single character ``` hck 1.494 ± 0.026s hck (no-mmap) 1.735 ± 0.004s choose 4.597 ± 0.016s…
bilalhusain on HN
Alternatives named
Perl one-liners
From 2 comments
I wrote something similar (but necet really finished it), called 'gut', in Go a few years back. Funny thing is, that I literally never use it. I thought splitting on regexes and…
lillesvin on HNNot declarative, but Perl can do something like that. Delimeters/Regex: ``` $ perl -ne '($name,$pass,$uid,$gid,$therest)=split(/:/);print "$name $gid\n"' /etc/passwd root 0…
tyingq on HN
choose
From 1 comment
It is interesting to note how it compares to "choose" (also in Rust) in the benchmarks. single character ``` hck 1.494 ± 0.026s hck (no-mmap) 1.735 ± 0.004s choose 4.597 ± 0.016s…
bilalhusain on HN
Modern coreutils alternatives like ripgrep, fd, bat
From 1 comment
Love seeing these modern alternatives to coreutils! Ripgrep, fd, hyperfine, bat, exa, bottom, gdu, wc, sd, hexyl... Yet to find a GNU 'tr' alternative though
rashil2000 on HN
awk
From 2 comments
I saw about `hck` recently on twitter, was impressed to see support for compressed files. From the current todo list, I hope complement is implemented for sure. I see Negative…
asicsp on HNIt was indeed an great exercise! Part of the motivation for me was also performance oriented. I should add some Perl one liners to the benchmarks to see where they land as well.…
totalperspectiv on HN