skysight-inc/HackerNews huggingface dataset:
One thing I read today might contribute to this, I found it rather interesting.

I was reading about Black Death, and ended reading also about the Great Famine that happened a bit before it, and the two are attributed to be part of the reason why Chivalrious warfare ended, before these two events, professional soldiers (knights for example) usually died in training accidents than in actual battle...

But the deep changes caused by these two events, caused among other things, the start of a more destructive kind of warfare, where instead of winning by making the enemy retreat, you would win by completely destroying the enemy forces.

I suspect in some periods of history there was less PTSD because war was just less violent.

After Black Death, and increasing since, we got closer and closer to the idea of total war, that ended happening for real in the World Wars.
Meeting Our SLAs by Leveling Up Our Incident Management Process
Pentagon officially releases UFO videos
What’s in that `.wasm`? Introducing: `WASM-decompile`
Tyson Foods takes out full-page ad: “The Supply Chain is Breaking”
The monkey number was a very rough order of magnitude comment, and shouldn't be taken too seriously. But: You’re technically correct — I didn’t actually look up the metabolic rate of monkeys. The average value for humans (2000 Calories / 24 hours) is approximately 100 Watts. Very quickly looking into it, rhesus monkeys are around 30-50 Watts average power (https://www.merckvetmanual.com/management-and-nutrition/nutr...), converting kcal/day into Watts. I don't know what their peak power is. Anyway, you'd need a few monkeys, but not hundreds!
Read the spec, but in a nutshell you only report your tokens if you test positive. Then other people check to see if they have seen any reported tokens using a clever algorithm that doesn't involve them reporting all the tokens they have seen.

The central authority just has a list of tokens from infected people. A corrupt central authority could also massively deploy token recorders across an area and then see when and where the infected people were seen, but governments already have that capability just from the cellular systems.
I use C for embedded. I do the “lost art” of structure packing all the time. I don’t want ada.

I’m not sure why “use a different language” is such a common reply to any language specific discussion.
This is a good explanation but one that can be ultimately summed up with "rent seeking behavior".
If all the keyboard virologysts here were right, Sweden should be overwhelmed with patients and deaths, it's clearly not. They are doing well and is the only country where scientists are pulling the strings directly not politicians. I know which one I prefer.
Ask HN: Resources for hardening software handling payments?
I've recently started building out the API backend for a super early stage startup that will be handling credit card payments. I have some professional web development experience so I am definitely capable of diving in and getting started, but I've never written software that will be responsible for handling payments and I'm a little intimidated. A few things occur to me to incorporate into my design, such as:

1. Going through the OWASP top ten in detail before release
2. Ensuring that my endpoint that actually executes payment for an order is idempotent and atomic, to avoid duplicate charges and inconsistent state

But I'm looking for some resources that might help me identify things I don't know to look for. In addition I would love recommendations for resources on relational database design, so that I can try to model as many system invariants in SQL as possible. Thanks for any recommendations.
Ask HN: How do the doctors know if a person died of Covid or some other disease?
I've read from multiple sources that in many countries if a dead person has covid in his or her organism it is registered as a covid victim.

In the country were I live the health minister even said that we will 'treat all deaths as covid suspect'.

I do not find a satisfactory official explanation on how they know if the virus has killed them or they died with the virus inside (e.g.: terminal ilness).

Do you have some useful links on this?
Yeah but requirements are never that simple. You also have a cart item in the header that shows 4 but now must show 3, and you have a price that's over in the sidebar that needs to update, etc.

Oh and the user is logged in and is receiving a notification that an item they were watching is now available, better show a toast.

Sorry but the simple jQuery sites turn into soup once the requirements are what they are today. You can still do it, it's possible, it becomes harder and harder to maintain long-term though. Then efficiency becomes worse than how people do it today.
How far do I have to go back? I know Sleeping Beauty (1959) is definitely much sanitized from the stories it's based on.
People allow 2.7 million Americans to die every year. Not that this isn't a tragedy! We should work hard and urgently towards a world where nobody has to die, whether from heart disease or cancer or coronavirus. And the coronavirus presents a variety of high leverage options that are unavailable for other causes of death.

But if destroying American society is the cost of containing the coronavirus, we can't pay it.
The new dogma is "plain old HTML generated on a server is OK, as long as it's using node.js on a client-side oriented JS framework". Of course it's just as slow and memory-leaky as a plain old SPA, but now you get that on both the client and the server!
The hospitals buying your devices probably do, depending on the device. Our long term data is incomplete because people can switch providers, but we actively monitor long term patient outcomes for a wide range of devices that we use.
Oh dear. I was definitely going to put this on my phone. Now I won’t b
This is amazing +1
Of all the western world, the population of the UK seems to me the least concerned about privacy.

