skysight-inc/HackerNews huggingface dataset:
This is one of those "If everyone would just do X" kinds of situations, which is why I'm against it. Things go wrong all the time - in fact it's a miracle anything works at all. So when I see "code that needs to be written to prevent it", I let out a sardonic laugh; people just don't work that way.

People WILL forget to check, or implement the check wrong (and it won't be discovered until the next black swan event), or some invariant will change in future and nobody will know to update this code. The code doesn't care because the compiler doesn't enforce the invariants, so you're left with bare and likely confusing (and probably eventually undefined) behavior.

I for one would LOVE it if popular languages could be instructed to inject invariant enforcement code (not asserts) at certain boundaries. It would help with a whole host of problems!

When you cross zero with a signed integer calculation, it's easy to find out, and the code has low cognitive overhead. Also, with code generally structured this way, bad input propagation tends to get stopped earlier because of the number of functions that check against negative values.

It's also possible to underflow check with unsigned, but the code is more complicated and can't stop propagation if it fails, and if you are allowing values > the signed positive limit (or unwittingly allowing it), your overflow detection code gets even more complicated (or wrong) due to the reduced overhead space. You COULD do a bunch of checks beforehand, but that's not always feasible due to the combination of operations being done on the operands, and once again people are people.

Even though many modern languages block uncast type conversions, that still doesn't protect you from converting a negative integer to an unsigned integer. Yes, you SHOULD be checking before the cast, buuuuuuut...

What we want to do is reduce the number of ways things can go wrong, reduce the fallout of an errant process, and minimize cognitive load to reduce bugs overall. Making that worse just to double the positive integer space doesn't make sense to me.
It depends on what is under test. If you're testing a model file that is highly coupled to the database, and whose entire purpose is more or less to function as an interface to the DB, tests need to include the DB almost by necessity. The alternative is to mock so much out that you're essentially testing your mocked code more than the unit under test.
> No, the debate I was having was about the explicit mention of "increasing CO2", which is just plain false.

In the context it seems pretty clear to me that "increasing CO2" is meant to refer to relative changes, not absolute changes. Playing semantics is a fairly pointless distraction from the actual argument.

So, as I asked before, how would these changes compare to projected decreases, if the nuclear plants were not switched off?
I'm not going to try to design the best way to do the equivalent for C++ modules here in a HN comment, but it doesn't seem like a particularly hard problem.

Of course it could be exactly because I've not seriously written a compiler or build system that I mistake the problem for not being hard.

But it shouldn't be a problem for explicit dependency build systems like Bazel. And people have written automatic Bazel dependency tooling, so it really looks to me like "what's the best way to do this" rather than "we can't do this", which the article implies.

Yes, gcc produces dependency information while compiling, and is adapted for Make. But in theory this could be done by `./configure` or something in a dedicated script.

It'd not even be hard. And it's super quick:
cpp -I. src/foo.cc | grep '^# ' | sed 's/^[^"]"//;s/"[^"]$//'
| sort | uniq | grep -v \<

It's not without precedence to have a pre-stage. Just look at the Ninja build system.
This seems to be a good summary:

https://www.youtube.com/watch?v=23fiDj8Uy6Q
I remember the original story was posted here. It seems odd that people in close contact are developing issues and that it appears that little is being done. Something doesn't seem right.
As someone with high end insurance then to Medicaid not in my experience. It's how the request or referral is worked. You get something for a right heart Cath it's months. If it's a right heart Cath for XYZ a lot reserved slots open up but even then there is no guarantee
> ... only if you're truncating the whole db and re-initializing the schema, no?

Nope. In PostgreSQL the cost of truncating tables is proportional to the number of tables while doing a rollback is constant time (and a low constant at that, less than a commit for example).

In other databases like MySQL I believe truncating data is still proportional to the number of tables while rollback is proportional to the amount of data inserted or updated. So which is cheaper depends on your application.
Seems obviously BMAA but clearly the government don’t want to say so because it will destroy the lobster industry.

We should all be terrified of BMAA and it’s here because of climate change.

https://www.sciencedaily.com/releases/2019/01/190124110834.h...

Climate change is making the oceans and fresh water toxic and very deadly. We’ve seriously fucked the earth.

Have you ever heard weasel words more reminiscent of a cover up:

“ But experts nonetheless warn that testing itself is also more difficult than the public realizes.

While some medical tests can provide quick and definite results other types of investigation require far more work.

“What people are talking about really amounts to a full research investigation, because then we know what we’re looking for precisely,” said the federal scientist who was familiar with both the cluster and the testing process. “Right now we don’t have a way to interpret simple data that you might get when testing a person’s brain tissue for a particular toxin. For example, how much are ‘elevated’ levels of a neurotoxin compared to the rest of the public? And when does that become a cause for concern?”

The scientist said teams are ready to begin the research, but “New Brunswick has specifically told us not to go forward with that work”.”
Indeed, thank you for producing Viral.
> Obamacare requires that at least 80% of money must go to medical costs. Profits and administration come out of the rest. So the only way to keep profits rising for insurance companies is to arrange for payments to rise at a predictable rate.

IIRC, in Germany and Switzerland medical insurance is mandated non-profit, and can only meet the costs of running the company. The insurers could just give themselves high salaries, but to cover those premiums would need to be higher, which could cause the insured folks to seek out lower priced coverage.
At the current pace, 30,000 years sounds about right,
Because architectural simplicity is valuable and some operating systems deliver input events on a particular thread.
Do you enjoy building sheds?
why do you say that? sounds like he was braked-checked by the tesla

of course, in a large sense, the one that hits from behind is at fault, but brake-checking is problematic
This video is excellent, thanks for sharing!
Let the CVEs flourish!
Exactly... You'll know it is there when it is built. I've tried this approach before. Have an idea to build something you want but haven't built yet. You end up finding that it difficult to build and expensive. You try and fail at getting the money you need and so you market it and hope that you can get other people on board to build with same idea. People won't have the same idea until you can make it clear what that is and so the more information the better.
Previous reporting on the issue; https://www.theguardian.com/world/2021/mar/30/mystery-brain-...

'Forever Chemicals' are known to get concentrated in shellfish - I wonder if that is an issue?

I'd love to see the comparative numbers of similar cases in other environments - this seems very high but I have no idea what the baseline for this sort of thing is.

As someone that grew up with the spector of 'mad cow disease' (bse/cjd) in the UK, it is horrible to think about the affects in these people and their families. The fact that care givers are also falling ill is very interesting and concerning.
It does? The article says "low carbon"
I used to effectively do this in postgres with rsync on a known fixture snapshot of the data files. It would usually take under two seconds to reset the state and restart the servers, which was easily fast enough to do effective TDD.

I had a few other ideas to speed it up, also.
The issue has been identified before, but seems like it stalled: https://gitlab.freedesktop.org/libinput/libinput/-/issues/50..., https://patchwork.kernel.org/project/linux-input/patch/20201....
The mind does not exist
I think when you use a variable that can have values in the range of millions, it's prudent to use 64-bit types and not 32-bit unless you are very much memory-constrained. And I've never seen a 64-bit signed variable overflow.
You don't remember when your CVS admin would send out the email announcing the repo would be frozen for the next 48 hours so a branch could be created for the golden master? I don't know why it was such an onerous task but the disruption creating a branch would cause was significant given you would only commit every few weeks when all your changes were ready. Compared to modern VCSes it was like having no VCS at all.
Pretty scary, can't wait to read the book on it in 10 years.
> It's about respecting independence for the owner not about security, not about trust to a particular company. It's about making trust to the company irrelevant enough. It's about preserving level of respect to the owner which reduces dependency and importance of the trust to a particular company.

I already explained to you how you have to trust the company if you're using their silicon. There is no way around that for modern devices. You're trying to fight a fight against the laws of physics.

Again, if you need absolute trust, then I suggest you order a Precursor, and then you'll have to be content doing all your computing on a 100MHz CPU.

> The idea is to protect and insist on certain level of respect toward owners of the computers that no company would dare/able to diminish without consequnces.

So you're saying companies shouldn't be allowed to have secure systems that benefit the average user; they should all be forced to do what you say is "respect" users, which means requiring that they develop their own secure boot infrastructure, in your world, since that's the only way they can be in control (or just give up security altogether).

Do you realize how hypocritical it is for someone advocating for freedom to try to take away everyone's freedom of choice by making it illegal or immoral to trade off your own personal vision of freedom for something they might care more about? Seriously, you brought up authoritarian governments, but you're the one using their propaganda tactics here. You're not just saying users should be able to buy devices they control; you're saying they shouldn't have the choice but to be in "control", even if it hurts them in other ways. The Way of the Freedom Party is the One True Way.

Have you considered that maybe, just maybe, there are actual practical consumer-protecting arguments to be made here without resorting to ridiculous extremist positions? Here's one: companies should be required to allow users to run their own software on devices that have reached end of support and are no longer receiving security updates. See? That is the kind of useful policy position that'll get people interested and might even have a chance at becoming law. Not "iPhones are evil and should be illegal".
On average the US has higher prices than most EU countries: https://data.oecd.org/price/price-level-indices.htm.

This is also true if you look at average prices vs average income (though that’s a really crude metric): https://www.worlddata.info/cost-of-living.php.

Houses are larger, on average, in the US, but I’m not sure that’s a meaningful comparison; houses tend to be larger in New Jersey than in New York City, but I’d rather live in NYC. ;)

