Better HN
topnewbestaskshowjobs
Log inSign up

PeterWhittaker

2,361 karma · joined Apr 27, 2009 (17y ago) · 1,306 submissions

Submissions

comment 9h ago · link · parent

> abolished because (wealthy) people refused to buy products made by slaves

Perhaps, but in the UK it was effectively made illegal by a 1772 court case [1], in which the justice, Lord Mansfield, was careful to stipulate that his remit was the UK only, and that colonies and shipping were outside his jurisdiction.

Americans generally omit mention of how impactful Somerset V Stewart was on colonial politics: that the colonies relied heavily on slavery is well known, but less appreciated is the fact that the legal bases for Mansfield's ruling were as applicable to the colonies, etc., as they were to the UK...

...so all it might have taken to abolish slavery would have been an appeal to the House of Lords, which, had it taken place and upheld Somerset, could have abolished slavery in all British colonies, possessions, and territories.

The justifications for independence are usually about representation and the like, but Somerset and the possibility of its application more broadly was in all likelihood a major factor of consideration especially for southern colonial leaders.

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

comment 6d ago · link · parent

Latest iOS and Safari are fine. FF issue? Or yahoo-hates-FF issue?

comment 2w ago · link · parent

Yeah, read that, laughed. While the statement may have some truthiness, if one flips it around it is basically saying that the norms of musl community allow programmers to be extra dumb.

Taking a different perspective, there are two intertwined thoughts in the original article and in most comments: 1) language safety, 2) community safety.

Each needs to assessed on its own.

comment 2w ago · link · parent

This is less a problem with C and more a bad design decision by the musl team. In response to poor practices (programmers not checking what crypt returned), they built an arguably worse one (returning a sentinel value).

Sure, Rust's std::result can make it harder to dumb, but dumb can always find a way.

comment 3w ago · link · parent

Which is exactly what the article explains through the 10 year compilation effort Vs the 10 second haiku.

comment 1mo ago · link · parent

From what I can tell, those options make the GPU available to podman, but without any form of host isolation/separation: the GPU is fully available without restrictions.

Since none of the existing namespaces treat GPUs directly (though perhaps this could be accomplished with cgroup?), this lack of isolation doesn’t surprise me.

While this may be useful for some workloads, the apparent lack of separation gives me pause from a security PoV.

One would hope that podman containers accessing GPUs are otherwise properly constrained to prevent their workloads from using GPU access to gain undesirable access to other hosts resources.

So I am left with my original question: what equivalency to podman, other than invocation convenience, is missing from nspawn? If none, it seems to me that having an awkward invocation in nspawn helps alert the user to the risks hidden by podman's convenience.

comment 1mo ago · link · parent

Your comment intrigued me so I read the issue, but I don't follow how his comments re a potential security concern and being able to overmount from inside the container lead to a conclusion of not seeing the point.

As a cybersecurity guy, my interpretation is that the requested change could introduce a vulnerability and that there is another potential path to achieve the same result, which should likely be explored first.

Any change that can compromise security needs significant justification, and should come with guards to allow it to be used in those cases where no other alternatives exist, without impacting other cases.

I've mostly used podman and am far from expert, and have long been intrigued by nspawn, so I really would like to understand the rationale.

Any other examples of nspawn mount limitations impacting operations without "workarounds"? Thanks!

comment 1mo ago · link · parent

If lifestyles support it, and parents are so inclined, I'd worry less about teaching the first few years and more about reading to them and with them, esp. with some silliness and improvisation, hiking, camping, and shopping as a family, especially at local markets.

Spend meaningful, loving time together, and out in the world, as much of the small scale natural world as you can. Listen to their questions, answer when you can, learn the answers together when you can't.

If they are accustomed to hiking and camping, especially wild camping, they will learn much from you and will ask for more.

If you shop together at markets, they will start to develop a more complete relationship with their food supply and with the people working it.

Empathy and kindness and resilience will develop in those experiences.

Later, when they are closer to school age, be as honest with them as you can about the different personalities they will encounter, the conformist teachers and students, the rebels, the do gooders, the no goods, etc., and comfort them that their people may be there right away or may not be there for decades.

