skysight-inc/HackerNews huggingface dataset:
I often think it's a shame there isn't a "GetOrDefault" for dictionaries.

An extension like

> dict<k,v>.GetOrDefault(k key,v valueIfNotPresent)

Would be really helpful. It's easy enough to write your own extension to do this, but something built in would be the kind of nice to have method that has been creeping into .net.
$1M plus in Emergent Ventures Prizes for coronavirus work
Why is it infatuating... im just telling what has worked for me and 1,000s of others.

What harm will come from someone who is stage 3a to change their diet to uber healthy and increase water intake?

Are you a doctor?

It is everyones choice to make the best choices for themselves .. try things to see what works. I get labs monthly and review my progress/success with my renal doc. I finally found one who preaches diet change cause she has seen many patient success stories herself.
You might want to take a look at ts-json-validator [1] as well. It creates type-aware validators for json-schema.

[1] https://github.com/ostrowr/ts-json-validator
My understanding is that the financial markets never recovered after 2008 - nobody trusts or understands who is on the other side of a transaction, so the Fed is essentially carrying the US markets with ~0% interest rates.

> Is the thing you are describing considered ‘the corporate credit crunch’?

Corporate paper (uninsured 30-day private notes) was frozen for a while in 2008/2009.

I don't think it is frozen now, though companies should have saved cash instead of doing share buybacks. (They reduce shares outstanding, hence boost EPS and share/option prices for execs AKA white collar crime.)

I bet Boeing wishes about now that it had kept some of that buyback cash.
I fear that we are slowly moving towards a situation where our underlying technology stack is written in languages that a diminishing number of people have seniority in.

96% of the Linux kernel is written in C (https://github.com/torvalds/linux).
For Ruby there's this book, by the exceptional Avdi Grimm
https://pragprog.com/book/ager/exceptional-ruby it's a fantastic resource on the subject.
The impeachment inquiry started exactly because of an allegation of perjury.

The ratified Articles of Impeachment were in fact (1) Perjury and (2) Obstruction of Justice (witness/evidence tampering).

I may have mistakenly characterized Clinton as explicitly withholding information by invoking executive privilege like Nixon and Trump, rather than deceptively doing so.

https://en.wikipedia.org/wiki/Impeachment_of_Bill_Clinton#Ar...
> Our study found there is little benefit to longer 6-digit PINs as compared to 4-digit PINs.

as a basic rule of thumb, any paper on cybersecurity that does not start the discussion with a reference attack vector and listed assumptions is probably garbage.

a charitable interpretation would be that they left out such details in the leading summary, but those details matter more than the actual findings. if im an IT manager and trying to decide how to lock phones, an accurate threat model is more important than the mitigations. good mitigations against the wrong threat is much, much worse than bad mitigations against the correct threat

EDIT: woops! i did the bad thing thats ruining society and read the web article instead of the paper. the paper has a whole section on picking a threat model. i dont have time to read the whole thing, but my skimming seems to be that the list length of actually used 4 digit pins is of comparable size to 6 digit pins, which is surprising but the paper still feels a little bit published-for-the-sake-of-publishing
Modular Programming in C (2017)
You'll build to almost the same number of raw CPU cycles executed for the code, but probably build a better-performing game in a language with safer/simpler concurrency/parallelism. Ever since futures (concurrency) has stabilised, rust's my first choice on this. Pretty much all of his points not related to the sheer age of C apply; you can even get the 0-byte-overhead webassembly if you go no-std, though I seldom forego something so useful that's smaller than the loading-screen background.
I think this thing is so contagious that all the weak people will already be dead.

The second wave might kill a few of the survivors that had their immune system weakened since the first wave, but it shouldn't be as much people as the first time.
When you lease a car, you do not own it. The bank owns the car and depending on the country of residence, the dealership is possibly on the hook for a guaranteed buyout price. The lessee is certainly not allowed to "tune" the car without the consent of the bank/dealership. They are usually not even allowed to service it anywhere but at an authorized garage.

This is different from outright purchase of the car, where you can literally drive it to the nearest scrap yard and have it crushed right after purchase :)
I'm not sure how that is relevant to the right of being allowed to swap parts. If you can't make parts yourself but you can take salvageable parts from a broken device. Why should you be prevented from doing this repair? Also, why should third party manufacturers be prevented from making compatible parts?
I think I'd be cool with it if they gave a good explanation that I could reason about, e.g. "your pin contains a 3 digit increasing sequence" or"your pin is the name of a popular book". I'd be even happier if it could give me a list of "here are some more secure pins similar to the one you chose"
Stop wasting time on implementing SSR for JavaScript websites
I think Ruby was helped by its great tooling (gem, lockfile, bundler), plus it was just advertised/communicated/presented as the next logical step forward, not a major release, no talk about supporting the old release for years, etc. (I don't know about Ruby's LTS policy, but the point is that 1.9 was not special, so it did not instantly made 1.8 "sacred" too.)
Europe had about 3 months compared to China and is handling the situation much worse.
Interesting study. Do we know who else than Apple implements PIN blacklists?

