Readit News logoReadit News
hetman commented on Linux 6.16: faster file systems, improved confidential memory, more Rust support   zdnet.com/article/linux-6... · Posted by u/CrankyBear
dralley · a month ago
Linus is pragmatic. His only hard rule is "don't break userspace", most everything else is contingent.

From what I can tell, he views Rust for Linux as a social project as much as a technical one - attract new (and younger) developers into the kernel, which has become pretty "senior", force all of the "unwritten rules" to be written down, and break down some of the knowledge siloing and fiefdom behavior that has taken place over the years (by sharing it specifically with that younger group of developers).

If you think about it, Rust for Linux is in some ways essentially an auditing committee reviewing all of the API interactions between kernel subsystems and forcing them to be properly defined and documented. Even if the Rust part were to fail (exceedingly unlikely at this point), it's a useful endeavour in those other respects.

But of course, if Rust is successful at encoding all of those rules using the type system, that unlocks a lot of value in the kernel too. Most of the kernel code is in drivers, and it's typically written by less experienced kernel developers while being harder to review by maintainers that don't have background on or access to the hardware. So if you can get drivers written in Rust with APIs that are harder to misuse, that takes a big load off the maintainers.

hetman · 25 days ago
So has Linus straight up made it know this is where he would like things to head? Because it seems a lot of the resistance to Rust in the Linux kernel is coming from seasoned C developers who do not want to document these interfaces.
hetman commented on Push Ifs Up and Fors Down   matklad.github.io/2023/11... · Posted by u/goranmoomin
jmull · 3 months ago
I really don't think there is any general rule of thumb here.

You've really got to have certain contexts before thinking you ought to be pushing ifs up.

I mean generally, you should consider pushing an if up. But you should also consider pushing it down, and leaving it where it is. That is, you're thinking about whether you have a good structure for your code as you write it... aka programming.

I suppose you might say, push common/general/high-level things up, and push implementation details and low-level details down. It seems almost too obvious to say, but I guess it doesn't hurt to back up a little once in a while and think more broadly about your general approach. I guess the author is feeling that ifs are usually about a higher-level concern and loops about a lower-level concern? Maybe that's true? I just don't think it matters, though, because why wouldn't you think about any given if in terms of whether it specifically ought to move up or down?

hetman · 3 months ago
I agree with this sentiment. I find attempts to create these kinds of universal rules are often a result of the programmer doing a specific and consistently repeating type of data transformation/processing. In their context it often makes a lot of sense... but try and apply the rules to a different context and you might end up with a mess. It can also often result in a reactionary type of coding where we eliminate a bad coding pattern by taking such an extremely opposite position that the code becomes just as unreadable for totally different reasons.

This is not to say we shouldn't be having conversations about good practices, but it's really important to also understand and talk about the context that makes them good. Those who have read The Innovator's Solution would be familiar with a parallel concept. The author introduces the topic by suggesting that humanity achieved powered flight not by blindly replicating the wing of the bird (and we know how many such attempts failed because it tried to apply a good idea to the wrong context) but by understanding the underlying principle and how it manifests within a given context.

The recommendations in the article smell a bit of premature optimisation if applied universally, though I can think of context in which they can be excellent advice. In other contexts it can add a lot of redundancy and be error prone when refactoring, all for little gain.

Fundamentally, clear programming is often about abstracting code into "human brain sized" pieces. What I mean by that is that it's worth understanding how the brain is optimised, how it sees the world. For example, human short term memory can hold about 7±2 objects at once so write code that takes advantage of that, maintaining a balance without going to extremes. Holy wars, for example, about whether OO or functional style is always better often miss the point that everything can have its placed depending on the constraints.

hetman commented on The surprisingly simple reason kids have imaginary friends   vox.com/life/404992/imagi... · Posted by u/domofutu
jackyinger · 5 months ago
On the meta level, if a statement seems false the burden is on you to prove it. You’re asking your counterpart to do all the work.

On the subject level…

Have you ever seen a troop of monkeys hanging out? They definitely aren’t operating as modern atomic families, and we’re pretty closely related.

Geez, it was only several generations ago that multigenerational family cohabitation was common. And from my personal experience, growing up in a small town and hang out with other kids at will was great.

hetman · 5 months ago
The burden of proof generally lies with the one making the claim. As Hitchens's razor states: "what may be asserted without evidence may be dismissed without evidence."

Anyway, only because something feels intuitive, it doesn’t make it true. In this instance the original claim seems to contradict the article which states imaginary friends are not the result of loneliness but the process by which children explore the complexities of real relationships… i.e. a form of subconscious thought experiment.

hetman commented on US Ends Support For Ukrainian F-16s   ukrainetoday.org/us-ends-... · Posted by u/ctack
pydry · 6 months ago
Few wars have exactly one cause, but to deny that NATO expansion was the main cause of this one is to be a western equivalent of an unequivocal and passionate Putin apologist.

Even Donald Trump now admits that stalling NATO expansion and not treating Russian security concerns with utter contempt could have prevented this.

hetman · 6 months ago
According to the Kremlin, this means Russia dictating security policy to a population double its own. You may choose to believe that you can count on one hand the number of countries in the world with genuine sovereignty, but I assure you the citizens of the other countries will beg to differ.

Also it's not clear what "Even Donald Trump now admits..."is intended to mean here. Donald Trump has always repeated Kremlin talking points so I'm not sure why anyone would think of this as novel.

