skysight-inc/HackerNews huggingface dataset:
I’m not convinced the measurements are really meaningful in this article. The author seems to be running a bunch of threads, measuring the time from when one thread starts unlocking the lock to when another thread gets it and calling this “idle”. I can’t find any mention of how many threads there are, how many CPUs, or what else the system is doing.

So this is measuring a mess of a few things:

For mutexes (assuming all the implementations actually make syscalls for unlocking), this has something to do with how long it takes for the scheduler to activate the waiter and run it, plus how long the scheduler waits because the system is doing something else or it wants to try to avoid bouncing a task between CPUs.

For anything that does not involve the kernel in unlocking, this is really just a measurement of the pauses in execution of long-running threads that continuously hog the CPU. If the thread is also calling sched_yield(), the results are erratic, since sched_yield() more or less means “I don’t want to run now, but I’m not actually waiting for anything visible to the scheduler and, um, run me again soon maybe?” This is almost always the wrong solution. Other than that, this test has essentially nothing to do with which spinlock is in use, unless the spinlock itself wastes time failing to figure out that it’s ready.

From old memory, the Windows scheduler is (was?) mostly based on per-thread priorities, highest priority wins, where the priorities are occasionally automatically adjusted. So, if you set a high-ish priority, you get to hog the CPU. In contrast, Linux tries quite hard not to let normal (non-RT) threads hog the CPU, so a thread that effectively runs continuously measuring pauses will detect significant pauses in which Linux decides that the rest of the system deserves to run too.
What I want is Google Maps and the shortest routes, but constrained to only right turns, at least at intersections without lights.
Toyota is pretty much the market leader in hybrids and has been since the beginning, if and when they decide to go all electric I really don't see what would hold them back.
more things are available from the home row than with typical windows editor keystrokes; less pinky and more big 3 finger locations than in your typical windows editor keyboard shortcuts as well. Also once you get the basics down you can learn more powerful keystroke combinations than you ever imagined on windows text editors.
I wouldn't say that. They have been suffering from a lost decade that has lasted 30 years. Social stagnation is the highest it's ever been. Yes, there is still a lot of social cohesion but that's maybe just... because they're japanese? Japan is the country where fining families for an suicide that stops the train works because suicidal individuals don't want to inconvenience their families.
VidGear: Video processing library for Python lovers
While I agree with much of your sentiment at least two things stand out as not quite right:

> China at its historical peak was never more than a regional power

This is entirely a matter of foreign policy. In terms of production/population/capability, during many periods ancient china would rival/surpass the greatest contemporary empires. I don't think it's appropriate to say "they were not that great" if the main thing that differentiates them from "great" empires is that they didn't pursue a program of unconstrained conquest (and often closely related enslavement/ethnic cleansing).

> the CCP has done more to hold China's development back than western colonialism and the war with Imperial Japan

This is also not very clear. India had opportunity to work with the west/open market/democracy earlier than China yet is clearly falling behind China in development. In fact, I think one of the main reason for such compliance on the part of Chinese populace is that the standard of living really did skyrocket all within single generations. In 2000 people lived incredibly better than in 1980; now entering 2020 people live much, much better than they did in 2000. To disregard the magical transformation in standard of living (especially in urban areas) is disingenuous.

----

At the same time I don't want to detract from what I believe is the main point. The deep ethno-nationalism and the sick man of Asia narrative that the government is instilling in the youths is truly troubling. It blinds seemingly educated people to obvious abuses by the government and casts the specter of "evil US" as a boogeyman justifying terrible Chinese actions. Even many of the Chinese I met in the US still believe in "US constantly acting nefariously to subvert China" story, despite living in the US for years...
Six Eclipses, Three Supermoons and a Rare ‘Great Solstice Appulse’
Exactly. I've never considered voice assistants because I don't want recordings of me or my family being used for who knows what.

I've just looked over the docs. I'll probably be playing with this very soon.
There's lots of sources around it:

