Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Too
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
61.
▲
by
Too
1y ago
Anyone struggling with slow mypy should really update to latest version. This years releases has focused on performance and it has payed off. Add the boost from latest Python versions to that and you can see 50% type checking improvements.
62.
▲
by
Too
1y ago
This is answered in the FAQ
63.
▲
by
Too
1y ago
Ubuntu has both Snap and custom APT repositories.
64.
▲
by
Too
1y ago
Tangential question. Why does every app still need its own auto-update framework? Shouldn’t we all rely on app-stores and package managers for this?
65.
▲
by
Too
1y ago
Look at the how timers are adjusted in the Clock app on iPhone. Three rotary tumblers that can all be set independently.
66.
▲
by
Too
1y ago
This article doesn't even mention the worst part of the update. Frame rate has dropped remarkably. iOS used to have flawless smooth animations, with 0 dropped frames, setting the industry standard. Now every interaction with the phone
67.
▲
by
Too
1y ago
You write the ffi once and let hundreds or thousands of other developers use it. For one off executables it rarely make sense. Mixing the use with other libraries provided by the Python ecosystem is a another scenario. Do you really want to
68.
▲
by
Too
1y ago
Not always. See dead batteries: https://peps.python.org/pep-0594/
69.
▲
by
Too
1y ago
In true Microsoft spirit, they completely tanked the name. This was launched just shortly after GitHub Copilot was the hottest trend. Everyone associates Copilot with GitHub and think it's a developer-product, not an office-product. Ch
70.
▲
by
Too
1y ago
This is a great compromise given how much would break if this was the default. Making this the default would be better in the long-run, require taming the abuse of side-effects in imports too, win-win. If one could dream, modules should hav
71.
▲
by
Too
1y ago
If your local hairdresser gives you a cheaper price when paying cash, wouldn't you assume tax evasion? (criminal). Someone selling a used bike, or other items of similar value, on second hand market and not accepting Swish would maybe
72.
▲
by
Too
1y ago
Serving users is one thing. Then you want to run some interactive analytics or cronjobs for cleanup etc on the db. Even if the load can manage it, how would the admin jobs connect to the database. I’ve never seen a db with only one client.
73.
▲
by
Too
1y ago
Their claim that every request goes through the hot path of a central auth db is stretching the truth quite a bit. With Oauth2 you get a signed access token once from the Id Provider, then you reuse this token several times until it’s given
74.
▲
by
Too
1y ago
Good advice. Though I’d say you can count the cloud storage as 2 copies. They typically replicate the data to three drives, that covers all the typical failure modes you’d normally get when running a drive yourself. Then with a simple click
75.
▲
by
Too
1y ago
> If the type is a class with methods, then this method doesn't work Use typing.Self
76.
▲
by
Too
1y ago
Too bad Mojo gave up on Python compatibility on code level. Now it’s just one of a dozen “Python inspired” languages, with the only benefit that they aim for easily calling into other Python code.
77.
▲
by
Too
1y ago
Java on the other hand had the most verbose syntax known to man, especially those early versions of it. Nowadays it’s getting more tolerable.
78.
▲
by
Too
1y ago
This is trivial to solve by simply not having circular imports. Place the types in one file and the usage of it in others. This has many benefits, like forcing you to think about the dependencies and layers of your architecture. Here is a g
79.
▲
by
Too
1y ago
Why do we need these special languages just to get adequate typesetting and kerning? In the end it’s just a paragraph of text constrained to a column. Because let’s be honest, this is why most people use LaTeX, not because they enjoy how to
80.
▲
by
Too
1y ago
> Somehow, we've all just accepted that it's totally normal to install tools from random strangers This has been the modus operandi since windows xp days where we in all innocence installed random cd-ripping software and bonzi
81.
▲
by
Too
1y ago
I thought the same until I read the page and realized that ssh is quite broken if you think about it. With ssh everybody does TOFU or copies host fingerprints around, vs https where setting up letsencrypt is a no-brainer and you’re a weirdo
82.
▲
by
Too
1y ago
Why are they supporting Android 5? It’s over 10 years old, the devices running it after updates even older. Mobile devices from that era must have a real tough time to browse the modern bloated web. It shouldn’t even be possible to publish
83.
▲
by
Too
1y ago
Yeah. While this narrative style tries to explain what things are done, it instead often leaves the question: Why are we doing this at all? Commit #1 adds a helper function for whatever, looks innocent enough, implementation is correct. Bel
84.
▲
by
Too
1y ago
Sure? --pull=missing should be the default.
85.
▲
by
Too
1y ago
Hard to see if this is /s or not. Nobody is forcing you to run images straight from dockerhub lol. Every host keeps the images already on it. Running a in-house registry is also a good idea.
86.
▲
by
Too
1y ago
Like rock paper scissors, there are multiple dimensions to power and the state doesn’t always possess all of them. Media being the most obvious one (fourth estate). Federal bank another. As the split of government and parliament.
87.
▲
by
Too
1y ago
Many performance problems on YouTube are because they now force everyone to use the latest heavy codecs, even when your hardware does not have acceleration for it. I have a laptop that is plenty powerful for everything else and plays 4K h26
88.
▲
by
Too
1y ago
There’s a famous presentation by David Beazley where he implements a WASM interpreter in Python in under an hour. Highly recommended.
89.
▲
by
Too
1y ago
Kubernetes? Yes, it has a higher learning-curve than incrementally extending your constantly growing deploy.sh-script and there are many moments when it's complex and overkill. When you really need it though, no amount of in-house sysa
90.
▲
by
Too
1y ago
> I doubt a lot of new code needs to be written I bet someone could have easily said the same thing a year ago or even 5 years ago. It's easy to forget the progress and there are a lot of things happening under the hood that are not
More ›