skysight-inc/HackerNews huggingface dataset:
That's why I gave this talk: intuition says that writing tests for personal projects would slow you down and make you less productive.

But I've found the opposite to be true! My capacity for personal projects dramatically increased after I started habitually writing tests for them.

It turns out tests aren't just useful for large projects with multiple contributors: they enable horizontal scale for small projects with a single contributor too.
>This doesn't make any sense; the vaccine confers immunity.

Obviously not look at the virus particles in wastewater (Netherlands) for example :
https://coronadashboard.government.nl/landelijk/rioolwater

The Virus seems to stick around in countries with high vax rates and to disappear in countries with very low rates.

Additionally the immune systems of vaccinated individuals display strange behaviour toward tolerating the virus as you can read in the following study:

"the described class switch towards non-inflammatory IgG isotypes, which otherwise rarely occurs after vaccination or viral infection, may have consequences for the choice and timing of vaccination regimens using mRNA vaccines."

https://www.medrxiv.org/content/10.1101/2022.07.05.22277189v....
We can probably add a zero to that number, but it's quite clear that unlike literally every other big country in the world, China has not gone through a major wave of nationwide infection that would lead to considerable fatalities... yet.
Don’t worry, your intuition that the cloud cert is useless is spot on.
Red Hat Developers Announce Work on New “Composefs” File-System
You have to understand that in the modern understanding of UB as applied by compiler writers, the compiler has every right to assume the program never triggers UB. This means that lines which would be UB if a variable had certain values can be used as proof that the variable doesn't have those values, thereby eliminating checks.

For example, if a program looks like this:

void foo(int* const p) {
if (p!=NULL) {
bar(p);
}
*p = 1; //this line would be UB if p could be NULL
//so we are free to assume p is not NULL in this scope
}

It will very likely be optimized to this:

void foo(int* const p) {
bar(p);
*p = 1;
}

And even if bar() itself had a line checking if p was not NULL, that will get ellided as well if bar() gets inlined.

This is a good example of how UB on a later line can have an impact on earlier lines, or even in other places in the code.

Note that it's not executions which trigger UB, it is source code programs that do.

Edit: fixed const pointer syntax.
Are you using -codec copy? If so, this happens because (most) frames in modern codecs are not discrete. They rely on information from previous frames to construct the image.

If you cut a stream in the middle, it takes many frames before there's enough information to be displayed.

