Hacker Newsnew | past | comments | ask | show | jobs | submit | theryangeary's commentslogin

I mostly agree, but you may be interested to know that Zoxide is actually "X, but written in Y". Maybe there's some feature set difference but they are the same concept.

X = https://github.com/rupa/z

Y = Rust

I already mentioned my utility `choose` in another thread but what you are describing was my philosophy in making it. I felt that cut was unintuitive and limited, I saw other people in my workplace having some similar struggles with it, so I created something that is similar but different, not intended by clone it but rather to provide a more suitable alternative.


In the past few days I've been benchmarking my own tool `choose` against BSD cut, GNU cut, and uutils cut and the uutils cut is certainly faster than BSD or GNU versions: https://github.com/theryangeary/choose/blob/master/benchmark...


The benchmark is against unibyte text. You would get more accurate results by doing `export LC_ALL=C` in your benchmark script


I tried adding LC_ALL=C as well as LC_ALL=en_US.UTF-8 and it didn't make much of a difference outside of BSD cut[0].

The input file to the benchmark is all ASCII text chars (unibyte?) and `choose` does take the safe(r?) route and assume all text is UTF-8 and handle accordingly.

0:

          | LC_ALL=C   | LC_ALL=en_US.UTF-8   | not setting LC_ALL explicitly
            -------------------------------------------------------------------
  choose  | 110.6  ms  | 110.6  ms            | 110.8  ms
  cut     | 813.9  ms  | 983.9  ms            | 971.7  ms
  gcut    | 172.8  ms  | 172.5  ms            | 174.0  ms
  ucut    | 78.22  ms  | 79.39  ms            | 79.38  ms


I personally don't have use for the insight to this "obscure" tech stack but typically the more obscure the tech stack the more people can benefit from you sharing your perspective.

If someone shares their additional take on rewriting in rust (I say this with love as the type of person to do that) it doesn't add as much value because many of those experiences are shared regularly. If you share your unique tech stack, the people in the woodwork who might be struggling to do something along those lines but can't find the resources will benefit way more.

So you should!

Also can you elaborate on the CAN bus part of your smart home? Is your car wired into your home network?


Quarantine has given me the time I needed to bring a little shell program I've been working on to v1.0.0: https://github.com/theryangeary/choose

Haven't been able to bake any bread on account of how I can't find yeast in the grocery store anywhere...might give sourdough another shot.


Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: