Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
theamk
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
theamk
8d ago
> A bad employee loses money until a manager notices. A bad agent loses money at machine speed, around the clock, on every channel at once, and files a beautiful report about it. > When banks are asked to finance businesses that are r
2.
▲
by
theamk
8d ago
I think your arguments would be much stronger with some actual code samples. Usually, when the same code can be written either as range-based "for" or as a "while", the "for" will look better and have fewer pos
3.
▲
by
theamk
9d ago
you mean like that? todo_iter = iter(todo) while True: try: value = next(todo_iter) except StopIteration: break process(value) or like that? todo_iter = iter(todo) # Note:
4.
▲
by
theamk
10d ago
I assume OP refers to the cases where "while" is used to re-implement existing operations... imagine finding code like this: i = 0 while i != len(todo): process(todo[i]) i = i + 1 sure, there may
5.
▲
by
theamk
10d ago
I dunno, here is an entrant from 2025: https://news.ycombinator.com/item?id=45071024 (not a JS dev myself, but I read HN so I see those posts every once in a while..)
6.
▲
by
theamk
10d ago
This seems pretty useless. If you are making a wikipedia clone #10893, at least seed it with wikipedia content!
7.
▲
by
theamk
10d ago
> The US doesn’t pre-approve vehicle designs. Automakers self-certify that their vehicles comply with all applicable Federal Motor Vehicle Safety Standards, and NHTSA checks after the fact. huh, did not expect this. I wonder how many veh
8.
▲
by
theamk
10d ago
wow, TIL! Python 3.13.5 (main, Jul 15 2026, 20:25:40) [GCC 14.2.0] on linux >>> x = [[n]*1000 for n in range(1000)]; import timeit, itertools, functools, operator >>> timeit.timeit("len(list(sum(x, [])))
9.
▲
by
theamk
11d ago
true, but the question was about "my currently running system (anno 2016)" - which means intel core most likely. And at that generation, there requirements for precise timing is extremely rare, it's mostly PCI/PCIe devic
10.
▲
by
theamk
12d ago
At least in Python, I've found that "reduce" is very rarely needed. Most of the times, "sum" is enough, sometimes with "start" values customized (set it to [] to flatten an array for example). It is both e
11.
▲
by
theamk
12d ago
Either "already" or "not any time soon", depending on how you count. Already - because you have VMs and backwards compatibility. As long as you keep using Intel x86_64, your apps would run, no emulation needed. Or you ca
12.
▲
by
theamk
12d ago
There is something wrong with this explanation. In the most common git setups, you never force-push to master - so a coworker can't rewrite history of master branch. Forges have protection rules, but even if your hosting does not, then
13.
▲
by
theamk
12d ago
This was CVS/SVN approach, and that's the reason git won so quickly (no, it was not github like some people claimed, I've seen git become popular in my circle before github was a thing) I am not sure if you used CSV/SVN
14.
▲
by
theamk
13d ago
14 "mistakes" in the entire 2025. I am probably making that many per week? Not to mention committing the intentionally broken stuff, with the expectation that I'll come back and amend if I decided it should go to main.
15.
▲
by
theamk
13d ago
"Fossil purposely makes it difficult for users to delete content." Those operations are explicitly declared special, not something you do many times per day because you had a typo in your print statement. I guess technically you c
16.
▲
by
theamk
13d ago
What happens if you make a mistake while committing - maybe forget the file, or commit wrong one? Fossil has no way to fix it, by design, and I find it an absolute showstopper. I do stupid mistakes all the time, and I am so glad that gits l
17.
▲
by
theamk
13d ago
This talks about open source _AI models_, not open source software in general
18.
▲
by
theamk
13d ago
not sure what this has with my point? I am not talking about "some language", I am talking about specific row in the table, "Python + Trio", which can be ABC or ACB depending on how exactly you implement the code. For th
19.
▲
by
theamk
14d ago
Very similar dimensions also apply to threads, the async/await is not really that different there.
20.
▲
by
theamk
14d ago
Linux has 8MB thread stacks by default, Windows apparently has 1MB ones, and that space is not going anywhere. As long as people are worried about memory, they will need something lighter than threads. (Yes, golang managed to create dynamic
21.
▲
by
theamk
14d ago
Great post, but the quiz is unfair - it assumes there is only one "true way", but a lot of frameworks give you options For example, Trio has no global "spawn" method, by design. Judging by the results, authors assumed &q
22.
▲
by
theamk
15d ago
EXIF already includes extensive metadata, including phone model and GPS location. For professional cameras, there is often camera and lens serial numbers too. This has been the case for many years, and so far social media sites never care -
23.
▲
by
theamk
15d ago
If there is signed metadata too, then it's pretty hard. You will need to match focus distance (it will be very small if photographing picture), GPS location, exposure and other settings. If there is a depth map, you'll need to mat
24.
▲
by
theamk
15d ago
Yep, that breaks this scheme, making it useless. But it's far from the only thing making it useless, and the github page even explicitly lists those: - "Small content edits slip under the threshold. [...] A localised edit covering
25.
▲
by
theamk
16d ago
Easy! I put exclusions on my labels "USB cables, standard" "USB passive/special, except pigtails and USB->AV" "AV, including USB-AV cables"
26.
▲
by
theamk
16d ago
TL/DR: Ethereum nameserver provider applied to be in PSL, and had great trouble getting in, as it had dozens of malicious domains. They had to stop serving malicious domains to get in (the horrors!) I can kinda see where the both parti
27.
▲
by
theamk
16d ago
That's why GP mentioned "Smart TV". A random Internet-connected smart plug made by KOCKJAKD and sold on Aliexpress? Almost impossible to catch. A major brand like LG, with US presence and sold in brick-and-mortar stores? Much
28.
▲
by
theamk
17d ago
Those drones can only stay up for a few hours at most. Then they need refueling and relaunch, with plenty of human-only steps. Even if you have terminator-style AI uprising, all you need to do to be safe from those drones is to wait a day.
29.
▲
by
theamk
17d ago
> more and more scientists have argued > a philosopher at Adelaide University Ah, philosophers, not scientists. Important not to mix them up. Philosophy is an intellectual wordplay, and it's dealing with word definitions. Science
30.
▲
by
theamk
17d ago
what? their docs explicitly say nosy of them are not going tobe cloudflare-hosted > Cloudflare does not offer web hosting for most websites https://developers.cloudflare.com/fundamentals/manage-domain...
More ›