skysight-inc/HackerNews huggingface dataset:
Some things should be heavily regulated. Antibiotics, for example: not only do we have issues with antibiotic resistance, the "everyday Joe" does no have the tools to know if they have a virus or bacteria nor if they are taking the right type of antibiotic for the sort of infection they have. Different antibiotics and different forms (pill, drops, cremes) are better for different things.

Too expensive? Perhaps fix the health care system. Some things are understandably expensive - autoimmune drugs, for instance. And someone needs to pay for R&D (but not ads). This doesn't mean that the poor sap who lost the genetic lottery should bear the brunt of it all. Not everywhere makes "everyday Joe" pay for all of it.

Some things don't need to be so expensive: Insulins, for example, even after the R&D costs. Epi-pens. And so on. Regulation helps some of this.

Power? Do you think these folks have power everywhere?
Everyone needs to make a living, so yeah, like everything it is partially about money. Most folks involved in medicine, however, aren't going down that route. The CNA at the nursing home doesn't get paid much. The nurse gets paid more, but generally is stressed. And so on.

I don't know what makes you think it is all about suffering. The issues in the US healthcare system really boils down to lawmakers not being willing to change things - again, most the folks in health care don't want folks to suffer.
Happens to the best of us. Happy new year!
It's a nice article and a good algorithm, kudos to all who can do this.

My philosophy however is that I don't need to learn this kind of stuff nowadays. There are computers even in our wrist, so I offload as much as I can, and spare my brain cycles more important stuff that matters.
Oh async/await is just python's and javascript's way of executing functions concurrently within the same process. asyncio emerges as a rewrite of a standard library to support this idiom. Browsers that execute javascript ES6 and node v7 onwards have this feature. Instead of passing callbacks to functions and have them executed concurrently, you create a task or future (in python 3.6+) or a Promise (in javascript) and await that. That is very useful because it untangles the callback-inside-callback structure.

There's a comparison between node and python's async/await syntaxes here https://medium.com/@interfacer/intro-to-async-concurrency-in...

For ruby I found this article which shows the gist of what we are trying to accomplish with async/await (we want to gather a bunch of promises and await all their results and have them run concurrently in an event loop so that when one is waiting for IO to complete, the other one takes over and runs) https://www.codeotaku.com/journal/2018-06/asynchronous-ruby/...
Just took this test, a little hungover from last night. Did awfully in some areas, particularly memory and emotional recognition. But I got in the top 5% for the last challenge (mental rotation). It seems very easy to “game” that test, by picking out particular features (for example, spotting green, blue and black squares lined up) and then matching them to the possible answers. In most cases there was only one match. As such, I didn’t really have to do any mental rotation at all.
The Arrogance of BBC News
Analyst says global TWS earbuds shipments could reach 130M units in 2019
Similarly, I've used Prestoql for this. It's similar to Spark and Hive.
If a spin lock ends up in a call to sched_yeld, it means that it is already outside its intended use case (uncontrnded or nearly uncontented), so it is a bit pointless to optimize this path or expect any sane scheduling behaviour. If contention is probable it is better to fall back on a futex after a few[1] busy spins.

This is what pthread_mutex (and pretty much every decent OS provided mutex does) on glibc by default.

[1] how much is 'few' of course is often application dependent.
That's interesting; I genuinely haven't noticed that impact. I don't read much bondage-light (or whatever genre 50 Shades was). Was there a sea change in that section of the industry? The book itself was, from what reviews I read, pretty badly written (although this review alone made it worth it! - https://www.goodreads.com/review/show/340987215 ), so I guess the impact can only be mainstreaming bondage-light; is there a new thriving sector of the industry providing that to people?
> China, like india, under western colonialism went from being the largest economy in the world to an insignificant one.

That's getting the causality backwards. Western colonialism didn't reduce China and India to insignificant economies; their insignificance is what enabled Western powers to colonize them so easily. The reduction to insignificance already happened earlier, when the West began to industrialize.

