Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tialaramex
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
61.
▲
by
tialaramex
1mo ago
The US has a bunch of highly paid medics who fly every week or in some cases every day because they work somewhere with enough population to justify their practice but they choose to live somewhere hundreds of miles away, and at their incom
62.
▲
by
tialaramex
1mo ago
There is exactly one actual ocean liner left, QM2 which goes between my home city and New York. Most of the ships you're thinking of are Cruise liners, which are not in fact (unlike an airliner or ocean liner) designed to prioritize tr
63.
▲
by
tialaramex
1mo ago
That is specifically because the Tories privatised water. Historically, like most places, the vital-to-life water supply and corresponding sewage processing were owned by the public in England and Wales. People hated the idea of this be
64.
▲
by
tialaramex
1mo ago
Really often the alternative was not to make the journey. Whether that's the in-person visit to a customer site which could have been a video call (or an email) or the trip to go see how your Porsche was made in the factory. WG21 (the
65.
▲
by
tialaramex
1mo ago
This is, at best, misleading. It is common that a junction running at capacity with a pedestrian phase will always run that phase with the same timing regardless of buttons, but that same junction (never mind other junctions) may often n
66.
▲
by
tialaramex
1mo ago
Steve wasn't talking about unsafe. He was talking about being able to mint your own non-enum types with user defined niches. Rust provides for example NonZeroU8 which is an 8-bit unsigned integer that's never zero, leaving it with
67.
▲
by
tialaramex
1mo ago
Since this thread is mostly people complaining about Windows, here are two more fun anecdotes 1. I installed a new Windows-only gaming setup. Out of the box it was able to figure out how IPv6 networking works here but didn't get IPv4.
68.
▲
by
tialaramex
1mo ago
> our representative republic Pfft, did you buy it? No? Then it's not yours That "representative republic" belongs to a handful of ultra-wealthy people. I expect the Founding Fathers, being almost all rich old white men, w
69.
▲
by
tialaramex
2mo ago
But that's just not ZSTs. All C++ is doing is, as with EBC you can overlap a thing which doesn't need any representation with any number of other such things and with the no_unique_address attribute C++ will say their total size i
70.
▲
by
tialaramex
2mo ago
That is what they claim but I'm very sceptical - not that they can preserve order but that they get similar performance.
71.
▲
by
tialaramex
2mo ago
The C optimizer is not allowed to re-order, so, unless you've specifically used some implementation override you know exactly how C will lay out basic types. Likewise packing isn't allowed by the standard, so you'd again only
72.
▲
by
tialaramex
2mo ago
The layout rules for C struct are definitely a blessing for teaching I can see that.
73.
▲
by
tialaramex
2mo ago
Python's hash table type, dict, promises that it remembers insertion order. If you put the mapping 5 => "dog" in first, then when we ask what is in the dict we'd get told 5 => "dog" first, duh. Historical
74.
▲
by
tialaramex
2mo ago
> an imperative language procedural language with a clean mapping to ASM C really isn't as great for this as is often suggested either, not for decades at least K&R's original compiler on an actual Digital machine from that
75.
▲
by
tialaramex
2mo ago
In general our types won't be comparable, suppose we've got three zero size types Truth, Beauty and Strange and we make six variables a and b have type Truth, c and d are Beauty, e and f are Strange: Out of the box a == b will not
76.
▲
by
tialaramex
2mo ago
One problem in trying to teach a "conversion" type approach is that if you didn't really understand a thing in language A where it was maybe not too important, what do we tell you in language B where it's identical (or e
77.
▲
by
tialaramex
2mo ago
The C++ design is optimised for the case where you're mostly storing Things everywhere and then at runtime code works out whether each particular Thing is a Customer, or a Product, or a Target, or an Artist, or what... I don't thi
78.
▲
by
tialaramex
2mo ago
> C++ actually did end up evolving the ability to define a zero-sized class without a unique memory address Did it? Are you talking about the no_unique_address attribute (I had to go look that up because WG21 apparently doesn't care
79.
▲
by
tialaramex
2mo ago
I believe that an ML should be the First Language for Computer Scientists. It's much less clear which language we should teach people for whom it will likely be their Only Language, today Python is common, and for fields which care abo
80.
▲
by
tialaramex
2mo ago
Go is much older than Swiss Tables. Since the hash table is a widely used container type and Go aspires to having a sort of "kitchen sink" stdlib I assume Go 1.0 had a hash table, and it can't be a Swiss Table because those w
81.
▲
by
tialaramex
2mo ago
This has a section on Object Safety, I checked and the article was written this week, but "Object Safety" is a confusing name for this idea, and so for a little while now Rust calls this idea "dyn compatibility" because
82.
▲
by
tialaramex
2mo ago
This is why C++ doesn't have ZSTs, it wants all objects to have identities, the obvious way to distinguish them is by where they are in memory, but ZSTs don't have distinct addresses in memory.
83.
▲
by
tialaramex
2mo ago
> dramatic scenario wouldn’t result in the US compelling the UK to also seize those assets? The US can demand that we seize other people's gold, but if we acceded then it's game over for our financial industry - London is an
84.
▲
by
tialaramex
2mo ago
The city of London literally has a city also named London inside it and yeah, "Where are you going?" "The City" means clearly that tiny part. There is another small older city inside London, Westminster, but if you mea
85.
▲
by
tialaramex
2mo ago
But almost invariably in this context they mean "the continent" ie France, Spain, Italy and so on, probably not Scandi and not Ireland. So that's more like how people would say they're going "to the UK" when ac
86.
▲
by
tialaramex
2mo ago
There's a situation like with Amdahl's law here, which I'm guessing you're familiar with since this is HN but if not then I'm sure you can read about it. Consumer prices - the thing you're experiencing - have m
87.
▲
by
tialaramex
2mo ago
> Question is, will the end consumer prices ever go down, and by how much? No, electricity is not likely to become a deflationary product. It hasn't been in my lifetime and I don't see that changing. Products which do that are
88.
▲
by
tialaramex
2mo ago
In many places it is usual for the machine to have a small element so that it can heat its own water, none of the machines I've every owned had a hot water line, although one did have instructions for a variant model with such a feat
89.
▲
by
tialaramex
2mo ago
All of Germany's neighbours, from which it buys electricity, are decarbonising so yes obviously it inevitably gets "fixed at some point". Germany's wholesale prices are similar to many other European countries, the worst
90.
▲
by
tialaramex
2mo ago
> Or energy; The sources of which being vastly composed of fossil fuels. But we can choose to change this. This is too often presented as though it's inevitable but it isn't, we went from "This can't work in theory&
More ›