Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
politician
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
91.
▲
by
politician
2y ago
It’s not entirely clear whether the author is describing a single or multiplayer game. Among the errors in the multiplayer case is the lack of score attribution which isn’t a bug with channels as much as it’s using an int channel when you n
92.
▲
by
politician
2y ago
One nit: reflect.Select supports a dynamic set of channels. Very few programs need it though, so a rough API isn’t a bad trade-off. In my entire experience with Go, I’ve needed it once, and it worked perfectly.
93.
▲
by
politician
2y ago
My rule of thumb is that the goroutine that writes to a channel is responsible for closing it. In this case, a deferred call to close the channel in HandlePlayer is sufficient. Still, this example has other issues (naked range over a channe
94.
▲
by
politician
2y ago
It would be ideal if Go would add support for computed goto, so that we could build direct threaded interpreters.
95.
▲
by
politician
2y ago
It was obvious from the moment ChatGPT went live that this was going to intellectually stunt junior developers.
96.
▲
by
politician
2y ago
DNS should be a destination, not a utility. Every John Smith has a legitimate claim on smith.com. DNS should offer disambiguation services. Instead, we have this awful system. My dream is to fork a browser and replace the DNS component with
97.
▲
by
politician
2y ago
Unfortunately, .io is now also unsafe with the upcoming transfer away from the UK; another cautionary tale for those considering not getting a .com. I’ve been seeding government and business forms with a .io email address for years (to coun
98.
▲
by
politician
2y ago
PSA: Kroger and Kroger-owned supermarkets require ID to purchase any "cold medication" including those only containing phenylephrine. It's a stupid policy. Buy your cold medication at Walgreens. Good luck finding a non-Kroger
99.
▲
by
politician
2y ago
Whew, that's a relief! If I understand correctly, then I think you'll have a better experience if you practice doing something like this when writing tests: foo, fooErr := doit() require.NotNil(foo) require.NoError(fooErr)
100.
▲
by
politician
2y ago
Any FCC rule-making will be caught up in post-Chevron decision lawsuits. Folks should relax.
101.
▲
by
politician
2y ago
People congregate around water sources. They don't just gather anywhere and make it happen. Ports are where they are due to the location having the necessary resources to support a population servicing a useful(1) industry. Similarly,
102.
▲
by
politician
2y ago
Consider ocean-going freight transportation: the container ships and the containers, the port facilities and the cranes. Now imagine that you were able to witness the very first round-trip sailing of such a container ship between two newly
103.
▲
by
politician
2y ago
This example isn't particularly good code. If you've got "lots of code" that names a bunch of variables (e.g. using ':=') that are never referenced AND you have a good reason not to do so (which I doubt: given
104.
▲
by
politician
2y ago
Banks are 95% law and maybe 5% technology.
105.
▲
by
politician
2y ago
Banks are really dragging their heels on FedNow support.
106.
▲
by
politician
2y ago
Template functions are a better approach, IMO. [1] https://templ.guide/
107.
▲
by
politician
2y ago
I thought it was over 9000.
108.
▲
by
politician
2y ago
This isn't about pettiness. Amazon has a significant investment in commercial real estate in downtown Seattle. The foot traffic supports a thriving ecosystem of shops, restaurants, and housing. When the employees aren't coming to
109.
▲
by
politician
2y ago
One killer app for Starlink is solving the problem of contacting emergency services globally like what they're doing with T-mobile.
110.
▲
by
politician
3y ago
In addition, it’s important to remember that Microsoft is an important defense contractor.
111.
▲
by
politician
3y ago
OTOH, the Bitcask paper can be implemented in about a week for a write-ahead log that’ll give you pretty strong guarantees.
112.
▲
by
politician
3y ago
The book was published three years ago. The timing of this revelation is convenient.
113.
▲
by
politician
3y ago
Nit: Rechargeable batteries have a loss when converting the chemical energy stored inside to electricity. There’s no free lunch.
114.
▲
by
politician
3y ago
It's an election year for a first term incumbent, there is no chance of a pardon.
115.
▲
by
politician
3y ago
Hah! Maybe Neo was an LLM. "I know kung-fu."
116.
▲
by
politician
3y ago
Dioxus is framework that compiles Rust to WebAssembly in order to build a webapp that uses the native OS webbrowser for rendering and interaction.
117.
▲
by
politician
3y ago
Not to mention that periodic mass transfers between planets have already contaminated it; the OP is mistaken that Mars is somehow a pristine environment.
118.
▲
by
politician
3y ago
I don’t think that’s universally true. Monero, for instance, doesn’t have this flaw.
119.
▲
by
politician
3y ago
Will this result in a new tool to unlock confiscated iPhones?
120.
▲
by
politician
3y ago
Perhaps the police are trying to find a way to apply asset forfeiture because Bitcoin is so valuable? That would make more sense than AML because police forces don’t generally investigate those crimes — enforcement is usually the domain of
More ›