skysight-inc/HackerNews huggingface dataset:
Having nowhere to be, ever, cuts into one’s sanity. It is all the stress of working combined with the listlessness of retirement. I hate it so much.
I'm trying to understand how this linked list works --

struct list_head {
struct list_head *next, *prev;
};

struct foo {
int fooness;
struct list_head list;
};

struct foo *iterator;

list_for_each_entry(iterator, &foo_list, list) {
do_something_with(iterator);
}

If we are walking iterator->list->next ... how do we get the pointer of the next enclosing foo struct? Are they doing pointer arithmetic to get the beginning of the struct from the list field offset and casting it to foo?

Ah -- That does seem like what they do:

#define list_for_each_entry(pos, head, member) \
for (pos = list_entry((head)->next, typeof(*pos), member); \
&pos->member != (head); \
pos = list_entry(pos->member.next, typeof(*pos), member))

#define list_entry(ptr, type, member) \
container_of(ptr, type, member)

#define container_of(ptr, type, member) ({ \
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
(type *)( (char *)__mptr - offsetof(type,member) );})
It is not reasonable to assume this. You might get lucky, or you might spend decades in prison.
So if you occupy country for long enough it’s ok to invade it when it tries to get independent?
Do you consider hitting enter/return for a newline to be clunky as well? Its generally the same size as caps lock and opposite it on the keyboard. I'd say I press return a bit more often then Esc when using vim, but its close
If we did that, Russians wouldn't be reading HN and Twitter now and wouldn't be seeing images of abandoned/destroyed Russian vehicles, captive Russian soldiers, wounded civilians (who likely have Russian relatives). They probably wouldn't know that the tiny Ukrainian air force has downed multiple Russian aircrafts.

They wouldn't see the outpouring of support for the brave souls in Russia who take to the streets to protest the madness.

They wouldn't be able to keep contact with friends, family and ex-colleagues who can provide them with unfiltered (or at least with other filters applied) information.
On my Windows workstation with a Ryzen 5800X and an RTX 3080, it is a stuttery mess on Firefox. Dragging windows happens at maybe 10 FPS, and there's half a second of input latency on everything.
> Tesla operates almost 13,000 stalls, or 58 percent of all the available fast-charging plugs in America.

But 72% of of EVs sold in America last quarter were Teslas so the ratio of vehicles to plugs is currently better for CCS cars:

https://www.kbb.com/car-news/electric-vehicle-sales-surging-...

North American EV infrastructure in general is backward and underdeveloped in comparison to Europe, mainly due to the North American EV market simply being smaller and the silliness with competing plug standards. It really would be better if Tesla joined the rest of the industry and switched to CCS in North America.

Tesla uses CCS in Europe and has started to open its chargers to all makes of EV. Time to do the same in North America.
"Any problem in computer science can be solved with another level of indirection."--David Wheeler[0]

Which is arguably a re-packaging of Gödel's point: absent a management layer to keep some state concerning the computation, one is in trouble.

https://blog.devgenius.io/software-engineering-great-quotes-...
Presumably there's TAs (and your peers).

I honestly think a world where we have fewer performers, making recorded lectures (that can be re-watched, paused etc), and more active teachers (TA-like roles) to help guide students would make for a much better university experience. No need for a full professor to clarify, help, or write recommendation letters.

Many fantastic researchers are simply terrible at lecturing (and teaching)...

Edit: Same goes for high-school. I learned best when struggling to understand courses/working through homework with my peers.
Not a very good analogy. No western country ever invaded Ukraine. When the Soviet Union collapsed Ukraine was granted its independence without a shot being fired.