hetman commented on What it's like working for American companies as an Australian   seangoedecke.com/working-... · Posted by u/gfysfm
missedthecue · 7 months ago
1 in 12 Americans are millionaires.
hetman · 7 months ago
Which proves that talking about millionaires is no longer that socially relevant thanks to inflation. Somehow ten-millionaire doesn't have quite that ring though.
hetman commented on What it's like working for American companies as an Australian   seangoedecke.com/working-... · Posted by u/gfysfm
robbiep · 7 months ago
You used a shit example with the Woolies CEO - he was immediately absolutely reamed on every medium because of the sheer transparency of the stunt - him in his shirt with name tag in an empty shop and then chucking a wobbly when he didn’t like the questions. He blew it and he looked like a tool.

I find the obsession we have with saying we have a problem with success absolutely does not translate to my lived experience here. I see it on the national stage where the moment someone fucks up everyone piles on, but usually they’ve been on a path to being a flog for a long time anyway and they need, at the very least, a reality check.

Think how much better Elon musk’s headspace could be if one person in his circle had told him ‘you are mortal’ regularly along his journey of multiple triumphs

hetman · 7 months ago
Alright, settle down. The only sources I saw laying into him over it were the ones that make this kind of critique their life mission (professional or otherwise). As for the broad population, in as much as I could tell, it seemed they were upset about pretty much everything but the shirt, which is what I'm more interested in for the purposes of this discussion. Certainly, every person I spoke to about it hadn't even noticed it until it was pointed out, and the trend online didn't strike me as particularly different. I guess we'll have to disagree in that we got a different read of the situation.

Pretty much everything else you said confirms just how ingrained the attitude under discussion is in this country. Which is hardly surprising. If it was perceived as aberrant by the majority then it wouldn't be commonplace.

hetman commented on What it's like working for American companies as an Australian   seangoedecke.com/working-... · Posted by u/gfysfm
thayne · 7 months ago
> Australians typically play down their achievements, while Americans like to talk themselves up. Americans naturally read to Australians as boastful, while Australians naturally read to Americans as meek

American culture is not a monolith. This can vary greatly in different regions or different subcultures.

hetman · 7 months ago
Suppose you very crudely modelled the spectrum of American attitudes on this topic using some kind of bell curve. I don't think many people across the pond realise just how far apart the American and Australian bell curve means would be. These kind of "the truth is unknowable" truisms may sound wise but don't really teach us very much about reality.

On average, Australian culture views anyone, who even passively demonstrates any significant level of achievement, with a high degree of suspicion. Australians make a national sport of cutting down people who excel in any way. Sure, there are sub-cultures there which can vary considerably from this general trend, but even they feel the influence of this prevailing attitude. The end outcome is that Australians tend to go to considerable effort to hide the things that may single them out as excelling among their peers, and emphasise those things which make them similar. (A few months ago the CEO of the most powerful retail company in Australia gave an interview attempting to reduce public ire at their price gouging tactics, dressed in the uniform of a shelf stacker from their supermarket chain. I'm not saying this could not have happened in America, but there it would have probably been seen as a stunt or a statement... in Australia dressing any other way would have raised eyebrows, and in fact most people initially failed to even notice it for the PR manipulation that it was.)

Geographic proximity will always play a role in bringing cultural norms together, and while the US is a big place, the US population throughout the 20th century had incredible mobility, going where the jobs were, which helped to tighten up that bell curve.

hetman commented on US lawmakers tell Apple, Google to be ready to remove TikTok from stores Jan. 19   reuters.com/legal/us-lawm... · Posted by u/thunderbong
dqv · 8 months ago
False dichotomy. It doesn't need to favor anyone else's mandate. We are observing a lack of favor to any one mandate. The US mandate is to suppress "anti-US views" (in quotations because what the American populace thinks is anti-US/pro-US and what the American government thinks is anti-US/pro-US is oftentimes drastically different).

What people really mean (without even knowing it) when they say tiktok pushes propaganda is that it isn't suppressing the propaganda they don't like. They mean that after the "funniest Trump moments" video with 10 million views, there shouldn't be a video about the evils of Black Rock, it should instead be one of the "US military is EPIC" phonk edits.

hetman · 8 months ago
Again, this would only be true if the platform had a laissez-faire attitude toward content, which it clearly does not. What can and can not be shown on the platform is heavily moderated, therefore there is _some_ mandate being fulfilled.

Now we've already agreed that it's not the US's mandate, and I suppose you could argue that it is not the mandate of any of the US's opponents ether. Whether there are any geopolitical entities who don't seem to have the same balance of criticism vs. praise as the others, I'll leave as an exercise for the reader.

hetman commented on US lawmakers tell Apple, Google to be ready to remove TikTok from stores Jan. 19   reuters.com/legal/us-lawm... · Posted by u/thunderbong
incahoots · 8 months ago
This was always about running defense for the likes of Israel and it’s ongoing televised genocide….

This isn’t about national security, if it had been this would’ve never gotten as far as it has been, the door would’ve been closed long ago.

TikTok and its algorithm isn’t beholden to the US’s government mandate like the other social media platforms. It also just happens to be the one with the largest amount of users and engagement, compared to the others..

Anyone who’s been paying attention to the numerous times TikTok has been on the chopping block (nearly every year it’s existed) understand what’s at play here.

hetman · 8 months ago
Anyone who's used TikTok knows the platform is heavily moderated and not at all an "anything goes" paradise for the exchange of free ideas. So, if, as you suggested, the moderation does not favour the US government's mandate, then the obvious question one should be asking is: whose mandate does it favour?
hetman commented on US lawmakers tell Apple, Google to be ready to remove TikTok from stores Jan. 19   reuters.com/legal/us-lawm... · Posted by u/thunderbong
nojvek · 8 months ago
So much for moral high ground of “free speech and free enterprise”
hetman · 8 months ago
Yes. For their own citizens, not foreign actors who wish to influence said citizens.

u/hetman

KarmaCake day1196November 27, 2008View Original