From March 2019:
"The recent jump in paychecks has come with an unusual characteristic, as workers at the lower end of the pay scale are getting the greater benefit."

Ref: https://www.cnbc.com/2019/03/13/workers-at-lower-end-of-pay-...

From October 2019:
"According to analysis by Nick Bunker, an economist with the jobs site Indeed, wage growth is currently strongest for workers in low-wage industries, such as clothing stores, supermarkets, amusement parks, and casinos. And earnings are growing most slowly in higher-wage industries, such as medical labs, law firms, and broadcasting and telecom companies."

Ref: https://www.theatlantic.com/ideas/archive/2019/10/labor-depa...

And Goldman Sachs says the same as of November, check out page 7 specifically:
https://www.goldmansachs.com/insights/pages/outlook-2020-f/U...
It's basically short-term lending market. Think overnight, or within a couple of weeks, as the loan terms. The full name is Repossession Market, since it acts like a giant pawn shop. You walk in with some collateral, and walk out with cash and a promise to repay a little more to get your stuff back. Recent events have caused cash lenders to step back, so the Fed has been lending (more and more...) over the last couple of months.

Why? Probably better to not look too closely at that Leviathan, citizen!
Ask HN: Macbook Pro with external Magic keyboard and Magic pad experience
I've a Macbook pro 2015 edition. I've been thinking of using a magic keyboard and a magic pad to get past some RSI issues I've been having in my shoulder. I've tried both the magic keyboard and the pad in apple stores but I am looking for some reviews about its long term usage. Anyone here at HN has a similar setup and would like to share your experience?
If you spin up a digital ocean droplet for $4/mo, then enable droplet backups for $1/mo, you'd be able to use rsync proper. Any hosting service would serve this task, but follow hardening guides and move ssh off of port 22.

It looks like rsync.net would be cheaper, though, and have the benefit of zfs scrubbing.
If you are running Windows 10 home for professional use, you’re at best being negligent.

I run win 10 pro, just as I ran win7 pro before, for home use. A small business has no excuse to do otherwise.
I hate to mess with your physics education but silicone covers for all your metal pan handles is a godsend, even for atheists.
> Or do developers just assume that their UI code won't ever need to scale to large numbers of items?

If you have enough items that a copy of all attributes is noticeable to the user, the user will never realistically see those items. (We'd be talking about thousands of them minimum) Or alternatively you're loading A LOT of data per item. Either way, the issue in almost every single case is not that the copy takes too long.

I mena, there are edge cases like an endless list of small items (twitter?) which someone scrolls for a long time and then makes a modification. But then you should know it's potentially a REALLY long list you need to handle.
Uh, no. This is simply not true with sublingual tinctures where the concentration is very well-defined per drop. This only holds true for brownies and other food-based edibles where you don't know the concentration...
Cannabis is less likely to be adulterated than other drugs, but it does still happen and legalising and regulating it makes this less likely.

Page 36: https://www.researchgate.net/publication/235912814_CUT_A_Gui...
> The Japanese, Korean, Italian, French and other Americans still have not made any worthwhile EV cars either.

That's wrong. And pretty US centric.

The Japanese / French have the Nissan Leaf and Renault Zoe that have excellent sells in their respective countries. They however do not fight on the same ground than Tesla.
> cat `find * -type f | grep .php` | wc -l

I have a project that is going on since 2015. So ran the above command to see how much code we have. I was expecting our models to be really large turns out we have ~(404 * 3) rest endpoints. the scariest thing was Vendor dir.

LOC per dir

Models: 15053

HTTP Endpoints: 28877

migrations: 49757

Laravel: 81728 (Framework)

Vendor: 1158299 (third party php code)

Total: 1797417
The VW Polo turbo diesel has a list price of 15,000€ before discounts.
Redux is tremendously verbose though. Message passing isn't attractive when the state space is big.
What is the level of comfort you get in a basic soundercLasse? Can you describe it?
It's mostly because so many special interests have gotten loopholes put in for their particular pet project, simplicity be damned. That's just the way politics works in America.
For all but the most basic details my rule is that if I have to remember it, the system is broken. I know a small handful of passwords off the top of my head, a few email addresses, my wife's and my phone numbers, and the phone number of my home during childhood. (I'm obviously exaggerating, you know, for dramatic effect.) This trick requires so many mnemonic devices that it makes my head spin. It's still impressive if you can do it. Just not for me.
This is great news.