Given the ubiquity of (and willingness to leverage) the UK's camera and social-media surveillance across across all level of law enforcement in the country, I've come under the impression that they've collectively decided that they'll tolerate just about anything in exchange for an orderly and secure society.

Mandatory app installation really doesn't seem out of the question.
These are the types of articles I come here for. Fantastic work, and thanks for all the detail in the article!
Intel has made no delays for its 10nm process technology (2014)
I ask an uncomfortable question for debate about this:

Many of us probably think ridiculous the people who are jumping to reopen businesses (and states) in the interest of economic activity, at the cost of putting people's lives at risk.

Why, on the other hand, is privacy so important versus saving lives if a more effective (but slightly less private) information gathering mechanism could be implemented?

How do we judge one not worth the risk, while the other is?
> I don't know why everything has to be run down to the wire in the name of minimizing cost and maximizing profit.

There's no real "why" to it. It's not like any individual in a corporation chooses to run the corporation that way. It's rather an emergent effect of how corporations are legally structured (= shareholders electing/firing directors from the board based on quarterly results.) Directors are incentivized to pursue short-term profits during their tenure (such as by overworking employees), to enable them to enjoy the spoils of their positions for as long as possible.

A corporation can be "designed" intentionally to do something other than this (by e.g. choosing to create a benefit corporation; or even just by the founder retaining majority ownership and thus effectively "being" the board) but if you don't explicitly make a choice, being driven by quarterly profitability is what you get.
Tuberculosis did not go away. World wide it still kills 1.5 million people / year and 25% of the population is infected.
In less than a week, 77K people have installed the app, according to the official tally published by the developer.

The growth rate is 2x-3x every day, faster than COVID-19.
Ever wondered if Hacker News has vote inflation? https://toddwschneider.com/dashboards/hacker-news-trends/?q=...
The First Condition for Dignified Work
Quoting this paragraph by the author:

> First and foremost, there’s the end user. If a technology choice harms the end user, avoid it. I’m thinking here of the kind of performance tax that a user has to pay when developers choose to use megabytes of JavaScript.

I believe the author is indeed talking about React (and other frameworks), SPA, big JS bundles. The developer efficiency being alluded to here is for tech startups to scale a team. A component-based frontend is valuable in providing that efficiency. The efficient is not about building a form in a few hours vs 2 days with React, but about code maintenance and scaling a team so many developers can work on the frontend at once in a sensible way.

However, having said that, I am not an advocate for a React frontend. I actually recently wrote an article, on a different topic, but with a very similar theme [1]. I think component-based frontend framework solves a real problem in an organization, but it does not have the best UX in mind.

[1]: https://dev.to/bigi/dev-to-is-the-perfect-demonstration-of-h...
The problem is not the chipsets, the problem is that they had a bunch of boards with old firmware sitting in inventory and never updated them when new hardware was released.

As I've already said, it is totally normal for new CPUs to require motherboard firmware updates to function.
> didn't know Gmail has ads

I guess this is the main reason why Gmail exists.
>Google and Apple need to get their act together though, and just provide a contact tracing framework as part of the OS that is compatible, and can have data housed in each country where they see fit.

No. They already have their act together by providing only an API that cannot be abused by authoritarian regimes to do whatever, and keep stupid/badly advised politicians such as my own German government at bay. I hope they keep that line.

The reason Germany switched the approach finally was the public pressure by a) having Google/Apple stay course and b) the German public - learning from journalists and other experts - that there in fact was a less privacy-invasive approach that according to many if not most epidemiologists wasn't any worse either for tracking the pandemic.
>latest numbers from FOHM the death rate in Sweden

Are they counting deaths that happen outside hospital in those figures?
If you just order top down in structures from pointers, 32s, 16s, arrays, 8s, it’s almost entirely done without thinking.

There is almost never a difference to the user what order things are structured. Although to be fair this does get tricky with unions of structure over structure.
The Apple-Google protocol is designed to reasonably protect their users even in less-free countries.

Consider every Middle Eastern country; China (Xinjiang, Tibet etc); India (Kashmir etc); Latin American countries that have cozy relationships with gangs and cartels; Russia; even the USA with ICE and other agencies.

Do you really think Apple and Google should be giving information on their users to those governments? They can't possibly say "stronger contact tracing for Canadians, but not for Mexicans" - it has to be one global standard.
I run Google Ads for a mobile app I own.

If I try to optimize for download volume, that's all I get - bots after bots. Can rack up thousands of downloads for <10 cents per download without any impact on how many users actually use or rate the app.

I found that getting a good ROI required setting higher price targets and optimizing for in-app actions. That's really hard to do well and not very reliable, but it helped.
China Police Detain Three Linked to Censored Coronavirus Archive
link without auto play video

