Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
masklinn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
361.
▲
by
masklinn
10mo ago
> This is like trying to defend that you can't statically know the result of 1 + 2 It is completely unlike that. tsimionescu is asserting that they can always know statically whether `foo` will move its parameter. The function I pro
362.
▲
by
masklinn
10mo ago
The only thing that is statically known here is that you’re wrong. The function I posted only moves its parameter half the time, at random. You may want to treat it as moved-from either way, but factually that’s just not what is happeni
363.
▲
by
masklinn
10mo ago
That has about the same issue: like std::move it doesn't really explain that the receiver decides.
364.
▲
by
masklinn
10mo ago
> Can you show an example of what you mean? void foo(std::unique_ptr<int, Deleter>&& p) { std::random_device rdev {}; auto dist = std::uniform_int_distribution<>(0, 1); if (dist(rdev)) {
365.
▲
by
masklinn
10mo ago
> it's intended for transferring of ownership versus copying data. It's intended for transferring ownership, but what it actually does is mark the value as transferrable, whether or not the value is actually transferred is up t
366.
▲
by
masklinn
10mo ago
> Rust’s borrow checker doesn’t actually borrow anything either Why would it? It's called the borrow checker , not the borrower. So it checks that your borrows are valid. std::move looks and feels like a function, but it doesn'
367.
▲
by
masklinn
10mo ago
No, the reason it was fixed is that somebody managed to reliably reproduce the issue: https://github.com/ghostty-org/ghostty/discussions/10244 As you can see, there's no hint or evidence they even are on
368.
▲
by
masklinn
10mo ago
Dupes are not deleted, you can just search for them and see that there are not that many of those, and that's with this not being the only unsolved memory leak ( https://github.com/ghostty-org/ghostty/discussio
369.
▲
by
masklinn
10mo ago
Not really? In your link TFAA was saying they were convinced an issue existed but the number of impacted users was limited, no maintainer experienced the issue, and they had no reproducer. As of yesterday TFAA still had no working reproduce
370.
▲
by
masklinn
10mo ago
> Can you fit an 8'x4' sheet of plywood in it? If you keep the rear doors open, the cargo platform is 1644 by 1540 (mm), 8x4 would be 2438 by 1219. Most likely you'd just put sheet goods on the roof (and yes roof racks for
371.
▲
by
masklinn
10mo ago
> If the ABA misbehaves, the people of Texas can do... nothing. Nothing precludes suing the ABA, it's a professional association not magic pixie dust.
372.
▲
by
masklinn
10mo ago
1. get a waiver, usually after some time of practice (e.g. for the DC bar it's 3 years: https://admissions.dcappeals.gov/appinfo.action?id=200 ) 2. apply for reciprocity if that's an option 3. I understand that you
373.
▲
by
masklinn
10mo ago
> A major difference is: there is an economic incentive to not leak methane since a leak is wasted fuel That economic incentive only goes so far given the entire point of the discussion: LNG is cheap. Per the IEA's recent "Asse
374.
▲
by
masklinn
10mo ago
> You're getting into pedantics about specific languages No, I'm using terms which clearly express what I'm talking about, and referring to actual historical experience with these concerns. > Implement a function that t
375.
▲
by
masklinn
10mo ago
> Right, but are leakage rates high enough to make this a concern? According to a recent IEA report, 30% of the LMG supply chain’s greenhouse impact is methane leaks. > there's already a strong profit maximisation incentive to le
376.
▲
by
masklinn
10mo ago
LNG is not a nice liquid at room temp, so more use means more in transit and more complicated supply chains, meaning more leaks.
377.
▲
by
masklinn
10mo ago
Some planes still do e.g. Emirates A380 has a bar, Qantas' has a lounge (though apparently it's not very good).
378.
▲
by
masklinn
10mo ago
> Even if fossil LNG is used, it releases less CO2 per unit energy. However released methane has a significantly worse greenhouse effect than CO2 (80x over 20 years, 28 over 100, 8 over 500 — this decreases because methane has an atmosph
379.
▲
by
masklinn
10mo ago
> Airlines will always arbitrage toward the lowest energy-per-seat-km for most routes That's a second order effect from fuel being the primary cost, and thus the primary lever to either make more profit or improve competitivity. If
380.
▲
by
masklinn
10mo ago
True, the engines need to be warmed up and the hydraulics need to be pressurised, but given e.g. airbus recommends single engine taxi without APU (SETWA) warming up the engines probably doesn't take that long in the grand scheme of thi
381.
▲
by
masklinn
10mo ago
IIRC towing to and from the runway has two major issues: - standard towing tractors are really slow when towing, nowhere near taxiing speed, so you need a fleet of heavier duty "fast tow", possibly dedicated (depending on price)
382.
▲
by
masklinn
10mo ago
Electric taxiing (on APU) has been in development for over a decade, but it's mostly intended for single aisles (the shorter the flight the more the taxi overhead), and the relatively low fuel prices has led to these projects mostly dy
383.
▲
by
masklinn
10mo ago
Yes, it sounds like the repetition of a mangled version of the SR71 stories. Burning 45 tonnes of fuel on the runway would be completely insane. Checking various links on taxiing burn yields about 2 tonnes which is a lot more realistic and
384.
▲
by
masklinn
10mo ago
> It's not very widespread It is tho? > and it's very powerful when applicable. I don't believe I stated or even hinted otherwise? > This format can handle "string views" with the same logic as "normal
385.
▲
by
masklinn
10mo ago
> Pascal strings are: { length, pointer } The historical P-strings are just a pointer, with the length at the head of the buffer. Hence length-prefixed strings, and their limitation to 255 bytes (only one byte was reserved for the length
386.
▲
by
masklinn
10mo ago
Postgres does the same thing, however AFAIK postgres does not use a fixed-size string which happens to have inline string data: text is always variable, and stored inline up to 127 bytes (after compression). These are different because the
387.
▲
by
masklinn
10mo ago
> The transient string is particularly brilliant. Ive worked with some low level networking code in c, and being able to create a string containing the "payload" by pointing directly to an offset in the raw circular packet buff
388.
▲
by
masklinn
10mo ago
They just store bytes. A leading astral codepoint means your prefix store contains just one codepoint, but that doesn't really change anything per se.
389.
▲
by
masklinn
10mo ago
"System's Horrendous Pile Of Shit". If anyone ever referred to Apps Hungarian that would be "Simonyi's Wish For A Proper Type System", but nobody ever does.
390.
▲
by
masklinn
10mo ago
C++ strings are not "optimized so". C++ strings (generally) do SSO (up to 23 bytes depending on implementation), these also do SSO but only 8 bytes (to a total of 12), the first 4 bytes are always stored inline for fast lookup eve
More ›