A better analogy would be Australia and Canada. Both were part of Great Britain and both became independent after the British Empire collapsed.
I work from home and I turned my commute from 50 minutes of hell into a 30 min yoga session and a 5 minute walk around the block with a mug of coffee in my hand. I do something similar at the end of the work day. I think having that mental break between work and home is important, but you can still get it from a work from home situation, and I like being able to chose exactly how my 'commute' manifests vs trying to catch a train and being stressed out about missing my transfer. My home office is also outside on my patio under the sun vs inside, so I don't feel like I'm sacrificing any living space and its certainly far more luxurious than the windowless room with the bad chair I had at the office.
This seems extremely silly, if for no other reason I would bet 75% of the applicants will be Russian agents/intelligence officers applying to learn intel or mess up the operations.
Take a good look at this. This is supposed to be live video from a webcam in Kyiv. About 20 minutes ago, a building in the left distance appeared to catch on fire after aircraft had passed over. After a while, the fire went out. But if you watch, the fire seems to be a static image superimposed on the building.

The audio has occasional air raid sirens. But the light traffic does not respond to them. Traffic continues to stop at a traffic light, despite minimal cross traffic. There are a few pedestrians, in no hurry. No emergency vehicles.
My big problem with SQL is that I want to do the query planning. Sure, the database can often do a better job -- but I want to be able to guarantee upper bounds on things, damn it! I've seen so many weird edge-case performance problems that boiled down to poor query plans. Things will be fast most of the time and then, suddenly, the database will look at its stats and decide to do a full table scan, and then everything goes straight to hell and stays there for too many milliseconds.

If I ever cross paths with a database, I'll spit on its shadow.
> but capture a comet or two and that problem goes away.

So the moon colony needs to be capable of making the things to go and capture a comet, and more comets in the future to replenish supplies, to support itself. That's a very large civilization.
A sort of side comment, but I absolutely despise this type of thinking.

"before you cause someone to go to jail"

If you take legal advice from pseudo anonymous users on aggregate websites you deserve to go to jail. Even in writing that, the users did not "cause" anyone to go to jail; the moron reading and acting on that comment did. Have some respect for individuality mate.
It's obvious that the hack would work on a technical level, that's fundamental to the whole idea. The question is how complex the logistics of doing it in the real world would be; how you insert the tampered code, how you avoid anyone noticing, etc.

For example, I run Gentoo Linux, and haven't reinstalled my OS since 2004 or so. That means that, modulo a few binary packages, I have a direct source lineage to the state of Linux in 2004. If you want to pull off that attack against my system (and you didn't already back in 2004), you'd have to tamper with source archives. That would both imply changes that are easy to analyze (more than binary patches), and it would involve changing the archive hashes in the Portage tree. That tree is in Git, which means that it would create an immutable public record of what happened (Git is the original blockchain, remember), modulo forced pushes which people would, again, notice all over the place.

In practice, if you want to persistently backdoor a new system (supply chain attack), it's usually easier to do that in hardware or firmware than trying to do a RoTT attack on the distro and its compiler. In fact, it's users of binary distributions (or proprietary OSes) that should be more worried, as it is much easier to do a binary-based RoTT attack that self-updates to handle new versions consistently when all your users run the exact same binaries. Source code users should be more worried about compromise upstream than local persistence. And those attacks are a review / auditing issue, unrelated to RoTT.

In the end, if you are worried about being personally targeted, it's easy enough to make that impractical by re-bootstrapping your computing from an unpredictable source (e.g. walk into a random shop and buy a PC, walk into a net cafe and download your favorite distro and check the hashes there). And if you are worried about large-scale attacks, RoTT style ones aren't practical without someone somewhere noticing; you should be worried about traditional compromise instead.
they promised not to attack, not defend
> Isn't a well-rehearsed then conducted (in order to avoid and isolate provocations) peaceful protest efficient against it?

Of course not. In Russia peaceful protesters are routinely beaten for standing with a piece of paper. There wasn't much violence from protester's side for about a decade now because you get 3-7 years in prison for throwing a paper cup at a riot cop, or touching his helmet (not striking — simply touching). You can be peaceful all you like, it won't help you to get out of it unscathed. Just yesterday we got a few fresh examples (ironically from anti-war protests).
Who are you speaking on behalf of when you say "our"?
I think the point GP is making is that hybrid Teams are worst off. And that was my experience also pre pandemic. Actually the people who always were remote felt a huge improvement, because suddenly all had the same 'distance' and needed to put in the same effort to stay connected.
In a way, it applies to dogs too. I have the privilege of giving my dog a way out of pain: I can put them down. That decision rests with me, and ultimately, one day, I will have to make it. I may choose every day to feed my dog the best diet I can afford, I'll give her massages, I'll snuggle her, care for her when she's sick, but ultimately, one day, I know I will have the choice to spare her the pain of dying a painful death. In some ways, I'm jealous of that choice, as a man who has faced his own mortality before.
Considering that he's sheltering in Russia right now I would strongly suspect he's going to keep his mouth shut no matter what his opinion is about it. If Putin kicks him out he will be extradited and thrown in a US federal prison solitary confinement cell indefinitely while 'awaiting trial'.
The complexity is still there even with microservices or a Go or a Clojure codebase, it's just that either you've created a mess or you've created your own framework.

In my experience, you either use one of these big frameworks, or you end up building one. I've seen that happen more than once, and these "home made frameworks" are far worse, less documented, more buggy and have like 6 different patterns depending which generation of developers before me built it (and of course, I had left own opinions and mistakes too).

Writing microservices in Go or Flask or Sinatra won't make all the complexity related to the Web go away magically. The're still there. Now they're distributed across services and implemented mostly from scratch.

If you are not FAANG and don't use one of these big frameworks, you have only two options:

1. Create a distributed spaghetti mess of random libraries tied together
2. Build your own "big framework".

I've been many times in companies which were through the process of breaking up the monolith into separate services. It never finished, and every single service was just a proxy to the monolith, and everything took twice the time to implement, and now both all the services and the monolith have to be kept running and maintained. The only "positive" was the group of devs that wanted to play with new tech and somehow managed to become a team that only works on one of those services, so now they're "free" from the monolith hell. Business wise it was a disaster, would have been better to just let those engineers find another job with the tech stack they preferred and hire new ones willing to work on a single codebase and keep things simple. Again, this was not a Google scale company, these were 50 ~ 100 engineers organizations.
I know you mean lifespan if left to die of natural causes, but To be honest the “natural lifespan” of a cow is 0 years and the average life of a cow is a picnic compared to the hardships faced by a comparable natural animal in the wild.

Edit: clarified distinction in understood meaning.
What if the program you're running outputs "foo" in an infinite loop?

Then I think the above behave_differently would actually behave the same
Great comment, particularly your summation of the 1980s Cold War zeitgeist. It was very real for our generation and nuclear war drills and fallout shelters were part of the life for school kids in many places, especially my South Texas town with its (then) five military bases.

I don’t agree with you on blockading Russia or escalating conflict over Ukraine but it will be a different situation if Russia makes a move on Estonia or Latvia or—God forbid—Poland.

For me, my response to increasing global instability is the same as it was during the riots of 2020: get the heck out of cities, especially coastal cities. It’s not going to get better any time soon. In a small town in a flyover state, I can at least grow my own food and raise my own family with minimal worry about the outside world, aside from diesel prices.
I know people paying this much for an entire house in rent out in the rust belt.
Time. It slowly becomes second nature and now I quickly reach for esc in many applications, not just vim. It does seem weird at first, an insert key (i, a, o, etc) and an esc needed for every text addition, but over time you grow used to it.

I also have my caps mapped to both ctrl and esc. Ctrl when held, and esc when tapped. Wish I had done that ages ago.
Don't actually do this
3,800 Miles Across America on a Tandem Bike in Our 60s. Here’s What We Learned
Presumably lack of choice of qualified vendors. You can read more about the EU's willingness to invest, to the point of introducing legislation, here: https://www.bloomberg.com/news/articles/2022-01-20/eu-to-unv...
That does not work. Your example does not change the behavior of the following program:

echo foo
exec $0
No one wants war, including Russian citizens:

