skysight-inc/HackerNews huggingface dataset:
> We have shown on these pages that Census Bureau income data fail to count two-thirds of all government transfer payments—including Medicare, Medicaid, food stamps and some 100 other government transfer payments—as income to the recipients

That's because those things aren't income.

Seriously trying to argue "Income Inequality isn't that bad because people got food stamps"? Holy crap.
While not related to the bald eagle population rise, which has been going up for over a decade, I heard a theory about third and fourth order effects of the pandemic that involved rise in predator species like eagles.

Basically, with fewer cars on the road for a large stretch of last spring, small critter populations would boom since automobile death is one of the leading modern causes of death in young critters.

With the population of small animals on the rise, predators would have more accessible food sources allowing their populations to rise over the following years.

I have no idea how this is holding up or whether its based in reality but I found it an interesting way to think about unintended consequences of a large shift in the modern way of living.
Say what you want about Stephenson's writing, but he definitely has a knack for understanding concepts before they enter the public consciousness.
assert on the call_count attribute of a mock instead of trying to use methods on it like .assert_called_once_with()

"a mock’s job is to say, “You got it, boss” whenever anyone calls it. It will do real work, like raising an exception, when one of its convenience methods is called, like assert_called_once_with. But it won’t do real work when you call a method that only resembles a convenience method, such as assert_called_once (no _with!)."

https://engineeringblog.yelp.com/2015/02/assert_called_once-...
This is true, and important, but:

You should never depend on GitHub or RubyGems for deployments.

If your deployment failed today due to this gem yank, it has exposed a bug in your systems that you should fix.

EDIT: I should not speak in such absolutes. "Never" is a big word and clearly this does not apply in all cases! Depending on third-parties for deployments is a risk -- but might be tolerable, if a multi-hour outage would not be devastating.
The fundamental critique of an MBA is that presumes "management" or “business” is a thing you can be an expert in, independent of the domain you are managing. If you're a domain expert in something and also an MBA then sure, whatever.
This is one of the only comments I've seen that so perfectly captures the raw deal WFH will actually end up being for most people. Also, salaries will go down, not up, as employers pressure employees to move to lower cost of areas or emphasize hiring in those areas.

In a lot of ways I dream of a job I could well and truly leave at the office.
It might be possible perhaps to use a macro that passes a structure and extracts the elements (at least if the compiler supports GNU extensions); I don't know if the compiler will be able to optimize that in all cases, though.

Example:

static int xyzzy_(int x,int y) {
printf("x=%d\ny=%d\n",x,y);
return x*y;
}

typedef struct {
int x,y;
} xyzzy_parameters;

#define xyzzy(...) ({ const xyzzy_parameters macro_args={__VA_ARGS__}; xyzzy_(macro_args.x,macro_args.y); })

int main(int argc,char**argv) {
printf("[%d]\n",xyzzy(.x=6,.y=7));
return 0;
}
whoops. Thanks for correcting me *non-TI. Can't edit parent post. And also note some non-TIs have 10GB, not 12 (still more than 8GB). Nvidia has successfully confused me =D.
Show HN: I wrote a book about my side-project
I looked at Go but the lack of generics didn't help, so I ditched it. I'm very excited about it now that they're considering adding it though. Thanks for the tip, I'll check out what changed in the meantime!
My concern was more about the animations switching workspaces being too jarring, but they are pretty smooth.
And it's the only realistically working pixel. Others aren't as pervasive.
Every way of thinking is wrong, but science very quickly becomes least wrong.

Yes of course there will be cases where doing what the science says produces a bad result, but that is no reason to trust the tea leaves instead. The question is not who is right, it's who is closest to being right. On average, science will consistently outperform all other approaches.
It is a DFA plan and simple
Ask HN: What Do Developers Want?
As a developer myself who works at a startup now, I'm trying to figure out what developers want? Not as startup founders but as professionals? What motivates you? What's your ideal work environment? What triggers you? What can't you stand? How does an ideal day look to you?
I still listen to original TRON soundtrack a lot while working.