It is true that net income after taxes and transfers is higher in the US (https://www.oecdbetterlifeindex.org/topics/income/), but it’s important to look at it after taxes and (market value of) public services (“transfers”), not merely after-tax; in many EU countries taxes include the cost of health care, whereas in the US healthcare is largely employer-provided and costs ~2x and is half as good (measured by outcomes).

All that is to say it’s complicated. The US is by most measures richer than EU countries, and prices are generally commensurately higher.

But I do think it’s strange to conclude from this that the EU is seeing “the death of the middle class”; the metric I most associate with that is income or wealth inequality—a shrinking middle relative to the rich and poor—and by common metrics like GINI or top percentile share of wealth (or by percentage of the population living in poverty: https://www.statista.com/statistics/233910/poverty-rates-in-...), the US tends to do substantially worse than the EU states.
At least that thing looks proportional
I think you assume my comments are regarding C/C++.

They are not. I write mostly Rust these days.
Efficiency is quite irrelevant to this subject when the cost of energy is nearly zero. Hydrogen will win out simply because it is cheaper and more sustainable than batteries.
> Sure, but the value of the dollar (like everything else) is in how easy it is to get (supply). The US GDP is not a measure of the supply of dollars on the market, it is a measure of how often those dollars are exchanged.

The US GDP directly translates into the amount of taxes paid. Suppose a 50% drop in the value of USD happens. If nothing else happens taxes increase by 100%, and people need to acquire more USD which drives the value of the currency up.

You might wonder about economic hardship, but historically that causes deflation. +/- 2% per year without printing money is easy, but there is a reason you don’t see huge swings without the government printing money.

> counterfeiting

An issue for any physical currency but electronic currency actually operates independently. Trying to counterfeit large quantities of cash is therefore surprisingly difficult even for nation stale level actors. A great fake bill can get passed around, 10 billion in fake bills which is still a trivial amount would trip up various monitoring systems.
Show HN: Vibe, a winamp-like audio player for MacOS
Hi HN - I built a Winamp-like audio player for Mac. I buy/download a lot of music and could not find an audio file player that was lightweight, made it easy to skip through and audition tracks, and native to MacOS.

I'm interested in feedback or anyone that would like to help collaborate on it, either programming or design, the latter of which could definitely use some help. Thanks!
Haskell and Perl.
You're missing the fact that many EU countries failed to invest into renewables in the recent year and now need to greenwash what they have instead...
> but you're saying 'if Congress passes a law it won't work and only the courts can do something about x'

That isn't at all what they were saying.

They were saying that instead of Congress trying to make rules through the legislative process (which moves to slow to work), Congress needs to create and authorize a federal agency to make these rules (like the FAA or FCC.) The portion about the supreme court is regarding whether such an agency would be deemed constitutional.
The best fuel cells already reach >70% efficiency.
A DevOps journey using Azure DevOps
Here's an example:

unsigned int length_a = 10;
unsigned int length_b = 20;

if (length_a - length_b < 0)
{
printf("negative diff\n");
}
else
{
printf("positive diff\n");
}

I would argue that there is plenty of code like that in the wild. It looks innocent and harmless but it gives a completely surprising result.
The Challenge of Flying Below Sea Level (2016)
I'm sorry but as someone with substance abuse issues that may be tempting but cigs and booze are ubiquitous anyways. Being on the table vs the corner store still means it's available at any time
I see the opposite. DF is stagnant as hell and other games have eaten it’s lunch by building and iterating at light speed compared to the comparative snails pace of DF.
What Is eBPF?
I used to think about it and then i realized it's useless to reflect upon that fact.It's just waste of time.Meditation helps if you interrupted something massively and you were set back(which is more rare), but on small things i don't contemplate on them.Working out, running, physical exercises help in this regard a lot, because with them you train your psyche to stay on the goal, and then you can apply this to whatever you're working on or doing.

As primers, pomodoro helps(especially when you're 'too much' in the zone and you lose sense of time), and there are a lot other ways.I would also say WHM(Wim Hof Method) helps to relax you if you get anxious/nervous about being interrupted, but WHM helps in general so yea, you can do it when waking up/going to bed.Taking notes helps(especially if you never did it or don't have a habit).In general there's no universal solution, it's all about knowing yourself.

Usually the main problem about being interrupted is that you're not aiming very precisely towards your goal.Once you have that goal in your crosshair and you want it, everything becomes irrelevant.But most importantly realize that there's no growth without pain, and i'm not saying to should hurt yourself.I'm saying whenever there's hardship in whatever you do, the best way for growth is to conquer that pain and even use it as experience for updating your goal.As smaller advice, do the obvious:cut everything related to social media, or internet in general(unless it's a requirement).
https://www.wiseinternational.org/nuclear-monitor/785/cherno...
Whoever builds nuclear plants because of this, I hope they get more bang for their buck than South Carolina. Years and years of planning and building, $9B spent, only to cancel the project with nothing to show for it.

Also as a German resident and tax payer, I'm pretty pissed off that I'm on the hook for about $150B for the disposal of old nuclear waste from nuclear power plants. If this is now a green solution, I hope at least the disposal has to be a part of the business plan, instead of pretending it doesn't exist and dumping it on the public first chance they get.
Credit cards go vertical, ditching classic look and magnetic strip
I would say that depends on the country you live in, but essentially you are saying web3 somehow doesn't get regulated and therefore is better.

The reason you wouldn't be able to simply start a website offering people loans would be because of laws, I see no argument that if you somehow use a different technology it is suddenly legal.
I see you making a fair number of these sorts of ad hominem attacks in response to good-faith posts. Please stop.
Why is the engine even checking input devices so often? Shouldn't the input device be registered via settings and then assumed to exist when the game runs? It seems wasteful to check all input devices every few seconds.
> The name clearly indicates that the primary feature is that it is not signed, and the logical conclusion from that is that it is not negative.

No, the logical conclusion is that since it has no sign, you don't know whether it's positive or negative. Otherwise the name would be "positive" or "non-negative", not "unsigned".

And this conclusion would also be correct.
Negative prices means they simply refuse to sell electricity, rather choosing to shut down the wind turbines instead. This BTW, also causes retail electricity prices to soar despite the cost of generation being close to zero.
Tech monopolies are callous shepherds presenting themselves as trusted advisors and consistently failing to act with according responsibility.

We're well over a decade into mass-market interactive route guidance. Rookie hour is over.

The fact that people will follow interactive map instructions along what are clearly inadvisable routes means that those routes should not be suggested.

With turn-by-turn directions, most mapping software doesn't even provide an overview of the route, but expects people to simply follow prompts.

(I'm old-school, carry paper maps, and a compass, with topos of remote areas as necessary. I've made a few questionable calls myself, but lived through all, never been stuck, and have some amazing memories as a result.)
JavaScript library with Java Optional and Promise chaining
When we had little kids and working in noisy open office spaces was normal I figured it’s best not to fight it and went for work that is more suited to being disrupted often.
I still spend a small portion of my day coding but if the expectation is not huge, it’s not hard to find 30 minutes of focus time.
I’d really struggle if I had to produce a days worth of code everyday as I simply don’t have enough uninterrupted hours every day.
Most states use 100% to 138% of the federal poverty level, which would cut off a single person from Medicaid if they make ~$12k to ~$16k a year.
Ah yes Russia has limitless amount of money to control the EU despite having the GDP of Italy.
Putin is personally sabotaging the magical technology that can replace natural gas instantly!

The real reason why we're dependent on gas is because the eco warriors shut down coal powerplants and nuclear has been dead since 1987. Don't blame Russia for our own incompetence.
I do enjoy that, yes and have never seen that video ;-)
Calvinball!
> So, let's make an odd_int_less_than_20587 type and a billion of other types?

