skysight-inc/HackerNews huggingface dataset:
C also has renewed interest around IoT programming and mobile devices
It is temporary hysteria. Remember 'swine flu'? The infection fatality rate ended up being like 10x better than what the media initially reported.
Edward Snowden on the rise of authoritarianism during the Covid-19 pandemic
Annex K had an existing implementation from Microsoft. It wasn't a fully conforming implementation when C11 shipped, however (the specification drifted apart from the initial implementation).
Again the thought was Zig could take a stance on supporting multiple of the 5-ish line endings and let every tool that is written deal with it and dozens of other whitespace decisions or it could be normalized to 1 way to represent it with no variability in whitespace characters as part of the built in language tooling. Allowing 2 ways is not an alternative path to having 1 way. This concept is extended to all sorts of whitespace characters it's not just about newline and tab.

You write about the line ending like you get paid per \r\n you push up to Git, there is no reason to care which whitespace character the formatter outputs for you. Zig init-exe is literally going to do this for you when you make a project. Build.zig can literally run zig fmt for you as part of the build process.
The "old-school" exposition of live in 2D, 1D, and then 4D in fictional form is in the novel Flatland: A Romance of Many Dimensions by Edwin Abbott Abbott. An entertaining read, mixing maths and social critique of Victorian class society (women are line segments, men are polygons - the more vertices, the higher class...)

https://en.wikipedia.org/wiki/Flatland
I don't disagree with you that the stock market is inflated, but remember that stocks should be valued by looking at the estimated sum of their future cash flows, not just their current cash flows. And this is relative to a riskless cash flow, like e.g. treasuries, which are controlled by interest rates.
I've been following Georgia's data for a while now, and I actually think they are closer to Louisiana than you realize. Over the last few weeks, it wasn't unusual to see counties stop growing for days at a time only to suddenly jump by 20-30%.

I think there are effects being seen from the lack of early testing rather than an indication of recent spread during the (very recent) higher temperatures.
What has been the rationale or hinderance for not adding locale-independent versions of various stdlib functions?

Practically every second C codebase on earth has their own implementations of these at some point, and it remains a huge problem for e.g. writers of libraries, where you don't know how/where your library will be used.
Sadly, effective response to infectious disease throughout history have all added to the authoritarian toolbox to necessarily limit individual freedom because we know individual responsibility does not scale. While individual irresponsibly at scale has calamitous consequences in context of infectious disease. Cordon sanitaire / quarantines in response to disease outbreaks have been the impetus for consolidation of government power. Historically this has been coarse geographic control where regions are locked down or movement of people is restricted for months to years - 160 years between Austria and Ottoman empire. Much like the total shutdown of countries we're seeing now that refuse to adopt more granular control enabled by surveillance technology. Sacrificing privacy to manage individual affects on collective risk is going to be an inevitable component of modern life moving forward if we want to return to any semblance of the old "normal". A normal where most people did not care much about privacy either.
> (because of e.g. casting to unsigned and allowing the same overflow to happen anyway) only work correctly on twos-complement anyway

Unsigned arithmetic never overflows, and guarantees two's-complement behavior, because unsigned arithmetic is always carried out modulo 2^n:

> A computation involving unsigned operands can never overflow, because a result that cannot be represented by the resulting unsigned integer type is reduced modulo the number that is one greater than the largest value that can be represented by the resulting type. (6.2.5, Types)

Doing the computation in unsigned always does the "right thing"; the thing that one needs to be careful of with this approach is the conversion of the final result back to the desired signed type (which is very easy to get subtly wrong).
Advanced 2D Transformations in React Native
As someone who has done remote working more or less exclusively for 6 years, the current state of affairs for most homes does not reflect the reality of what "Work From Home" looks like in normal, non-emergency times.

You can't competently work from home full time and also manage children. Even for people without children, they are dealing with co-workers who are juggling a new normal, have not set up dedicated work spaces, are fumbling to learn how to use zoom/meet/hangout etc...