That and Blade Runner OST really hold up.
Interesting, do you have a link or a name of the initiative to search for?
Just around 2038 as people go "what the hell does this perl code do" as the clock rolls over.
Transactions are registered on the blockchain, and that's transparent, verifiable by anyone. Much more than through any bank, ironically.

Regardless on how the car is paid, a car is delivered to a physical person, and Tesla asks for sure many information on that person... it's not like something purchased on the darknet delivered to an anonymous PO box :-)
I love your writing style. Specially the way of not assuming previous knowledge.
I used to do the same but even the San Francisco wouldn't look very good. I am now using Inter [1] as my system and browser font and it looks great.

[1] https://rsms.me/inter/
Except as I understand it her accusations didn't stick at all. Did anyone buy that it was gender/trans-discrimination? Certainly the party did not hire her back. So it seems as if, by this minor measure, the world can still be rational.
too much cash, not enough stuff.

inflation is coming.
So you want this person working in a school or daycare? Do you want such a person to adopt some kids, or tutor kids in his spare time?

I think it definitely matters when a person has such fantasies.
StarCraft is built in such a way that you can't create a perfect, 100% winrate agent.

Since there is hidden information, you could always miss a corner of the map where the enemy hidden some units and you lose the game.

Is Alphastar "perfect"? no.
Is it better than 99.9% of all humans? absolutely.

You don't need to create a perfect agent in most cases, self driving a classic example.

If you were to deploy an agent that drives 95% better than all humans the effects would be huge.

It would still fail in some scenarios where professional drivers won't be it doesn't really matter because most people are not that.
If a company is looking for an open source work in the candidate CV it means they want to know if that person is keen on providing work for free. It means that the candidate shouldn't have problems staying over time without pay because it is his or hers passion.

There is a distinction between passion and exploitation. You can be passionate without having to give away your labour for free. Big corporations want people to work on open source because it saves them R&D money. Some projects take years to develop and that costs millions had the companies had to pay salaries and taxes, but instead they can just appropriate the project once it is mature enough, pat the developers on the back and then make billions off of it without sharing a penny.

You can be passionate and develop your own business, own projects without having to share them and saving corporations money.

To level the playing field big corporations should be required to pay royalties to open source contributors.
Hey all,

I wrote a short and to-the-point book about my "adventure" of finding an interesting idea for a side-project (hence the name of the book), building upon this idea, marketing the project (while learning marketing) and eventually selling it to another entrepreneur (as a first "acquisition" experience).

The book entails interesting bits of information as I you read along this journey that took me 3 months from ideation to acquisiton.

I would love to hear your feedback about it! :)
Near the end of that podcast they talk about how Will Harris had evolved his farm to make money off the new flock of eagles that come to the farm:

> "But Will is resourceful, you know. He keeps trying to cross that gap. At one point as we're driving around the farm, we're next to this field with some chickens in it. And there's a pickup truck coming the other way. Will stops the Jeep to talk to the driver of the truck...."

> "In the bed of the truck, there's a guy with a camera with this giant telephoto lens, which is apparently pretty common. People now come to Will's farm to see the eagles. He had this special Eagle Day a few days before I was there. He's even built cabins for people to rent out."
If you work at Google, this is already pretty much your life. You will get moved up to a dozen times in your five year career there. Companies that feel they can work like this are already doing it, and companies that cannot handle the morale hit aren't. Google can do this kind of thing because they offer really good amenities in virtually any office that you work from that somewhat make up for the ephemeral nature of your desk.
An R vector would be `1:1000000`
> why is there still vmware around since virtualization became a feature of chips and operating systems?

