Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sltkr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
241.
▲
by
sltkr
2y ago
10 different tools? Ridiculous! We need to develop one universal tool that covers everyone's use cases.
242.
▲
by
sltkr
2y ago
Personally I never heard about it. So it might not be that people didn't want it, but that it wasn't promoted much. Also, it sounds like the only browser to ever support it was Firefox? That was probably much more of a limiting fa
243.
▲
by
sltkr
2y ago
https://archive.is/dwCFL
244.
▲
by
sltkr
2y ago
Quod licet Iovi non licet bovi.
245.
▲
by
sltkr
2y ago
This library doesn't deal with the notion of local time at all. It's all UTC-based times, possibly with a user-supplied timezone offset, but then the hard part of calculating the timezone offset must be done by the caller. I do th
246.
▲
by
sltkr
2y ago
You can still manually skip the sponsored segments. That's not the case with most ads on YouTube, so your subscription is not worthless.
247.
▲
by
sltkr
2y ago
This is a valid concern, but it's possible to work around in a similar way that you do with protobufs: never redefine the format of any message type used in production, but instead, introduce a new message type whenever you need to cha
248.
▲
by
sltkr
2y ago
If I were CEO of Mozilla I would have also killed the core product by implementing Facebook's user tracking shit and making Google the default search engine just so I can rake in something like $10 million personally. Then I'd ret
249.
▲
by
sltkr
2y ago
Mozilla wastes all its money on its CEO and bullshit DEI programs, while neglecting to develop Firefox, their flagship product. When they spend some money on the browser, they use it to implement user-hostile garbage like Facebook's cl
250.
▲
by
sltkr
2y ago
Basically the entire argument boils down to: Javascript has some technical cruft, so we should tear everything down so we can start over with a clean slate. This is an astoundingly simplistic take from someone as reputable as Douglas Crockf
251.
▲
by
sltkr
2y ago
> If you "added" two maps together of types `Map<String, int>` and `Map<String, String>`, you would get back a `Map<String, String | int>` (or, equivalently, `Map<String, String> | Map<String, int>
252.
▲
by
sltkr
2y ago
This doesn't function as an interface though. You cannot pass a FooBar to a function that expects a Foo, for example, and although you can fairly easily reference the Foo-part of a FooBar instance (`foobar.Foo`) there is no way to pass
253.
▲
by
sltkr
2y ago
Imagine a driver has an exploitable vulnerability that is fixed in an update. If an attacker can force a rollback to the vulnerable older version, then the system is still vulnerable. Disallowing the rollback fixes this.
254.
▲
by
sltkr
2y ago
The topic is too complex to do it justice in a Hacker News comment, especially since it's one of those things that takes some time and practical experience for the concept to “click”. A good starting point is this article (though it&#x
255.
▲
by
sltkr
2y ago
I know people hate “enterprise”-type software design, but this is a typical case where Dependency Injection would have made the solution trivial without the need for any OS-specific hacks. And while the article serves as a nice introduction
256.
▲
by
sltkr
2y ago
That's the internal API used by the hangout_services extension. It's the extension itself that is undocumented. A user might reasonably expect that web pages do not have access to the system.cpu API by default. And that's mos
257.
▲
by
sltkr
2y ago
Such a dumb complaint. “Werwolf” is the regular German word for “werewolf” which occurs in every single novel that writes about werewolves (including the German translation of Stephanie Meyer's popular werewolves-and-vampires stories),
258.
▲
by
sltkr
2y ago
Google isn't a word; it is a misspelling of “googol” [1], itself hardly a common word. Or more technically correct: google wasn't a word when Google was founded, but today google is listed in dictionaries [2] as a verb that means
259.
▲
by
sltkr
2y ago
I'm surprised by how verbose some of these new APIs are, like: Objects.requireNonNullElse(str, "default") or even worse, if you need the right-hand side to be evaluated lazily: Objects.requireNonNullElseGet(str
260.
▲
by
sltkr
2y ago
It's interesting that the article mentions Hans Christian Andersen's “The Little Mermaid” as an example of a story that was “sanitized” by removing the part where Ariel is forced to choose between killing her prince or turning int
261.
▲
by
sltkr
2y ago
“Customer support by AI” sounds even worse than the current practice of having customer support provided by utterly clueless and unhelpful “support” from barely-English-speaking-people from the lowest-wage-country-we-could find (stereotypic
262.
▲
by
sltkr
2y ago
Although using constexpr over #define wherever possible is good advice (and similarly with functions over macros), you can also argue that the culprit is really this snippet: float ts = 1 / FRAMERATE; This blindly assumes that F
263.
▲
by
sltkr
2y ago
Because `constexpr` was not supported in C until very recently (C23). And `static const` by itself is not a good alternative, because constants can't be used in a lot of places, for example when declaring the size of an array.
264.
▲
by
sltkr
2y ago
Thanks, but my point was less about this one article, and more about the general experience of a well-intentioned but novice contributor: no matter how much you try to do the right thing, there's a good chance your work is for nothing
265.
▲
by
sltkr
2y ago
The last time I tried to contribute to Wikipedia I spent more than an hour crafting an initial article about Makoto Matsumoto, inventor of the popular Mersenne Twister PRNG, mostly using sources from the sister article on the Japanese wiki.
266.
▲
by
sltkr
2y ago
What's that supposed to be?
267.
▲
by
sltkr
2y ago
> you can't be gruntled. Why? It's a perfectly cromulent word: https://comb.io/tVAKjq
268.
▲
by
sltkr
2y ago
American flag sort is essentially an in-place version of counting sort. That's talking about the single-pass American flag sort. If you use American flag sort to sort strings, you do multiple passes: on the first pass, you sort all str
269.
▲
by
sltkr
2y ago
For the algorithmically inclined, this is basically exponential search: https://en.wikipedia.org/wiki/Exponential_search
270.
▲
by
sltkr
2y ago
The problem with Karger's algorithm isn't that it's randomized, but that even the expected runtime is orders of magnitude worse than this new deterministic algorithm. For that reason I wouldn't call it amazing though i
More ›