tu
Dev tools
command line utility
SHOW HN2024
How HN took it
2 positive, 6 neutral or asking, 2 mixed, 8 critical, out of 18 comments about the project. Thread score -0.23.
Idea: 0 for, 7 againstExecution: 1 for, 0 againstDocs: 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
Useful tool for inline shell use and calendar notes
From 2 comments
https://github.com/ad-si/tu/blob/main/src/main.rs#L37 I'll definitely be using this but I'd suggest replacing print with println.
axegon_ on HNMy use-case would be exactly the one described in the README, for example I would like to add one-off events to my calendar by writing an unstructured note. For production stuff…
TachyonicBytes on HN
Objections
Natural language parsing is ambiguous (e.g. 'next Saturday')
From 2 comments
Pretty neat, though natural language is famously ambiguous. From the example, ``` tu today -> 2024-03-16T12:56:41.905455Z tu tomorrow -> 2024-03-17T12:56:41.905455Z ``` I…
wolverine876 on HNThe classic example is 'next Saturday'. Is this the next Saturday (since today is Friday that would be tomorrow) or the Saturday of next week (i.e. eight days time). And then you…
NeoTar on HN
Tomorrow is computed as now plus 24 hours rather than midnight
From 1 comment
Those examples had me puzzled. I would have expected "tu tomorrow" to be 00:00:00 of the next calendar day (converted to UTC), rather than "now + 24 hours". If I wanted a…
SrslyJosh on HN
Hand-rolled parser without formal grammar or documented special cases
From 1 comment
I don't think this is very well made. Uses a hand rolled parser with no formal grammar. Special case logic is not documented, e.g.…
RadiozRadioz on HN
Requests
Timezone configuration support
From 2 comments
I have been searching[0] for something like this, so thank you! It doesn't quite parse my original example, `14 december 11:20`. but it parses `14 december 2024 11:20`. I was not…
TachyonicBytes on HNThis is great synchronicity. I just recently needed this. And I needed it in a Rust project as well, can't get any better. I was trying to do stuff with chrono-english [0] and…
therein on HN
Print without newline issue, use println
From 1 comment
https://github.com/ad-si/tu/blob/main/src/main.rs#L37 I'll definitely be using this but I'd suggest replacing print with println.
axegon_ on HN
Questions
Whether it detects terminal output for colorized output
From 1 comment
Can it check whether it's writing to a terminal? There are many programs that will write colorized output to a terminal but not colorized output to a file.
bobbylarrybobby on HN
Why not use GNU date or at instead
From 2 comments
Not knocking the tool, just an alternative for people who might not be aware. GNU date almost does the same as their examples: ``` date -Is -ud 'today' -->…
ydant on HNWhy not just use `at`?
warrenm on HN
Alternatives named
GNU date
From 1 comment
Not knocking the tool, just an alternative for people who might not be aware. GNU date almost does the same as their examples: ``` date -Is -ud 'today' -->…
ydant on HN
chrono-english
From 1 comment
This is great synchronicity. I just recently needed this. And I needed it in a Rust project as well, can't get any better. I was trying to do stuff with chrono-english [0] and…
therein on HN
dateutils
From 1 comment
I was thinking (and trying out) exactly the same, thanks for posting! There are many reasons to reinvent the wheel, so I have no specific feelings about this one. In my case I…
smartmic on HN
parse-human-relative-time
From 1 comment
I built a JavaScript library for my needs: https://github.com/derhuerst/parse-human-relative-time
derhuerst on HN