https://twitter.com/ragipsoylu/status/1496905869983768581

Fuck Putin. You'll rot in hell.
I had problems with mine and ended up selling because of it. Never crossed my mind to report it. Interesting to see it wasn't just me.
They already do this, they have 10,000 quality raters doing this manual work.

https://www.searchenginejournal.com/google-eat/quality-rater...

https://support.google.com/websearch/answer/9281931?hl=en
I am sure there will be some defacing, but that is the digital version of painting Hitler mustaces on posters.

Unless we see a Stuxnet attack on something important - say the Russian gas pipeline, causing significant physical damage - I doubt it would matter.
You seem to have missed the point.

> If Russia attacks a member of NATO then all members of NATO are obligated to join in defence militarily

And? They can't actually respond militarily because MAD.

NATO is useless if the enemy knows you won't initiate MAD, but they can (democracy vs dictatorship).
> not super strong at design well thought out rendering techniques.

Can you expound on this?
That would be a bit of irony, the same thing happened with analog dosimeters after the initial accident.
I don't think Putin is going to stop after Ukraine - he may temporarily stop to rebuild and plan the next war, but my belief is he will keep salami slicing until war is joined because he crosses some line that people stand up to him. Better to do it cheaper.

The "you" was, well, everyone in the world. I don't really subscribe to the strange belief that I should only care about human suffering of my countrymen. However, if you do, the bigger the war gets, the worse it will be and the more far afield it will bring in other countries.

As far as "far from Russia's supply lines", their old border won't matter, they'll still be close to their bases in what was once Ukraine. Oh, and they'll have more resources from
Ukraine. Plus, you won't have the 7th largest army in the world absorbing the brunt of their attack.
Disappointing tweets from him imo. But like others have said, he’s been taking refuge in Russia so he’s kind of in a terrible spot.
I'm definitely open to discussing the possibility when it's with someone arguing in good faith. It seems like that's where you're coming from, so thank you.

I won't bury the lede further. Plants can't experience pain, at least insofar as we conceive of it, because they don't have nociceptors that signal pain. Therefore, if they do have any sort of phenomenological experience, whether it would be recognizable to us or not, there is no sense in describing anything they experience as "pain".

There may be simple damage-avoidance reflexes, but comparing that with what it feels like to break a bone would be like saying that pedestrians and vehicles should share the road. The difference in quality is so significant that it makes better sense to categorize those reflexes as not pain at all although in service of the same tissue-protecting goal. My legs are not a vehicle I don't think.

A final point on the deficit of nociception, is that the experience of pain is so central to our lived experience that it's difficult to conceive of what that would be like. It's like the alpha channel in rgba... Without that signal for opacity, there's no color at all.

If the above is not enough to convince, there's some recent research that sought to systematize the analysis of sentience. Here's the 8 points used:

1) possession of nociceptors;
2) possession of integrative brain regions;
3) connections between nociceptors and integrative brain regions;
4) responses affected by potential local anaesthetics or analgesics;
5) motivational trade-offs that show a balancing of threat against opportunity for reward;
6) flexible self-protective behaviours in response to injury and threat;
7) associative learning that goes beyond habituation and sensitisation;
8) behaviour that shows the animal values local anaesthetics or analgesics when injured

As you can see, plants are immediately out of the running on the most fundamental point. As you continue down, it becomes more and more absurd to say that plants feel. There's no mechanism by which that would be possible.

I hope that helps!
> 2. Develop nuclear weapons.

Belarus, Kazakhstan and Ukraine had nuclear weapons but gave them up because Russia agreed not to invade them.

https://en.m.wikipedia.org/wiki/Budapest_Memorandum_on_Secur...
Savelife.in.ukraine Was Removed from Patreon
The title is wrong. They don't bet. It is deeper in the article. They are actually hedging their bets and can afford to loose that money.
Ideas that will make their startup better that are realistic, highly likely they are considering:

