skysight-inc/HackerNews huggingface dataset:
> No, that's wrong. Incrementing a volatile isn't undefined. The problem is that some people are using volatile when they actually want atomic variables, so the behavior of the program becomes undefined when you have two threads incrementing the same volatile variable at the same time. The compiler might or might not compile volatile_variable++ into an atomic operation, but some people wrote code under the misunderstanding of the language that it always would.

What you're describing is a different long standing problem. The deprecation of compound volatile operations is because as volatile operations they were nonsense. A volatile operation is a single non-tearing fetch or store, but compound operations by their nature are both a fetch and a store.

By obliging users of volatiles to be explicit with the separate fetch and store, the intent was to highlight that this is not a single operation.

Abuse of volatile to mean "atomic" is so widespread it's how MSVC actually works by default on x86. Access to volatiles with MSVC /volatile:ms - which is default for x86 targets - means Aquire-Release atomic semantics.

Deprecating the compound ops doesn't change that in either direction, it's a bad idea, people, especially Windows developers, will expect it to work, Microsoft will enable it on x86 (but by default not on ARM).
Going by the current EUR/USD price, from your link, they are charging more. They're overcharging by about $33. To make the Euro price be on par with the USD price, they would have to charge 515 euro, not 550.
I would consider 12 miles to be right next to it from a shipping perspective...

I.E., With USPS you can pretty much assume that you are going to get a letter next-day if it comes from your state
Unless the ISP forces the use of its own Certificate Authority on its users, this isn't possible. TLS and the infrastructure surrounding it were designed with integrity of the connection in mind. Knowing this, I would be very curious to know what specifically you encountered and where. I see you added some details elsewhere, but it still doesn't jive with how TLS works.
"If you haven't read the article, would you think this site great?"

No, I would have ordered what I wanted, quickly and easily, and probably not thought about the website at all. Which is what makes it great.
this is too narrow for my liking
I think awk and sed are great, and it's great to eschew pipes when a powerful component that's ready in the pipelibe, like sed, awk, or grep, can pull double duty, but do think that one should favor using `grep -e` with a positive look behind in a case like this. I can just picture an innocuous string being added anywhere above the version string and throwing this one-liner off, when a regex could have pulled the version string out from an arbitrary position within the file and would hold up much more robustly; You don't want to impose opaque constraints on future edits even if you're the only one who will be editing the file, it's just too easy to forget and trip over later.
If Aliens find us, it seems reasonable they would be smarter/more advanced.
> Israel to attack Iran

Yeah let me start lathing. Israel will never,ever, ever attack Iran. They know they can't win and can't overthrow the government. For them it would just be a total waste of money.

Israel couldn't even defeat the Iranian sort-off proxies in Lebanon.

Israel has for 30 years had 1 main strategy in regard to Iran, try to get the US to fight Iran for them. The only reason they agree to the Iraq war was because Bush and friends promised that this was all part of a plan to isolate and pressure Iran.

Israel has been claiming that Iran is '1 year away' from nuclear weapons for literally 30 years now. They have made up fake evidence to prove that Iran had a huge nuclear weapons program (evidence that then was dismissed by the CIA and every other security agency).

> Iran is currently cooperating with Russia so it could only go south for them.

Iran is 'cooperating' with anybody that will talk to them.
> A modern constitutional monarch holds no real power, and often times holds less power than normal people (e.g. not being able to express any political opinion).

The British monarchy can preview laws that impact them, holds enormous quantities of wealth & land, and multiple people were arrested the past few weeks for protesting them - what are you talking about?
This page has another thing that pisses me off so much about the per-capita emissions and how Canada gets ripped into that so hard. These paragraphs right here:

> The world’s largest per capita CO2 emitters are the major oil producing countries; this is particularly true for those with relatively low population size. Most are in the Middle East: In 2017 Qatar had the highest emissions at 49 tonnes (t) per person, followed by Trinidad and Tobago (30t); Kuwait (25t); United Arab Emirates (25t); Brunei (24t); Bahrain (23t) and Saudi Arabia (19t).

> However, many of the major oil producers have a relatively small population meaning their total annual emissions are low. More populous countries with some of the highest per capita emissions – and therefore high total emissions – are the United States, Australia, and Canada. Australia has an average per capita footprint of 17 tonnes, followed by the US at 16.2 tonnes, and Canada at 15.6 tonnes.

Give me a break! How do Qatar, Trinidad and Tobago, Kuwait, United Arab Emirates, Brunei, Bahrain, and Saudi Arabia get designated as a major oil producing countries but Canada is left out?

Canada produces more oil than all of those countries except for Saudi Arabia and the USA: https://ourworldindata.org/grapher/oil-production-by-country...

I thought "Ok maybe per-capita oil production isn't significant so that's why Canada was lumped in with the US and Australia". Nope! Canada isn't on the same scale as the oil producing countries per-capita for oil, but Canada does better per-capita than Trinidad (who is considered an oil-producing nation), USA, Australia, and China: https://ourworldindata.org/grapher/oil-prod-per-capita?time=...

Why doesn't Canada get any credit for their energy production? Canada generates a wild amount of energy from clean sources and nobody in the world comes close to touching Canada: https://ourworldindata.org/energy/country/canada?country=QAT...
Coal has been at all time record highs the past couple of years (well before Russia Ukraine war), and it's not even close. Like 3x previous record highs and more like 6x usual prices.

10 years ago I was assured that coal was dead, killed by wind and solar, which were already cheaper than coal at $60/T, and falling. How is it possible then that 10 years on with all the vastly expanded and even cheaper and better renewables, that people are paying $430/T for coal? And it's not the remaining few legacy assets winding down as they compete for a dwindling supply of fuel, global coal production is rising, new coal power plants are being built.

I've never heard any of these people go back and reflect on what they got wrong about their predictions about coal, what they missed and where their logic was flawed. What I do hear frequently though is "nuclear is dead, renewables are already cheaper"... I'm a little less open minded this time around.
This is how a 12 year old internet atheist sees the world. Advanced alien species is just a stand-in for the know-it-all author. Grow up. These things all have good historical reasons. And you don't turn society upside down just to get some nice parsimony in the calendar. We have a system that works and is remarkably accurate. Changing it would upset millions of social customs, accounting systems, computer systems, etc. The cost is unfathomable really. If it ain't broke, don't fix it.
We're biological and we depend on having a functional biological ecosystem to breathe, drink, eat. If we "torch the environment", we saw off the branch we stand on. Food doesnt come from heaven.
I'm pretty certain. It just doesn't make sense for (intelligent) aliens to be out there.
If Comcast is doing something wrong, why does everyone else need to do something about it? If Comcast stops routing packets on port 433, should everyone else stop using it as well?
Why is that a typical male experience? There's no reason a female would want anything different here
Starlink directly competes with wired internet. It also competes directly with cell towers in the fixed wireless business and in mobile service for vehicles. Next year Starlink will be competing for mobile service direct to handsets too. Sure, people will use more bandwidth when they get Starlink, because Starlink provides more bandwidth. But that won't increase demand for Starlink's competitors, all it means is people get better service. I find the idea that Starlink doesn't reduce demand for its direct competitors extremely implausible.
> A modern constitutional monarch holds no real power

This is not the case. The monarchy is extremely wealthy, and a large landowner over what should be public land.

Powerwise, the queen had plenty of involvement in a coup in Australia.
With expensive flight tickets and declining non-US-dollar currencies, tourism is bound to decline again.
Love the sound of it, but don't see this on mobile, even in desktop mode, must be tied to a media query; I'll be checking it out later too c:
I agree so much. It's what every single mail order company should have done. Freaking parametric search eaverywhere and uniform engraving style pictures so that your eye quickly catches the difference between the screw types.
Posits, a New Kind of Number, Improves the Math of AI
Well, in Polish, Monday is poniedziałek, which means "after Sunday" (Sunday is "niedziela") and not "start of the week" and it looks analogous in Russian...
> I don't get why you'd be too senior to code if you like it.

I don't get it either but at the company I am in.. everyone moves into positions where they code very little. It causes a lot of problems but that is how it is structured
The author also does not mention that there is no year 0.

So when Jesus was born, he was 0 years old, but it was already year 1. When Jesus was 20 it was allready year 21.
Ignoring discussions if Jesus existed or not... lack of year zero is illogical.

Maybe they did it to not have year minus zero? Which also should be there tbh.
Looks like it's been built: https://www.youtube.com/watch?v=agInwu6Ojdg

(makes sounds, but keywork isn't there yet).
The challenge wherever showing cached data is communicating that clearly. Imagine a bank app showing an old balance where connectivity is poor. It could cause overdrafts.

Then all the write operations need to be disabled or hidden.
A big problem in this area is the public-run sewer systems, usually run at the township level. Many municipalities have sold to the big private water/sewer company, who immediately raised the rates by double or more.

Naturally, the outcry was that these 'greedy' corporations are taking people to the cleaners. In reality, the formerly public ran sewer was horribly managed. Maintenance and capital expenses were deferred from day 1, and now the bill is coming due. The bill from the private Corp accurately captures the ongoing maintenance and capital reserves, which the local gov just kicked the can down the road to avoid pissing off the voters.
I don't think you're trolling, but again, you're not actually saying anything here. That's why you need to make the disclaimer that those are sincere questions. I'm suggesting that you instead take positions, even if weakly held ones. In other words, I think that you're doing something covert when you say "[N]o one knows what is a great e-commerce website. Is one that sells a lot? ... [T]hat is very easy to use?" or ask "So, a great e-commerce website should be measured by it's form or by it's results?"

What do you think? The article emphasized form and function. You seem to be proposing that results matter. Say that!

Just cobbling together bits of what you're "asking" it seems like you might instead have written the following: "It seems to me that the article focuses on form: simple design, great search and filtering, and useful information like CAD files. But being 'the best e-commerce site' needs to include succeeding at e-commerce. Being very easy to use might help. But there seem to be non functional and not 'great' websites (by the article's definition) that thrive."
Our ISP doesn't force MITM certificates, but used to try to mess with the retrieved pages sporadically with stream-hijacks (you navigate to HN, and got greeted with a full page ad) or banner insertions, forcing connection to mixed status while keeping the inner frame HTTPS.

They're not doing this anymore, because I guess they now know how to use their DPI infra in useful ways to them.

My mobile carrier still injects stuff to HTTP pages, but doesn't mess with HTTPS ones, at least yet.
For what it's worth many early European cultures also considered the start of the year to be at the start of spring, generally the same idea as Nowruz, which is where we got Easter from as a conglomeration of "pagan" rituals and Christian religion. Unfortunately we ended up with this weird Dec. 31st at the end of a year in the middle of winter which doesn't make any logical sense.
It is, the process is named "AccessibilityUIServer". There is a dedicated motion coprocessor but when the events come back the are plumbed through CoreMotion to a framework called Phoenix, which runs a ML model on them.
Mechanical Engineer and product designer here. I've been using mcmaster daily for 20 years to do my job. It is definitely the standard by which all others are judged. I'll gladly pay 2, 3, 5, even 10x the price to get it from McMaster. The service, the CAD models, I have what I need the next day. As an example of the level of their service, you can send them a box of loose parts, no part numbers, no markings, and they'll go through it, figure out what's what, and refund you for it. They make it so easy, you just have to do the engineering. Thank you McMaster-Carr.
This used to be my go-to interview question, and the binary search option provided is a good solution.

It's possible to do it in constant time for a fixed-size word by using binary long-division too.

Then there's all the crazy solutions that CPUs use to implement division, like Newton-Raphson and Goldschmidt. [1]

[1] https://en.wikipedia.org/wiki/Division_algorithm
As a non-SVer, this has always been something that confused me. What is the actual definition for "startup"? It doesn't seem to be tied to age, funding level, employee counts, user counts, revenues, or really anything else at all.

