theryangeary | 6 months ago | on: The allure of new languages vs. the necessity of problem-solving
theryangeary's comments
theryangeary | 6 months ago | on: The allure of new languages vs. the necessity of problem-solving
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 mstheryangeary | 6 months ago | on: The allure of new languages vs. the necessity of problem-solving
theryangeary | 7 months ago | on: Lessons learned from building a sync-engine and reactivity system with SQLite
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?
theryangeary | 5 years ago | on: Ask HN: What's your quarantine side project?
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.
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.