The US is making great strides towards joining the rest of the civilized world in the 20th century, finally.
Apparently it's work in progress: https://github.com/synesthesiam/rhasspy/issues/61

Sounds like it's not too far off.
Are you unfamiliar with MSVC and Visual Studio?
The line between IP theft and literally just learning things gets very blurred in the sciences. Under some people's vague standards, I commit IP theft every time I take notes in a lecture, or apply knowledge I've learned elsewhere. Am I not supposed to use calculus outside of the United States if I learned it while living here?
This does indeed happen. For instance, evening winds in southern coastal CA will often blow out to sea ... perhaps in the SFBA it’s similar.

But in this particular instance, it’s hard to be sure if that’s the explanation without knowing more. The data will only be observed once or twice per day, due to the MODIS orbit, and clouds and other problems will cause dropouts. These website data seem to be interpolated spatially and temporally using wind fields and perhaps other side information. So these areas of apparent high CO concentration could be due to the transport model or the prior as much as the actual observed CO data.

The website doesn’t say what data product they are using. The MOPITT website advertises daily data, but the displayed data are faster than that.
As far as China at its historical peak goes, the sentiment I was trying to express is the PRC's goal is for China to regain the world's most powerful nation and the worlds most powerful military with all nations recognizing this and being tributaries (and that this position is an exaggeration from historical truth).

On the second point, the CCP certainly deserves a lot of credit for Deng Xiaoping's reforms and the economic expansion since 1978. Though much of the early gains was to undo the Mao's collectivization of rural lands.
Somebody said that in an efficient market prices are within a factor of two of correct. People are so caught up in the fact that we have prices of everything to fractional pennies every microsecond, that they can't conceive of just how much is false precision.

Can't you begin by admitting that there is some uncertainty, that every price implicitly has some +/- amount associated? And next, consider that when an entire company is purchased, it usually costs a lot more than the immediately prior trading price, showing that separately from uncertainty, there is a big range between different shareholders?
hmm, not sure about that. havent heard any changes on my end.

thanks for using Netlify!
>I jumped to a personal blog of an engineer who was writing impressively deep thoughts about unit testing, dependency injection, Go, Java, hardware, architecture, backend, frontend, performance, ... Very, very thoughtful posts. I would not be able to reflect so deeply on those topics, even if I am relatively familiar with them. I have no other choice than believing I am stupid, at least in comparison to such person.

Do you write? Yes, your first draft wouldn't be as good as their 10th or 20th draft. No-one can write like that. No book or impressive blog post you read is a first draft. Try this talk on How To Write a Great Research Paper[0] (Good for any kind of writing, not just papers) He mentions how everyone feels their own ideas are pathetic. But you start by writing down the pathetic idea. That suggests other questions, connections.. It may develop into something not so pathetic. You don't write about your thoughts - you find out what they are by writing. I've written one academic-type paper, and 95% of what's in it, I learnt by writing it, and wouldn't have learnt otherwise. Which was a surprise! Whatever I wrote, there were some questions remaining, which were easy enough to answer (your brain does it automatically for you), and that continued until I was way past where I ever thought I'd be, or even hoped to be. Studying is great, but it's other people's thoughts. By writing you develop your own.

Just get busy doing what you're doing, stop comparing yourself with others. That's no way to live; it's torturing yourself. Learn to be kind to yourself. Would you continually nag a friend about how much more brilliant everyone else is? Sounds like you also eliminated fun from your life :-( Good luck!