- 50 drones not one
- make sure they don’t run into each other
- drones of different sizes and speeds
- watch out for power lines
- watch out for birds
- don’t run into planes
- don’t ruin the scenery for hikers by always being aloft
- make sure they are charged
- use as first line of defense before the humans come
- make sure they can’t be hacked
Don't try to force everyone to your preference and your thinking. Do you enjoy working at an office? Join a company which is office first. Want to work from home? join a remote first company. Market and time will decide which ones are more successful. Probably both will be in different ways.

I prefer remote, so I left my previous job and only applied to remote companies. Now I earn more than before and have 2 extra hours every day. I feel even more productive than before. And I feel a tiny small bit better with myself as I'm now contaminating less the environment. This multiplied by the total remote employees my company has, makes me feel still better about it.
This is far more chilling to me

https://imgur.com/6BeH4md

"Estimate of areas of Ukraine captured by Russia since fighting began this morning"

If this "works" that well for him, why stop at Ukraine?
How are Russian troops entering Ukraine different from Germany invading Poland? Well probably quite a lot. Sort of a hard question obviously there are differences and similarities I don't want to get into just listing things out and arguing why the differences or similarities matter or don't matter. I hardly even know what's going on in the region now and my WWII history is not fantastic, so I don't think it would be too productive. I would be interested to hear you to explain it if you believe they are similar (if you want to).

Do you think this is more similar to Crimea 2014 or Poland 1939, for example? Or maybe you think Crimea 2014 was the same as Poland as well?
I don't know about "a bluff" but this happened in mid-2021 and did not precipitate an immediate invasion.

> In March and April 2021, Russian president Vladimir Putin ordered the Russian military to begin massing thousands of personnel and equipment near its border with Ukraine and in Crimea, representing the largest mobilization since the annexation of Crimea in 2014. This had precipitated an international crisis and generated concerns over a potential invasion. Satellite imagery showed movements of armour, missiles, and heavy weaponry. The troops were partially withdrawn by June 2021.
This is the future of censorship-resistant network.

Middleman only happens because every info is dumped inside one series of packets transferred as a single src-dst ip:port connection. Crack one stream and you get all. If we somehow split bytes and bits and shuffled them into multiple ip:port connections, span on multiple ISPs, then middleboxes are rendered useless. Targeting one TCP stream is easy, but correctly select M from N connections is nearly impossible.
The only sanction that has enough teeth to so anything is to remove Russia from SWIFT. Without Germany’s backing, this will not happen.

In addition to boycotting Russia, citizens of the world should be boycotting German products until they agree to ban Russia from SWIFT.

Putin is risking World War III and Germany has decided to let it slide to avoid some short-term economic pain. Not cool.
As well as System76's Pangolin laptop, which also runs Ubuntu.
Unfortunately for people with your worldview, this isn't the way the world works. You're thinking under a framework that one set of actions will certainly prevent it, and the other is more likely to cause it.

At this point, neither intervention nor non-intervention is likely to prevent this. It's entirely likely that if Putin loses this assault, or faces an intractable insurgency, he could launch nukes out of a desperate attempt to save face. He's old — at this point, only the reputation he leaves behind is what matters to him, and it's clear that he wishes to be remembered as a fearful and powerful figure. What better way to do that than nuking someone?

Your attitude is the same entrapment that allows abusive spouses to hold their spouse in thrall. I've actually witnessed that backfire to its ultimate degree; in my hometown, a woman in an abusive relationship called her husband's bluff on his threats to kill her if she left, and he wasn't bluffing. Killed her in broad daylight at a local bank, and then killed himself.

The question you have to ask is whether you think her leaving him was the only thing that precipitated him killing her, or whether his killing her was because he realized she no longer loved him.

Everything in life is a gamble.
How to speed up the Rust compiler in 2022
I think this is really cool and I would be interested in a set of cards - I emailed the address listed on the page.
People disagree about proposed language features. That's not a surprise. It's a sign of a healthy community where debate is encouraged.

Besides, C++ ships features at a glacial pace compared to Rust, so I'm not sure what your point is.