comment 1mo ago · link · parent

Oh, flashback to learning queueing theory decades ago!

In principle, token ring was faster than Ethernet (which was CSMA/CD in the day): the mathematics of token ring were exact and analytic, and, when solved, gave higher speeds and better reliability than Ethernet, the mathematics of which were so complex (think three-body-problem) that analytic solutions were available only for bounding equations, which resolved to slower than token ring.

In practice, Ethernet was much faster.

A classic "the model is not the territory" problem.

comment 1mo ago · link · parent

Sounds like the school needs to wrap things in a seccomp denylist. Potentially non-trivial, but potentially interesting.

comment 1mo ago · link · parent

And this is exactly why dependency on single-source energy is anti-sovereign.

What's sovereign? Electricity-only to the home, subsidized battery packs in every home, as much solar as possible everywhere, full-spectrum centralized generation (including gas, oil, solar, wind, nuclear) all decentralized as much as possible, etc.

It's already bad enough that several major economies concede energy reliance to potential adversaries, but when one concedes critical financial controls, well, one is F'd AF. I know Ghalibaf won't get the Nobel for Economics, but he should.

comment 1mo ago · link · parent

Naive question, since this isn't my area of expertise, but Rust has RwLock: Why wouldn't one simply use RwLock to allow many readers and a single writer?

How does this approach outperform RwLock (for arbitrary interpretations of outperform) and how does RwLock outperform this approach (ditto)?

comment 1mo ago · link · parent

Yeah, no: We use recursive make extensively with a mix of "just normal makefiles" and autoconf schtuff, and it all works fine and reliably.

It's like any programming: Understand your tools, understand your requirements, understand your design and implementation (code carefully), test, review the design and implementation, test, repeat as necessary.

Still a big fan of make all these decades later. One day I may reach BJJ blue belt level.

comment 2mo ago · link · parent

Examples, preferably academic?

comment 2mo ago · link · parent

> That turd just ain't right

Best thing on the Internet this week. Thank you.

comment 2mo ago · link · parent

I really do hate to pile on with negative comments, but there are several at best misunderstandings and at worst errors in this:

1. TFA argues that malloc is for dynamic memory allocation and that arrays are for fixed counts. Sort of. In modern C, you can always char someArray[someValue]; what you cannot do is char someArray[someValue] = { '\0' }; making malloc good for the case where you need some initialization, but then you should probably be using calloc or some other call.

2. TFA indicates that top will tell you how much memory your process is using. Uh, sorta kinda maybe not always? Reporting memory utilization is a black art, top was built before current opacity, and this area is never as clear and clean as it seems. I have a tab group called "true memory usage" which consists of a dozen or more pages to remind how many edge cases there are here. hic sunt draconis

3. TFA kinda sorta implies that malloc means a system call and a change to brk, but TFA also mentions that malloc isn't a system call but a libc call: if you have previously called malloc and freed memory, or if your task's space is large enough, malloc might not involve a system call at all and brk/srbk might not be involved, since libc may have satisified your memory request from your existing task space.

It reads like a fine, clear, and correct article, but it isn't, really. Sad to say, because it did read really well.

comment 2mo ago · link · parent

The asynchronous behaviour raises interesting questions as to whether or not this is a bug or working as intended, and whether or not the io_uring API should offer controls to allow the calling application to decide.

With synchronous intra-machine calls we mostly take it for granted that pending modifications die with the caller.

But with inter-machine communications we mostly take it for granted that the sending machine and its entire local area can disappear and operations it sent will complete.

Of course, there are exceptions, especially when APIs/systems offer atomicity, consistency checks, etc.

But without express design intent, or preferably caller intent, one can argue both sides of the asynchronous intra-machine case and be right.

I guess my thinking isn't so much that this happens as that it happens implicitly.

comment 2mo ago · link · parent

But rivers have been mathematical for only something less than ~60 years, no? Mandelbrot's paper on the length of the coastline of Albion was in the mid 60s or so, and the math that made rivers mathematical (fractals, chaos theory) came after that (within my lifetime!).

