skysight-inc/HackerNews huggingface dataset:
Python’s list comprehension syntax is based on the set-builder notation from mathematics. However, I think it would have been better to break with tradition and use a different order, one which matches the order of the equivalent nested loops:

flattened_list = [for x in list_of_lists: for y in x: y]

This is essentially the same re-arrangement that was made in C#‘s LINQ: it uses from-where-select instead of SQL’s select-from-where.
Maybe it’s because Americans are fat. Especially poor Americans who subsist on fast food and other junk. My guess would be that Indians in poverty are more likely starving than diabetic. Starving has its own health risks obviously, but being fat enough to impede your breathing isn’t one of them.
I worded that badly, I meant "at the expense of having to run node".
That page links to [0] which says that certain patterns become unsafe using the precise GC.

[0] https://dlang.org/spec/garbage.html#precise_gc
Not trying to be flippant, but going at what kids do - probably copy your behaviour while at the same time feel it's an uncool thing. :-/
Default Ordering of Title Options
Hey everyone. I made this because I got tired of hearing "If you enjoyed this episode, don't forget to leave us a review wherever you listen to podcasts."

I hope this is useful to any podcasters who happen to read HN.
I admit I am increasingly interested in doing this. Very hard to do however (without a religious reason to do so).
Hacker Folklore
If you wanted to delve into the original 1984 LISP/Scheme version by Abelson and Sussman, I recommend you take a look at

https://opendocs.github.io/sicp/sicp.pdf

which is based on the MITPress HTML version, released under a permissive CC-by-SA license.

https://mitpress.mit.edu/sites/default/files/sicp/index.html

