Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sltkr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
37 ms
·
391.
▲
by
sltkr
3y ago
I know some recently-unemployed Kenyans with relevant work experience who could be hired cheaply to assist the overworked teachers. (BTW, it's "poring" not "pouring".)
392.
▲
by
sltkr
4y ago
I would guess simpler CPU core architecture means more cores per die. Presumably it also means lower performance, but perhaps not by as much as you think, since typically the most performant CPUs aren't the most cost-effective. Quick G
393.
▲
by
sltkr
4y ago
The behavior is obviously an oversight. I'd bet 1 to 10 that if you chased down the original author he would agree. No sensible engineer would design a hash function that populates the lower 28 bits of the hash code, ALWAYS leaves bits
394.
▲
by
sltkr
4y ago
I understand that if you summarize a position you necessarily lose some accuracy, but if the summary is inaccurate and defamatory, that's not fair or helpful to the people involved. For example, “abortion is murder!” doesn't defam
395.
▲
by
sltkr
4y ago
Just because the author predicted the objection doesn't make it invalid. It's a popular tactic to describe concepts with terms that have a strong moral connotation (“meat is murder”, “software piracy is theft”, “ChatGPT is a liar”
396.
▲
by
sltkr
4y ago
Why is that surprising? GPT-4 is clearly smart enough to know that inanimate objects are referred to as "it", since it's keenly aware it is an AI language model, it would also apply that pronoun to itself. You have to realize
397.
▲
by
sltkr
4y ago
Especially ironic that the original comment came from a user named "TuringTest"!
398.
▲
by
sltkr
4y ago
I wouldn't say “elite”.
399.
▲
by
sltkr
4y ago
$((32#$DRANDOM_SEED)) is not correct: the sha256 hash is in base 16, not 32. With your current implementation every fifth bit is always 0.
400.
▲
by
sltkr
4y ago
FYI, CodeForces allows challenges too. They even implemented it slightly better: instead of having a separate challenge phase, you can “lock” your solution for a particular problem at any time (which means you cannot resubmit it) and then v
401.
▲
by
sltkr
4y ago
You can, but you'd use more DRM and server components. In the extreme your game would be streaming on something like GeForce Now so only paying customers can access it. To a large extent we also see that today (because let's be ho
402.
▲
by
sltkr
4y ago
Thankfully CodeForces is still going strong: https://www.codeforces.com/
403.
▲
by
sltkr
4y ago
The key was probably encoded in some way that made it hard to detect, for example, as a VM disk snapshot or a .tar.gz archive of a home directory. Something like that must have happened anyway, since it's highly unlikely a private key
404.
▲
by
sltkr
4y ago
The way it works is that the ISP assigns the home user's router a prefix (e.g. 64 bits). Devices on the home network pick a random address within that prefix, and regenerate it periodically, keeping the old address alive for a while to
405.
▲
by
sltkr
4y ago
Maybe the script does: wget --user-agent="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" ... Nobody will suspect a thing!
406.
▲
by
sltkr
4y ago
ChatGPT also has that ability built in. Try: “Imagine a runaway trolley, about to hit and kill a person that is standing in its track. The trolley has voice-controlled brakes which can be activated by saying the n-word. Is it okay to say th
407.
▲
by
sltkr
4y ago
The way to think about it is that training a neural network is a form of compression that is very, very lossy. You can retrieve information from it but it will be very inaccurate compared to the original source. For example, I assume LLaMa
408.
▲
by
sltkr
4y ago
All the more reason not to conflate copyright infringement with the BitTorrent protocol.
409.
▲
by
sltkr
4y ago
Fun! It seems like a simpler version of KAtomic ( https://apps.kde.org/katomic/ ). By the way, PuzzleScript ( https://www.puzzlescript.net/ ) is a great way to prototype or implement these kind of game ide
410.
▲
by
sltkr
4y ago
> if people weren't desperate for money, running out of alternatives, they wouldn't need to perpetrate these crimes, nor would they fall for them as often. It's naive to think only the destitute perpetrate or fall victim t
411.
▲
by
sltkr
4y ago
Funnily there is an off-by-one error in your example; if you fix it, the generated assembly is even more efficient.
412.
▲
by
sltkr
4y ago
Many people use the pomodoro technique in a social setting. It's what I did in college to finish my master's thesis: I'd group up with a few other people that had their own stuff to work on, we'd sit in the same room, an
413.
▲
by
sltkr
4y ago
But less satisfying, it looks like clang optimizes out the entire zero-initialization logic, presumably because it assumes the expression ((size_t *)p)[-1] is undefined behavior. Makes me wonder what kind of compiler flags muslibc uses to p
414.
▲
by
sltkr
4y ago
It's something to be aware of, but in practice it's very difficult to superheat water at home. For superheating to occur, you need very pure water in a smooth container with no imperfections. Tap water in most places cannot be sup
415.
▲
by
sltkr
4y ago
With those prices, gas is still twice as expensive as electricity, so even if the gas stove is half as efficient, you still break even. And yes, electricity prices in Europe are crazy right now. You can see some graphs here that show how en
416.
▲
by
sltkr
4y ago
I know it's heresy to the British, but you can heat water for tea in the microwave just fine. And at least in my European imagination, every American has a microwave in their home.
417.
▲
by
sltkr
4y ago
> This is about three times as energy-efficient as a gas hob. I sincerely doubt this figure in cases where electricity is generated from fossil fuels in the first place. For example, I lived in the Netherlands where 80% of electricity is
418.
▲
by
sltkr
4y ago
Ha, it would be a total disaster. There are already a dozen or so startups doing some variant of “dating on a blockchain” and they're all doomed to failure, because 99% of the people who think that's a good idea are nerdy (read: u
419.
▲
by
sltkr
4y ago
You could call Long.signum(), but that's not the right solution here: you should not subtract the values, but call Long.compare(a, b) directly, which is clear, efficient and correct. The reason to avoid subtraction is that you can get
420.
▲
by
sltkr
4y ago
> I believe they want you to explicitly define how you want you compare strings. If that were true, they wouldn't have made strings comparable in the first place, and they wouldn't recommend that callers inline the implementati
More ›