Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
masklinn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
34 ms
·
751.
▲
by
masklinn
1y ago
> Fielding won the war It’s a bit odd to say fielding “won the war” when for years he had a blog pointing out all the APIs doing RPC over HTTP and calling it REST. He formalised a concept and gave it a snappy name, and then the concept g
752.
▲
by
masklinn
1y ago
By your incredible criteria of things being mutable strings if they behave nothing like strings but can produce one, JavaScript absolutely does have a mutable string, it’s called Array. It’s also a mutable integer.
753.
▲
by
masklinn
1y ago
FWIW POSIX requires that rename(2) be atomic, it's not just ext4, any POSIX FS should work that way. However this still requires a lockfile because while rename(2) is an atomic store it's not a full CAS, so you can have two proces
754.
▲
by
masklinn
1y ago
Checked the rust version, it has a toctou error right at the start, which likely would not happen in a non-cgi system because you’d do your db setup on load and only then would accept requests. I assume the others are similar. This neatly d
755.
▲
by
masklinn
1y ago
It does not really matter in rust anyway: literals are &’static str so naturally immutable and essentially free, and mutable strings require jumping hoops to share, so it’s hard to unwittingly have one mutate from under you.
756.
▲
by
masklinn
1y ago
The way it works in Python is that string literals are stored in a constant slot of their parent object, so at runtime the VM just returns the value at that index. Though since Ruby already has symbols which act as immutable interned string
757.
▲
by
masklinn
1y ago
Also JavaScript.
758.
▲
by
masklinn
1y ago
FOR comes from ALGOL in which as far as I know is was spelled: for p := x step d until n do
759.
▲
by
masklinn
1y ago
Scheduling is the OS’s decision not the CPU’s. Although Intel’s configurations are unhelpful to say the least: it’s hard to make good scheduling decisions when Intel sells a 2P, 8E, 2LE as a 12 cores to the user.
760.
▲
by
masklinn
1y ago
> The problem is that it is still going to interrupt your rest, and therefore your focus while driving. Getting woken up at all is a problem, the fact that you can go back to sleep after 15 minutes doesn't really matter. I would be
761.
▲
by
masklinn
1y ago
Which is exactly what is happening. It makes sense for cars as well, as they need to top up more frequently highway carge stations become a regular service rather than an overpriced emergency one.
762.
▲
by
masklinn
1y ago
According to the electric trucker channel there are rumblings about altering the last clause, because currently if you end your day at a charging station you can’t free it up and go to a regular parking space when you’re topped up.
763.
▲
by
masklinn
1y ago
I learned recently that US truckers have been losing their minds over truck specific speed limits.
764.
▲
by
masklinn
1y ago
> So Volvo only sold their "Car" brand to Geely and not Trucks? Yes. And they bought Renault Trucks from Renault. And they own Mack in the US.
765.
▲
by
masklinn
1y ago
> I do not know why they don't do it. Because unless someone else crashes that market (Scania is clearly angling to be the one) they get away with selling rinky trucks so there’s no reason to spend more.
766.
▲
by
masklinn
1y ago
> Maybe, most animals evolve towards larger sizes. Animals tend towards whatever size lets them maximise survival. This is based on available niches and other selective pressures. > Except on smallish islands, where they tend to becom
767.
▲
by
masklinn
1y ago
While that is true (even if some people really want to stream read zips and will thus trigger tar-style conflicts) that is not what the article is about. The article is really more about software using the "size of central directory&qu
768.
▲
by
masklinn
1y ago
> It's only bad if you need to get more than 2000 rps Or if you don't want to pay for an 8/16 for the sort of throughput you can get on a VPS with half a core.
769.
▲
by
masklinn
1y ago
At $dayjob we've actually used this property once or twice: if you need to merge two tables you can keep the positive ids for the first one, and use negative ids for the second one. It only works once, but damn if it's not effecti
770.
▲
by
masklinn
1y ago
> Much of that is well addressed by one allocator arena per cpu, and either pinning threads to cpus or at least having a high threshold to move threads across NUMA boundaries. Note that that can have an awkward effect: if the thread gets
771.
▲
by
masklinn
1y ago
If you’re automating the check why not automate the renewal directly?
772.
▲
by
masklinn
1y ago
It is a pretty limited achievement as-is: ignoring maglevs, a tgv test train reached 575 kph back in 2007, and China had test trains reaching 487 in 2011. China’s next-gen is being deployed with goals of a 400kph service speed.
773.
▲
by
masklinn
1y ago
> You could argue the same thing (forcing kwargs) for all Python functions/methods, although, that would make using your APIs very annoying. The `__init__` method for dataclasses are just another method like any other. While that is
774.
▲
by
masklinn
1y ago
On my phone the main links are now on 3 rows, used to be 2, and the profile / logout section is now on a single line (used to also be two). On the one hand it makes hitting new/threads/… more awkward and wastes a fair amount
775.
▲
by
masklinn
1y ago
If XPath was the core nobody would need xslt, because pretty much every xml library can do XPath. Don’t get me wrong, XPath is by far the best thing to come out of the xml ecosystem, but the actual idea at the core of xslt is the match/
776.
▲
by
masklinn
1y ago
> the tags as they are in the file Is not actually relevant and is not an information the average XML processor even receives. If the file uses a default namespace (xmlns), then the elements are namespaced, and anything processing the XM
777.
▲
by
masklinn
1y ago
> The root cause is that many failed to grasp XML isn't to be manually written by hand on vi, rather it is a tool oriented format. That reads like an indictment of using XML for a programming language. Not that it has anything to do
778.
▲
by
masklinn
1y ago
> many developers always had issues understanding the FP approach of its design, looking beyond the XML. It would probably help if xslt was not a god-awful language even before it was expressed via an even worse syntax.
779.
▲
by
masklinn
1y ago
That… has nothing to do with xpath? If your document has namespaces, xpath has to reflect that. You can either tank it or explicitly ignore namespaces by foregoing the shorthands and checking `local-name()`.
780.
▲
by
masklinn
1y ago
Unless you build self-updating in, which Google certainly has experience in, in part to avoid clients lagging behind. Because aside from being a hindrance (refusing to start and telling the client to update) there's no way you can actu
More ›