Better HN
topnewbestaskshowjobs
Log inSign up

nalgeon

6,898 karma · joined Dec 12, 2016 (9y ago) · 508 submissions

antonz.org
Submissions

comment 2y ago · link · parent

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.

2.

Micro-libraries should never be used(bvisness.me ↗)

180 points · by nalgeon · 2y ago · 173 comments

3.

Private Internet(kevincox.ca ↗)

31 points · by nalgeon · 2y ago · 14 comments

4.

Go Maps Explained: How Key-Value Pairs Are Stored(victoriametrics.com ↗)

4 points · by nalgeon · 2y ago · discuss

comment 2y ago · link · parent

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

comment 2y ago · link · parent

Thanks for the suggestion! True, only fixed offsets are supported, not timezone names.

comment 2y ago · link · parent

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

comment 2y ago · link · parent

> If the result exceeds the maximum value that can be stored in a Duration, the maximum duration will be returned.

comment 2y ago · link · parent

It works very well for me and thousands of other Go developers. That's why I chose this approach.

10.

Show HN: High-precision date/time in SQLite(antonz.org ↗)

274 points · by nalgeon · 2y ago · 68 comments

11.

Durable Objects – Unlimited single-threaded servers spread across the world(lambrospetrou.com ↗)

2 points · by nalgeon · 2y ago · discuss

12.

Basic MetaProgramming in Zig(openmymind.net ↗)

104 points · by nalgeon · 2y ago · 7 comments

comment 2y ago · link · parent

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.

https://antonz.org/go-1-23

14.

Show HN: High-precision date/time in SQLite(antonz.org ↗)

6 points · by nalgeon · 2y ago · discuss

15.

The Painful Pitfalls of C++ STL Strings(ashvardanian.com ↗)

2 points · by nalgeon · 2y ago · discuss

16.

Generating Mazes(healeycodes.com ↗)

1 points · by nalgeon · 2y ago · discuss

17.

Friendly Lists and Their Buddies, the Lambdas(duckdb.org ↗)

1 points · by nalgeon · 2y ago · discuss

18.

HTTP Requests via /Dev/TCP(rednafi.com ↗)

4 points · by nalgeon · 2y ago · discuss

19.

Golang Sync Mutex: Normal and Starvation Mode(victoriametrics.com ↗)

3 points · by nalgeon · 2y ago · discuss

20.

The Rule of 5 and Inheritance(sandordargo.com ↗)

3 points · by nalgeon · 2y ago · discuss

21.

Zig's HashMap(openmymind.net ↗)

4 points · by nalgeon · 2y ago · discuss

22.

Using Units in Racket(defn.io ↗)

3 points · by nalgeon · 2y ago · discuss

23.

Resetting Timers in Go(antonz.org ↗)

1 points · by nalgeon · 2y ago · discuss

24.

Log context propagation in Python ASGI apps(rednafi.com ↗)

2 points · by nalgeon · 2y ago · discuss

25.

Formulosity – Surveys as Code(github.com ↗)

1 points · by nalgeon · 2y ago · discuss

26.

Gist of Go: Wait Groups(antonz.org ↗)

1 points · by nalgeon · 2y ago · discuss

27.

Watchexec: Execute commands in response to file modifications(github.com ↗)

2 points · by nalgeon · 2y ago · discuss

28.

Libcurl Is 24 Years Old(daniel.haxx.se ↗)

1 points · by nalgeon · 2y ago · discuss

12345
17