https://outline.com/qF7tdw
Is this article some sort of joke? Poe's Law seems to be in force here.
Does the link have any content? I don't find anything.
In case you skimmed the article after the first few paragraphs, note that the point is not that the stories are sad or grim but that they are only sad or grim. There is no moral or hate that leads to things happening. The characters just lives who’ve are sad.

I also read the article as lighthearted and humorous and so assumed some things may have been exaggerated it embellished slightly for effect.
You could make it behave like a dictionary by add the __getitem__ function:

config.__getitem__ = lambda x: config.get(x)
So many of the projects I've seen built with modern JavaScript aren't nearly that complicated though. They're building in anticipation of that complexity, but it never arrives.

Look at how many content-oriented news website article pages have gone all-in on React, with the result that they serve up over 1MB of JavaScript just to show you an article with a "save" button that no-one ever clicks.
I use CLion (same rust plugin as IntelliJ + debugging support) for rust development, and overall I would say the experience is pretty good. Certainly basic things like code completion from crates works; something is wrong with your setup if that's broken.

I've also seen huge improvements in the plugin over the past couple of years, such that most stuff just works now. Still some issues with macros (a hard problem in general, limited refactoring support, and occasional analysis failures, but I find it's a hugely productive environment.

(Also, as a bit of history, Aleksey Kladov who was the main developer on the intellij rust plugin went on to create rust-analyzer.)
Show HN: Kretes, Self-inspired IDE for TypeScript built on top of VS Code
You're disregarding the pattern of irresponsibility that necessitated the reactionary shutdowns. The biggest contributor being the national government, which includes the mainstream media, basically denied there was a problem for over a month while it continued to grow. The state governors were basically forced into draconian shutdowns at the last minute, because it was the only option left to them. Imagine the political pushback if say, back in February, state governors issued simple orders that everyone had to wear masks when out of their house.

Analyzing where we currently are within that context - do hospital workers have all the PPE they need? Are all companies now able to properly equip their workers? How about individuals? From what I've seen, most everyone in public is still running around in home made cloth masks, so it seems like we're still trying to regain our composure with basic supplies.

This is one narrow metric and there are obviously other concerns such as how serious everyone is taking this - basically zero at the start of March, but decently now - which can buy us a lot. We could and should see more types of businesses opening up, but these businesses need to demonstrate that they will be taking appropriate hygienic precautions. I was in a bank last week, and despite all of their new procedures, the rep I sat down with was literally open-faced coughing into his elbow. He shouldn't have come into work, but economic pressure and expedience are still overriding common sense.

We certainly shouldn't be talking about the current state of affairs as if they were a mistake, implying that it's reasonable to just let the economy dictate that everyone return to business as usual. The economy exists to serve humans, not the other way around. I feel for small business owners like your brother, but his actual problem is that black hole of debt. The appropriate way to help small businesses is to address the elephant in the room, rather than looking for justifications to go back to ignoring it for yet another decade.
Was surprised not to see any mention of guns. Even within a very limited life-experience of playing paintball, vs larping it's apparent the two lend themselves to different mental states.

Obviously this is not the true experience of these things, but it seems safe to say gun warfare is vastly less perceivable/predictable than classic warfare. Even arrows are something you can at least see. Bullets are invisible and can hit you anywhere that isn't encased in concrete, rock, or metal. And then there's bombs...

How could anyone feel even a moment of agency or relief amongst bombs and bullets?
Perhaps the issues is a programmer actually writing that in an interview they would be given a hard pass from any team I would actually work with.
It's worth highlighting the differences between the UK and the rest of the world. The NHS is embedded into the UK's culture. Since the start of lockdown, drawings of rainbows are commonly seen in windows with captions like 'Thank you NHS and key workers' and on Thursdays at 8pm, people stand on doorsteps and clap for the NHS. The NHS is very well trusted and this app, if viewed as a creation of NHS (or NHSX) and not 'the government', could still remain successful despite privacy concerns.

Unlike other countries, the UK has the opportunity to frame this as an NHS-created app, rather than a state-created app. If they're able to do that, then it wouldn't surprise me that the UK's population takes up the app.

Additionally, few people consider data privacy concerns at the best of times. Given the circumstances, I think more people are willing to prioritise public health over privacy concerns.[1] So, they seem to have judged that the richer data trumps the slight reduction in usage.

The combination of these factors could be the rationale behind this judgment call.

[1] https://www.ft.com/content/1752affb-24dc-4ad9-8503-78f9ce1ad... (there's a paywall, so the link below shows a similar poll)

[2] Ipsos MORI poll https://www.ipsos.com/sites/default/files/2020-04/coronaviru...
I had a job with a bad case of NIH and my lead was a very upbeat guy.