(The solution would be to re-encode up until the first discrete "keyframe"... and I don't know how to do that with ffmpeg.)
Re: focus. Most cameras focus on shutter button half-pressed. Learn to use this by focusing first (with a half-press), framing, and then taking the picture by finishing the press (not doing a complete press again as that would reset the focus point).

Some cameras let you have a focus button different from the shutter button. This can be super useful and can become natural after a little while.
We're happy to announce that the new Norland is available. A public newsletter tool for startups.

Sign up
Add your product
Share the latest update
Draw traffic & build an audience.

Shout out to your startup on Norland today. The earlier you do more traffic you will get.
> When it comes to some types of employment, most men just can't compete on looks with young attractive women.

It's not that hard. Hit the gym, stop eating junk food, dress smarter. You can do it too.
SoEveryoneCanGame History of Adaptive Tech
LOGO - it was this kind of graphics generation language where a cursor moved on the screen based on commands you put in. This clicked right away. I was 5 years old IIRC.

Then, during my pre-teen years, I couldn’t understand how games had several moving objects all at the same time even though it was sequential execution. Then the update-render loop clicked in as I discovered it. Together with that, all kinds of event handling, interrupts, context switching etc.

Then, with WPF, databinding really clicked in with any sort of retained-mode rendering. So then Angular, React etc as well.
Maybe it's about public crowds, the point is chinese people could question their government policies. It's all about power, nothing else.
For the whole quote:

> But in 22 of the 250 metros examined in the analysis, women’s salaries are on par or better. Why do women out-earn men in highly specific areas of the US – and do promising figures in certain areas mean the wage gap could be slowly closing?

Which makes it clear that parent is trying to flame bait.

edit: OP -> Parent
I think this would also cover Cisco though, perhaps not so broadly. Our entire electronics industry is critically dependent on China for manufacturing.

Thankfully the truly advanced stuff exists in Taiwan, Japan, South Korea, and the EU. But for cheap mass manufacturing, all of these parts end up in China.

The west really needs to suck it up and have electronics designed and manufactured in the west. There are some good signs with the CHIPs act (if only the American companies were as patriotic instead of optimising for share price) and the EU are also making moves to be self sufficient for silicon. However, the entire electronics chain really needs local alternatives. It's crazy that I can get a prototype PCB manufactured and delivered from China faster and cheaper than anywhere local.
> I don't want to rewrite in TypeScript, because I believe the core of ESLint should be vanilla JS

why though?
Let me quote again the section relevant to your confusion:

> even if we accept the whole black-market use of crypto as legitimate, that's still a small fraction of the speculation-driven valuation.

So the major problem is the financial overvaluation relative to the real technical abilities, the minor problem is that even those features are predominately enablers of nefarious activities such as money laundry. The second problem is indeed a political objection of mine, but there is no contradiction with the technical lack of value which most HNers object to.

> We need crypto for the same reason why need to keep the cash economy alive.

But that's not the reason the crypto bubble inflated, far from it. We could talk about privacy enabling features inspired by crypto in electronic payment systems without trying to reinvent fiat currencies in the form of private money which we know full well are a bad idea.

Physical cash is to crypto what amateur rocketry is to sending ITAR info to North Korea, or personal handguns to nuclear proliferation: there is a scale where a certain behavior that is acceptable and beneficial at the individual level becomes a major problem for society as a whole.
Let's just assume that the effect of "restrictions" on case numbers is proportional to their harshness (which looks dubious when looking at global stats). Let's also blindly trust the Chinese numbers (which showed <500 daily new cases for most of 2020-2021).

You're still here justifying current deaths from starvation, fires, suicides with potential future deaths to covid. If an individual thinks like this they're a sociopath, but if governments do it they are "trapped".
> Those questions are all based on pretty well established observational data, but people find it very uncomfortable to acknowledge that gender roles exist and men and women continue to have very different preferences about how to live their lives, despite over a century of feminism. I think it's because one camp fundamentally believes that these preferences should be eradicated and the other believes they are natural and acceptable.

You are forgetting there's no experiment controlling for culture. Naturally, laws and cultural habits don't change in lock step, the latter not even equally over all in a particular cultural zone. It is therefore to be expected that ingrained habits disappear only slowly over the generations. This should not be seen as validation of the existence of gender roles. Nor is it even about that (I know politicians try to make it about identity, it's the easiest way to rile up a base). It is about enabling all sorts of habits. Those gender roles you refer to are not and were not shared by all, and those people are thankful for change.
I'm not sure if you're supporting my pov by showing the absurdity of the other position???

Yeah sure, if my phone auto incorrects gcc to GCC then that is technically meaningless so you're completely free to interpret my comment how you want.

..... Although..... GCC stands for GNU Compiler Collection so it can be reasonably capitalised, so maybe then, rather than saying anything goes we should do something reasonable because then you aren't left saying something really stupid if you're wrong???
> If you write your program this way, how does it interact with the environment (e.g user input, output, network…)?

The answer is, of course, monads[0]. Probably.

[0] https://dl.acm.org/doi/10.1145/158511.158524
Everything I wish I knew when learning C
Author already made an edit, but it also could have been some arcane British thing just as well.
I don't know why you sent this reply.

I very rarely go to protests, because I am autistic and don't like crowds and the reason that I originally did censorship circumvention research was seeing the police riot that was the Pittsburgh G20.

My deceased aunt had given me the money for a camera and an smartphone when I left for graduate school, and I got the sense folks were sometimes hamming it up when I was around, so I put the word out if I ever go a protest again, it's because I think they might start shooting.

(That happened in about 2020 -- we got a new Mayor, and one congressmen who I felt was not doing his job properly decided to never run for office.)

Blue lives matter in the sense that you shouldn't shoot someone who comes to you with a valid warrant, but that phrase is a piece purposefully divsive rhetoric, aritficially boosted by a variety of forces hostile to free expression.

Please don't troll like this in my replies ever again. I am a longtime HN user, and I prefer to simply chat about cool hacker stuff and upvote things in the new queue not... have interactions like this comment, which I just noticed and paused everything to reply to.

(Feel free to reply if you have a sincere misunderstanding of anything above.)
I'm curious if anyone else has noticed this? It seems Rust is tending towards "silver bullet"-status, as if; if it's written in Rust, it must be fast.

I'm not here to rain on Rust's parade, but you can absolutely write unmaintainable, slow Rust code. I would even argue, beginners write fewer features that perform worse, in the same amount of time, than their main-language (in this example: Javascript) counterparts. Especially if they have years of experience.
Yeah. When people in mainland China saw all the unmasked foreigners at The World Cup it spawned a lot of ideation. I'll summarize the ideas I've seen floating around the Chinese internet:

- It's a money-making scam by the COVID test manufacturers

- It's a money-making scam by the temporary quarantine center manufacturers

- It's a failure of bureaucracy ”层层加码”

- It's a ploy to increase the depth of state surveillance

- It's a ploy to lock people at home and increase the birth rate

- It's a ploy to keep the poor poor to ensure that they keep working hard

- It's to mitigate war with the United States. Apparently the Geneva convention has a clause against going to war with a nation stricken by a pandemic.
you could probably do this over iCloud. Set your phone to download all files, run the ffmpeg script on your computer and place the files in iCloud. If you need a to open the iCloud app to force a sync, use Shortcuts to open the app at 3am or whatever.

If you're on Android, a program like Tasker could and Google Drive could likely accomplish the same results.
Twitter VP in Ireland gets court injunction against firing
He’s mostly a legend in his own mind.
The fact that they would use JSDoc type annotations and tsc instead of just typescript seems insane to me.
Julian Assange Is Enduring Unbearable Persecution for Exposing US War Crimes
Its another social control tool. Get near protests and your covid code gets red. Problem is, it works like a chain reaction, galvanizing protests. Paranoia killed the beast.
I dont know, people are paid what they ask weighted down by what can be given for the same work on the market.

If women were accepting less pay, you d have entire corporations trying to get rid of men to make room for cheaper women.

The reality must be that women and men gravitate towards different jobs and different hours per week.

The good thing is that most men and women can unite and create a balance to average their revenue across a couple.

My wife is paid more than me but she's doing a job I cant do and she wouldnt even consider doing mine... like, is that bad ? Hard to say, we just balance it out.
Charles Hoskinson, the founder of Cardano, recently presented Midnight, a privacy-focused project that functions as a sidechain for the Cardano network.
Ditto. I liked Flask years ago but unless you’re doing very contained microservices it always ends up feeling like you’re building your own framework. This isn’t a slam on Flask but rather, I think, a reminder that we’re so prone to think about the fun of being able to customize everything without thinking about the maintenance trade-offs.
> Rust-based replacements

I find it funny how Go was born to be a simpler C, but managed to get a lot of mindshare with Python developers that were writing system-level scripts and backend systems.

While Rust was born to be a better C++, but is getting a lot of traction with Javascript/Typescript developers, and you can start to see some similarities in the packaging and tooling philosophies of the two. (Ton of small packages, some that should probably part of the stdlib but anyone needs to use to stay sane: futures, thiserror, anyhow, for example. Also there starts to be a tendency to rewrite and release incompatible APIs that this time will solve all the problem of the previous iteration).

I guess the hype-driven junior developers saw how better Typescript is at managing Javascript's shortcomings, and now see static typed languages, especially one with some hype of its own behind, as the Messiah.

Let me add the disclaimer that I'm a fan of Rust before I get attacked for this controversial observation.
A broader question is to ask if it is really optimal to favour super-competitive workaholics. It is possible that for many organisations people who are more cooperative and want a good work life balance actually make more effective managers.
Except that the Western vaxpass systems have all been wound down.
You talk as though a refusal to compromise privacy is unreasonable. We all need privacy to protect ourselves and each other.

What happens when your searches for a medical condition are sold to your insurance company? Or when your political searches are used to inform new gerrymandering lines? Or when an anti-choice state gives Google a warrant demanding the identity of everyone who has made searches for abortion information? What about someone in China or Russia searching for content that casts their government in a negative light?

Laws change and politicians change. History has taught us over and over that centralized personal data will always eventually end up in the hands of those who will weaponize it.

Those of us with influence in technology must demand privacy. Privacy is not negotiable. Content hosts will either offer privacy or continue to see tool after tool emerge to make it easy for people to circumvent their surveillance capitalism models.

LBRY/Odysee has already proven it is totally possible to support video creators online without with anonymous microtransactions.

I have hope more creators sick of ads and censorship will mirror their content to privacy preserving systems that allow direct monetization.
Apple removes vocals from iPhone 14 ad after confusion for racial slur
> until you manually go and filter them out.

Filtering by tag only takes a single click. It's not hard.
you are conflating the size of the codebase with the number of dependencies

Django has fewer dependencies than Flask.

(though in all fairness the dependencies Flask has were developed by the same author, thus in that sense, it is more like Django)
Fortunately I missed that one, but I’m watching Better Call Saul now and all the law offices are lit like a steam tunnel at midnight during a lunar eclipse.
> women are able to vastly out earn the generally men working in the kitchen

This isn’t because women outsell men or because of the attractiveness of a waitress. It’s because waitstaff are tipped and back of house employees (generally) are not.

> young attractive women in sales jobs often do very well

Young hot men also do very well in sales lol.
UB is a property of the source code, or more specifically a property of how source code should be compiled into machine code. It means that there is no constraint on the machine code which will be produced if your source code has certain properties.
It is an issue here. Passerby looking at main page will see "300 issues open", not "5 bugs and 295 feature requests open"
Goodbye, Data Science
It's not like Western society started degenerating ten years ago.
Does the US military have the power to suppress this kind of thing? Like, if they did get picked up, can they ensure that gets silently dropped?
how is that dumb of you? even as a salaried employee your time is ultimately what you’re selling to your employer. you just reduced your cost of goods by 10.
This is such a ridiculous claim and also extremely easy to debunk if you have any friends in China they will show you immediately this is false. Yet not a single one comment mentions it. Goes to show the level of discourse happen in the west about anything china related.
Read the gcc mailing list. There is alot of user hostile "fix your broken program" from language lawyers.

I think aliasing rules messes up memcpy if you are dogmatic?
Very good! Someone should add it to https://en.wikipedia.org/wiki/At_Home_Abroad and link to that page from https://en.wikipedia.org/wiki/Farewell,_My_Lovely
I checked the footnote. It describes a case where invoking UB (transmuting "3" to a bool) can cause dead code to become live. But transmuting "3" to a bool is itself UB. So this fails to prove that execution becomes undefined without reaching a line containing UB.
Very interesting thread, and something I’ve wondered about.
My (very profitable) employer does very little. I get conference attendance every 3rd year and whatever management think is valuable knowledge to share internally (random coworker doing a talk on something they’re good at).

After having looked for opportunities for a while, I suspect being independent/in a co-op, or at least in a very employee oriented/owned shop is required to take care of your own long term development.
Pong was boring, and people loved it
Already out of date; the lava has reportedly (on twitter) escaped the caldera.
I'm not sure that's right. The compiler isn't tracking undefined behaviour, it is tracking possible values. It just happens that one specific input into determining these values is the fact "a valid program can't dereference a null pointer", so if the source code ever dereferences a pointer, the compiler is free to reason that the pointer cannot therefore be null.

In essence, the compiler is allowed to assume that your code is valid and will only do valid things.
ad 2) I think it's just not complex enough to not evolve organically, same as a pentagram or star of david.

If you ever doodled on square paper with tetris-block shapes you're kind of bound to have some sort of accidental swastika shape in there.
I think this is fine enough because one way or another, you still have to make sure that the categorization is respected. To me, it's pretty much the same thing if there are multiple top-level tabs (bugs / requests) or sub-tabs (issues -> bugs / requests). The difference seems mainly cosmetic.

The problem is that even if you had multiple top-level distinctions, you would still have to make sure that people opening them are disciplined (and pay attention) enough to file them in the right category. Just because there's a separate "feature request" top-level tab doesn't mean that nobody will ever open a "bug" asking for a "feature". Especially if not everybody is allowed to ask for new features.

And I'm not even going into the difference between "improvement" and "feature" requests.
> Every memory access is already a conditional branch, and it doesn't cause problems.

Is that how it actually works or is it the kernel/hardware not letting you dereference 0?
You can't "create" 10x engineer. You either have work ethic or you don't. If you have the work ethic, if you're disciplined, if you genuinely enjoy programming and the feature/software you work on - then you have the capacity to be better than engineers who enter this line of work purely and only for the money.

That's what makes the difference. And no company can make you like the software you're making, to be disciplined if you don't train yourself so and to genuinely like and enjoy what you produce. It'd be equivalent to brainwashing.
Less is more: Why the four-day week is rocking the world of work
I use it on the cli, ios, sync with git, and there are plugins for browsers at the bottom(haven't tested it), free and the best there is for me, came from lastpass.

https://www.passwordstore.org/
My Roku TV automatically turns on closed captioning when you use the replay button.
Expectations also matter. If you expect nothing from people, if you infantilize them, if you spoon feed them everything, if you never expect them to figure something out that is more complicated than what you already explained to them, then you will never get people to be 10x engineers. You will get the worst quality.

Set the expectation right, treat people like adults, expect that the person you are paying and employing as an adult engineer is an adult engineer capable of solving their own problems, and they will figure out how what they need to do to meet expectations and acquire the knowledge they need, whether that be training, or just google, or just looking at existing code.
Critical ignoring as a core competence for digital citizens
EU VAT aren’t too bad compared to the North American ones. But I grew up in the EU so it clicks more with me and dealt with foreign customers
But I don't have one hour!

I wonder if that is a purposely value, trying to use the same psychology as Supermarkt prices, where they say "0.99" rather than ""1.00"?

In my opinion the right approach however is to have a clean layout, where my scrollbars gives me a good estimate on the length, so I can make my estimate based on my reading speed and experience. But yeah, ads and other stuff make that of course impossible.
“Don’t feel attacked” is the phrase the article takes a while to get to.

It’s good advice but the article mildly frustrated me as it’s written in the style of those recipes that take way too long to get to the ingredients.
Try live streaming. Because the audience is mostly male, females have a lot more viewers on average. Especially if they add innuendo.
It's still way too easy with digital mirrorless where you have a tight feedback loop of being able to see the image respond to adjustment live, and also there's no cost associated with pulling the trigger.

I guess the best thing to do would be turn off exposure preview (so you can't see what settings are going to look like and the EVF becomes "dumb"), and perhaps buy a tiny 512MB SD card or something so you can only fit 26 or so RAW files on it :)
Django is also excellent for this. This isn't a two-horse race :)