Of course the Qing emperors realized that they wouldn't be able to resist Western armies without owning similar weaponry. Their biggest mistake was simply buying them. In comparison, Japan suffered similar humiliation, complete with Western battleships forcibly opening ports for trade. The deciding difference was that they decided to not only import Western weapons, but to learn how to make them themselves, industrializing quickly. That was so successful that halfway through China's "century of humiliation", Japan became one of the humiliators.

> IP theft is justified because that's the history of business.

Agreed, and the humiliation would have lasted a lot shorter than a century if the Qing had realized this. Ironically, if they had done so, foreign Manchu would likely still hold an outsized influence in Chinese politics today.

> their historical narratives are true.

The facts of the narrative can be true while the evaluation and implied causal relationships can be misleading. For example, the establishment of free-trade zones for foreign merchants is judged to be humiliating because it was the consequence of military defeat. But when the CCP later established special economic zones to boost international trade, that was seen as very much a good thing.
No. As soon as the algo asserts "the last day of February is Thursday the
28th," and didn't explain how it knew 2019 wasn't a leap year or that the 28th
was indeed a Thursday, I stopped reading.
For most people it isn't that complicated, but public schools don't teach kids even the bare basics like "you can get the paperwork at public libraries and post offices."
I understand that. I was rather trying to point out hiw far, logistically, we are from mainstream adoption - just because of life constraints (such as vacation)
In my experience it is very to easy get into situations where using only mutexes is impossible. As soon as you need a lock per object and access two objects then you have to make sure to only acquire one lock at a time. The end result is that you are effectively using the stack as a message queue that can only hold one element.
There is not a mix of cultures in British society.

We do not see our country as "multicultural". It is a tyranny.

Why are you going along with this person's nonsense?
What It’s Like to Run for Office Without a Permanent Address
A problem with pthread mutex and std::mutex is that they are often very large which is problematic for very fine grained locking, while you only need one bit for a spin lock and can be embedded in other objects (say, a pointer) as long as you can spare one bit.

Of course you can roll your own proper mutex if you want to get your hands dirty with futexes. IIRC you only need two bits (one waiter bit and one locked bit).
Canada's military reacted to seeing Pokemon Go players trespassing on bases
May I also chime in and present my old bitbox console, a VGA on the same chips, with a dozen games and emulators for it ? http://bitboxconsole.blogspot.com/?m=1
This is how I do it:
https://incubaid.wordpress.com/category/algorithms/
Editors and authors share the creative "ownership" of an article. Here, they did actually come up with a somewhat satisfying compromise (the note), although punting the difficult decisions to the reader is somewhat cheap.

FWIW I probably agree more with the editor than the author. Yet I found their note rather obnoxious, and the author missed an easy chance to score a point for his "side".

The final decision not to publish an article including the disagreement was the author's. It was him who wanted only his side in the article, not the editor. So I don't quite see the scandal he makes out.