I say all this to point out that, even in non-ideal conditions with little to no preparation or planning, most people would still rather work from home.

Work from home should be the STANDARD, not the exception, for white collar work.
I think you are underestimating the effects of real depression even in a wealthy first world country. Finland went through depression in the 90s when the Soviet Union collapsed and it left behind a cohort of people who never really recovered or gained employment.

You seem to think that being poor in a first world country is just skipping few vacations and luxury items but otherwise life can be wonderful. I think you severely underestimate how poor people can get even in countries with strong social security, like the nordic countries.

Also the idea that misery is mostly political decision sounds just silly. Most of Europe hardly recovered from 2008 financial crisis and are already cracking under the demographic shift, baby boomers retiring. Add a covid depression into the mix and things can get really bad. There's just not enough money in the economy to share for both the retirees and a large number of unemployed. This can cause a vicious cycle as the increasing social spending will increase taxes, increased taxes will go to increased labour cost, increased labour cost will drive down demand on European goods increasing the unemployment even more etc...

There's always a cynic to rain on your optimism :)
Yes I'm in the same situation and I was thinking the same thing reading the negative comments. It's important to not conflate the work from home aspect with the lockdown aspect.
A popular domain which specializes in Austrian economics has printed dissenting opinions on this topic. Predictably, that domain is repeatedly flagged by HN.

Reading through the comments here, all of the objections to 'price gouging' have been addressed in those articles. I have a hard time squaring HN's mission statement of 'promoting intellectual curiosity' with this contradiction.
> No. You are implying that buying locally strengthens the domestic economy whereas importing weakens the domestic economy

The more customers local businesses lose in favor of off-shore producers the weaker they get, to the point where they disappear or become importers. If you're an EU citizen you're more likely to be impacted if another EU country's economy isn't going well than if Morocco's economy suffers. One thing is for sure, economies don't strengthen by giving up local production and export in favor of importing or all-local consumption.

> Well, that would be extremely stupid. There is no such moral obligation and I didn't say anything to that effect.

Now why would that be stupid? After the passionate argumentation that trade is very relevant to improving living standards in those poorer countries and that it does not weaken the domestic economy you come back to say that doing it would be stupid? You just shot your argument in both feet and sawed them off for good measure. Or perhaps arbitrarily only some people should buy from off-shore while others from near-shore. As for the "moral argument" you said exactly something to that effect:

> the same countries we want to take in all the refugees from Africa and the Middle East.

The EU-Turkey refugee agreement is for over 6bn Euros in aid. That's in case you thought all that "refugee taking" is expected to be paid in olives or trade assistance.
Thank you for your reply, I was really confused that what happened to her was because of her asking for a demonstration. I asked a German friend to read up on it but I don't think that is necessary anymore. :)
Sorry what? Are your numbers the world or US? In either way I think it's just impossible, no? There can't be hundreds of millions of deaths in the US due to starvation after this I don't think I need to justify this claim. (if you disagree let me know) and I'm willing to bet that death from the disease in the whole world is more than a million easily. OK so the only possible interpretation is you're saying the shutdown is going to kill a lot of people from economic effects in poorer countries? I think this is nonsense. The shutdown is most prominent in richer countries, where it's unlikely to cause massive deaths to starvation. Whether the economic effect has a large toll or not, it will not be 3 orders of magnitude more than the disease, that's just hogwash.
> The 25-34 age range had the most “Yes” I want to work from home.

Did they? The only question I see broken down by age range is not about wanting to work from home, but "are you more productive working from home?".
hey, we were probably moving towards some recession anyway,

That's a take that is gained from reading two many doom and gloom writers and not looking at the data.

The data shows that economies - on average - expand and have done consistently, long term since the renaissance.

Once you look at that, you see recessions as mistakes. Most large ones since the start of the 20th century have been caused by errors in the capital markets (1929, 1987, 2008) or commodity price shocks (1970s).