Rivers are mathematical only because we have so improved our mathematics in recent times (when my parents were born, they were random and non-deterministic, mysterious).

comment 2mo ago · link · parent

The question of code ownership highlighted in some of the comments herein (e.g., "when you build software, you own it... "No, I specifically don’t. My company owns it...") takes me back to a paper I read years ago on password management and extrinsic risk: The basic idea was that employees have no real motivation to maintain password hygiene because they bear little to no risk of password compromise. They are asked both to be productive and to be secure, they are more likely to be sanctioned for productivity problems than security problems, so they sacrifice company security in favour of employment safety.

We've seen commentary along these lines re AI productivity gains Vs code maintenance costs and quality concerns for months/years now, but somehow, for me at least, viewing this through the lens of code ownership (literal ownership, not metaphorical/moral ownership in the 'take pride in your work and do it well, regardless' sense) makes this extrinsic risk all the more clear.

It also makes me think of the estimated billions lost to spreadsheet errors: non-programmers unaware that they were programming creating spreadsheet macros that appeared to do exactly what they wanted, but that in reality only did so most of the time, with edge cases and error handling omitted entirely, leading to significant financial losses for their employers.

In that case, the lack of sanction is far clearer: They were not programmers, they did their best, no one noticed and it wasn't their job to do so, etc.

The case of AI isn't that different, especially since it is just as available to the non-programmer as it is to the cavalier, or to the pressured junior, or to the responsible, take-ownership-and-maintain developer.

AI without governance and program management leads organizations to assume unqualified and unquantified risk with diffused responsibility; outside the small class of take-ownership-and-maintain professional, all risks are extrinsic to individuals so why should they care if it gets the job (mostly) done?

They don't and they won't.

(Reaches for popcorn to watch imminent train wrecks whilst hoping his water supply remains uncompromised.)

comment 3mo ago · link · parent

Your last paragraph is pretty much what I said. The sun being white is a recent development in human knowledge, and our recent and very good theory was only confirmed empirically very recently indeed.

comment 3mo ago · link · parent

Sure, the sun is white, more or less (cf comments re human perception and what "white" really means).

But when did humans first perceive the sun as white? We can only reliably say "sometime on or after 12 April 1961", the day Gagarin went into space. Prior to that, as far as we know, all humans saw the sun as some other colour, most often yellow or red, depending on the time of day.

Since Newton's prism, we had pretty good reason for believing it was likely white, reasons that got stronger in the 19th C with improved theories of optics, the discovery of atomic spectra, etc. I'm curious to know when we confirmed for sure its whiteness, and whether this was before October 1957 (Sputnik) or after Gagarin or somewhere in between.

comment 3mo ago · link · parent

That's why I love my induction range: all the benefits of gas (near instant heat control and response, even cooking, etc.), none of the asthma or benzene!

comment 4mo ago · link · parent

TFA mentions s/Philosopher/Sorcerer/ in HP, which I confess to having confused me greatly (are Americans THAT ignorant that they are unaware of the concept?) and pleased me, since the Canadian publishing house stuck with en-GB throughout, AFAICT.

As a multilingual Canadian capable of understanding most English and French accents, I'm grateful for those who preserve and persevere with their home patois.

Funnily enough, I had a hard time with Bradley's accent the first time viewing Hot Fuzz but many hours of BritBox and Acorn and a few hours of HarbourCustoms later, no problems at all!

comment 5mo ago · link · parent

I'm largely unfamiliar with his work, but in reading the article and viewing a few works online, I was struck strongly by the resemblances between his work and that of Alex Colville, 17 years his senior. To say that Hockney "restored the human form to art" and to ignore, to not even mention, Colville, seems hagiographic and willfully ignorant.

I'm in no way asserting that Colville restored the human form to art either, just observing that Hockney was far for alone in using the human form to convey aspects of his meaning.

comment 6mo ago · link · parent

In these days of concerns over digital sovereignty, I cannot help but wonder if they would be best served by moving to a privacy-protective European state, e.g., Germany or Switzerland (not EU but tends to align with EU regs, e.g., GDPR) and doubling down as a privacy protection service (to the extent permitted by law).

Just musing....

comment 6mo ago · link · parent

They don't discuss a "why", so much as present data on the "how" and "when". If this work is valid and reliable, then it will be up to later research to propose and test hypotheses as the why.

In a nutshell, the paper basically says that the lateralization that led to the predominance of right-handedness occurred around the time humans became bipedal and around the time of neuroanatomical expansion, possibly related to bipedalism.

In other words, before these two changes, we used all four limbs for locomotion and had no preference for either forelimb for grasping. Then one or two things happened and right-handedness predominated. It seems that that neuroanatomical expansion took over the areas of the brain that previously allowed our left hands to be as capable as our right hands.

I write "one or two things happened" because it wasn't clear to me from the paper whether the neuroanatomical expansion that led to lateralization was necessary to and part of bipedalism, i.e., caused by our locomotion bits taking over other parts of the brain to manage our balance, or whether it was merely coincident with it.

Interesting questions asked and answered, more research needed.

comment 6mo ago · link · parent

> Is this positivism?

My understanding of positivism is, in a nutshell, that its goal is to reduce everything to physics, including social, inter-personal interactions. My read of the article is that Rovelli is focused on the intra-personal, so to that extent it isn't positivism, or is at least a limited, focused positivism. Extending Rovelli's thinking to the inter-personal would be, IMHO, a categorical error: While we may one day be able to fully describe the physics (and electrochemistry, etc.) of everything inside the person, physics is insufficient to describe what happens between people, at least to the extent that what is happening is a result of each person's actions, choices, etc.

I think this where bringing qualia in as a level of abstraction is useful: Everything about us is ultimately operating on our physical hardware, but not everything about us is "just physics", since our "us" (our OS, if you will), makes observations and chooses actions that are determined at least to some extent by the "us", and not just by the physical operations.

At this point, one could bring in Skinner and make everything operational conditioning, or Kahneman for a slightly different take where much of what we observe or consider consciously (the energy-hungry slow system) has been pre-filtered by physical processes that are not available to us (the energy-efficient fast system).

If those lines of thought are correct - and that remains an open question - then we could potentially arrive at a complete positivism wherein everything is determined primarily by our internal physics, though we wouldn't get predictability for the same reason that we cannot solve the three-body-problem analytically or predict the weather accurately for all time or predict with certainty the motions of the planets, etc.: There are too many inter-dependent variables, and modelling will always lag actual behaviour.

I think we are on safe ground saying that intra-body behaviour is all physics, and on safe ground describing some of the physics responsible for what we call thought, e.g., neuropsychological processes, but at some point we need to model things differently to continue to make sense, make progress. We get away from just-physics at higher levels of abstraction, with the challenge being to describe the transitions from one model level to another (corporeal electro-chemistry to reflective thought and action to inter-personal relations to sociology and economy).

Sort of like how we know that everything is quantum mechanics at the appropriate scale, but that QM isn't terribly useful for modelling weather, planetary motion, etc.

comment 6mo ago · link · parent

Because it leads us down seemingly useful paths that are in fact dead wrong. There is only physics, but at some levels it more convenient to ignore the physics (what is happening in the body) and to describe our experience.

Rovelli is a reductionist, the only logically and physically defensible intellectual position, while dualism is inherently supernatural, invoking phantoms, phenomenology that is purely fictitious.

comment 6mo ago · link · parent

Not at all. As the fourth paragraph from the end states, we experience qualia. Rovelli is simply saying that qualia are simply physical processes described from a salient perspective, that is, at a level more abstract than the eletrochemical processes that underlie them.

It's a bit like pain: to create better analgesics, we need to work at the lower levels closer to the biology, but a patient describing pain to a doctor works at a higher, descriptive level, as does the doctor. Where is the pain, what are its qualities (dull, sharp, shallow, deep, burning, etc.).

comment 6mo ago · link · parent

Not at all sure why this is downvoted, since this is essentially a five-word tl;dr of the article.
12345
44