(In any case, it's insane how people are unable to entertain the theory that Assange is both an important and positive figure in the fight for privacy, as well as a creepy misogynist with the sort if psychological issues required for that self-imposed martyrdom in the embassy.)
JavaScript TV – Tech Talks on JavaScript, CSS, React etc.
Britain's zero-carbon power outstrips fossil fuels in 2019
One might say the same thing about building a significant degree concern based upon random anecdotes.
My New Years resolution is to avoid all nonsense sources of information - tv news, reddit etc.
Well, there is also the New Town of Edinburgh which is quite nice...

https://ewh.org.uk/world-heritage-sites/new-town/
And here I thought the normal people reference was to “The War on Normal People” by Andrew Yang which,10 years from now will look like a glaring omission.
Agreed, Piketty was a very surprising omission (particularly given the lambasting here about the Guardian's left-wing bias). Agree with it or not, it certainly had a much larger impact on real-world policy making than any of the literary award winners listed.
So far i rate yours most friendly / maintainable .
I never got deep into R as we had python or R as options in school for data projects so forgive me but where is the database join in this scenario?
Got hardcopy of this book for Xmas from my 3 year old (yea OK the wife!) about a 1/3 into it.

Have programmed c++ about a decade ago.. Nice to get back into it I have to say, there is an instant gratification from solving something in code, perhaps is the binary nature of something working or not, it's very black and white versus dealing with management issues, which is more like my day job, where your constantly in some grey area or dealing with noise, emails, endless directionless meetings.

Anyway highly recommend this book for non programmers, MU is also a very nice and clean IDE but prefer VS Code.
Honestly I'm not so sure about the case for spinning; in x264 source you can see CRITICAL_SECTION is tuned to have a spincount of 0. This is a very optimized, multi-threaded app. They didnt want any spinning.

https://github.com/mirror/x264/blob/d4099dd4c722f52c4f3c1457...

In my own attempts I've been unable to measure the impact of the spinlock count, and took spincount = 40 like in https://trac.webkit.org/browser/webkit/trunk/Source/WTF/wtf/... ...who also took measurement from elsewhere. The default is 4000 on Windows!

I don't argue spinning isn't valuable ; what I say is that it's necessarily never the bottleneck (else your task size really is too small).

After all, if you spend all your time in synchronization, that means you probably need to have bigger tasks, not more clever synchronization primitives.
Seven Ways to Think Like a Programmer
Show HN: faasd – Lightweight Serverless for Your Raspberry Pi
There are "1000's" more 40k/yr jobs than 400k/yr ones. Automating a 40k/yr job that 1000 people do makes more sense than 10 400k ones. In aggregate, there is more money to be saved automating the 40k jobs.

Also, typically lower paying jobs are physical labor jobs, trading time for money, not "thinking" jobs that deal with exceptions to the rules.

Robotics are suppose to automate lower labor physical positions, AI is suppose to replace our thinking and mental positions.
I was getting some right hand RSI a while ago, so thought I'd try a magic pad. My left hand has very little fine control - I'm very much right handed. I was surprised to find I could use the Magic Pad with my left hand with almost as much control as the right. This was a breakthrough for me, I could just spend a week using my left hand only, and the right hand recovered as new.

Btw I also have used a Logitech Trackball for many years with good results. The right hand issue was from using a mouse for a prolonged period - never again.
Publish it to the wide world, preferably by sending it to a public security mailing list that also has an html viewer - but make sure to also mail the maintainer and all maintainers of forks and distros that you can find in the same email.

It is important everyone who is using the software is aware of any issues right away so that they can patch it themselves if they need to. It is also important that the maintainers of forks are not disadvantaged.

Remember, after all the maintainer of the "original" could be a malicious actor, or it could be possible that they were replaced by one such malicious actor.
A goog example is Open WRT - the project basicaly got started due to LinkSys finally fulfilling their GPL obligation and releasing drivers to one of their Linux based wireless routers.
Why do people mention "clean streets" all the time? Whether it's sparkling white or covered in grime, it's not as if you're going to roll around on it. It's the street, of course, it is filthy.
I think the point here is that there is a really bad "rhetoric smell" to A City is Not a Tree. It's a geeky rant which jumps to conclusions and makes tendentious statements.

Christopher Alexander's trajectory as an architect (almost all other architects ignore his work) is witness to this. Whether it's down to the abstract formalism, messianism, narcissism, I don't quite know. But there is something off-putting about him.

When Alexander tries to sell us the line that a city "is" a semilattice, and that this precise mathematical formalism is somehow humane while an equally abstract tree is not—these abstract structures are being asked to do a lot of work. A more skilled theorist wouldn't structure the argument around platonic ideas. All he is trying to say is that exclusive zoning is bad, that human settlements are a naturally a mess of overlapping activities and concerns and should be designed that way. Trying to suggest that this is some kind of mathematical property just feels theological and immature. His writing is reminiscent of a CS undergrad coming up with a concept for a new operating system based on some particular abstraction (pipes, say) and writing a long screed about it without implementing the thing. It's giddy and the central idea is an overvalued abstraction.

All I can say is, Alexander is a crank, as far as architecture goes.
Am I not supposed to use calculus outside of the United States if I learned it while living here?

The concept of “where” you do or have a thing is well enshrined in law. Here for example knives that are perfectly legal to possess in your kitchen become illegal if you were to walk down the street holding one. It’s exactly the same with some forms of IP, these are often called “dual use” in legal terminology.
India approves third moon mission, months after landing failure
Food is a necessity, eating out is more expensive than making your own, and you can make it healthier for yourself.

Chat isn't usually a necessity, it's more or less free regardless of whether you use Discord or IRC, and using your own client doesn't make you any healthier.
OTOH, we can assume one doesn't need to worry about using C++ unless they have many millions of users.
Ah, sorry, I mixed it up with http://harelba.github.io/q/
"Guardian journalism is free from commercial and political bias"

The quote is from the donation plea box under this list.

This list is only commercial and political bias.

It even ends with a corporate sponsered book award. :)
To eliminate a dependency.
It's great to see new work on filesystem support for Kubernetes - it is badly needed. At first glance, ChubaoFS looks interesting - it has taken ideas from Haystack (facebook) and CephFS and put a POSIX API on effectively a S3 API.

Some questions I have relate to the POSIX semantics supported and what type of applications can work well on it. The authors say deletion is asynchronous - does this mean listing of dirs is eventually consistent? Also, how does utilization-based placement work with columnar file formats (parquet, tfrecords, petastorm)? Do blocks for the same partition get spread across different servers or not?

Also, I was a bit disappointed with the lack of a reference to our work on HopsFS (Usenix FAST, Middleware) where we also do distributed metadata and small files in metadata. But i guess Sigmod is more database folks.
I can surmise your post in 2 points:

1. The stolen material by these Chinese scientists were worthless and akin to a student taking home a notebook after a lecture.
2. The real issue is here is not of the rampant theft of intellectual property by rogue Chinese scientists, but that Westerners are disgusted by the mere thought of Chinese people learning science.

I didn't need to learn your name ('Zhou') to see that you are another CCP loyalist. And honestly I am quite concerned that a visiting Chinese scientist like yourself holds sympathetic views of these intellectual theft crimes by your countrymen.....
That’s spot on. We send the postcards from the UK so for the UK and Europe mainland we can manage 2-6 days even.
Wow, that book is weird and interesting, thanks.

It contains so many claims, from the obvious to the benign to the ridiculous...

Suburbs are obsolete, cities are magical!
All farms should be in valleys!
People should probably exercise more, twenty minutes of walking per day!
Cars are dangerous, unless they are electric, then they are suddenly safe!
Big doors are fascist!

I'm glad the structural shorthand used in that work inspired lisp and wikis and many other ideas in CS.

And I can wholeheartedly second the recommendation, people should check it out.

With caution though.

I think it'd be extremely dangerous to take the claims at face value just because the organization, the structure and shorthand for those claims is novel.

The book did not meaningfully increase my appreciation for the linked essay unfortunately.

Seems like a ton of people who are smarter than I am found this all stunningly profound though, so what do I know.
Happy New Year HN!
Happy new year! Wishing everyone a great year 2020! :)
Yes but it's so much more work + the code won't be maintainable and something like Transferwise needs a lot of interactivity.

