skysight-inc/HackerNews huggingface dataset:
I just looked at the source code of left-pad for the first time, and it's strange. They noticed that concatenating a bunch of single-space strings is O(n^2), and optimized it to O(n log n) by using repeated doubling. So in the end they take longer than O(n) to fill an array with a constant value. Why?

https://github.com/left-pad/left-pad/blob/master/index.js
Dramatic fall in China pollution levels ‘partly related’ to coronavirus
Okay, I either didn't see it or that was added after my comment. Either way, that is exactly what I wanted.
Freeman Dyson on working with the greatest physicists of the 20th century
The last thing you want is to architect your backend for a single hetzner server and then find out that it's not enough and have to rewrite everything. If your entire goal as a VC funded startup is to "get big or die" then optimizing for a single server is a waste of resources.
> the assumptions are well known field axioms. They form a good starting point.

I gave Peano as an example. I don't mind the assumptions, as long as they're reasonable and presented before the proof. Another comment pointed me to the fact that they were mentioned in an earlier paragraph, so my issue is resolved.
Examining ice giants with NASA's Webb telescope
This discussion wasn't targeted at healthcare workers, and I never said N95 masks weren't effective (when worn properly). N95's are the type of mask I'm referring to in the second half of my comment. Worn properly, they are an essential piece of PPE.

The difference is, healthcare workers are trained in the use of N95 masks, undergo annual fit testing, etc.
My data scientist doesn’t know how to properly start an EC2 instance
Web browsers might not be "fully" a mistake but only a curb on the path to evolution. Old tech with good genes (lisp, news) wasn't fit for mass acceptance for devs without the historical background and only desire to explore a new market with what is cheap on shelves.

Swings and roundabouts
Is a std::thread a thin wrapper around pthreads on Linux?
Indeed. And there is evidence PRISM is not.

If there's evidence for the other program you're describing, it too can move out of the realm of conspiracy theory fiction. But until there is...
> IANAL, but this is not legal under the GDPR

You’re coming to my country. Where my business is located, my servers are located, my business is conducted. I only use USD, and only operate in the U.S.

If my company starts operating out of the EU, then maybe I have to worry about GDPR - if I make enough money for it to apply.

GDPR means nothing if you’re not under EU jurisdiction. I’m 100% confident the US government isn’t going to relinquish its sovereignty and say the EU can go after US businesses not operating in the EU. But if you’re in the EU, you have to follow EU laws.
Why is there such a big difference in timing between Skylake and Rome? Something compiler specific? The number of steps required to create a thread should be identical.

I’ll also be interested to see the same benchmark but using pthread_create directly.
What does this analogy have to do with multiplication?
In the initial studies out of Wuhan, about 15% of Covid-19 patients required critical care. These patients were treated with a ventilator, antiviral medications, and the support of an ICU. The mortality rate was about 2-3%.

This scenario does not scale very well in a pandemic because there are simply not enough resources to provide this level of care to those who need it.

There are about 5000 ventilators in Canada, for example, meaning that the country can effectively treat, at most, about 33,000 cases, assuming that the 15% ratio of total sick patients to those requiring critical care holds true.

The mortality figures that we have so far are based upon everyone who needs it receiving critical care. As the pandemic scales, the mortality figures could easily reach 15% as the number of sick greatly exceeds the capacity to treat them.

This project shows, therefore, that someone understands the real problem of Covid-19 and is attempting to solve it.

I'll take a plywood ventilator over no ventilator any day of the week, even without the other resources of an ICU.

I suspect a jet ventilator would be easier to build and more effective under the circumstances, so maybe that should be version 2.
Thank you for the implementations! Do you have any suggestions how to test the postscript code on mac/linux? I tried on macos using ghostscript, but I get the following error:

$ gs cat.ps helloworld.txt

Error: /undefined in ARGUMENTS
...

Thanks!
This was not about inline documentation in source, but about separate readmes.

If a hand typed ascii graphic does not suffice for code comment embedded docs, then it would be better to include separate docs altogether.
Anyone using Android-x86 in everyday tasks? Like to get access to Android-only software?
It's because it only takes one flip of a switch to go from collecting aggregate data to collecting heavily personalised data.
Wouldn't it be nice if this was actually part of the OS networking stack?

Wouldn't that make it easier to write correct (for some form of correctness) distributed applications,
leaving the messy details to a proven lower-level stack?
UC Santa Cruz fires 54 grad students who were striking for higher pay
This doesn't seem too controversial of an opinion, haven't small modules already been at the core of a Unix philosophy? Once usage patterns emerge, these smaller libraries are composed into frameworks which ultimately build end-user applications.

The entirety of engineering is premised upon leveraging powerful abstractions; cf. the reason we're not still coding via electric charge.

