nalgeon
Re:Micro-libraries need to die already
on Monday August 19, 2024 @12:03AM (#41287707)
The title of the article is "Micro-libraries need to die already". Renaming the submission to "Micro-libraries should never be used" is pathetic, Daniel. I'm not surprised though.
Private Internet
Go Maps Explained: How Key-Value Pairs Are Stored
Re:Show HN: High-precision date/time in SQLite
on Thursday August 15, 2024 @01:11PM (#41258214)
I appreciate your comments, and thank you for trying out the extension.
This query returns -1 (minus one, not one), which seems correct to me. The first date is before the second:
select time_compare(
time_date(1927, 12, 31, 23, 58, 08, 0, 28800000),
time_date(1927, 12, 31, 23, 58, 09, 0, 28800000)
);
-1
Re:Show HN: High-precision date/time in SQLite
on Thursday August 15, 2024 @10:39AM (#41256698)
Thanks for the suggestion! True, only fixed offsets are supported, not timezone names.
Re:Show HN: High-precision date/time in SQLite
on Thursday August 15, 2024 @10:33AM (#41256614)
Storing unix timestamp as nanoseconds is not Go's style, but you can do just that with this extension.
select time_to_nano(time_now());
-- 1722979335431295000
Re:Show HN: High-precision date/time in SQLite
on Thursday August 15, 2024 @10:24AM (#41256499)
I wish you'd read the linked blog post. High precision is optional, it's up to you to decide if you want nanoseconds or seconds etc.
Re:Show HN: High-precision date/time in SQLite
on Thursday August 15, 2024 @09:30AM (#41255835)
> If the result exceeds the maximum value that can be stored in a Duration, the maximum duration will be returned.
Re:Show HN: High-precision date/time in SQLite
on Thursday August 15, 2024 @09:24AM (#41255751)
It works very well for me and thousands of other Go developers. That's why I chose this approach.
Show HN: High-precision date/time in SQLite
Durable Objects – Unlimited single-threaded servers spread across the world
Basic MetaProgramming in Zig
Re:Go 1.23 Released
on Tuesday August 13, 2024 @03:36PM (#41238885)
If you find the official release notes a bit dry (they really are), I've prepared an interactive version with lots of examples:
- Iterators (range / types / pull / slices / maps).
- Timer changes (garbage collection and reset/stop behavior).
- Canonical values with the `unique` package.
- HTTP cookie handling.
- Copying directories.
- Slices and atomics changes.