HNHacker News
TopNewBestAskShowJobs

pencilguin

396 karma · joined October 16, 2022

submissionscomments
pencilguin··on Negative 2000 Lines of Code (1982)
> He was fixated on the idea that his code needed to be extensible (without a clear notion of how or why) and kept adding abstraction after abstraction for every new feature he added.

Sad to say, usually the only way this lesson can be learned is through being fired. And not always then, but at least it is no longer your problem after.

pencilguin··on Review of the Mad Emperor: Heliogabalus and the Decadence of Rome
A horny teenager is easily satisfied without public spectacle. A resentful chattering class, less so.
pencilguin··on In defense of linked lists
Thus, "many". Game coders would not be among those.
pencilguin··on In defense of linked lists
There was a lot of BS, as well. It is impossible to tease out which was what.
pencilguin··on The type system is a programmer's best friend
Classes can be OO. Or not OO. Makes no difference, at compile time.
pencilguin··on The type system is a programmer's best friend
The above, while carefully tailored to tickle HN biases, has no connection with reality.

Types are exactly equally as "traceable" in C++ as in Rust.

pencilguin··on The type system is a programmer's best friend
All unit systems decompose each unit to primitives, that can then be aliased for notational convenience. So, a result of J/m decomposes the same as a N.
pencilguin··on The type system is a programmer's best friend
Has absolutely nothing whatever to do with OOP.

OOP, where it means anything at all, involves runtime selection of operations according to types organized in hierarchies.

TFA is about compile-time type compatibility enforcement.

pencilguin··on The type system is a programmer's best friend
True enough, as far as it goes. But if you are concerned about subscribing to something twice, you may want to try to check delivery uniqueness. They might be your own addresses.

Of more interest to me, omitted from the presentation--as almost always--is anything about what is disliked about a malformed address. You see this when some web form says it doesn't like your address, but won't say why, leaving you to guess and try things until it is satisfied.

Another example is the password filter that idiotically demands "at least one capital letter, one digit, and one swear character" in your already several-word passphrase, and dislikes your choice of swear characters but won't say so.

pencilguin··on TSMC approaching 1 nm with 2D materials breakthrough
Patents on fractal compression and related techniques are all expired now. There might still be people who remember how to use them. Do we see any use of it, now?
pencilguin··on Starlink Sets High-Speed Data Cap at 1TB per Month, Lowers Advertised Speeds
The laser links between satellites may be much less burdened than the uplink from the ground hub station nearest to the subscriber.

SpaceX can upload content to the constellation via more-lightly loaded ground hubs, and propagate to the rest. They have the advantage that they can know what was being streamed in an area a satellite is about to enter, and can preload the parts it will need to downlink while there.

Of course all this requires intimate cooperation with the streaming service, because it is at a much higher level than packets.

pencilguin··on Review of the Mad Emperor: Heliogabalus and the Decadence of Rome
... and ancient trolling followed naturally.
pencilguin··on Review of the Mad Emperor: Heliogabalus and the Decadence of Rome
Easy to make up, impossible to corroborate.

It tells us that Romans disapproved of messing with food almost as much as with religion.

pencilguin··on Review of the Mad Emperor: Heliogabalus and the Decadence of Rome
So, not very different from subsequent Christian emperors, except they kept better control of their posterity.

The debauches sound wholly fabricated. I don't know why historians imagine they can pick out anything true. Even if an appointed official's name is corroborated somehow, there seems no reason to believe whatever was written about him or about why he was appointed.

We can be fairly sure Elagabalus was not well-liked by the literate class, and we can see what sort of activities they thought people would or ought not approve of.

We see similar behavior by historians on whether Jesus ever existed as a physical person. Almost all received documentary evidence is either obvious fabrication from often centuries later, or (e.g. in Pliny) acknowledged hearsay. The overwhelming majority of material represented as "early church", on any aspect, is clumsily forged.

The star exhibit supporting existence is a single paragraph in Josephus that every historian agrees was at least clumsily doctored by apologists. Many earnestly believe they can pick out bits of it not doctored, but the whole passage it appears in reads better with it omitted entirely. The most favorable judgment of it that can be supported is that nobody can prove none of it was in the original manuscript, and the "reconstructed" version reads a lot like Josephus.