Edit: To expand on the analogy: "A two-person startup already uses twenty-eight other tools" [1].

[1] https://news.ycombinator.com/item?id=22449314
Why Cloudflare Chose AMD EPYC for Gen X Servers
It is a Tuesday(1)

(1) standard probabilities apply.

But seriously, yes. I am French and write the date as 2009-03-01 and get weird looks.

I work in a French company and some people seem to assume that it is fancy to use a US format for the dates. I refuse to read a document which did not have an obvious format.

Heck, even MAR/01/2020 could be acceptable but why? Why?
totally - asking the right question is the hardest step of all, and in my experience normally the second to last one (the last one being answering it, which often takes about 20 minutes).
That’s an interesting but pretty academic view of innovation I think.

From my own observation there are only a few markets that really seem to reach a Nash equilibrium and drive prices to the minimum sustainable value.

A great example is the mattresses business. You would think that there’s not much room for high margins there since it’s such a commodity technology. Good foam based mattresses for example can be mass-manufactured for around 30-50 $ according to industry sources. Shipping is also easy and cheap as they can be vacuum-packed and shipped as regular parcels. Yet, the top selling mattresses cost around 200-300 $. How can that be? I think there are multiple reasons for it but the gist is that price alone does not determine which product wins, psychological aspects play a central role as well. And while in the long run a Nash equilibrium can be reached in practice it’s often the case that the manufacturers in the market don’t compete too strongly on price since they understand the meta-game and know that they might ruin the market for everyone including themselves if they compete too strongly on price alone.
Yes, it's effectively like free -- though C++'s "auto" is probably a closer idea.

The main difference to C's free is that you simply cannot double-free a value (without using unsafe). That's because a value is only dropped when it falls out of scope -- and since it values only have one owner (and references must not outlive values) there cannot be any dangling references after it's dropped.

The documentation for std::mem::drop is explaining that dropping a value is a property of the language and scoping rules -- thus there is nothing for the function to do other than take a value and let it go out of scope.
I'm not sure what TFA's talking about wrt scales showing someone's age as being 1/3 what it actually is -- but the claim:

> They use wishful thinking. Body composition scales are crap, don't trust their numbers.

... is difficult to assimilate.

I use Omron consumer-grade gear - all the in-depth reviews / assessments I've seen suggest it's reasonably accurate (unquote) so long as you're not an outlier (massively overweight, underweight, overly muscular, under/over-hydrated). But in all cases it's great as a trending tool.
‘No evidence of fraud’ in Morales poll victory, say US researchers
ssh whoami.filippo.io
the SSH server that knows who you are
> First of all, if the foundations are sound and the core language provides a good enough module already, neither large frameworks nor small modules need to duplicate that.

A language standard library is just another framework - Python's one is famously "where modules go to die", but we see much the same problems in e.g. Boost. A "good enough" solution in the standard library can be worse than nothing, as it means better alternatives struggle to gain enough momentum, and this gets worse as time goes by: functionality that's in the standard library has to evolve slowly.

> And if it isn't included, why would 16 small subsystems have fewer duplicates than 2 large frameworks?

Because the common things can be in their own small pieces. If a database-access library, a web templating library, and a config parsing library all need to do string manipulation, then if they all implement it themselves we'll see duplication, whereas if they all use an external library then we won't (this is after all the point of libraries). Maybe the ecosystem will have two different string manipulation libraries on the go with one gradually displacing the other, but that's likely to only happen when there's a genuine improvement being made. Whereas if everything's a big framework then eventually everything implements its own copy of the common utilities that just about everything ends up needing - collections, datastructure manipulation, all the really generic stuff.
Is there? How often does the american federal government shrink? How would it shrink, if it turned out that it was too big?

In a democratic government, you're not electing the central planners. In the american government, you're not electing any of the millions of three-letter agencies that rule your life. You hire a president, and he may or may not do something, who knows.

At least a market has some contact with a ground truth of bankruptcy. If there were several competing EPA's competing for money on the basis of their efficacy, that might be interesting.
Why write code to left pad your strings, when you can get an O(n log n) implementation just like that. You only need a "minimal" amount of bundle tooling and a few hundred MB of node_modules. Count your blessings. This is the way.
There are far better tools for managing knowledge than wikis. Check out Bloomfire hhtps://www.bloomfire.com
They offer one such solution. You just upload documentation or type into the platform directly and every word in the document is searchable. From the site it looks like they even transcribe video and audio files and make them searchable as well. I know someone who has used it and loves it. Just to say, there are tools built for this....
One thing I really wish raspbian had is full disk encryption.
I'd go for vanilla Debian, but cannot since raspberry pi4 hardware is not open enough.
Benchmarking in C++. Who knew!
Foods to combine together and to eat at night to force your body to burn fat
We do ~1.1m sessions per month according to GA, comparing to our Clofudflare visitor data real number is ~35% higher. I think CF is going to be as accurate as possible and both say the filter bots out.
in complex plane you can go

