Recent submissions

Comment · 2 years ago
Comment · 2 years ago
I tested with many concurrent goroutines, and confirmed that calling `unique.Make` does not cause any data race condition
Comment · 2 years ago
Yes, the package is designed to be thread-safe
Comment · 4 years ago
Mere quadratic time complexity is something I would expect to timeout and catch at fuzzing time, as long as we do encourage non-tiny inputs, say 10K and beyond.
Comment · 5 years ago
Comment · 5 years ago
Comment · 5 years ago
Yep! Curation is though.
Comment · 5 years ago
It's already possible and encouraged to improve the solutions. The "edit" button shows up on computer browsers, not on mobile if the screen is small.

There's no "debate" capabilities, though.

Comment · 5 years ago
Indeed! I updated the implementation to hoist the quadratic strlen.
Comment · 5 years ago
Comment · 6 years ago
Author here: there were 2 initial use cases for me,

(1) I'm familiar with the language X but I forget e.g. how to "check if a file exists"

(2) I'm learning a new language Y, I know that "checking if a file exists" is a legit need and there must be an idiomatic way to do it in Y, so I look at the entry, alongside implementations in other languages that I'm more familiar with, so I can quickly spot the similitudes and the differences.

I do (1) all the time because my brain has very little onboard memory.

The website is open to contributions without prior validations. This means that not all snippets end up being both correct and idiomatic. I manually revert spam and "obviously incorrect" entries. For languages that I don't know very well, I encourage actual experts to fix snippets, or add a better new implementation, when they see poor contents.

Comment · 6 years ago
Comment · 6 years ago
See https://github.com/divan/txqr for this use case. Other probably exist. It can be useful sometimes to not bother with any network at all, e.g. an international museum machine streaming map and documentation for tourists.
Comment · 7 years ago
Comment · 7 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton