skysight-inc/HackerNews huggingface dataset:
Yes, reference-counting of outstanding operations and the used buffers is a suitable workaround.

It comes with some downsides though too: The IO operations then only accept certain specialized buffer types and nothing generic like pure byte slices anymore, which might make those things less interoperable. The other issue is that while using refcounting leaves at least the memory in a non-corrupted state the IO source will be in a somewhat undefined state after the cancellation. E.g. if a write operation had been issued on the socket, the API user can not make any assumptions whether or not any byte had been written, and which impact a subsequent write might have. The only reasonable thing to do is to close the IO source (where the close might also need to wait until the still pending background task has completed).
A fictional account of the situation. It's a mess and iit isn't going to get better soon.

Elite Squad: The Enemy Within (2010)
https://m.imdb.com/title/tt1555149/
> the general rule that if, say, a box of nails advertises 1000 nails, the manufacturer will have set the actual average to be higher than 1000 nails so that some large majority of buyers will always have at least 1000 nails in the box.

This is actually not a good analogy. These days nails are mass produced and quality controls are good to ensure each has the same rough shape and weight +/- by a few percentage points. And to ensure a quantity for a box is actually ensuring the weight - much easier to control.
Why are you being threatened with a taser in the first place? Real life isn't Training Day.
Ever try Pyke? It handles backwards chaining.

http://pyke.sourceforge.net/index.html
It's true to some degree here in the US as well. Look at Donny's approval ratings. They started to lessen as the government shutdown went onwards and when the market was not doing well in December and have only recently recovered. if you look at all the past president's approval ratings, they tend to take a hit when the economy is not doing well.

I think that the assesment that the Chinese people have traded libery for prosperity is right, but is part of a larger mechanism. Many countries have this bargin in place. Ceasar pillaged his way through Gaul and Germania and was loved by his people (though there is a LOT more to Cesar) and Octavian largely continued this. Trajan did the same in Dacia and just plain gave out money to the plebian class. G. W. Bush just gave everyone a check too and his approval ratings went up.

Empires tend to be extractive by nature, funneling 'wealth' from the frontiers to the capitals. As a species, technology has largely allowed us to open up new frontiers like never before and extract a lot of weath from those areas (deeper oil, sparser gold, digital information, better nitrogen fixation leading to more grain per square meter, etc).

Have we run out of low-hanging fruit here on Earth now? I think not, technology/knowledge isn't like that, it's more fractal. But I do think that the easy stuff, the gold just lying there on the ground, isn't here anymore, and the entropy of our economy is starting to pile up.

Things will be just as good as today, largely, but we've got to understand that we're finite now. It won't get better at the same acceleration we've seen for 200 years.
RDRAND has major benefits over any CSPRNG: there is no software-visible state that could possibly leak. With attacks like Spectre, there’s always a concern that your CSPRNG secrets could be leaked.
Oh, no, the regulatory authorities are there. They're just paid off by the entities they're supposed to be regulating or don't give a shit.

See: the entire state of West Virginia.
That's kind of what I mean—the audience for this isn't heavy terminal users. You can still raise the bar for them!
It is hard to evaluate, but of course being hard to evaluate does not mean it's not a real thing.

The effect (not counting contrails) is about double the effect of CO2 emissions alone. Including contrails, it may be even higher. There are mitigation strategies to deal with these non-CO2 radiative forcing effects, though it's very complicated.

Good article: https://www.carbonbrief.org/explainer-challenge-tackling-avi...
Networks of Low-Stakes, Casual Friendships
Being not by Oracle is a feature; not a bug.
The government (the Supreme Court in this case) wasn't speaking for everyone, they were merely protecting the rights of a certain segment of the population. It's an important distinction to make. There was no constitutional basis for denying same-sex marriage.
Ask HN: Investments on Vinyl Records?
Hello,

Me and my two co-founders we're working on an iPhone app (for now) for vinyl record lovers and collectors.

We're having good traction and retention, testing some different pricing model and looking forward to a monthly subscription plan.

The industry is a niche, a bigger one actually, and it's 15 years that is constantly growing. A mix of nostalgia and need of the people to own a physical product rather than an mp3.

We're looking for investors or acceleration programs, but I'm always hesitant in what direction to look for in our case, considering the niche.

Should we look for pure investors (for the sake of just money) or should we look for someone who's a vinyl collector?

The market is there, opportunities as well, but this won't be an "AirBnB/Uber business opportunity" (well at least for now!).

I know it might sound like a dumb question but somehow is not.

I truly believe in this project (I'm coming from a failed vinyl record project which actually was well known between vinyl record lovers), I want to make it happen and I'm trying to figure out what would be the best approach to connect with someone who believe in us, the project and our vision.

If anyone interested I'll share the links as I don't want this post to look spam.
Good overview: https://www.carbonbrief.org/explainer-challenge-tackling-avi...
So would you bundle up a series of these into a day? Or just assume the client is cool with this taking a day?

I believe you're also assuming you're servicing a client whose got a lot of budget to blow on a lot of small changes.
Q&A with HPE's Dr. Eng Lim Goh on AI, Ethics and the Future
The FDA definitely has requirements for anything advertising "zero calories," "no calories," "reduced calories" etc: https://www.accessdata.fda.gov/scripts/cdrh/cfdocs/cfcfr/cfr...

As for the "minimum calories," I've searched and either I'm out of date or was never correct: it seems like the FDA used to have a "80/120 rule": "beneficial
nutrients" (vitamin, mineral, protein, total carbohydrate, etc.) must be at least 80% of the label value and "nutrients to limit" (calories, sugars, fats, etc.) must no greater than 120% of the label value. So calories could theoretically be lower than advertised, but not significantly higher.

The FDA seems to no longer have this rule, but calories is still on the "nutrients to limit" side, so the FDA would be mandating maximums, not minimums. My mistake.
Just rotate the missile in its trajectory? Even ablation and guidance is still possible...
-another arm chair general-
At what point, in the sort of situation we are discussing here, should one make use of one's gun?
Pokémon characters have their own pea-sized region in brain, study finds
You jest, but TicTacs are allowed to be labelled “sugar free” despite being 91.3% sugar because, to quote, “the amount of sugar per serving (1 mint) is less than 0.5 grams, FDA labeling requirements permit the Nutrition Facts to state that there are 0 grams of sugar per serving“ - https://www.tictacusa.com/en/faq
Exactly my point! Federal mandate and ditching DST!
edit: didn't know people downvoted statistics in HN.

Conversely homicides in Brazil registered the sharpest decline in its history.

https://foreignpolicy.com/2019/04/22/brazils-murder-rate-fin...

> One of the world’s most homicidal countries just registered the sharpest overall decline of lethal violence in its history. Brazil’s murder rate dropped by a whopping 13 percent between 2017 and 2018, from more than 59,000 people killed to just over 51,000. And homicides fell by 25 percent in the first two months of 2019 compared with the same period last year.
Same-sex marriage legalization was because of reduced anti-gay bias. My five year old could tell you that. What a stupid article.
I don't think garbage truck workers would throw in the towel and stop working because income taxes or wealth taxes went up. They're working because they need to eat.

If ohaideredevs is in such a place that he's able to stop working and not have to worry about being able to pay for housing, food, clothes, insurance, and all the other necessities of daily life, then that's great for him, but I guarantee you absolutely that the vast majority of the people in America would neither stop trying to make money, nor stop trying to make more money, just because some taxes went up. More money—even if a higher percentage of it would go to the government—just makes too much of a difference in the day-to-day life of most people for those kinds of concerns to be anywhere near strong enough to make it look unappealing.

So if someone who already has so much money that they don't need to work another day in their life stops trying to make money...or even if it's someone who makes so much that making more wouldn't reduce their stress in daily life no longer trying to increase their income...I don't think that's a net loss to us in any meaningful way.
> Changing the tasks due email to be delivered a day earlier should be a one-line change. How could that take 4-8 hours?

This is what's in dispute? Something else in the relationship is wrong.
Sandra Bland was, in real life, threatened with a taser. In other real-life incidents, people who were cooperating have been shot, tasered or beaten. Real life isn't all Dragnet, either.
And this is why cryptography has increasingly reduced its reliance on randomness. Strong CSPRNG that only need a single seed to be secure, signing constructions that use deterministic hashes, deterministic derived keys, DAE-secure ciphers that fail-safe when IVs are re-used, etc.

Randomness is definitely something we took for granted for too long.
For those who don't play Magic, this is on a scale where tier 1 decks are top decks, tier 2 decks are reasonable, tier 3 decks have serious weaknesses but are playable.
I've been using Hyper 3 Canary for a while, if you're on Windows it's a MASSIVE difference from previous versions - all the normal stuff you expect to work (select to copy, right click paste, rendering, readline shortcuts etc) works (with a little tweaking, see below). It's definitely usable as a daily driver.

I've been using Windows Terminal in the last 24 hours and it still has some major bugs. While I'd say Fluent Terminal is the best in terms of being lightweight and feature filled, and Alacritty for raw power if you have big shell workloads, Hyper 3 is pretty damn good and worth a try.

Sane defaults:

Use pwsh (not cmd, that's the Windows equivalent of launching 70's Bourne shell on a *nix box):

shell: "C:\\Program Files\\PowerShell\\6\\pwsh.exe",
shellArgs: [],

Normal new tab, close window keys, make readline keys work:

keymaps: {
"tab:new": "ctrl+t",
// Also known as 'close tab'
"pane:close": "ctrl+w",
// Bug workaround for https://github.com/zeit/hyper/issues/2873
"editor:movePreviousWord": "",
"editor:moveNextWord": ""
},
Dielectric mirrors can reflect 99.9% of light in a wide spectrum, and 99.999% for narrow spectrum and limited angles.

So even if we take the 99.9% one, your 50kW laser will only heat it with 50W of power, which is nothing compared to the heating an ICMB (or its warhead) has to withstand.
> The first of these is Linux now supports persistent memory as RAM. Sure, non-volatile memory (NVM) isn't as fast as good old RAM, but on newer systems it gives you the option of expanding your memory.

That sounds like swap. What's the difference?
If the future has been dropped, I agree that the source/sink should be closed as soon as safely possible. Usually the resource has to be moved into a future for it to be used, and thus it's logical that no one could continue using it after the future is dropped.
Because the content of your response data isn't critical, do you think you could sometimes return a text string with a simple request for donations from your API? I mean only in cases where a random text string is an appropriate response. Perhaps you could also send one line sponsored text adverts as part of the API response.
Why? The software did it was supposed to do. It doesn't guarantee profits. There's a risk involved.

If anyone should be sued, its Costa (Captain Magic/con-artist/salesperson/whatever) who, if what the investor claims is true, greatly oversold the capabilities of the software.

And even then there might not be a strong case against him.
Or better yet, the getrandom syscall, which has better semantics and avoids the filesystem.
> I don't see how the old dedicated space for a Genius Bar would work better. The problem is that the old way tied tech support to a spatial location in the store. The new way assigned tech support to a person instead of a location. This allows any and every table in the store to become a temporary "genius bar" for that customer session.

It's better UX. As a customer, I know what a service counter looks like, but I can't recognize a tech support employee roaming around.

> If an Apple exec wants to bring back the dedicated area for the Genius Bar, how does one avoid the logistical nightmare of those lines? You still have to work within the same finite retail floor space.

Their current process is a logistical nightmare. Basically they take a description of what you're wearing, then tell you to hang around in a crowd by the "Genius Bar" next to the iPhone cases. Eventually some employee is supposed to pick you out of that crowd based on the description they entered earlier.

Lines are a well understood, tried-and-true technology for managing crowds. What they're doing is different but not better.
Experiences with Zabbix? I tried it back around a decade ago and wanted to like it, but didn't find it very reliable. And now the details are escaping me. I ended up sticking with Nagios and Opsview. Around 5 years ago I switched to a templated Icinga2 config and have been pretty happy with that, but it's pretty low level.
That's a statement about the practical engineering involved, yes. However, saying a computer is "Turing complete" is not misleading. It is purely a statement of its mathematical properties.

If sockets were given absurd timeouts and/or you could run MtG at much higher speeds, (and it was given a medium through which it could communicate), it would have no problem making a socket connection. It is only the practicality of the matter that becomes a barrier.
this seems a good alternative to the mess of using spreadsheets for editing translations.
Mine was a Macbook too. It was stolen on that security part where you have to put your personal belongs on the "running machine" (no idea how to call that) and pass through the scanner.

The woman that passed before me took my laptop. I thought it was by mistake, but the cameras proved otherwise.

Surprisingly or not, nobody cared. I was already hopeless in the airplane (which was late because of it) when this police officer came with my computer. I don't know what happened to the woman.

The police officer was American. I said he was Mexican because he was speaking Spanish with us (which helped, because my wife's Spanish is better than my English, and I was too anxious to speak).
The class T.A.?

Perhaps more helpfully, StackOverflow? #python - https://www.python.org/community/irc/ ? The Python tutor mailing list - https://mail.python.org/mailman/listinfo/tutor ?
> Or at the very least, if you value your walkable commute that much, then why the hell do you need $10K/yr in luxury car expenses?

Have you ever tried to carry one or more toddler car seats to a rental agent? Even The Rock would balk at that task.

In any event, I appreciate all your counterpoints, but I'd prefer to hear counterpoints from current/former Manhattan parents than a logician without on the ground experience.
What you just described is called "systemic racism" where the power structures and the rules were established to perpetuate oppression, but done within the rule of law so that no individual in the system seems explicitly racist. If you're looking for a bureaucrat in an office making a decision because they don't like black people, you're not going to find one. Instead, you're going to find things like, e.g. redlining and the interstate highway program.
Stupid Git commit-tree tricks: Building a merge commit manually out of a tree
Stanford researchers identify brain region activated by Pokémon
History has demonstrated time and time again that markets can’t regulate stable banking.

The only long period of sustained banking stability was the period with the strongest regulatory system.
Wait, why wouldn't bounty hunters be authorized to possess it? Isn't pursuit of someone who has a bench warrant exactly the kind of lawful purpose this is supposed to be limited to?
Hugo. Hosted on Netlify
Can't see the original comment, but I think americans don't appreciate that their system is amongst the most brutally repressive in comparison to south america.

In San Francisco you can walk down market and see people dealing drugs, but would never rob you. The former because the police have a no persecute policy, the latter because they have a no tolerance policy.

In places like Argentina or brazil, the mere sight of people like this means 100% guaranteed robbery. I believe americans visiting the wrong neighborhood in Argentina or Brazil would have deeply false sense of security, which is why they are prime targets.
JS/TS. Occasionally Python or C#.
That is true. But very few super computers track power consumption for different codes and do power aware scheduling. SuperMUC and IBM actually do a lot of research on this, because it is a rather new field in HPC.
Empathy-Driven Development: How Engineers Can Tap into This Critical Skill
I really want to see this happening because whole "you are the product" line does not apply here. People pay for these services, that should be the end of profit motive. If they want to fuel a location data industry, give users a choice/incentive for that.
Yes. The paper is good, the title of the submission was not.

Of course by now the title and even the submission link has completely changed (it was linked to an article before).
Planes and medium distance trains have the advantage of being a rare. You have already know that if you are late it will be a long time before the next one, so you take extra effort to be there early. With a bus if you miss on, being 10 minutes late by catching the next one isn't as big a deal: it is only 4-5 minutes if you hurry (getting the first bus would average getting you there 5 minutes early, a little running and you can take another minute off). That is all fine, but if the next bus is running late you cross the "magical" 5 minutes late mark and get into trouble for being late.
Mao is a ridiculously fun game. I can't think of another that is as critically reliant on both playing the mechanics and your opponents.
Why are we governed by incompetents?
Ok… I know how this sounds, but… have you considered changing the name? I, too, like Drools a lot, but seriously, the looks when I tell a bunch of stuffy MBAs that we’re going to manage the complex rules using a tool called “Drools”…
Personal attacks? Seriously?

This is no true Scotsman or some version of it. I don't get to be an environmentalist because I'm not a vegan? Nevermind the composting, bicycling, lobbying, donations, volunteering, picking up of trash, lack of a car, love of nature.

What if I turned this argument around? What if I claimed you can't be an environmentalist if you ever purchase petroleum based products (plastics)? And then I called you delusional for thinking otherwise? How would you feel?
The 20-year argument between Joe Biden and Elizabeth Warren over bankruptcy
I'm not a dev, but this feels like arguing with a strawman. There are really customers who complain that a change to their codebase took a single day to implement? I would be utterly thrilled if I could get a vendor to turn around anything that quickly
Yes, unlucky just means that random/arbitrary decisions or events didn't "favour" you.
I suppose to the many JS developers out there (which is a lot), having your software built in it makes it easier and more appealing to write extensions for. I have no data, but it's my impression that the growth curve for VS Code extensions compared to VS "classic" is much steeper.

This may or may not be a good thing but IMO it does tend to make some interesting and novel things surface.
"Mostly for the better" does not imply totally for the better. Of course you can find counterexamples, but that totally fails to answer the point. If you want to actually argue the point, you need some statistics about the economy as a whole, not about one sector.
You're the one that called me delusional lol where am I flaming?
big.tsv is basically the same line repeated 2 000 000 times:

$ awk \
'BEGIN{for (i=0; i<2000000; i++){print "abcdef\tghijk\tlmnop\tqrstuv\twxyz1234\tABCDEF\tHIJK\tLMNOP\tQRSTUV\tWXYZ123"}}' \
> big.tsv

$ cat big.tsv |sort|uniq -c
2000000 abcdef ghijk lmnop qrstuv wxyz1234 ABCDEF HIJK LMNOP QRSTUV WXYZ123

You can first sort all the lines, and count them.
The first column is now the number of instances of that line.

The idea is that if 2 lines are identical, the number of "count++" emitted will be exactly the same.

I took your gawk code, but I am starting the for loop at 2 instead of 1, and I removed the -F'\t' option.

$ time cat big.tsv |sort | uniq -c \
| gawk '{for (i=2; i <= NF; i++) {if (index(tolower(substr($i, 1, 3)), "bc") != 0) {count += $1}}}END{print count}'
4000000

real 0m0.724s
user 0m0.605s
sys 0m0.322s

Edit: added backslashes to split lines.
Yes, but this _nothing to do_ with the issue of military police preemptively sniping people in slums.

The drop in death rates is associated with 'peace treaties' between large criminal factions in peripheral states such as Rio Grande do Sul and, most importantly, Ceará. These factions have recently spread across Brazil (last decade and a half or so) and most recently, concurrently with the economical crisis of 2014~onwards, have been waging open war.

The article you linked even says:

> The drop in lethal violence started well before the election of the self-styled crime-fighter-in-chief, President Jair Bolsonaro, who was elected in October 2018.

Rio's governor (who enacted the sniping) was elected along with Bolsonaro.
And they say "Look, you're great at communication. Your soft skills are outstanding. We just don't think you're an engineer. Consider becoming a project manager instead?"

So what's wrong with promoting this person to a project manager?
The only surprise to me about the article is suggesting that this is a recent thing. I’ve experienced this for years.
SSD on DIMM.
Bounty hunters are no different to you or I, in most places (and outlawed in several states). Some states require licensing as a PI. They have no connection to law enforcement (and due to abuses, many states ban any implication thereof, down to the color of vehicles used).
Recursive React Components