e^[i(2nπ+π)] × e^[i(2nπ+π)] =

...

e^[2i(2πn+π)] = 1
Learn how large-scale open source projects are managed and governed. Set up a team culture that could support remote working, even though teams are at this moment co-located. Can your team keep generating the same output even when they don‘t see each other everyday holding meetings? Such teams tend to leverage more async and written communication, write more complete, comprehensive documentation.

A good code review culture also improves knowledge sharing: We sometimes have two paragraphs of explanation in a pull request that changes one line of code. Those pull requests are forming a part of our institutional knowledge base and they are oftentimes referred during future conversations about past decisions.

The team should understand that spending a bit time today to write things down will save much more time in the future when the same thing has to be explained again and again. Also the team should be encouraged to spend this time on writing documents and not punished because of not starting with the next game-changing product feature.
Fast table based software AES implementations leak bits of the secret key in array offsets, so anything that can use the cache on the chip can get the key. A software implementation of AES that is secure against side channel attacks by using bitslicing is slow, you would be better off using chacha20-poly1305.
Shadertoy is pretty far removed from actual games. Both in tje problem domain and technological complexity, not to mention the time capsule of webgl.

I'm not sure what you mean by shader based toolkit. Anyway in games the GPU is not just for graphics anymore (since many years) and this naturally leads to tight coupling.
This comment at the end is most fascinating :

"words would no longer be the only way we transduce our electrical impulses for outside consumption. We would have a new means to access ourselves, a language (like music) without syllables or phonemes."

Makes me think about possible futures of self-expression.
Or the digital world is an incredibly huge and complicated place that most people don't even begin to grasp. What is private and public is not obvious, and everything can quickly leak, be accidentally shared, ... And you lose control.

Stop blaming the users for what is systemic and legal faults - and in many cases really an issue not even of laws or of enforcement. Think revenge porn - nothing you can do to stop it, and only so much you can do to contain it once it's out there.
If your compiler throws an error twice, it doesn’t mean you are a failure, just that something else went wrong.
The Drone Databook (2019) [pdf]
New job board based on game theory
Language Learning Is Much Easier with Language Chat
we have lunched new referral based job board.
Are you hiring? We can host any tech openings for free. This is a first platform based on game theory. You just need to define reward budget. It's optional but to motivate people to recommend each other we are recommending to define reward budget.

If you are searching tech co-founder we also can help and host your requirement to reach extended audience.

Any feedbacks and opinions would be extremely valuable for us
While the comment insinuated they were paid by Twitch (Amazon), the reality is some of the biggest channels _do_ pay their channel moderators (creator to mods). A big example of this is CohhCarnage[0].

[0] https://www.invenglobal.com/articles/8040/cohhcarnage-on-how...
We find that Confluence + JIRA is a very effective way to pass knowledge around.
Great reminder.

Even if you pre-create a thread (thread pool), when the task is small enough (less than 1,000 cycles), it is less expensive to do it in place (for example, with fibers), because of the cost of context switching.
I'm not sure why you need 3 Terabytes of RAM in every server. Even if you were to replace every single application on your OS with a JVM based one (including things like bash) you wouldn't meaningfully hit that limit. If you have an application that does indeed need many Terabytes in the same address space then you probably have a very small number of servers. No one runs a 1000 node cluster where each node has 3TB RAM.
Serial numbers filed off: an author announced on his newsletter that he was going to turn on the "feature" of his mail service that would automatically unsubscribe anyone who didn't read the newsletter.

It tracked this, of course, by assuming that the mail would be opened in a web browser that would make requests for images.

He cancelled that decision:

"Logged opens for each newsletter are between 53% and 60% -- but an experiment a while back revealed that hundreds of you aren't logged, for various reasons around email security and that one guy who reads everything on a 1980's greenscreen monitor. Clicking of links depends massively on what's in the newsletter, plus the note in the previous sentence, but has gone as high as 41% of readers on one week this year."
Einstein was not enlightenment intellectual. He lived well after that period and was more of physicist. He did travel from Germany to united states, through not for fun.
View the diff of CDC's Covid-19 updates
It shows that subtracting a minus one is equivalent to adding a plus one. The one logical leap that isn't explicitly spelled out is that subtracting X is the same as adding (-1)X. But I'm pretty sure that's the definition of integer multiplication.
If you rotated them manually every week then why not. Costly, not scalable, prone to errors etc.

There is probably a list of sites which forgot that there was a process. I saw that happening in Crédit Lyonnais (a french bank). On a Saturday night.
Lean Into Your Side Projects
> Money can become worthless very quickly.