Also, this lego iPhone testbed is glorious.
> I can have very different words for a character (char, "", etc.) but in my head they take exactly the same amount of space.

how sure are you? given how little we know about the brain, i'd be cautious with asserting something like that as a fact. while i don't think we store bytes in our head, i'm not certain that the length of a "symbol" doesn't matter either.
Multiplayer Roguelike With Crypto Drops
An example commercial solution would be https://www.youtube.com/watch?v=s0BLx9eKAyk . Powerful and expensive. Most businesses do not want video uploaded to the cloud, but some are receptive to it, and the large business analytic vendors are developing products for the cloud.
How do you repair water damage? Look at the colour of the motherboard and declare it's fine?

Besides that, most Apple phones since 2016 or so are water resistant.
Which washing machine was that?

Which display was that?
Both of these models are well studied and compared in the literature
As someone who has taken uncoated chloroquine tablets mumble years ago, the taste is one of the most foul bitter over-riding tastes one will ever encounter. No amount of sugar mixed in with it took the edge off the taste. The only thing that did it was when they coated the tablets, preventing the chloroquine from touching the tongue.
'HTTP APIs' Now Generally Available on API Gateway
> But do any people who don't dive in and try things succeed?

Don't we all have some high school friend who didn't really work hard on anything and got pretty high scores on everything, somehow got offered a good job by some friend, smoked weed, went to parties, never worried much and seems to be quite successful or at least quite happy?

I think that's the main problem with all these discussions about success and growth and stuff - it is all anecdotal evidence and nothing more. No real science here and it can hardly ever be.
https://www.npr.org/2020/03/12/815097813/experts-credit-sout...

> In terms of per capita testing, Korea has run 3,600 tests per 1 million population. In contrast, U.S. has just run five tests per 1 million people.
True. The first image that pops into my head when I hear Y2K is a Simpsons joke where airplanes and satellites start falling from the sky and landing in their backyard:

https://www.youtube.com/watch?v=x0bBYK-7ZiU

Oh, and Dick Clark melts.
How would the open version support things like the hot functions layer? It makes sense these are missing.
Yep - it can work.

However, normally there is a long and potentially winding road between a phase 1, through phases II & III to a successful market launch.
Hehe that feels like itd be a good xkcd comic - “sorry your pin can’t be used because it’s a mersenne prime”, "sorry this is the first 4 digits of Tau", etc.
It can and will. For that matter, it's an RNA virus that is morphing as a function of the error factor of replication, so vaccines may be ineffective (for the same reason we continue to get the "common cold" again and again over our lives, as well as the flu -- the signature keeps changing).

We will see.

Though it's worth noting that there are a lot of very contrary signals on whether it attenuates with heat. Some find that it doesn't, while some do. The very origin of this -- Wuhan -- had very temperate conditions when the outbreak began, and transmission seems to be much worse in the US than in Canada.
CO2 is fine. The particles from the exhaust are the problem. Did you ever smell an intersection with 20-so diesel cars in it?
Same thing in Finland. There are new cars here and there but if you take a stroll around a dealership's lot, there are lots of cars shipped from Germany that have been used for a few years.