(nb. The pdf starts out with a curious little 'texinfo foreword'. Being able to type `info sicp` in one's shell? I wonder ...)
> But I've found the 'Metropolitan Stockholm' number is seldom used as well, but looking at the definitions it should be more common.

The county (region, or formerly "län") is the area responsible for healthcare so it's natural that this area is used for all things healthcare related.

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

https://en.wikipedia.org/wiki/Stockholm_County
By itself it might be spammy but the author's replies here have been interesting and welcome.
I think it's Google Search (website, google.com) that shows AMP links more prominently if your user agent is Google Chrome (at least on Android, unsure on desktop), but I'm also not 100% confident, as I'm not using Chrome on either my smartphone nor computer.
To top it, some states announced a lockdown a couple days before the country wide annoucnement. TN went into lockdown on 23rd Mar for ex. Overall, I think the local govt of some states (esply Kerala) did well by their people. However, we aren't out of risk by any measure. There are some interesting developments in the region as well. A friend in SG mentioned the 6000 odd cases of migrant workers who tested +ve in Singapore, but during the same period ICU occupancy reduced there, with only one case reaching critical condition .. and recovering. Most migrant workers in SG are from the Indian subcontinent and are generally young and healthy.

It sure feels like there are something not well understood about this virus from infection/death stats alone.
> What's the thinking behind D's syntax?

Mainly that it be easy and quick for those familiar with C and C++ to get up to speed. With C, C++, and D, you cannot really know what will happen with the argument without looking at the corresponding parameter declaration.
My source for this is my own life. My town (San Mateo county) is still bringing in construction workers to build a playground. My pediatrician and dentist have both closed for non-emergency purposes, as has my physical therapist. And you didn’t even address my point about liquor stores - read the order from San Mateo county and see if you think their rationale makes sense.

I’m not sure why you think I’m arguing in bad faith just because I happen to disagree with you, but I’d appreciate you discussing the substance of my claims and not your interpretation of my intent.
They were passed on orally, not read, and they were not in particular intended for children. The frame itself is Scherazad telling the stories to her husband, a grown man.
Hi Walter, Thanks for doing this AMA!

Is "Better C" Done? Or are there any features/changes being planned? Will it always stay backward compatible?
Show HN: Enough with White WhatsApp Web
Could genetics explain the confusing array of SARS-CoV-2 symptoms?
Whilst I'm not sure it's healthy to have one company so dominant, and whilst Amazon's product range is not perfect:

1. In terms of logistics it seems to me they handed every other logistic company's arse to them - even those that have been running for hundreds of years and thus which you might hope to have some expertise in the field, and conversely even the newer companies which you might hope are relatively unburdened by inertia etc. Prime is awesome.

2. At the risk of sounding heartless, I don't care about all the struggling small competitors. Times and industries change, and Amazon's approach is simply more efficient. Does it really benefit society to have x thousands of people running their own e-commerce business rather than finding something else to do? Should we be putting restrictions on weaving machines in order to support manual weavers? Or supporting buggy whip manufacturers by taxing car makers? Where do we draw the line?

3. I don't care about the tax avoidance etc. I'd rather see Bezos spend the money on rocketry than have governments wasting yet more on handouts. The former will probably benefit humanity more in the end.

4. Price. If Amazon weren't almost always equal or very slightly above competitors I wouldn't use it. But it is. Why should I pay more? To support ye olde historical e-commerce shoppe?
> Yes, now that's a matter of terminology.

> A market and property based approach that locks people out, allocates resources according to ability to pay or some other social status, and sees signs of inability to pay, poverty, and hardship including death, as merely personal moral failings, and the market consequences as some amoral natural system, that's gentrification.

Yeah this is a disagreement about terminology. It sounds like you've just described a grab-bag of local social & political systems you don't like and you're attaching the word 'gentrification' to it all. We use the word 'gentrification' to describe things which happens in other places too, to mean different things, often in a non-perjorative way. Reusing that word to mean something similar but different is pretty confusing.
That experience was almost exclusively only one state - Kerala, and they have also handled this one in the best manner compared to the other states in the country.
The match between the energy of the photon and the atom orbits doesn't have to be perfect. Part of the energy may be added or removed as vibrations (phonons).
Yikes, thanks for the heads-up. Just tested on Firefox on a Pixel 3 and see what you mean about the text — had to fix a bug in the Wordpress theme's CSS.

Would you mind sharing where you are? The site is mostly delivered through AWS CloudFront, but I don't pay for the global edge nodes — just US and Europe. Google (and I) generally benchmark it at ~0.5 sec, but that's here in the US.
Which espresso machine and grinder do you use?
It might go beyond the temperature of the liquid, though: caffeine is a vasoconstrictor, meaning it restricts blood flow to your extremities, meaning you'd be better at retaining your core temperature. (That said, you should also be "feeling" colder in your hands and feet.)

(This is the opposite effect of alcohol, which is a vasodilator: it makes you feel warm by filling your extremities and outer layers with blood, but at the cost of actually losing core temperature. Hence drunk people easily freezing to death in winter.)
From what I understand:

Gene deletions are expected to some extent as a result of natural mutations.

The author is hypothesising that there should already exist natural virus particles ("in the wild") with key genes deleted that render it harmless to humans, and that these harmless strains may also be spreading in the population. We could possibly identify harmless virus particles with wide-ranging testing of asymptomatic people, and statistically identify what genes (or what parts of the genome) are important for disease.

The author's concept is that this would have potential as a vaccine. It's similar in concept to the polio vaccine, or giving cowpox to prevent smallpox infection.

In my opinion, the author is making several hypothetical leaps of logic that don't make this feel like a workable plan.

The author proposes to test 50,000 people and use this to identify safer strains: in my opinion that wildly underestimates what would be needed for this to have a chance of working.

Since the virus looks to be harmless in the vast majority of people it infects, it will be difficult and dangerous to distinguish strains that are genuinely harmless.
Nah this guy is an ed user for sure
It's a problem AI will have to solve on it's own, because humans won't do it for them as long as ignoring it is beneficial.
Germans capitalize their nouns in normal language. I wonder what effect that has on their code.
What a fitting username lol
Trying and not succeeding to keep the language simple. As evidenced by the sibling comment by pjc50. Fixed point numbers are at least as approachable as floating point numbers in my opinion.
Quite funny actually. Please summarize the following topics next:

- Amazon

- Real estate market and rents

- Walkable / bikable cities

- Broken tech hiring processes
Can you point to a study about this? In Bayesian terms most people would put the prior probability in favor of his common sense hypothesis. And you just have to Google for "psychology of risk perception" to get a few more studies in favor of it.
Do you live on the equator?
I like Ada. D took inspiration from it.
http://dosify.me should be fairly easy to modify to read the binary from url fragment instead of zip file
Ansible is mostly declarative.

by default you use Ansible modules/roles and specify the desired state.

E.g. have these packages installed, have these directories created/deleted.

Use cases not covered by modules can fallback to using shell commands
There's a third assumption that I find particularly pernicious: that the long-term health effects of getting and surviving COVID-19 don't need to be part of the equation. We're learning more every day about how the disease not only affects the lungs but also the heart, the brain, the kidneys, and so on. Treatments, unlike vaccines, are likely to be mere months away, and don't just include drugs. We're already learning about better ways to deal with the oxygen starvation that is COVID-19's hallmark.

Every person who merely delays getting COVID-19 until better treatment is available is a win. Even if it succeeds by other metrics, the Swedish approach will fail (has already failed) by this one.
CouchDB style conflict resolution with RxDB and Hasura
A colleague has an S10 which I've spent a lot of time using. It's certainly a massive improvement on what typical Android screens have been like in the past.

It's about on par with the iPhone.
libmir[0] is being used in production by different companies for numerical processing.

[0] https://www.libmir.org/
AMD Ryzen 5000 'Cezanne' with Zen 3 CPU and RDNA2 GPU Leaked
Ansible is pretty declarative actually, it won't repeat tasks that are already performed if it can figure it out.
List of awesome websites built with React.js
If you are new to both and to IaC and DevOps as a whole:

Ansible is for 'inside' virtual machines or computers, Terraform is for 'outside' virtual machines or computers.

Inside a machine you might have software, configuration, assets. Outside a machine you might network connections, firewalls, disks, dns etc.

This isn't a comprehensive comparison, but when you start from nothing, it doesn't really help to do a syntax, provider or imperative vs. declarative.
One of the things I really enjoy about developing in Python is that - somehow - various code style smells seem fairly apparent when reading the source.

Over time in a well-maintained project there's a tendency for these to clean themselves up, and a feeling that the codebase is in good shape emerges.

Variables become clearly and simply-named, the code starts to read more like a hybrid between a human language and a programming language, and the formatting and syntax become - generally - more straightforward and less 'clever'.

Ideally the patterns and algorithms also gravitate towards readable and efficient patterns (using generators, dunder methods, collection types, and so on where appropriate) until the code feels pleasant to understand and modify.

What's your favourite language for intuitively assessing code quality, and what are the indicators and criteria that you think you use?
Bullies do get accepted into social circles, as long as they deliver enough value to make up for it. Same principle at work here IMHO.
>Any scientist that had a differing viewpoint was a monster who didn't value human life. Any public health official who suggested maybe just the most vulnerable be isolated was met with scorn and a heap of emotional but illogical arguments.

All very predictable though.
In his live-stream three days ago, Andrew Kelley showed the beginnings of Zig directly generating debug-mode executables, very quickly. And that’s before incremental compilation and linking. This guy is amazing.

https://www.twitch.tv/videos/602715503 [edit: at 10:20]
Film is certainly not continuous—its spatial resolution is limited by the size of the individual light sensitive crystals that capture the image. These appear as the grain structure in enlargements.
I've always found 'proper' digital cameras are also in their own uncanny valley compared to negative film. Especially with older sensors, (and as an amateur with very little skill) it is so easy to blow out highlights with a digital camera in a way that looks completely unnatural. It is like its own poor emulation of film.

In a way the iPhone and recent HDR techniques on smartphones improve on this as it's now quite unusual for a phone to overexpose highlights. The tone mapping could be improved to lessen that 'fake HDR' effect you can see in your examples, but that doesn't seem like it would be too difficult.
Tankless heaters seem like the biggest over promise household tech I can recall in the last decade or two. I have not found over that I would even come close to breaking even on when replacing either of the water heaters in my house.
I guess it's a Maypole: https://en.wikipedia.org/wiki/Maypole
Except he didn't win. I believe he lost in appeal as it was deemed he acted in "bad faith".
Now with WebAssembly support thanks to LDC, the Better C experience is definitely much more productive than dealing with emscripten.

Then again, I am biased.
It's interesting how this works:

- enumerate everything C is doing bad.

- presents fixes with a full bag of unnecessary features that no c programmer wants.

I wonder why there is no "Fixed C".
They could easily work with local distribution channels (electronics stores, online retailers, carriers, ...)

They somewhat do that already in some countries.

I don't understand why nobody at Google cares about the image of their hardware lineup when you can buy cheaper products from 2nd-tier Chinese brands pretty much everywhere in the world. Even if I want to spend a premium to get the true Google experience, I can't!
I had to wait a month for a Pixel 2 XL here in Latvia couple of years ago. Some small shop only ordered 1-2 every month. 99.9% of people don't even know what Pixel is.
> Should we be putting restrictions on weaving machines in order to support manual weavers?

Well, we should if behind the scenes those weaving machines were kept operational by an army of low-wage workers.
Research on facial expressions challenges the way we think about autism
It's done for the time being. I'm sure we'll find ways to improve it, though! We try pretty hard to provide easy ways for existing code to adapt to future D. We're not quite ready to be craven to every past mistake yet!
For me Oberon is the better C.

https://www.miasap.se/obnc/oberon-report.html
So you still can see that it depends on some input. That is hugely more useful then auto.
In Japan the Coronavirus takes the weekend off so we see new cases reduced by 75% on Mondays. It's too obvious that Japan is under-testing.

With Abe's masks getting recalled and hospitals refusing to take suspected Coronavirus patients there is a lot that is going wrong here.

Closing the schools very early on has had a huge positive impact, but there are still way too many people going to the office.
>With highly generic functions, it's often not possible to know what they'll return without knowing what you'll call them with.

Of course it is. Map's type is "(a -> b) -> [a] -> [b]". D just absolutely and completely failed here, despite this being a solved problem 40 years ago.
I am creating a podcast and documenting the whole journey
Relevant post in a discussion thread that's related to the future of lazy in D: https://forum.dlang.org/post/ngkvntcrfdbsnxzfmcky@forum.dlan...
I hope somebody combs through the data and uses it to publish embarrassing trip sequences for public officials and their families because that's the only way politicians and local officials are gonna even consider not supporting these kinds of boondoogle dragnet projects.
NetBSD Blog: Improving libossaudio, and the future of OSS
What I wish I knew about React
The $1k Medium.com Challenge
They are though.

A lot of large power generators/distributors have battery and EV teams.

Tbf they are still only 1 or 2 people in a comapny with 100s/1000s employees but they are there working on this problem.

NB. a lot of the work being done on this is financial modelling rather than any technical development, so it may be that the tech just isn't there for them to implement.
Nickelates become superconductors when hydrogen is removed
If we do Zoom bug reporting, after you receive the confirmation email, you click the button in the email and a webpage loads asking if you enroll for a school or not. You normally have two check-boxes to answer Yes or No. On mobile, those check-boxes are not visible and you can not click anything (Yes, No or Continue).
Perhaps this varies, but I was able to pause all my scholarships to take a year off from uni.
Nitpick: Zig is more a competitor to the Better C subset of D, than to D itself.
It doesn't have to be specialized to []
The trouble is, everyone has a different view of what is unnecessary.

Fortunately, you can simply not use any feature you find unnecessary. We won't harangue you about it, I promise! (Well, maybe a little bit if it's so cool we just can't resist.)
Most items I order online at other stores in NL arrive the next day. Also, certain online clothing stores have a nearly equivalent system for returns.

Clearly, you don't require to be like Amazon for that kind of service.
I know. I think you and I have discussed aspects of it at various points in comment threads before. I'm impressed with how well D is doing things that are really very hard.
>It’s just that so many people on the side of science only believe because everyone else does, because it’s just “so obvious” and I can see how someone would lose their way if they didn’t have that faith.

But that's exactly what anti-vaxxers do. They haven't cracked open any textbooks and done the experiments to invalidate vaccine science either, they literally just doubt because they have more faith in their own cynicism and innate belief in conspiracy theory than science.

At the end of the day, everyone puts faith in almost every aspect of what they consider to be the axioms of reality, we're all trapped in the bubble of subjective experience. No one has the time, resources or skill to rediscover and reevaluate the entire body of human scientific knowledge from first principles, and it isn't reasonable to doubt the validity of science, or any particular field of science, simply because the people who accept it haven't done so.
In this case it's pretty much a rounding error. Median net worth for college-educated people in the US is < 300K [0] (and it drops fast for all other cases), so it's not far off from the annual income. You could plug the actual educational attainment distribution [1] and get finer numbers, but it won't change much for the purposes of this comparison.

[0] https://www.marketwatch.com/story/whats-your-net-worth-and-h...
[1] https://en.wikipedia.org/wiki/Educational_attainment_in_the_...
A compiler related question:

A often recurring C idiom is passing a pointer to a struct as function argument where passing the plain struct by copy would do. A big reason is the good old 'passing by pointer is faster', which I thought to be no longer relevant with modern optimizing compilers. Of course I found out the hard way that even on modern compilers object copies are not elided on call. I had performance sensitive parts of my (non-x86) code that were dominated by the compiler's builtin memcpy, due to my struct-happy coding style (e.g. rolling my own range struct and passing it by value everywhere).

I understand mostly why eliding argument copy is so much harder than eliding a return object copy, there are so many ways to observe its effect, and you have to obey the calling convention. Another aspect is the lack of programmer-communicated immutability in C, which you have addressed with D.
Does the D compiler help in this situation? Can it guarantee that (immutable) argument copies will be elided in certain circumstances? (e.g. in file-scope static functions)
I'm going to check that right now. It's not finished yet but a User Manual should look bad. :)
Doesn't really matter in the end.