Perhaps the run up in stock prices should have been corrected. But that would have been a recession caused by a financial market correction, so another 2001 "dot com crash" style thing. Nothing like this.

is there any merit towards my naive optimism

By most measurements this is the biggest economic shock since 1929 (and possibly larger). It's the first time we've have economic activity stop this quickly across so many industries all across the world ever (perhaps the black death in the 1300s was similar because many farms went unharvested because of the lack of labor - up to 80% of people died in some areas[1]).

It's possible this will turn around quickly. We certainly stopped things quicker than I would have believed was possible a 4 months ago.

But provided you understand that is an optimistic view and isn't really supported by history it's ok.

[1] https://eh.net/encyclopedia/the-economic-impact-of-the-black...
Nothing personal, but how is it not a company's fault to take on tons of leverage and not have cash reserves? I know this is typical SV growth mindset, but it isn't conventional financial wisdom. Seems to me companies need to get lucky if they go growth at all costs, because if you havent flipped the profit switch before a recession, your balance sheets are too red.
Rust Lang in a nutshell – 3 – Traits and Generics
Ebola specifically is hard to spread in a first world situation.

Not to say it wouldn't somewhat, but the opportunity to spread through someone who is noticeably ill or dead direct fluid contact in the first world is super low.
> We ported our React frontend from JavaScript to TypeScript, then did the same for our Ruby backend.

Next year it will be an article on how they ported everything to rust and webassembly and how that is just so much better than everything.

Of course they come to the conclusion that types and tests aren't the same thing. Otherwise you would never need tests, not even in dynamically typed languages.
> similar to the Annex K Bounds Checked Interface functions strcpy_s and strcat_s but not quite as good IMHO.

Err... I thought Annex K is deprecated and dead? Whereas strl* seem very much alive, some compilers even give a "strcpy/strncpy is unsafe, use strlcpy instead" warning.
Agreed! The first time I learned about this algorithm, I was pretty mind blown :)
> Maybe squatting on a domain provides them some satisfaction, who are you to judge how people choose to use their domains? If I choose to host pics of cats on "cats.com" (as the current squatter is doing) am I any less entitled to the domain than PetSmart?

Yes.

It's not as obvious with something like cats.com how this harms society, but I've worked with nonprofits numerous times who had to pay tens of thousands of dollars for their domain names because someone squatted them.

Let's not pretend there aren't widely-agreed-upon values being trampled here. Your argument is moral relativism.

> Sounds like there's more market oriented ways to resolve this issue. If you feel like short domains provide the world outsized value, why charge the same $10 annual maintenance fee as a 15-letter domain? The shorter, the higher the registration fee. Problem solved?

Given you haven't even agreed that there is a problem, it's pretty clear you just want to propose a market-oriented solution regardless of what the problem is, or whether the market can even solve it. This is not how problems get solved.
There have been some disagreements on strlcpy/strlcat (BSD vs glibc crowd), although by now the debate has died off and these functions are pretty widely used. Also, while here, it would be lovely to have strchrnul() included.
Yes. Types are a great way to communicate with the compiler and fellow humans, but they do not replace tests.
I got into creative coding and procedural generation using things like Processing[1], StructureSynth[2], ContextFreeArt[3], libcinder[4], but also just plain C programming to do similar kinds of things, and there are some inpiring subreddits, r/creativecoding r/generative r/proceduralgeneration

I think the major difference with this kind of programming is that unlike normal programming, you don't necessarily have a very clear idea at all what your program's output will even look like until after you try it. So there's more of a feeling of "discovery" rather than "invention" and much less of a concrete notion of "correct" and "incorrect" output and it's a pretty different feeling that more "normal" programming.

[1] https://processing.org/
[2] http://structuresynth.sourceforge.net/
[3] https://www.contextfreeart.org/
[4] https://libcinder.org/
Never?