A couple months in he gave me kudos for getting something done in “only two weeks”

This was work that would have taken less than a week on my first big frontend job and here it was noteworthy that I did it in twice the time. Confusing emotions. Initially I felt dirty. Or like I was in the beginning of a horror movie where it turns out the happy guy is the killer.

And while I agree with the title on the article, I think it’s a shame because what we should be rewarding is effectiveness, not efficiency. I probably spend 20% of my time working on improving productivity and reducing variability for the whole team. Which means I get a little bit faster (and a lot less stressed out) in aggregate while everyone else gets a lot faster. That lead’s boss hired me specifically for that, but not all bosses are so enlightened (and he left a year later).
Sorry, I've been in this loop before, where I provide exhaustive evidence for the proposition and then people show up to ask what agenda I'm pursuing since everyone knows that already. I'm just not up for another round right now.
UPS and CVS will use drones to deliver prescriptions in Florida
Former neighbor of Biden accuser Tara Reade corroborates sexual assault account
> I’m all for showing your kids reality

I really don't think that's why children's stories used to be macabre. Nobody ever claimed these were accurate representations of reality.
1-Click RCE on Keybase – Shielder
Doesn't gaming the system to increase profits by increasing costs show malevolent motives which would not be fixed by removing profit restrictions? I mean if you're "evil" with regulations, why should I trust that removing regulations will make you "less evil"? It sounds like a crook asking you to remove the handcuffs.
I believe that Bluetooth units are limited to 1 central (master/server/upstream) and 7 peripheral (slave/client/downstream) connections. Mesh networks can be made up of up to 255 units.

Advertising is different, and not limited, but it is not classified as a 'connection'. My understanding is that advertisements are simply broadcast, so there is no bidirectional communication.
This is really compelling - thanks for linking it. Is there a downside here? Has React responded at all? I don’t hate hooks, but using async + generators like this looks so obviously better and more intuitive here; like such a clearly great, simple idea that I’m embarrassed I didn’t ever think of it myself.
A few other factors at play concerning losing children:

(3) More experience. The rate young child died was much higher, so not only were you likely to have other families to lean on, you had a much higher chance of having experienced this growing up or even having lost another child before.

(4) Less attachment. Children weren't valued the way they are today. The biggest example I can think of is the social expectations around proper treatment of children, such as the laws protecting children. There was far less social protections around children even just a couple of centuries ago. Laws basically allowed the parents to do as they wish to the child, short of murdering them. Abuse of a child did not spark the same emotional outrage that it does today (see the fate of orphans of the lowest class of society). We did value them more than compared to mammals who have more than one offspring at a time, but nothing near the modern day extent where 'for the children' has becoming a rallying cry strong enough to be worthy of political abuse.

(5) Greater expectation. People were faced with it being a far more real possibility. While in today's world I factually know that one of my children may die young from cancer, I don't emotionally consider it a possibility at all. But back then, with infant mortality rates being what they were, one was less likely to view it as an impossibility.
Hey HN, author here. Kretes is an integrated programming environment for TypeScript & Node.js, built on top of Visual Studio Code. It combines a web framework - similar to Rails/Django - with a UI layer built inside of the VS Code editor.

This project explores the ideas introduced by the Self programming language and aims to bring them to the current age. The ultimate goal is to create a semi-visual tool for building web apps in a more intuitive way using the same programming language (TypeScript) on the client & on the server, and without the accidental complexity. :)

The project started as a way to arrange my knowledge/toolset around JavaScript. Inspired by the past, I decided to (somehow) replicate what Sun Microsystems did in ’95 with Self (a project I find both underrated and ahead of its time), but using modern, popular tools (VS Code, JavaScript/TypeScript, WebAssembly, PostgreSQL, etc).

Happy to answer any questions here or at oh@zaiste.net
> That's something you need to ask to your package manager. Making sure that all dependencies of a package (e.g. drivers, compilers, etc.) are installed is the package manager's job.

No that's bullshit and it shows you never have done it.

Tensorflow is CUDA only and does not run over AMD GPU. Because CUDA is proprietary and has a monopoly on GPGPU for now.

It is such a big deal that AMD had to fork tensorflow and try to make their own version it in order to make it "partially" run over HIP. This naturally makes it behind upstream, buggy and partially updated [^1]

CUDA is not portable and will never be.

The sad truth is that, due to CUDA, a big majority of GPGPU programs are now vendor lock-in on Nvidia hardware. That is unacceptable, but it is like that.

[^1]: https://github.com/ROCmSoftwarePlatform/tensorflow-upstream
Tyson Foods chairman warns 'the food supply chain is breaking'
Show HN: We added a guided tour feature into our PWA game engine Construct 3