Honestly, it seems like a mostly self-selected tag used to indicate culture -- e.g., expectations of working conditions (hours, for instance) that in "normal" business we have long ago realized are actually counter-productive.
I saw a video of two thieves doing exactly that in Chicago (or Detroit I don't remember) they kept hitting the guy over the head until he gave them the password and then shot him like 5 times.
I often hear about McMaster from US sources and how great it is (though you pay for convenience), but are there equivalents in Europe? France in my case.
If you want to explain someone why tech debt is bad show him this Twitter thread.
> But the obvious solution is to do science to take the things that work

Science only gives you gives you facts. It doesn't tell you what to do with those facts to help you and your descendants live full and meaningful lives. Only Culture can handle that complexity.
>about the US is that the US media is not controlled by the US government.

There is a very infamous book, Manufacturing Consent, that explains this isn't true. Sure the president isn't calling up the CEO of CNN and telling him what to air, but when push comes to shove the media companies will all get in line.
> When an item is stolen, you lose it.

"Steal" has many meanings and only some of them involve the loss of the thing stolen.

The Oxford American Dictionary provides several examples (I'm using "___" to indicate indentation in the following) that illustrate the range of what can be stolen:

steal | stēl |

verb (past stole | stōl | ; past participle stolen | ˈstōlən | )

1 [with object] take (another person's property) without permission or legal right and without intending to return it: thieves stole her bicycle | (as adjective stolen) : stolen goods | [no object] : she was found guilty of stealing from her employers.

• dishonestly pass off (another person's ideas) as one's own: accusations that one group had stolen ideas from the other were soon flying.

• take the opportunity to give or share (a kiss) when it is not expected or when people are not watching: he was allowed to steal a kiss in the darkness.

• (in various sports) gain (an advantage, a run, or possession of the ball) unexpectedly or by exploiting the temporary distraction of an opponent.

• Baseball (of a base runner) advance safely to (the next base) by running to it as the pitcher begins the delivery: Rickey stole third base.

2 [no object, with adverbial of direction] move somewhere quietly or surreptitiously: he stole down to the kitchen | figurative : a delicious languor was stealing over her.

• [with object and adverbial of direction] direct (a look) quickly and unobtrusively: he stole a furtive glance at her.

noun [in singular]

1 informal a bargain: for $5 it was a steal.

2 mainly North American an act of stealing something: New York's biggest art steal.

• an idea taken from another work: the chorus is a steal from The Smiths' “London”.

• Baseball an act of stealing a base.

• Basketball & Hockey an act of taking possession of the ball or puck from an opponent: point guard Kaleb Joseph finished with eight points, four steals, and seven assists.

PHRASES

steal someone blind

___informal see blind.

steal a march on

___gain an advantage over (someone) by acting before they do: stores that open on Sunday are
stealing a march on their competitors.

steal someone's heart

___win someone's love.

steal the show

___attract the most attention and praise.

steal someone's thunder

___win praise for oneself by preempting someone else's attempt to impress.
[from an exclamation by the English dramatist John Dennis (1657–1734), who invented a method of simulating the sound of thunder as a theatrical sound effect and used it in an unsuccessful play. Shortly after his play came to the end of its short run he heard his new thunder effects used at a performance of Macbeth, whereupon he is said to have exclaimed: ‘Damn them! They will not let my play run, but they steal my thunder!’.]
The pro life folks are a good example. The pro life movement has worked with everyone from free market republicans to labor democrats to black nationalists. Whatever you think of their policy, they believe their cause is existential and they act like it.
If my wife jumped over the Strid to prove her love for me I would assume it to mean the opposite
Compared to Amazon, MMC has a very small number of SKUs, inventory that never goes stale, and prices that are only affordable in the context of B2B transactions. It’s not a comparable service.
In retrospect, I probably shouldn't have referred to it as a legend. That seems to have negative connotations for most people that I didn't mean to convey.

I really don't doubt the authenticity of the story, I mainly was trying to indicate that we don't know when the change occurred but it certainly happened a long time before Caesar: by his day, the change was an oral tradition whose full story was lost in the very distant past.
Software and Tools I Use Daily
Show HN: Chart – A visual editor for your back end
Et tu Brute? He was murdered in the Senate.

The cut and thrust of political discussion was rather more forthright back then.

To be fair, we've chopped off the heads of King Charles hereabouts. I'm sure III has nothing to worry about.
I wish they wouldn't break the back button by inserting a redirect when you visit via a search engine.
We live in an age where combining music, software, and signal processing can let you do some amazing things. I can imagine a high-fidelity simulation of this instrument's timbre before it's ever built, by using the mechanical CAD model to produce an acoustic model, and then modeling the response of the wood to an incident acoustic wave.
McMaster Carr is an amazing company. Its like if Uline was doing only hardware.
That has been tried a few times now.

The Israel lobby and the Neocons had at least 3 major 'War with Iran' campaigns since 2003.
> Octavius became Julius Caesar after he was adopted.

Gaius Julius Caesar
Frank Drake believed that the universe had to contain other intelligent beings
Atheism is a conspiracy theory? Or is there something in my comment history that strikes you as 'rubbish'?
Another vote for McMaster-Carr. It is not like they are great, they just are not stupid or frustrating or annoying at all. I don't know of any other websites that meet that relatively simple standard.

Perhaps part of why their website is so good is because they deliver the goods. They follow through. Ever need a 4x8 sheet of copper? It gets delivered to your front door. Sooner than you expect, and at a very fair price.
We largely dumped the long and rich and annoying history for most things _other_ than time, though, with metrication. It's arguably surprising that time survived that.
This is a primary source :) Something needs to handle those interrupts. Perhaps this stack trace from the profiler may be enlightening as to what that thing is:

810 -[AXPhoenixClassifier _handleAccelerometerData:withTimestamp:]
563 -[MLModel predictionFromFeatures:error:]
561 -[MLNeuralNetworkEngine predictionFromFeatures:options:error:]
542 _dispatch_lane_barrier_sync_invoke_and_complete
542 _dispatch_client_callout
541 __62-[MLNeuralNetworkEngine predictionFromFeatures:options:error:]_block_invoke
521 -[MLNeuralNetworkEngine evaluateInputs:options:error:]
519 -[MLNeuralNetworkEngine evaluateInputs:options:verifyInputs:error:]
491 _dispatch_lane_barrier_sync_invoke_and_complete
491 _dispatch_client_callout
491 __67-[MLNeuralNetworkEngine evaluateInputs:options:verifyInputs:error:]_block_invoke.195
491 -[MLNeuralNetworkEngine evaluateInputs:bufferIndex:options:error:]
363 -[MLNeuralNetworkEngine executePlan:error:]
359 espresso_plan_execute_sync
358 EspressoLight::espresso_plan::execute_sync()
351 EspressoLight::espresso_plan::dispatch_task_on_compute_batch(std::__1::shared_ptr<Espresso::abstract_batch> const&, std::__1::shared_ptr<EspressoLight::plan_task_t> const&)
296 Espresso::net::__forward(std::__1::shared_ptr<Espresso::abstract_batch> const&, int, int)
294 Espresso::net_compiler_segment_based::__forward(std::__1::shared_ptr<Espresso::abstract_batch> const&)
290 Espresso::ANERuntimeEngine::compiler::__forward_segment(std::__1::shared_ptr<Espresso::abstract_batch> const&, int, Espresso::net_compiler_segment_based::segment_t const&)
254 -[_ANEClient doEvaluateDirectWithModel:options:request:qos:error:]
247 -[_ANEProgramForEvaluation processRequest:model:qos:qIndex:modelStringID:options:error:]
221 H11ANEProgramProcessRequestDirect
214 H11ANE::H11ANEFrameReceiver::ProgramProcessRequest(H11ANE::H11ANEFrameReceiverRequest&, H11ANESharedEventsStruct*, bool)
201 H11ANE::H11ANEDevice::ANE_ProgramSendRequest(H11ANEProgramRequestArgsStruct*, unsigned int, bool, H11ANEReqCallbackDataStruct*)
200 IOConnectCallAsyncMethod
200 io_connect_async_method
199 mach_msg2_internal
199 mach_msg2_trap
To be fair, it may yet turn out that MD5 is (and has always been, we just didn't know it yet) a low-quality hash that can be trivially preimage-attacked. I think that's unlikely[0], but I can easily imagine someone reasonable being a bit more pessimistic. I certainly wouldn't willingly rely on MD5 preimage resistance for anything important.

0: I'd be willing to bet money at 1:1 odds that MD5 preimages still cost at least 2^96 bit operations (out of a nominal 2^127 hash invocations) 5, 20, or 100 years from now.
One thing I love them for is their curation. They find solid tools from companies the average retail buyer might not know.
There's ample medical support because it's a quick way to make a hundred bucks when you're a urologist.