Rather check out the recent thread about the react SSR. The entire field/frontend got quite complex and a good starter is first to understand the underlying concepts of SSR, SPA, react. If you haven then still time, checkout Vue, Svelte.
Airbnb Guests on New Year’s Eve
"Take 1 month break"

I had the similar situation, I was so immersed on one of the side project that I couldn't sleep at nights thinking about the future prospects for this project. I could no longer focus on my employer's work. At the same time, I did not have enough conviction to pursue the side project full time without salary.

I told my boss everything honestly. We discussed that it would be better for the company and myself that I take 1 month break from job and work on the side project; then decide whether to pursue the side project or the job with full focus.

I got the momentum in the project, so I chose to pursue this project full time and left the company. Couldn't have been possible without an understanding boss and an honest conversation.
I do have quite a lot of sympathy for Andrew Yang, and I don't doubt the book is a well-crafted long essay of his central thesis of economic disruption.

But if it looks like a glaring omission ten years from now, it almost by definition is the defining book of that decade, not the last one.

It would not even surprise me if Yang, if asked, would name some work that came before his book to be more deserving of distinction. Because while he is a very effective promoter of UBI and why it's needed, it isn't exactly his idea.
the tarrifs are mostly being eaten by china deflating their currency in order to continue selling to the us market. China is more relying on us for their economy than we are on them.
Very cool. Is it realistic to make a whole keyboard with this? What would be the price point for a complete 60%, let's say?
WhatsApp has recently announced their plans for their API after a very long beta program (open to enterprise companies only). They will not be working directly with customers but have chosen 20+ partners through which their API will be available (e.g. Twilio).

At the time of building this project this was not yet available. And automating WhatsApp was somewhat of a hassle.
My Autistic son does this in a couple of seconds. He can only really do the last 50 years tho.

Savants who do this are called "human calendars".
Love them or loathe them they are free from the usual bias of the major newspapers. They are not owned by an individual of extreme wealth setting the agenda, sometimes on day to day issues and prospective governing party e.g, Murdoch doing a deal with Blair. They're owned by a trust which, since before the war, aims to keep the paper's liberal position, without party affiliation.

I don't think there's another UK paper without a sugar daddy, and suffering in reporting as a consequence.
Cant we agree that shipping of jobs to china was wrong and that trying to correct it is right? On more or less all metrics the economy is doing better lowest paid salaries are rising faster then managers, people are starting to save again, jobs are coming back. The trade war is necessary to save the US economy from the same faith Europe is about to get if they dont start taking a stance against china.
This would take seconds to minutes with BigQuery or Athena.
Getting better at coming up with viable business ideas
"Commercial and political bias" in that quote refers to external actors (parties, companies, etc) having undue influence on their reporting, by for example party ownership (surprisingly common in some countries) or large advertising contracts tilted to some side of an issue.

It is impossible for anything written in an article to be bias in the sense of the word clearly intended. What you are labelling bias could possibly be the outcome of bias. It could be evidence of bias. But since you bring no new argument, your logic is just circular: "this is biased because it's from the Guardian. And the Guardian is clearly biased, becaue they wrote this."
Plus POSIX join requires pre-sorted inputs.

BTW, there's never a bad time to mention http://johnkerl.org/miller/doc/ ...
First, rear seat height is much higher. Rear seat couch is much more unadjustable. Climate control for rear seats that really work. Rear passenger comfort is a head above Tesla's

Materials in interior are a grade above Tesla's. Everything feels much less "plasticky." I don't demand unicorn leather, but Tesla's first gen model S materials are of no higher grade than that used in "economy cars with leather"

Suspension is a bit better, Tesla is close though.

Sound insulation is better.
US net international investment position is a real disaster waiting to happen (-$10T):

https://fred.stlouisfed.org/series/IIPUSNETIQ#
An alias if this is blocked in your country :

https://sci-hub.ren/10.1002/pmrj.12305
You shouldnt be downvoted.

I find the language very highschooler-unfriendly too, so teaching the youth will be difficult.

I love FP ... but the terminology excludes smaller children, and non-mathy people who can still program. Its a shame.

The best case scenario is when these concepts simply become compiler specific or core libraries.