Yes, what's wrong with that ? Every variable's type should be defined as precisely as possible when meaningful, that's the whole point (and C/C++ not easily allowing to do that is one of their biggest drawbacks imho.)
Web0 should have meant offline-only Desktop apps that are built with web technology like Electron.
It is appropriate to use your main thread for your OS interaction - polling fds, talking to display server, whatever I/O you need, etc. An open/close call should never take this long, and you should never need to make a large amount of them in sequence after startup.

What should not be on your main thread is any long blocking compute, which is why rendering/game logic often goes to another thread - although simple games could easily be single-threaded.
There are legitimate services commonly used to buy stuff from US sellers who don't want to deal with the complicated shipping to Russia and other countries. I doubt he had any intention to obscure his identity – the seller would just not sell to him directly.
I do this, too, but I tend to write a comment in the code where I'm at with what the next step is. Works great.
friendlier in half life measurements...
Quite possibly. Thanks.
There tens of millions of people who live in states that never expanded Medicaid under the ACA, so Medicaid is not available to them unless they're disabled.

Expanded Medicaid in states that accepted it cuts people off at 100% to 138% of the FPL, meaning if you make more than $12k to $16k a year, you're ineligible for Medicaid.

If you have more than $2k worth of assets, you must sell them before being eligible for Medicaid.
Based on my reasoning it is illogical and meaningless. Pretty sure same logic as the poster. You on the other hand are not providing anything, but read of what I posted previously, please stop.
Good questions.

So at the moment the advice we give is not country specific. We have slightly different levels depending on risk, threat model and skill. Building a logic to do country by country was something we tried but is incredibly hard.

Our revenue model is based on a few things. We got grants to build the initial version, we also create paid white label versions for organisations that want their own and we do security training and consultancy services.

Regarding NSO Group. Well considering we work every day with journalists and activists, some of whom have been targeted by NSO...to say we despise what NSO does is probably an understatement.
GNU Mailutils 3.14