I think the average age of a registered vehicle here is around 10 years; it's not uncommon at all to see >20yo cars in local traffic and parking lots.
Ask HN: Data analytics for multi-schema MySQL DB
Hi there! We have a multi schema MySQL 8.0 DB (on RDS). Long story short, we dynamically create a separate schema for each customer. All schemas have the same tables and structure.

I’m looking for a tool similar to Chartio which can run an aggregate query across all our schemas.

Any suggestions?
Wouldn’t a local DNS cache look the same? If you’re on a machine running systemd-resolved for example.
Relics of one of volcanology’s more quixotic disaster response plans
I agree with you on principle, but the "wartime/peacetime" vocabulary comes from "The Godfather" - a movie not about war, but the Mafia which I think is a little more useful to compare to business.
GoMars – A Price as a Service
> they don't have any money on the other (main) chain because it was already spent

Right, the double spend attack. It's feasible under certain circumstances, such as a chain split. That doesn't mean the system breaks down completely, but that it has to be mitigated. In the event of a multi hour long network partition, some participants are likely to take action.

> they would have the incentive to follow the partitioned chain and promote the forked software because their money doesn't exist on the main chain

My point was that their money do exist on both chains as long as transactions are replayed. That may be more or less hard depending on the nature of the split (say, a whole country falls on the Internet completely). Economic participants do have an incentive to replay transactions (for example by following the satellite feed, or a number of other ways).

It is enough that one participant does this to at least give everyone else the possibility to mitigate themselves. Not a good situation to be in, of course, but still. It doesn't require nodes to follow both chains, and certainly not promote minority chains. There is simply no economic incentive to do that should transactions be guaranteed on both chains.
You can find the links to their App on DWD Website German version[1] seems like they've already implemented the ban. The warnings are free, but you have to do an in-app purchase of 1.99 to see the forecasts, etc.