If you take a look at https://www.vmware.com/products.html you'll note the majority of VMware's products are NOT related to compute virtualization (and a very significant entry from that category, vSphere Hypervisor, is given away for free).
Can they add a toggle that switches between these "fat" top window bars and "skinny" top window bars? Basically strip out about 90% of the extra padding from buttons and bars and compress the UI down to what OS 10.6/7/8 use. Otherwise I always have to tack on a theme just to fix this one issue.

Realistically, how many people are using Gnome on touch screen displays? Personally I always use it on a laptop so 90% of their touch screen optimizations, like bloated bars, end up wasting screen real estate.
I don't want to either, but until Python gives us backtick symbols or we something like Kotlin's kotest that lets the test name just be an actual string, that's sort of the choice we're left with. And I'm inclined to take the option that I've known to lead to more maintainable tests over the long run over the option that I've known to engender problems, even if it is harder on the eyes. Form after function.

As far as whether or not people do a better job with descriptive test function names, what I've seen is that they do? I of course can't share any data because this is all in private codebases, so I guess this could quickly devolve into a game of dueling anecdotes. But what I've observed is that people tend to take function names - and, by extension, function naming conventions - seriously, and they are more likely to think of comments as expendable clutter. (Probably because they usually are.) Which means that they'll think harder about function names in the first place, and also means that code reviewers are more likely to mention if they think a function name isn't quite up to snuff.

And I just don't like to cut those sorts of human behavior factors out of the picture, even when they're annoying or hard to understand. Because, at the end of the day, it's all about human factors.
The one use case I’ve found recently is joining sparse time series data. In other words, when the tables you’re joining are “equally important” as opposed to one depending on the other.
I used to use Brave, but ever since they attempted to modify links without user-consent, I've since left them for Firefox + Edge (for those times I absolutely need a chromium browser).
AFAIK the small improvements to asymptotic complexity achieved in the last decade or so don't really mean better practical performance due to higher constant factors.

That probably isn't directly the point either. Perhaps new methods could lead to practical performance improvements in the long run, but my impression is that the recent improvements have been more of theoretical than practical interest.

Even the asymptotic improvements are getting rather minuscule, though.
What is a kanban board and how is it used?
This reminds me of the parable of the Mexican fisherman and the Harvard MBA:

'An American investment banker was at the pier of a small coastal Mexican village when a small boat with just one fisherman docked. Inside the small boat were several large yellowfin tuna. The American complimented the Mexican on the quality of his fish and asked how long it took to catch them.

The Mexican replied, “only a little while.”

The American then asked why didn’t he stay out longer and catch more fish?

The Mexican said he had enough to support his family’s immediate needs.

The American then asked, “but what do you do with the rest of your time?”

The Mexican fisherman said, “I sleep late, fish a little, play with my children, take siestas with my wife, Maria, and stroll into the village each evening where I sip wine, and play guitar with my amigos. I have a full and busy life.”

The American scoffed. “I have an MBA from Harvard, and can help you,” he said. “You should spend more time fishing, and with the proceeds, buy a bigger boat. With the proceeds from the bigger boat, you could buy several boats, and eventually you would have a fleet of fishing boats. Instead of selling your catch to a middle-man, you could sell directly to the processor, eventually opening up your own cannery. You could control the product, processing, and distribution,” he said. “Of course, you would need to leave this small coastal fishing village and move to Mexico City, then Los Angeles, and eventually to New York City, where you will run your expanding enterprise.”

The Mexican fisherman asked, “But, how long will this all take?”

To which the American replied, “Oh, 15 to 20 years or so.”

“But what then?” asked the Mexican.

The American laughed and said, “That’s the best part. When the time was right, you would announce an IPO, and sell your company stock to the public and become very rich. You would make millions!”

“Millions – then what?”

The American said, “Then you could retire. Move to a small coastal fishing village where you could sleep late, fish a little, play with your kids, take siestas with your wife, and stroll to the village in the evenings where you could sip wine and play guitar with your amigos.”'
Supose we take this icorrect argument - you starg a company but at arbitrary size you have to sell off chunks. Okay, you made a profit, thats the point of capitalism.

