skysight-inc/HackerNews huggingface dataset:
One big dumb lock only protects against data races. There are other classes of concurrency bugs that require smart locking to avoid, and it's always a pain.

For example, iterator invalidation. Which is probably the most common thing I've seen when people use dumb locks to make a concurrent program sound. Either your iterators need to be aware of the lock and hold it through their lifetime (which means practically only one iterator can exist, which is undesirable) or your datastructure needs to be aware of outstanding iterators to it and update them (which means you have added logic to simple mutations, which is also undesirable).

It's problems like that you look for in non-functional languages that require library authors to say things like "this is/isn't thread safe" in their documentation, while providing those guarantees manually. And as a consumer of the library you need to be aware of these things and look for them, and what an error looks like when someone messes up.

I don't know what you're trying to say about stacks/the call stack in functional languages, because they implement their patterns in variety of ways - including locking. It's just about providing particular guarantees in the API, and the benefits of those guarantees are that it prevents entire classes of bugs like iterator invalidation and data races.

There are also all sorts of clever data structures you can use that don't require duplication of the underlying data. The easiest is a singly linked list without insertion. No locks required.
Same, but I guess everyone knows buying on margin is harmful, they just do it anyway.
You can read everything that gets posted here, including all [flagged] and [dead] posts. Just turn on "showdead" in your profile.

The only exceptions are outright-deleted comments, and we never do that except when the author asks us to. (Exception to the exception: once or twice a decade, we've had to delete something for legal reasons.)
`Falling back on "we just can't do stuff like that BECAUSE DEMOCRACY" is intellectually lazy and self-sabotaging'

I didn't say that, but okay.

In the widespread expectation of personal freedoms, however, it's harder to implement draconian controls without evidence it's clearly needed and of obvious benefits. Autocratic societies will always have the advantage in such situations because you can stomp the boot down at a moment's notice with little resistance.

It's also easier when your country is a homogeny with extremely few immigrants, extremely few travelers, etc. For a country like Canada or the United States to do what Taiwan could do, with literally millions to tens of millions of citizens returning from overseas, is logistically in a different universe.

And let's be clear that those situations are rare. "But it's just like Compaq because..." -- whatever that stupid noise was. Yeah, I'd rather be "Compaq" in that stupid analogy 99.9% of the time.
If it's been tested, it's been tested with a less-than-majority of the populace.

It's worth remembering that President Trump was not elected with a majority of the voting populace, let alone the entire US populace.
At the Olympic level, missing multiple weeks of training in the ~year before competition probably eliminates you from medal contention.
If it happens it will solve the visa issues for many tech workers. Then they'll be able to better compete for visa with other Europeans nations.
> Well Swiss have this enshrined even in laws, ie you can't ever buy a gun if you are from: Albania, Algeria, Sri Lanka, Kosovo, Macedonia, Bosnia and Herzegovina, Serbia and Turkey. Literally this list of countries is in the laws.

Wow, using such a list is pretty serious systemic discrimination in my eyes.

100% agree it's about money. I'd also add that it's about the money system itself, and the hoarding of 'Intellectual Property' (monopoly granted on technologies, creating artificial scarcity) by Western EU economies (together with the US) leading to a lack of full technology transfers, and limiting access to our rich shared inheritance. This method becomes a way for Western corproations to commodotize ideas and systems, and monopolize, leading to the slow technocratic takeover of the world that is currently going on:

"How did the rich countries really become rich? In this provocative study, Ha-Joon Chang examines the great pressure on developing countries from the developed world to adopt certain 'good policies' and 'good institutions', seen today as necessary for economic development. Adopting a historical approach, Dr Chang finds that the economic evolution of now-developed countries differed dramatically from the procedures that they now recommend to poorer nations. His conclusions are compelling and disturbing: that developed countries are attempting to 'kick away the ladder' with which they have climbed to the top, thereby preventing developing counties from adopting policies and institutions that they themselves have used" [1]

Instead we'll need to focus on creating a rich P2P commons of distributed tech. Protocol Cooperativism, mutual credit accounting using asset backed currencies - built using frameworks and systems like Ceptr and Holochain.

[1] https://anthempress.com/kicking-away-the-ladder-pb
No, Trump only started using China Virus after China started their propaganda campaign saying that it actually started in the US, and the US spread it to China on purpose. Their propaganda campaign is pretty widespread in China and some of my friend's grandparents actually believe it.
Competition in any space is extremely valuable. If for whatever reason uBlock Origin went away tomorrow there would be a void to fill. Furthermore, competition drives innovation. A separate project may figure out a better or more efficient way to accomplish the same goals and they could potentially share their findings with the uBlock team or vice versa and everyone benefits.
Documentations on Sparkfun is also very useful.
I think the OP (Resilience author) is referring to Google's attempt to knife the uBO baby, what the parent commenter meant is unclear.

I don't think there is anything wrong with uBO, but its days in Chrome are numbered, which is why I ditched Chrome for Vivaldi.
> browsers are still inconsistent with respect to how they treat CSS

Are they? CSS seems to be rock-solid and consistent now. The days of IE6 randomly breaking the box model are far behind us.
People who don't want any money often provide the best service (and in this case will most likely also have the lowest likelihood of carrying the virus).
This is reality (business) vs college (academic) lesson (and similar to the tired jokes about brushing off your algorithms books only for interviews).

One time I asked a musician with a degree if I should go back to school for music. I was wondering if he thought it was worth the money and time. He said:

"You can go learn all this stuff and you'll know everything about every song you hear. You'll understand all the underlying structures and how to write it out on paper. And music will become an entirely different thing to you. But guess what? You'll be broke, because that's not what people pay musicians for. They pay musicians to sound good and sell alcohol. All that other stuff only matters to people trying to pass their final."
why can't you speak to other products?
Of course there is a better way, but as he/she said most people don't know it. And for a lot of projects that are built to spec once, and maintained with minimal tweaks for a few years (traditional agency projects), the "bad" way is good enough.

If you want a better way for a project that you will have to maintain for a longer time that should be more flexible, I would personally suggest something like BEM[0] + a few best practices (like the one suggested in the post). This will already get you a long way.

[0]: http://getbem.com/
Can somebody link me to where this 15 day shutdown was declared? I can see many articles talking about Trump walking it back but none about it actually being declared or what it entails.
What makes you think Covid-19 isn't killing those patients?
Any feedback would be welcome! Appreciated!
I agree. One of my most memorable unanswered questions from my first C programming class is where the things we imported came from. I wondered how to inspect them so I would know what's available in those libraries, how to use it and to some extent how I would build my own. I moved on from C and so in the end it didn't matter much, but when you do settle into a language long term it is really helpful to know how to navigate docs, system/standard library and packaging tools so that you can participate in the ecosystem effectively.
As the Crisis Escalates, White House Experiments with a Pivot
Can't you just override margin with an "!important" rule? I disagree with this article's exhortation. Cascading style sheets have priorities and override mechanisms for a reason.
New Compression Method Enables Conditional GANs on Edge Devices
there is, it just sometimes doesn't matter.

Styling an important or often reused component? You best find a better way.

Adding a tagline to a marketing site or temporary banner? Yea, do whatever you want to get the job done. Just don't let your whole site look like that or you'll have angry teammates.
Ah yes, I didn't consider the threat of eternal damnation. My argument would be valid only if we consider atheism on its own, without context of Christianity being alternative.

I would say that widespread occurrence of sensation that was previously considered rare and sacred would significantly diminish foundations of most religions.

As we enter the age where it is easy to fabricate visual and audio recordings, people will become increasingly wary of believing it. I would think same would apply to sense of supernatural presence?
> As a pro having done this thing for decades, the industry standard in 2020 is to randomly throw margins, negative margins, and paddings on _everything_ (probably in JS/JSX) in the vicinity of the thing you're trying to position and visually iterate until things looks okay-ish.

That's always been the industry standard though. It's a wonder the web works at all.
> “Pay people and they spend it - keeping the economic circulation ticking over.”

There isn’t actually much to spend it on right now, other than rent, groceries, and online entertainment. Everything else is closed and my bank balance is actually looking much more healthy than it normally would this far into the month!
> Note: I Love Markdown
dude, don't worry about it.
I'm confused about if this means that IndexedDB will always wipe data after 7 days. That seems like it would prevent storage from being used for user data in PWAs.
Great tool! Will try it out
If that's true then why is Nepal still indepdent?
What about https://www.admuncher.com ? :) Since 1999.
There are animals that navigate via sensing the geomagnetic field. Humans can't sense it (at least most can't, at least not reliably or strongly), but we have tools that sense it.

There are blind people. There are deaf people.

Failure by one person to sense a thing others sense isn't actually evidence it isn't real.

I long ago decided this is probably the best explanation for the divide between those who believe in some kind of God or spiritual force and those who think that's clearly Hokum.

Edited for typos, possibly due to autocorrect, aka autocorrupt, the bane of my online communication efforts.
What if you want to do an equality operation, but the greater than or less than operators require lots of computation? If an object only defines the space ship operator, then isn't it very likely that you will get a lot of extra computation when all you care baout if the two objects are or aren't equal to each other?
Disagree. Actually I've written my whole thesis in Markdown and it was distraction free, practical and very easy to work this way.

If somebody needs the link to a good Markdown thesis template: https://github.com/tompollard/phd_thesis_markdown
I'm no expert. But I'm concerned about quantitative easing. Introduction of massive amounts of money erodes the value of peoples savings. Propping up some businesses might not be a good idea, some business should fail if they are no longer relevant or have not been managed well e.g. a business couldn't predict coronavirus necessarily, but they could absolutely predict an unforeseen event that impacts their cashflow for a quarter or more. Also, if we haven't seen the worst that's to come with the coronavirus, what's the plan? Throw even more money at the problem? While we are at it, why don't we just print money forever and pay everyone's salary - where do we draw the line?
I think the problem here comes in disagreement over the meaning of "documentation". When we talk about documentation for a program, do we mean the man pages? The README? The help docs? The API specifications? Or a long-form document or manual describing the use of the program, such as 'The C Programming Language' or the Camel books?

For all of the preceding except the long-form document at the end, I'd say Markdown is a perfect tool. It's portable, it's readable as-is, and it's supported on a variety of platforms including all the various git hosting platforms with native parse-and-render. That makes it the perfect tool for straightforward, uncomplicated documents.

For more complicated, formally structured documents, however, Markdown is awful. I've worked on a number of structured documents like public standards docs, procedures docs, and formal specs in Markdown, and they're a pain in the neck. Without using one of the less portable variants like Kramdown, you quickly find yourself having to work your way around the lack of formatting in table cells or specific list-numbering (or lettered lists at all), and so forth, and the less-portable variants mean you suddenly have to worry about your publishing/rendering chain to make sure everything supports what you're using in the form you're using it.

The rubric for me has been this: if the way the content looks/is structured on rendering matters, use one of the more structured tools like AsciiDoc or even Word. If the presentation of the content isn't as crucial, Markdown is a perfect tool (and makes a good default!).
Sorry to be unpleasant... but DUH. This was true long before React. It's a core idea in assembled layouts, that is to say all layouts.

Margins need to come from the assembling component, rather than the detail item. Spacing requires awareness of multiple elements, which you usually don't have internally.
An Upscale Connecticut Party Became a Coronavirus 'Super Spreader'
GDC talk: Interactive motion capture on a virtual robot
Yes, thank you. I kept looking at the date, wondering if it was already April 1st, was this a brilliant troll? Then I checked Wikipedia.
Telling countries they shouldn't close their borders for fear of "creating stigma" is doing a pretty good job? The situation today is much worse than it could be because the WHO is more worried about doing politics than about health.
Rust has an affine type system, and https://docs.rs/im/14.3.0/im/ implements this https://docs.rs/im/14.3.0/im/#in-place-mutation
1. I've talked with a lot of companies (Stripe for example) who do that internally and it takes a tremendous amount of time to set up.

2. For now attacks are very generic, but will soon be sector-based and department-based.

3. Yes for sure it's probably worth adapting the pace of the attacks depending on the level of the employees.

Thanks for the kind words!
Seems like a nice positive way for people to feel useful and lend a helping hand.

The headfake could be that this leads to an improvement to the health and well-being of the 250k volunteers some of whom might otherwise suffer from feelings of loneliness and helplessness
> It's all just politics, not racism.

It's going to end up as both, because in public speaking, we don't control our meaning -- the people do. The branding power of the "Chinese Virus" is going to reach Asians across America.
There isn’t yet a test to say with certainty if you’ve had Covid-19. (EDIT: its coming, but isn’t available yet)

I’m fairly sure I had it, but can’t be 100% certain until the test for antibodies is available.
This is the sort of denunciatory rhetoric we don't allow on HN because it leads to flamewars, and of course because the vast majority of the time it's just cheap and ugly, with people attacking others for garden-variety reasons (fear, anger, projection), as humans do.

However, comments where people are criticizing their own background (country, in this case) are more complex and are a special case.
I wish I could dig up some of the moderation replies I've posted to commenters in this position over the years, but unfortunately my HN Search fu has failed to find any. (Edit: I did find a small one: https://news.ycombinator.com/item?id=15732812)

They also have a particular taste. As soon as I read this, I could feel that you were probably writing from that perspective. Such comments have a bittersweet quality. Even though the rhetoric is harsh, one can sense that the speaker has 'paid' for it with lived experience. Of course, coming from a minority inside that country, it gets even more complex. But I bet that if someone were to come along and criticize Spain in an ugly and stupid way, you'd be the first to defend it—because you know it and because that would be the only noble thing to do. As John Lennon said to Rolling Stone: I can diss the Beatles, you don't get to diss the Beatles.

However, all this subtlety is lost on the internet. Your comment isn't what it appears to be, but that doesn't matter, because people will react to it as if it is. If you post like this to HN, you will start a flamewar regardless of how much complexity is behind the message, and this will damage the container just the same as someone posting out of ignorance and prejudice. So we need you not to do it here, to protect the community. You're welcome to share your experience in other, more personal and substantive ways, if you choose.

https://news.ycombinator.com/newsguidelines.html

p.s. These are arcane details, but it's interesting to me that https://news.ycombinator.com/item?id=22673470 picked up on the overtones in your comment. Family members (speaking metaphorically) can hear these things.
why would they lower prices when people need the product more?
>In this scenario, you can add props/params to override defaults.

Of course. But why? You're just adding complexity at that point. It's the same problem with frameworks like Bootstrap that use complex combinations of class names for styling. Now instead of having a semantic BEM style class name on the component that I can look up in a stylesheet and modify, I have to memorize an entire framework of esoteric 'col-md-whatever' class names and know how/where/when to apply them. It adds a massive cognitive load beyond just using CSS. In the instance of a custom spacer component described above, I'm now also on the hook for documenting and testing a component that is entirely visual, rather than just writing a couple lines of CSS.
The Suffragist with a Passion for Saving Charleston’s Historic Architecture
Twitter Withdraws Q1 Guidance Due to Covid-19 Impact [pdf]
Do you hontesly think you need PPE when transported a potentially infectious person to a hospital? Because that's also on the list of tasks.
Covid Community Vulnerability Map
It's a good idea,but would require an act of congress Edit: Or relevant funding institution for the UK
Uderzo (and Goscinny, his partner in crime) are childhood heroes of mine, together with Franquin and all the other stripmakers they slowly got me into reading more substantial stuff. Supberb sense of humor and tons of tricks that you'd only appreciate if you read them again at a later age.

Naive? Me? ;)

https://pbs.twimg.com/media/DY83gwMW4AARkVP?format=jpg
You can choose not to define the spaceship operator and keep using the “old” ones if you want.
Instead of or as well as doing that, they could pay people for volunteering to help the nhs. The other measures you mention are very costly in comparison.
Hi Ben - cool product! Speaking as the lead for Riot.im, I would recommend picking another name asap, if nothing else because Riot Games has an awful lot of lawyers (as we know first hand, unfortunately).
Ah, perhaps Mr. Talmey wished to evade the fate that quite soon befell upon Joyce's ‘Ulysses’, with it being ‘effectively’ banned from publication in the US, such that “throughout the 1920s, the United States Post Office Department burned copies of the novel”.
Amazon soliciting public donations to pay workers' sick leave
The first Walkman had two headphone jacks:

http://www.walkman-archive.com/gadgets/walkman_sony_01_tps-l...

And this feature:

> the TPS-L2 had a "hotline" button which activated a small built-in microphone, partially overriding the sound from the cassette, and allowing one user to talk to the other over the music

https://en.wikipedia.org/wiki/Walkman_effect

> Sony Chairman Akio Morita added these features to the design for fear the technology would be isolating. Though he "thought it would be considered rude for one person to be listening to his music in isolation"), people bought their own units rather than share and these features were removed for later models.
Spacer components + flexbox + components defined in JS/JSX is basically a copy of how TeX does things (single unified macro language, hspace/vspace, boxes and glue algorithm which is pretty much flexbox).

Feels like we could have saved a lot of time if we'd considered at the outset that maybe Knuth, an actual genius who spent years on this problem, had some pretty good ideas?
A virus isn't considered life because they do not follow all of the characteristics of life. This lists consists of:

order - meaning systems of cells

response to the environment - can sense, integrate senses, and response

reproduction - can create offspring

growth and development - do the cells grow and mature

regulation - there are mechanisms in place for heat control, thirst, etc

homeostasis - are able to maintain environmental equilibrium/steady state

energy processing - have the ability to convert sun to energy or process something chemically todo so.

If you go through this list, it's quite clear why a virus doesn't make the criteria for life. There is no order, they do not respond to the environment, there is no cell growth or development, they do not have mechanisms for heat, thirst, etc, and they do not maintain an environmental steady state.
grid and flexbox are still not carved in stone, so catering to tbe lowest common denominator sometimes means e.g. nesting divs to mimic functionality in another browser
Little Snitch and the deprecation of kernel extensions
These are fulltime positions.
> Every other virus that comes from a place gets named after it.

Every virus comes from a place, but many viruses are not named for a place even when the place of origin is known, and even the ones that have a place in the name are only rarely named “<place> virus” (e.g, “West Nile virus”), e.g., they are often named something Rose like “<place> <genus> (e.g., Zaire ebolavirus.) And even then, they are often referred to without the place name unless there is a specific need to differentiate within the genus (e.g., the virus with the species name Zaire ebolavirus is usually referred to simply as “Ebola”; it's not called “the Zaire virus”.)

SARS-CoV, SARS-CoV-2, (both from China), and Hedgehog Coronavirus 1 (Europe) are all members of the betacoronavirus species with a particular identified geographic origin that don't have anything about geography in their name. And MERS-related coronavirus only has geography in it's name by way of the the name of the syndrome it was later identified as causing.
They're actually not funded to run these services. Before this crisis the NHS was routinely failing to meet minimum standards.
There are antibody tests. The UK just ordered 3.5 million of them

https://metro.co.uk/2020/03/24/uk-buys-3500000-antibody-test...