What if the offer is appealing at the time and you can cancel whenever you want.
Thanks! I’m glad you like it

The CSS framework i use is https://bulma.io and the server side rendering is all done with Go’s html/template library.

I’m definitely going to open source it but I’m too ashamed of the code right now, this evening is going to be cleaning and ‘production using’ the code
Poverty leads to higher suicide rates, e.g. https://www.usnews.com/news/healthiest-communities/articles/... . It also leads to people being generally less healthy and dying earlier: https://www.sciencedaily.com/releases/2018/11/181123135003.h... . If poverty leads someone who's currently 10 years old to die five years earlier, then in terms of loss-of-life-years it's similar to the loss if e.g. an 80 year old is killed by the virus.
It's more that you can't lump all developers into one category and make blanked statement like you did. Some developers in some markets aren't in demand. Some developers in some markets are absurdly in demand.
In BRL's MUVES project, we used a 2-character prefix indicating category. E.g., all the external identifiers for our fancy memory allocator began with "Mm", where Mm.h documented the interface for the Mm package only.

To minimize the external identifiers, one could make just the name of a container structure the sole entry access handle, with structure members pointing to the functions. Then use it like:

#include <Mm.h>
if ((new = Mm.allo(size)) == NULL)
Er.abort("out of memory");
Two things I'd like to share on the topic of how easily covid infections are transmitted:

A Washington state choir decided to go ahead with their practice on March 6th. There were no handshakes or hugs, everyone was given hand sanitizer on the way in. 45 members contracted COVID-19, 2 died.
https://www.latimes.com/world-nation/story/2020-03-29/corona...

#2: This video was posted on /r/Coronavirus/ and was pretty interesting. It's got some visualizations of how micro droplets remain suspended in air:
https://vimeo.com/402577241
FWIW, Annex K is not currently deprecated.
>I wonder how they get those numbers.

They explain in their article: https://www.imf.org/en/Publications/WEO/Issues/2020/04/14/we...
> if you want domain names to remain in the hands of the "little guy" providing "no value" then squatting is something you have to live with right?

The vast majority of squatted domains aren't squatted by "the little guy", so nothing you say starting from that incorrect assumption has any validity.
And are there standard primitives to do this correctly (signed-unsigned-signed conversion) that never invoke undefined behavior?
If you can't pay, you don't deserve to get things for free. What's so difficult about this concept? Maybe someone else is incentivized to pay for you. But if there isn't, you do not actually deserve anything costing money, without being able to pay that money. Morality has nothing to do with it.
The Ignorant Man's Book Collection: entry-level texts for a range of topics
"""and the first human right is the right to live.

therefore, so that we all may live on, you must give up your privacy.

It's only so that the appropriate authorities may tack down anybody you may have contacted; and if found to be virus carriers they will simply be quarantined. And frankly they might die, but we do this merely so that the rest of us may live on peacefully and prosper."""

e.g. take this 'and if found to be virus carriers they will simply be quarantined' and swap it out for another historical age statement such as a classic inquisition era "if found to be sinner/heretics/non-believers the church will help them repent" though, in the inquisition era there was no comparable surveillance technology.

I just wrote this, but I am not sure whether I agree. I am conflicted.

edit: after editing in the inquisiton example, I realized that I disagree (with many reservations) with the entire sentiment of initial triple-quote.
Holy shit. I'm involuntarily WFH at the moment with two kids in kindergarten age and one in school age I'm "home schooling". It "works", but productivity gets a major hit and my sanity is on the line. Did you have a stay at home partner at the time or are you just a super human? :-D
It's a question of priority, not ideology or naivety or fear.

There is no "bend on a totalitarian streak", that is the irrational fear.

In the US and Western Europe we are factually on a sinking ship. The economy and society as a whole are sinking. This must stop as soon as possible.

If tools like tracking apps allow to reopen sooner while controlling the pandemic then this ought to be the priority.

