Better HN
topnewbestaskshowjobs
Log inSign up

AlotOfReading

15,561 karma · joined Jun 8, 2017 (9y ago) · 4,715 submissions

Submissions

comment 5mo ago · link · parent

How much did your clever approach save over a naive approach + file compression?

comment 5mo ago · link · parent

It's the norm in the US (and pretty much everywhere else with well-implemented developed financial infrastructure) for banks to apply extra scrutiny and roadblocks to large withdrawals. There's a patio11 article going over some of the reasons [0], but it notably generates paperwork for the bank reporting the withdrawal to the government and enables a lot of fraud to allow immediate access.

[0] https://www.bitsaboutmoney.com/archive/two-americas-one-bank...

comment 5mo ago · link · parent

Yes, that's exactly the point I've been making. It's undefined today because C has a type system and that type system has this arbitrary rule, not because there are implementation constraints necessitating it (where it could just be implementation defined instead).

comment 5mo ago · link · parent

The majority of browsers are derived from KDE's KHTML/KJS, webkit included. Apple made very significant contributions (like the webkit project itself), but that's not where the codebase originated.

comment 5mo ago · link · parent

Unaligned pointers are undefined behavior even when the hardware fully supports unaligned access, because you're violating the type's rules.

To be honest, I've never seen much indication that the C and C++ committees are particularly fond of each other. They sometimes coordinate, but they're mostly content letting each other evolve in different directions. C is the way it is only after a long process of evolution away from the bits and bytes of BCPL into the strictly typed language we got from ASNI.

comment 5mo ago · link · parent

C actually does have a type system and it's one of the bigger issues with the language. If it didn't, unaligned pointers and signed overflow would be totally fine.

comment 5mo ago · link · parent

    See humans have the tendency to romanticize the past, and if this is allowed to compound they elevate really quite dismal people to the realm of literal godhood in some cases. If you asked someone a thousand years ago what they though life was like thousands of years in the past and what it will be like thousands of years in the future most would have said the past was better in all regards including health, strength, morals even technology; while the future would be viewed as the continual circling of the drain.
Historical futurism is actually a pretty interesting subject rather than the tediously gritty monoculture you're imagining here. Early roman writers often imagined the empire would continue without end, for example. There was no circling of the drain. Many renaissance thinkers thought that the "dark ages" of medieval Europe were a temporary measure, hence the name "renaissance" or revival. Others were much much more cynical, and believed in an imminent apocalypse (e.g. the forecasted deluge of 1524). By the 17th century, people were writing utopian science fiction [0, 1], though some of these are really only utopian in the sense that Fukuyama's "end of history" is.

[0] https://en.wikipedia.org/wiki/New_Atlantis

[1] https://en.wikipedia.org/wiki/The_Blazing_World

comment 5mo ago · link · parent

USB-IF does in fact do this and has for years. Certified devices are allowed to have a "Certified USB" logo somewhere on them, usually placed next to the regulatory compliance marks.

comment 5mo ago · link · parent

The stdlib's use of unsafe is the process of formal verification [0]. Unsafe usage is still a decent rule of thumb for dependencies you should pay more attention to.

[0] https://github.com/model-checking/verify-rust-std

comment 5mo ago · link · parent

Microsoft has written more application development frameworks than you can shake a stick at. They've also failed to gain traction with virtually all of them, even internally.

comment 5mo ago · link · parent

You can have floats with bounded absolute error, and floats are a universal standard that makes all the projection calculations much easier. Speaking of projections, the error between lat/long coordinates and the physical surface of the earth they correspond to is also non-uniform. Looks like you can get a bit under 1m resolution with absolute error in single precision if I did the math right.

comment 5mo ago · link · parent

There are both descriptive and normative uses of gender. To use a less charged example, it's not prescriptive to identify as American. It's not prescriptive to say other people identify you that way, even if your passport says Canadian.

An example of using the category normatively would be saying someone isn't American because they burn the flag. My experience is that most of the people using "gender" normatively don't differentiate it from sex.