Smart enough to foresee it, not smart enough to avoid it.
> MUCH more energy efficient (you only heat the cookware, not the air around it)

They can be even more efficient, if you put insulation between the glass and your cooking pot. The pot is about 1cm from the coil even when directly on the glass, so additional ~3mm is no issue.

I reduced the fan speed due to noise, so I keep 3mm pot-sized cardboard on my induction plate as a precaution, to reduce underside heat loss.

Without cardboard, the plate's lowest setting is slightly more than I would prefer for cooking (~100C, minimal boil-off). With the cardboard, I need to periodically turn it on/off or it's just too wild for cooking with cover on.

Maybe better designs waste less, but there is significant heat transfer through glass, which is then fanned out the back.
Android Call Log permissions banned
For my personal use I create detailed "How To" documents that detail the exact steps required to do something non-trivial. Others have found them useful when I posted them on Confluence.
I have a tablet with an intel processor, so yes I am running Android x86.

Although it is LineageOS that I use for that and not directly this.
Yes, I usually upload my images directly into iNaturalist, so it usually suggests an ID for me when I put an ID on each observation.

I found an iNat page on uploading observations from Flickr [1] which is probably what you used. It seems to say you can add an ID for each upload but it doesn't say if the AI will help you with the ID, like with the direct uploading to iNat.

[1] https://www.inaturalist.org/pages/flickr_upload
For process documentation (eg, not code docs), we use a company shared Google Drive folder with subfolders broken down by department (sales, marketing, support, finance, general management, hr, etc) and within each we have documents and checklists that serve as both documentation and quality controls for our most critical business processes.

We have videos, slides, spreadsheets, docs - we always try to use the best format for the job.

It's not perfect but you're right in that it has a huge impact on the efficiency of certain processes and therefore, scalability.
Yep. And all the serialization is futex wait/wake.
> We didn't write any documentation or have any internal wiki or anything like that, and everything seemed fine.

Just evidence that documentation != institutional knowledge. It's not actionable knowledge if no one reads it.
Show HN: Pinipig.js performant web framework that's easy for developers
If I'm a product manager, and I cut a feature based on inaccurate analytics and lose paying customers because of it, blaming the customers ain't going to bring back the money I was making off them.

Chrome's analytics ought to say nobody uses Incognito Mode, but they'd be dumb to remove it.
I just found it and after some trying its interesting!
On the unreasonable effectiveness of Richardson extrapolation
As much as I want to believe in that I doubt any system could support even 20% of incapacitated workers at the same time. Most healthcare system in Europe are barely at equilibrium.
Striking coincidence that I’m reading a biography on Jimmy Hoffa right now.

$2500 a year is a slap in the face to the $1800 / month the students were demanding.

Something needs to change there. For the Midwest small college town where I went $20,000-30,000 was plenty (for people without kids at least). I imagine it’d be a lot harder in CA coastal cities.
Tiny electric car looks like a washing machine and costs just $6,600
Moment will stop developing its Pro Camera app for Android
Consultancy work, especially if you are at senior/lead/principal level in many cases involves sales work.
There is a lack of viable non x86-64 hardware. Most ARM server vendors have shutdown before they even released their hardware.
Orange Pi 4B Review at Tom's Hardware
but it negates your point that lazy incumbents will get disrupted by nimbler competitors.

That mostly happens when the 'nimbler competitors' are in fact armed with a completely new technology, business model, etc.

ie, innovation is the key to change, not just decay of the old making way for more of the same, but more vigorous.
>, haven't small modules already been at the core of a Unix philosophy?

I assume you're talking about userland programs such as "ls", "cut", "grep", etc. ?[1]

But C Language is also part of UNIX and programmers typically link against a large more comprehensive "standard library" such as glibc:

libc.a, libc.so <-- includes printf

... instead linking of a hundred little object files specified explicitly like this:

printf.o
strcat.o
strncat.o
malloc.o
leftpad.o
... <hundred or thousand more .o files>

What happened with Javascript is the language didn't have a comprehensive "standard library" like C, C++, Java, C#, Python "batteries included", Go, etc. Therefore, NPM became an adhoc "standard library" via bottom-up crowdsourcing. There are both positives and negatives to that approach. One negative is that leftpad() isn't produced by a canonical entity like Netscape or Mozilla but a random programmer. When he wanted to take his ball and go home, he broke everyone's build that depended on it. That type of event didn't happen with "printf()" in the C Language world.

[1] https://en.wikipedia.org/wiki/Unix_philosophy#Do_One_Thing_a...
Brunsli: Practical JPEG repacker (now part of JPEG XL)
Is this site hacked or running dangerously bad ad networks? I'm getting malware attempts from "increaserev" attempting to autorun on load, and WTF is this: https://i.imgur.com/KycfPsf.png