This is a minimal compromise of rights for a limited time only (the 'limited time' part is what ought to be the safeguard).

The fear, and frankly paranoia, is not on the side of being in favour of these tools, it is on the side of rejecting them for ideological reasons. It's seeking a pyrrhic victory: "Ah everything collapsed but at least no-one could track me on my commute to my long lost job!".
Well for one thing Real Estate just doesn't work that way. It may sometimes feel like half the US is a giant suburban sprawl but in reality the elites own 40% of all real estate in America and they keep it nice, private, and undeveloped.
> the moment they allow me to upload my MP3-collection

I would not hold your breath for this. The holdover MP3 collector is such a small minority that no mainstream company is going to consider them from here on out.

> is there any other free service where I could upload my MP3 collection to

If there was, why would you waste your time? Either it's not going to be free or it's going to disappear.
Show HN: Local stored wiki engine made with Vue based on Markdown and JSON
Look into unemployment system tech. In my state, its physically impossible to access it. Whenever you call or go online, it is straight up broken and dozens of contact attempts have yielded nothing.

Our economic system is not nearly robust enough for these suddenly 5-10% unemployed and underemployed citizens. We can not "easily get through this if we want to".
> anything further than that is guesswork

Well of course! Nobody knows what the future will be -- it's all best-educated guesses. That doesn't contradict my point.

The stock price winds up being a kind of market-driven wisdom-of-crowds situation of a ton of different people's guesswork, mostly institutions with teams of researchers.

Obviously Google's price has been impacted. But the point is the price hasn't been impacted nearly to the same degree as immediate revenue. Because? People expect Google to be around and doing fine for a couple of decades.

So you're right that these things can't be perfectly predicted... but the stock price still is the result of everyone's predictions, as imperfect as they are. It's not "laughable" -- it's literally how it works, and if you don't believe that, I don't know what to tell you.
Thanks, so from "Only those features that have a history and are in common use by a commercial implementation should be considered", this precludes stuff that may only exist in
clang, gcc, glibc, etc.? If so, why?
https://www.zdnet.com/article/former-mozilla-exec-google-has...

Another Google "oops"
A major benefit of HTTP/3 is the ability to transparently switch from one network connection to another without restarting requests.

You could be midway through a gaming session over websocket, and walk away from your wifi, and you shouldn't notice a glitch.

Nearly nothing else offers that ability, and it's very annoying, especially in offices with hundreds of wifi access points - I should be able to walk down the corridor on a video call without glitchiness!

MPTCP (developed mostly by Apple) offers the same, but Google and Microsoft are holding it back, for some unknown reason.
I am concerned about my kids...

[random advice from the internet]

Talk to them. It's not a technical problem. Doing something untrustworthy makes the relationship untrustworthy. It's unlikely you will like everything your kids do. Figuring out ways of talking through those things is better in the long run. Good luck.
They are fully aware of the complexities because six million people in Inner Mongolia in China already use this script.

The current situation is this: "As of 2015 there are no fonts that successfully display all of Mongolian correctly when written in Unicode" [1], meaning that specialized software using Private Use Areas of Unicode are the only way to typeset it.

[1] https://en.wikipedia.org/wiki/Mongolian_script#Font_issues
How do you interpret a zero negative excess death rate? Sweden has over 1000 Covid attributed deaths, but almost no difference in weekly deaths compared to the same weeks in 2019. Death numbers are extremely noisy and especially in the flu season with the flu one year perhaps twice as deadly as the previous year.

Covid restrictions have also reduced (a lot) some other seasonal diseases like flu and noro/caliciviruses, so you get an effect in the other direction too. When those that die from Covid are in the highest age groups it's not unthinkable that a part of them would have been killed by the flu too, only the flu didn't come this year because of Covid. Perhaps that's why we have a lot Covid deaths but no excess deaths? Who knows. It's too noisy and has too many dependencies to be very useful I think.