Be careful of how you live your life, you may end up having to live your life that way.

[0] https://www.youtube.com/watch?v=WP-FkUaOcOM
Do you think the journey for most employers will be to become remote-friendly first before becoming remote-first, rather than jumping straight to remote-first?

That's a very interesting insight and probably brings a lens of reality to actual extent of the movement towards remote. To the end that remote-friendly is the first step towards remote-first (and that the big tech companies already have some employees that are distributed), it'll be interesting to see whether there will be a step-change in the volume/percentage of remote-first roles once any of the big tech companies make the leap...
Agreed. I much prefer the style of rematch[1] where you bind directly to the actions rather than creating a constant to check for in a switch statement

[1] https://github.com/rematch/rematch
How 2020s Will Look for Indian Startup Ecosystem
Kaldi is much much better, but when used for low latency recognition on the device, the accuracy will be lower than it could be because one would use much smaller models adapted to the constrained proccessing power of the device.

It would still be much better than pocketsphinx.
You can do pose estimation with basic statistics?
For anyone curious, I believe this is the relevant paper: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6826138/

And a blog post about it: https://www.activemotif.com/blog-reversing-epigenetic-age
Probably because the comment consists of an inflammatory claim and a flamewar trope. We're trying for a different kind of conversation here.

https://news.ycombinator.com/newsguidelines.html
Honest question, what do you mean by this? In your opinion, what is The Guardian’s bias / “politically loaded view of the decade”?
Nobody cares about smaller sites that much, larger sites more so. Because everything counts in large amounts, therefore larger sites are a more valuable target.

In general, exceptions happen and apply as alwasys.
What are you talking about?

The comment was that nuclear was replaced by renewables for power generation.

Neither nuclear or renewables replace coking coal. There is a hydrogen steel cycle that can though but not in industrial quantity yet.
You're probably being downvoted because this is a nationalistic counternarrative its own right, and we're looking for thoughtful conversation instead of flamewar rhetoric here.

https://news.ycombinator.com/newsguidelines.html
Ask HN: What Are Your Technical/Business Resolutions for the New Year?
That particular set of rules is a little Machiavellian for my liking bordering and possibly on the unethical but yeah that is roughly what I meant
Technically you can do it in any language, but in software engineering we tend to stand on the shoulders of giants in order to get the job done on time.

A lot of original excellent data processing, statistical analysis, and ML libraries were built into Python and R, so all the deep learning stuff was built on top of those. R is somewhat harder to integrate into a production pipeline due to its typical reliance on something like RStudio, so Python ended up being the de facto standard as it is also well supported in cloud computing environments.

With TensorFlow API's being written for Swift, we might start to see Swift competing with Python.
What do you mean by this? I have just as much control over my device and my applications on OSX as I do on any other OS.
https://www.foodnetwork.com/recipes/ina-garten/apple-and-pea...

I was out of apples, and only had 3 pears, so I weighed them, divided by 4 lbs, and scaled the rest of the recipe by that ratio. It turned out pretty well. I highly recommend using a digital scale with tare to weigh ingredients. It makes things so much easier and more accurate.

I wasn't really previously aware, but apparently a "crisp" has oatmeal and a "crumble" doesn't. This may be Americanese. In any case, it's much easier and faster than a pie and just as good with ice cream.
That doesn't follow at all.

I think you meant to say "I hope we develop fusion so we can leave the solar system".
This looks like an algorithm that could be useful if programmed rather than carried around in one's head.

It also still requires a lookup to bootstrap it: the day-of-week of the last day of February for the selected year. So it's a clever and well-observed compilation of identified patterns, but not self-contained.
On chrome you just click on the little lock in the address bar and click cookies > block
Timely warning! I was looking at Surface at the store waiting for the New Year sales.

Now I'll just stick with a ChromeBook.
I would like to see the measurements when the threads are explicitly assigned to their respective CPUs.