1. https://www.dwd.de/DE/service/dwd-apps/dwdapps_node.html
I just want to see the video of the lego machine testing the pins...
Show HN: RudderStack, open-source CDI (open-source Segment alternative)
RudderStack (https://github.com/rudderlabs/rudder-server) is an open-source customer data infrastructure (a.k.a open-source alternative to Segment).

We firstly want to thank the HN community for showing us love and support in our previous HN post (https://news.ycombinator.com/item?id=21081756). At that point, we had just open-sourced the repo and were not fully prepared for a Show HN. We wanted to share updates since then and also do our official Show HN.

Updates since Sept 2019

=================

1. Changed the name from Rudder to RudderStack :)

2. API compatibility with Segment

3. Open-source control plane so no dependency on the hosted control plane for open-source users. (https://github.com/rudderlabs/rudder-server/blob/config-gen/utils/config-gen/README.md)

4. Multiple hosting options: Docker, Kubernetes, Native, Terraform.

5. 30 integrations (https://rudderstack.com/) including cloud mode and device mode

6. Support all the popular data-warehouses & lakes - RedShift, Snowflake, BigQuery, S3, Google Cloud Storage, Azure Blob Storage (via MINIO)

7. Detailed documentation - https://docs.rudderstack.com/

8. Multiple production deployments including few really large ones (our largest deployment is sending a peak of ~40K events/sec, ~100M events/day)

9. Switched license from SSPL to AGPLv3 (after long discussions internally as well as on HN)

10. Built some interesting Analytics & ML use cases

11. Launched our “paid plans” (primarily around managed hosting)
Official Music Video for “Earth and Sky” by Crosstown Chameleons
Console toolkits are almost entirely C/C++. E.g. Wii [1]

That's not to say you couldn't cobble together a solution with enough elbow grease and FFI, but the cure may be worse than the disease.

[1] https://wiibrew.org/wiki/List_of_development_tools
Yeah, I'm not sure if the original question was asked because of this, but I've had a couple conversations where we've compared the COVID-19 situation to Y2K.

Even in this case, we have evidence of what happens from delaying response (eg: China, Italy) yet if proactive steps like shutting down schools, events and gatherings are effective you'll get people complaining it was all an overreaction.
A tactical retreat certainly slots into the wartime metaphor, I think the assumption is more that the CEO finds themselves fighting with competitors.
And it shows, in case anybody was wondering. The percentage of trains that break down in the middle of the field, that have to detach a few carriages in some random train station so they can keep going with the rest of the train, or that barely make it to the destination but then are stuck there unable to move is truly astounding.
Maybe he is using his own library. Not unheard of. One of my friends does for example
Best Things to Do in Goa During Vacation
Hardly, Ruby is 25 years old, Python is 30, Javascript is 24.
No, no, of course not. You're right. The same exploitation of complexity-difference can be observed all the way up the hierarchy. But that doesn't make it "living". (Or if you define liveness on a spectrum, like we sort of do with sentience/consciousness, then viruses are alive like rust is conscious.)

It's very likely an invariant of complexity. Trade offs (and friendly turtles) all the way. And of course evolution doesn't optimize for QALY at all. So it's not surprising that it hasn't really spent much resources on closing the gap. And now we try to do it because we do find it a better goal than "just" thriving in every imaginable niche on whatever complexity it's possible. (We want to maintain our complexity plus occupy more niches.)
> For example; I doubt I’ll ever be reaching for C when writing a web service simply because the ecosystem around that domain isn’t great and I’m not itching to write my http framework at this time.

C has everything, including several top quality http frameworks. I use https://github.com/corvusoft/restbed and find it more reliable, more performant, and "better" in all respects than the php, js, node, and whatever frameworks I've been forced to learn.
Agree, lets hope this rfc gets approved.

https://wiki.php.net/rfc/explicit_send_by_ref

https://externals.io/message/108699
So you're furious at your Italian friend because you jumped to conclusions and at the guardian and Boris for talking about the reasonable worse case scenario to make people aware of how bad this could get... (BTW most people I've met today still think a small minority of this country will contract ncov-2
This wouldn't be the first time. The Pixel 3a was universally (as far as I saw) recommeded over the other Pixel 3 variants last generation.
I'm not sure what's so bad east of Poland but I'm not there.

However, as I said, with a small bribe you can take out any particle filter here. It's common knowledge.

Besides that, did those VW cars got banned from the streets? No! Does VW pay for my health issues? No! Those money are normal taxes to conduct business in Europe.
Restricting underage access to porn and gambling: good idea; technically tricky
> "Our aim is to try and reduce the peak, broaden the peak, not suppress it completely," he said.

> "Also, because the vast majority of people get a mild illness, to build up some kind of herd immunity so more people are immune to this disease and we reduce the transmission.”

They’re not acting only when the peak hits. They’re staging the response.

More serious measures come in as the number of transmission go up. And that’s all about managing the resources of the NHS over a long period of time.

Introduce lockdown now, sure, you delay the peak. But you don’t spread it out over a longer time period. People will stop caring and start ignoring advice.

The timing is critical.

https://www.bbc.co.uk/news/uk-51865915
Interview with up and coming artist “Fairy Boy”
I don't seem to recall a lot of private roads and highway in the USA? Most of them were public (tax dollars) and when they improve them, politics calls it a "good" improvement.
And so too does the NYT.
Ask HN: Content Personalization in the Back-End
I've been looking and working with some content personalization tools (Squeezely, Google Optimize) for some time now. Although they work okay and seem to deliver a good ROI, I was thinking how this is going to work when people start browsing anonymously more and more.

This means most tracking pixels, snippets will cease to work properly and aggregating users will be a tricky task.

I was wondering if anyone knows any Content personalization tools that work on a back-end level. And thus are more future proof.
It wouldn’t make much sense to trash it when the alternative is a battery installed by unapproved person. Or donate it yourself.
> When your main argument for not using exceptions for every kind of error handling is performance instead of architecture

Personally I find that using exceptions quite broadly makes it easier to build fault tolerant software. And to me this makes the performance issue rather moot. Some classes, such as, financial OLTP systems, should much rather be correct and resilient than performant.

I could presumably write the same exact logic in asynchronous C, but most likely it will have serious stability issues. And what is more, every person I have come across in my life that insisted on writing asynchronous code for financial OLTP systems ended up writing software which would never have the requisite stability and had to either be abandoned or rewritten.

To me, avoiding exceptions absolutely seems like trying to fix a problem that is not related to how code is written by changing how code is written - instead of changing how the code is executed, which is where the actual problem comes in.

Another argument I hear all too frequently though is that people can just ignore exceptions ... and yes - they can - and in almost all cases (unless someone did not just ignore exceptions) this will cause program or thread termination.

In C you can just ignore error return values also - but what is worse - you can forget to check them - and then execution continues as if everything is fine. With exceptions you guarantee that someone has to go out of their way to continue execution as if everything is fine if something went wrong.

This is why exceptions are optimal for happy path programming.
In your post you said several things about "Biden". Could you clarify just who that is? I believe there is an intentional rhetorical trick being used to conflate to people with that surname. I can't say whether your use of it was intentional, but it would help if you clarified who you were talking about.
is HN the right place to ask these questions?
Yep. People talk about "peak capitalism", "late capitalism" etc. but they don't realize the world used to be much, much more extreme. Even until a few centuries ago, even public cops or prosecutors weren't a thing.
Perl smart match was a disaster because it was symmetric.

Historically, smart match in Perl was "stolen" from the ideas of Perl 6. Perl 6 (now named Raku https://raku.org using the #rakulang tag on social media) learned from the problems found in Perl, and changed its smart-matching model from symmetric to asymmetric. Basically, `a ~~ b` is syntactic sugar for `b.ACCEPTS(a)`. By transferring the responsibility for what smart matching means to an object of a given class, made it possible to make much more sane default behaviour, as well as allowing authors to define their own smart-matching behaviour for custom classes.
Well you cannot expect a 6yo to know how to correctly hold a soldering iron, I guess :) I don't think his critisicm was warranted at the time.
I agree although the racket is more like a trillion. It is not just the insurance (payors) but also all the brokers and other rent seekers. I think there is 0% chance of nationalized health care in the US. Look at Obamacare; it didn't really work and took forever to get passed and most of the regulations have been rolled back. There are other things that I think could fix our health care and actually get passed and stick but Medicare For All isn't it. Too many in the US associate socialism with communism and think it unfair.
Think it generally just drops off naturally.
appreciated, thanks for the link. covid19 will be a real wildcard adding plenty of volatility then.
> what if the "free" version is not as good, yet most people will use it because it's "free"?

Then the market has spoken about where it's priorities lie.
I was almost getting excited, but it's C++, not C.
Call me old fashioned, but "mission-critical" and "rock-solid" are inherently at odds with anything that runs a on a clients machine. Doubly so for something that runs in an interpreted language, especially one that doesn't ship with it's own interpreter to said client.

In these cases I'd far rather see an old fashioned reliable server-side application built in a language with a lot of built in safety. The less you ask the client to do, the more reliable the application.
A simple, self-hosted timeline of your life
The US is still one of the most rich countries. In many countries with "free healthcare" you usually don't get anything without a bribe.
I think so too, but there is some evidence of a lot of legacy systems needing critical updates. Manufacturing, oil processing, military hardware and other stuff. The problem was that it was nearly impossible to understand how failures would manifest. Just that there will be failures and some of them might be very critical. Luckily, all the important stuff got fixed in time that everything went pretty smoothly, but there were still some problems in non-critical systems.

That said, if we need to jump start the economy again, maybe we could come up with a fake problem this time. How about we say that 2025 will be a huge problem for many critical IT systems? Or does a timestamp does produce a nice round number in the near future that is a good sell?

edit: There is this: https://en.wikipedia.org/wiki/Year_2038_problem