Are you suggest we should instead cater to megalomaniacs that wish to run maximally large companies and rule industries?
And I'm sure some companies spent money rewriting perfectly functioning perl code into something like ruby.
Tangentially, why do Americans call their middle 48 states the "lower 48"? Alaska is north of them and Hawaii is south of them. Does "lower" mean "east" somehow? If lower meant south as on a map, the actual lower 48 would be everything except Alaska and Minnesota.
While I agree 100%, I feel compelled to point out that it was Intel who for years embraced and encouraged the bullshit use of clock speed as the metric of performance.

Entirely precise yet only partially meaningful, which is just as true of the chase for node bragging rights.

So there's some karmic justice in Intel being pilloried for being behind in this way.
In terms of raw profits, sure, Apple makes more off of its app ecosystem than Google does off of Android, but in terms of health of the app ecosystem itself, the Google Play app store accounted for 20 billion out of the combined total of 28.4 billion app downloads in 2018 ( https://www.techaheadcorp.com/blog/android-vs-ios/ ). I'd hardly call that failing, more like 'utterly dominating'
> It's certainly not the case that women think all men are shallow

Some women do do. That was the one and only point of my comment: to show that there are both men and women who fall prey to the exact same inductive fallacy.
According to TFA, sourcing coffee isn’t the problem. It was in the first paragraph in case you missed it on your first reading.
> "China went from communism into capitalism with single party system, without revolution."

I'm not sure Deng Xiaoping would agree with this framing, though he was eventually able to shift things after Mao. There was a lot of violence during the cultural revolution. Deng reversed a lot of this, but it was in a revolutionary context (right after the cultural revolution).

"And introducing a solution just for pragmatic reasons without any pretense of idealism doesn't vilify it."

I agree that it doesn't necessarily vilify it (pragmatism is good), but if it's done only as an illusion/lie to maintain authoritarian control by one group then that is villainous. This is also not what occurs in the USG (and the underlying suggestion that it is, is what I took issue with).

> "Stumbling upon a pragmatic solution while pursuing idealistic goals doesn't sanctify the solution."

No, but the thing I'm taking issue with is the 'pragmatic solution' being a dead locked two party system that exists only for stability. That's the cynical view I think is wrong. I think the US is a democratic system with rule of law where policy moves forward via arguing. Though recently, party risk and extremism has made this less effective and entrenched incentives make these issues hard to fix. This is a bug though and not by design. Parties form because it's an effective way to coordinate even though there are risks.

> "That's a very low bar. It happens in single party systems as well."

I'd argue that it's not as resilient in single party systems, both because unelected leaders that serve infinite terms gives some short term advantage at the increased risk of long term instability and because the amount of control used against the public leads to resentment. Wild swings in policy can cause problems, making year over year progress which culminates in big changes over decades is a stable way to improve things. Particularly if it happens in a context where new politicians are being elected all of the time and power is peacefully changing.

If you're not stress testing that system (even if you are) with peaceful changes of power, then you're unlikely to survive your first attempt. One party governments can be more efficient at doing things in the short-term, but long term they fail. Without elections the failures are violent.
> At least for their own positions, if not "forced" onto all employees.

There is a huge difference between advocating for the option to WFH for yourself and arguing to force everyone to WFH. Few if any are advocates for the latter.
Why Women Still Leave Stem: Nobel Winner Dr. Doudna and Colleagues
I always thought it requires a CRT screen, but I got a surprisingly clear signal from my LCD screen.

Why does this work? Where does the recoverable signal leak? I would expect a modern LCD to be full of digital signals sent in unpredictable, manufacturer-specific ways, and certainly not sequentially enough to leak as recognizable audio.
Like most people who have lived anywhere close to navigable roads in the last century, I've had my share of exposure to various motorization centric subcultures.

But it's not really a matter of understanding subcultures, it's drawing a line between letting somebody exercise their rights, and that exercise impinging on other people's rights.

You don't need a chemistry degree to complain about your neighbor running a selenophenol synthesis in his backyard. You don't need to study the history of Jazz before complaining about them blasting Yamataka Eye at 3AM.
whether or not the drivers work for quick demos/benchmarks is not really what I care about with AMD, tbh, their ML pipeline sw QA is bad, historically the major problem was long-term stability. Segfaulting 12 hours into a run is not good for an ML practitioner's sanity.
Dozens?

A single person could do it... if they had the time and money.

It’s easy — for the typical HN poster — to make a drone. But, it’s tedious and expensive to make several dozen of them.

A raspberry PI with a GPS module, a few bulky brushless motors, and a hefty LiPo pack and you could probably make something with an autonomous range of 100 miles. The only limiting factor is money, time, and a wife who won’t mind you wasting money and time.
I have this, the latest update they gave.

https://www.youtube.com/watch?v=30Uvspk0czw
100% agreed. I often wonder if the people writing these pieces are just spending their lives sitting inside for fear of being stabbed, and completely missing out on how awesome the bay area is.
Uh no people dont doubke their coffee consumption because they have more money
> writing complex React components feels more like admin; a constant worry that I'll miss a dependency in my useEffect call and end up crashing my browser session.

I don't understand this worry, but I guess that happens when you try to do everything with hooks, the way I settled in my approach is to use React components just for the view without hooks, nor lifecycle logic, just dumb components with ocasional local state (useState)

Then using Controller pattern, within the controller I use 4 types of hooks, 1 navigation (useHistory), 2 read global state (useSelector), 3 dispatch an action (useDispatch), 4 useEffect() to execute on props change or component mount.

That's it, that's where the realm of React and UI ends for me, everything else is in Ducks, Ducks are single file or folder per module that contains Actions, Epics (Obervables) or Sagas (generators), Reducers, initial state of store and Typescript types.

I really like this separation of concerns:

- dumb components: to worry just about the looks and local state.

- controllers: to worry about data in, actions out, life cycle and navigation.

- Ducks: Management of data fetching and global state.

I wrote this from the top of my head, but if anyone is interested I'm thinking about writing a demo repository and document this approach, maybe others have done it already this is not new, but practices that I've been collecting along the way.
Thanks for the recommendation. Will check them out!
It would be awesome if Rust were faster, of course. At least with Rust, you get the borrow checker, not just compiling. It feels like you're getting something more in return (even though I don't know which step of compilation actually takes the most time).