There is no information to suggest why it would have been thought necessary to corrupt the original text, if it existed and read as "reconstructed". Statistically, the fraction of historians doubting existence is monotonically increasing, with no change in the evidence. That is actually progress.

pencilguin··on Tony Fadell Joins Arm Board of Directors
We can compare to Bunnie Huang and Jim Keller, both of whom get important, difficult things done and are far on the other side.
pencilguin··on In defense of linked lists
https://github.com/AcademySoftwareFoundation/openvdb/issues/...

Longer answer is that the size of the "blocks" is limited to 512 bytes or one element, whichever is larger. So unless your elements are really tiny, it is strictly a pessimization.

pencilguin··on In defense of linked lists
/dev/hugepages/ is a good place to put this if you have enough control over the host.
pencilguin··on In defense of linked lists
Or, you can map new space onto the end of an existing mapping, at a slightly greater cost of keeping track. Mremap is usually better.
pencilguin··on In defense of linked lists
It might or might not. Commonly, not.
pencilguin··on In defense of linked lists
The fact is that in 95+% of cases, the performance doesn't matter at all, and a linked list is fine.

The only problem is that use cases evolve, and what was fine suddenly isn't, anymore.

pencilguin··on In defense of linked lists
True... except in MSVC. std::deque in MSVC is cursed.

Targeting MSVC, use boost::deque or something, instead. Boost containers are generally fairly good, although they are more or less unmaintained nowadays. (E.g., boost::unordered_map::reserve doesn't work.) Or, like many of us, ignore performance on MS targets because anybody who cares about performances is running something else.

pencilguin··on In defense of linked lists
OSes do already provide this ability: mmap.
pencilguin··on In defense of linked lists
Another name for that is "B* tree". Or anyway a thing with similar performance characteristics.
pencilguin··on Starlink Sets High-Speed Data Cap at 1TB per Month, Lowers Advertised Speeds
https://xkcd.com/1656/

Seriously, though, they are probably compensating for failure to get the "can" launching system (aka "starship") online that would enable lofting new higher bandwidth satellites. The cans would have more and, more importantly, bigger payload. If it takes too long to get the can going, they could probably shift to Falcon Heavy and a bigger shroud. But without the can, it costs too much to operate, steady-state.

Starlink is pretty severely limited on aggregate bandwidth. They could do a lot to mitigate this by coming up with ways to deliver the hottest realtime streams (e.g. World Cup) via a broadcast protocol, and to partner with Akamai etc. to cache a few hundred TB of other content aloft, to save on uplink bandwidth.

Capping is easier.

pencilguin··on It’s electric. Technique could clean up mining of valuable rare earth elements
It is probably better to make scandium and yttrium honorary lanthanides, in news reporting contexts, than to continue using the confusing "rare-earths" misnomer.
pencilguin··on NASA finds super-emitters of methane
I use a hat.
pencilguin··on NASA finds super-emitters of methane
Burning it at the source means thatuch more gas will also be extracted and (ultimately) burnt for the other use.

2xNH3 -> 3xH2 + N2 is fine, only excepting that more NH3 will need to be made. In the future it will be made with wind or solar energy, but that is still a few decades off.

pencilguin··on Corpus Christi sold its water to Exxon and is losing its big bet on desalination
Shale oil extraction, which Exxon is planning there, is an environmental disaster shitshow.

So, blocking desalination prevents diverting the civil freshwater supply to that project, a pure good.

It would be strictly better to outlaw shale oil extraction, but that choice is not available.

pencilguin··on Hunting for Hieroglyphs at Philae (2019)
Wondering when Egyptians started routinely building modernish staircases. It seems like Valley of Kings tombs still had, at least mainly, ramps.

Were they a Roman import?

pencilguin··on The New York Times made a weird editorial decision with its tech coverage
Add NRGV ("Energy Vault", once well over $2B, now $0.4B and still badly overvalued) to the Theranos pile. And all but one of the fusion startups. (Maybe them too.)

Kyoto Fusioneering has realized that there is lots of money to be made selling parts for phony demos to fusion startups.

BTW there will not be any Mars colony in this century. Or Tesla office-robot.

← PreviousPage 8 of 16Next →