comment 5mo ago · link · parent

If we interpret the grandparent charitably, they're saying the centuries-long history of people suggesting Africans couldn't have built the pyramids to justify their own racial bias [0] also applies to modern people. It doesn't seem like an outrageous position, nor does it preclude ignorance being involved.

[0] https://www.smithsonianmag.com/history/how-white-southerners...

comment 5mo ago · link · parent

It's not possible to put a 5c nano on a keychain. They're intended to be kept in the slot at all times.

comment 5mo ago · link · parent

I used to keep a yubikey in a spare slot on my laptop. One day it fell out and subsequently escaped through an unnoticed hole in my backpack.

I've never lost a password because my backpack was overly abused.

comment 5mo ago · link · parent

That's a bad take. For one, illegal immigrants are a minority of the foreign born population. Secondly, even if the statistics are by some miracle not tortured out of the numbers, still obviously not a sufficient explanation. San Francisco for example has a small undocumented population (primarily from Asia), yet also has huge affordability issues from high rental demand and income disparity. There's no world in which Mexican fieldworkers are competing with FAANG developers for $4k/mo apartments in SoMa.

comment 5mo ago · link · parent

I have a bush of pink blueberries, and I greatly prefer them to the "blue" ones I've also planted. It's a novelty for guests and a nice seasonal treat. Minmaxing the nutritional content of every bit of fruit doesn't seem like a fun way to live.

comment 5mo ago · link · parent

Thesis by publication is only one way, and not even the most common in many fields. I can't access the actual text of this thesis, but the abstract sounds more like a monograph and I don't see any author publications before the thesis that would lead me to think otherwise.

comment 5mo ago · link · parent

That's assuming the game initialization order is deterministic. Using the hash of the combined state of seed and string avoids that assumption without giving up determinism.

comment 5mo ago · link · parent

"Writing" is a tricky term. Indigenous groups in what's now the US had property records, laws, and symbolically represented stories that could be read by others. What they didn't have was a system of symbols that can fully encode human speech (and vice versa). The latter is the typical definition of "writing" and it's not required to have the former.

On an unrelated note, Gwynne's book is fine as a fantasy story, but it's very badly regarded from the perspective of narrative history. Hämäläinen's Comanche Empire is a much better book arguing a largely similar position. Don't take that as applying to later books by the same author, sadly.

comment 5mo ago · link · parent

    ...then shuffled that array 115792089237316195423570985008687907853269984665640564039457584007913129639936 (2^256) times uniquely, each time recording the resulting shuffled array.
Correct as an analogy for block ciphers, but note that there are (2^256)! unique permutations of the input space. You're selecting an unimaginably small slice of possible keyed pseudorandom permutations.

comment 5mo ago · link · parent

The higher Himalayas are largely unpeopled as well, especially above 4000m. The only time I met people above those altitudes were at night in camps/settlements. I'm sure the EBC route is more crowded, but that's one very small trek in an enormous mountain range.

comment 5mo ago · link · parent

    Oftentimes that comes from road taxes, so it's really car use subsidizing the car-centric projects.
The various vehicle taxes haven't fully covered roadway expansion and maintenance for years. The national average is somewhere in the neighborhood of 60% of costs, I believe.

comment 5mo ago · link · parent

C has had a catalog of undefined behavior since C99, Annex J. There's sample code demonstrating all cases too.

It's worth noting (as the report itself does) that these sorts of lists can only document explicitly undefined behavior, and not the much larger universe of implicitly undefined behavior. So they're not strictly all possible UB, just the most important cases.

comment 5mo ago · link · parent

It's already a federal crime to lie to the census bureau, it's just not prosecuted for discretionary reasons.

comment 5mo ago · link · parent

That's what OceanGate of imploding submarine fame was trying to be.

comment 5mo ago · link · parent

Polyethylene, like they use in food containers. Virtually nothing sticks to it unless specifically designed.

comment 5mo ago · link · parent

I know it's not what you mean, but Lincoln dramatically shrank the size of the Confederate government.
1
131415
158