But that would still suck. Luckily, there is a solution that works in many cases, rust-analyser. Obviously having basic syntax checking in an editor is preferable, because it shortens the feedback loop. I think this is why a lot of IDEs do it, not just for Rust. It's still a work-around, but makes it more bearable.

I'm not hugely experienced in Rust development, but it would be awesome if cargo could compile files when they are saved, so incremental build times and running tests might feel shorter. You could still get into trouble with complex dependencies between code units, but better > perfect. Visual Studio's "Live Unit Testing" takes this to an extreme (yeah, VS itself has poor performance, but doesn't mean the idea is bad).

Basically, if tools must have bad performance, because they are doing a lot of work for us (?), then at least make the development experience not suffer from that bad performance. That's what I care about more than just perf, it's how it impacts me, right?

In general, I still think compiling provides a decent trade-off. Yes, I need a beefier machine, and yes, my dev cycle is just a bit longer. But people using the actual product, they get the benefits. You could go with e.g. Python, where maybe one or two tests take less time to run, but ultimately you'd just be shifting the burden somewhere else. It isn't much consolation in the moment, but worth remembering.
Why did Alibaba's Jack Ma disappear for three months?
Hmmm, interesting. I'm going to look into this more. I did buy a weboost drive x, but I'm not convinced its really helping with anything...