It surprised me to not see even a mention of CPU affinity.
Publishing can be reasonable but it seems like OP wanted to contact the author first, which is a good idea IMHO.
https://darknetdiaries.com/episode/54/
How this usually works is that samples are relevant to specific experiments. For example, maybe you're testing how some particular genetic modification affects how cancer cells behave in response to some drug, or whatever. These vials of cells would be what you get halfway through such an experiment, after you've treated the cells but before you've had a chance to analyze them. Postdocs and studentships often end midway through projects like this. The raw value of the materials is low, and it might take a postdoc days to weeks to reproduce them, depending on complexity. There is also an extremely high chance that the cells are completely worthless, i.e. that the treatment was botched or inconclusive. If the student hadn't taken the vials, the project might well have been abandoned, due to lack of manpower.

With that background, the morality of "smuggling" these cells is a bit of a gray area. On one hand, they're just incomplete work that the student wants to finish elsewhere. Keeping them is just like me keeping my notebooks when I move, even if I haven't finished solving the equations therein. On the other hand, if the project is finished elsewhere, credit won't properly flow to the affiliation where the work was started. In theoretical physics, we really don't care about this (I just finished a project where 2 members changed affiliation midway through), but in biology there's the cost of facilities, and the local expertise that gets you the raw materials.

So there is an issue here, but I certainly don't think it's worth the hysteria that will unfold in this comments section. I think the real issue is that a lot of people on this site are disgusted at the idea of Chinese people learning science. But to us scientists, the spread of knowledge is a virtue. After all, the end goal of this student would have been to publish in a journal -- which people from any country can access.
Many business data is tabular (possibly with time component), and if you are working with tabular data, the OP’s advice is sound.
European EV cars don't compare to Tesla

https://www.youtube.com/watch?v=zSjYra7cYqY
It is a particularly narrow and somewhat shallow list, even for the guardian.
I heard about that many years ago, but isn't it something that fundamentally has to be customized rather than mass produced? Of course, there are other therapies these days that are as well.
To anyone interested in the webgl version, it would work something like this - https://victorribeiro.com/voxel/ - click to place a bloc, click and drag on the sides of the screen to rotate the view, keys 1 to 9 change the block.
It's amazing. It can be difficult at times, mostly due to peer pressure, but I think that part of what's great about it is that it flexes your resisting-peer-pressure muscles.
Strictly speaking there is no need to have any reserve currency. Trade between two countries can happen directly and prices can be denominated locally.

In a true crisis scenario international trade can fall back to a fixed standard (gold, crypto, whatever) for settling things.

In practice though I'd be surprised if all those countries were really unhappy with their currencies becoming the reserve. Being the reserve creates demand for paper which can be exchanged for real goods - a substantial win for the creators of the currency.

One of the big reasons to use the US dollar as the global reserve is the US government exerts itself to make that happen. If they stopped, others would cheerfully fill the gap. The real point of resistance is replacing the SWIFT system.
This is great news. NPR Planet money podcast cover this topic in detail past 2 years

[1] https://www.npr.org/sections/money/2019/04/03/709656642/epis...
Why not using simply using Keepass [1] which is open source, free and works offline. Also Keepass has Desktop, Android, IOS, web clients.

[1]: https://keepass.info/
What about the built-in Context api ?
We know what the IRS knows because the majority of people get the same forms as the IRS as far as income goes: W2, 1099, 1098, ... Unless you’re self-employed, the IRS only misses some deductions or foreign income.
Usually "breakup" is a byword for regulate.

However, it's possible to see how Amazon being broken into at least one online retailer, a web services company, and a logistics provider and how that may increase competition in each of those markets.

Further, even in your social example, people used Instagram before Facebook bought them and likely still would if divested, and Snap, Tik Tok and more are going strong as independents.
It's hard enough. I haven't needed it in developing/contributing to my own frameworks and there's an infinite amount of things to look into. Right from the Redux docs (https://redux.js.org/faq/general/#when-should-i-use-redux) - the link https://gedd.ski/post/what-not-to-learn/