If you accept a salary for a job you actually do the job. Period.
D is a much better option for those that believe that it isn't a crime to have a GC on a systems programming language.

It basically follows on the school of thought at Xerox PARC, ETHZ, and Microsoft Research.

Now what it lacks is more more manpower to improve its runtime capabilities and having a big name actually pushing it forward.

However this doesn't need to be a zero sum game, any language that helps to fix C is welcomed to the party, including attempts like Checked C and Frama-C.
IBM Quantum Challenge
s we approach the fourth anniversary of the IBM Quantum Experience, we invite you to celebrate with us by completing a challenge with four exercises. Whether you are already a member of the community, or this challenge is your first quantum experiment, these four exercises will improve your understanding of quantum circuits. We hope you also have fun as you put your skills to test.

The IBM Quantum Challenge begins at 9:00 a.m. US Eastern on May 4, and ends 8:59:59 a.m. US Eastern on May 8.

In recognition of everyone’s participation, we are awarding digital badges and providing additional sponsorship to the Python Software Foundation.
no ? there are plenty of maps which don't return something which looks like [a] -> [b].
My university's policy is that for student-elected gaps, if you returned within three years, "re-admission" was guaranteed. It was a bit dicier if the university required you to leave due to health problems or disciplinary/academic violations.
Yes, I did try WebLiero out once I had the opportunity, and it indeed feels just like the original. Incredible job by the authors.
A better solution is to have the client wrap long lines, break word ideally.