skysight-inc/HackerNews huggingface dataset:
Not really, it's more trying to use constexpr better and measuring everything as well as inlining as much as you can. This leads to extra compile times which you can combat with precompiled headers. Overall C++ just wins out heavily. Not because C is worse, but because the C codebases I've looked at tend to not put code in headers.

C also has a lot of void* which prevent the compiler from doing optimizations it otherwise could. C lacks template programming, which means they will try to reuse the same containers for everything, again lowering performance. Typically some kind of list based on macros.

https://stackoverflow.com/questions/4707012/is-it-better-to-...

Just std::copy alone. I really could go on forever.
That analogy doesn't really work tho. No one is complaining about getting keyless entry (almost all phone had Bluetooth for the past decade or so, no one minded), just the removal of physical keys (the 3.5mm jack).

While I'm not an expert on cars, most cars that have keyless entry that I've came across DO come with physical key, either separately, hidden inside the key fob, or the whole key fob works as a physical key as well.
The only exception I know of is Tesla, but even they give you 2 keycards and you can purchase more. The reason is basically the same the reason I want headphone jacks back - fobs/Bluetooth can run out of battery, they are expansive to replace so you can't have multiple of them lying around.

While I do use the wireless option most of the time. I want the wired option as a backup.

Additionally, wired better functionality than the wireless option in this case - FM radio (not relevant for iPhones, but it does for Android), better audio quality, less battery consumption, ability to charge the phone while in use - features I personally am not very attached to but can see why they might be important for other people.
True, but that's the kind of drudgery that's best farmed off to computers. I see that the comment above mentions there is a tool for this that I simply wasn't aware of.
Gavin Newsome gave his criteria for reopening California, it doesn't require a vaccine.

Having people die in large numbers is always worse then some people going through tough times. It's unfortunate our national government is incompetent and making it political.

If the city is great it will bounce back. The bay area isn't the only place going through this, the whole world is
We're still working on the first draft of our results for publication on the subsurface imaging side of things, so there's unfortunately not a paper I can point you to yet, but an overview of the project at a high-level can be seen here [1]. If you're really interested, feel free to reach out to me over email, and I'd be happy to discuss things and learn about what you're doing as well!

[1] https://arpa-e.energy.gov/?q=slick-sheet-project/scalable-aq...
Open Source Changed My Life with Max Stoiber
Prefetching content is a W3C standard.

The user is also trying to access that content so they probably don't find preloading it aggressive, especially if they're on a low-bandwidth connection and they don't have to load the page twice.
> I am curious about the durability and how well tested all of that is though. On the one hand, filesystems put a lot of work towards ensuring that bytes written to disk and synced are most likely durable,

All of the SSDs that this software might be deployed to have power loss protection capacitors to ensure the drive can flush its write caches when necessary. So this software only needs to make sure that the OS actually sends data to the drive instead of holding it back in an IO scheduler queue (as you point out, they're already bypassing the FS layer). Since this software should be pretty good at structuring its writes in an SSD-friendly pattern, the operating system's IO scheduler should probably just be disabled.
I've dealt with them on multiple occasions, and either the strict enforcement is very different based on state, or it is as you say: if a small company sends an email to two people and doesn't use BCC, they'll be hunted down, but if a huge media company uses tracking beacons of non-EU-3rd-party adtech companies without disclosure or opt-in, they'll ignore it (source: reported literally this as well. They've chosen not to enforce the law, but instead asked the media companies how they'd like to go about this in the future. This affects millions of people per day.)

It's a mess, and it works like an hallucinated moat. If you obey the law, you have a strong disadvantage. If you don't obey the law, you have a strong advantage, and nothing will happen to you. Non-enforcement trains people to not honor the law, because they can't compete if they do.
> I am vastly more productive with react and my UIs are much easier to use.

When a programmer says "I am vastly more productive" then I know the project is vastly over budget, vastly missed all deadlines and has a vast headcount delivering something vastly unusable.

Programmer feels on their own 'productivity' are inversely correlated with real-world project productivity.

This is because programmers love to code, so more code and more complex code == 'productivity', while in the real world code is a liability, not an asset. The less code in a project, the better.
Yes, I do think Amazon is held to pretty high standards. I have seen more outrage for people who won't work at Amazon complain about the work conditions at Amazon than the actual employees themselves. If your defense is that they might not want to then you need to check your moral high ground.

If Amazon does indeed engage in illegal behavior, then one should be hell bent on calling them out but the whole raging behavior at all times drains the emotional bank and when the actual crimes occur people don't have appetite for it.
Content Security Policy JHipster (Spring Boot Application)
If you've worked with a language before that uses static typing and compile time type checking (Java, C#, and C++ immediately come to mind), TypeScript will be very easy to pick up. It'll just feel like a slightly different JavaScript-friendly syntax slapped onto the same set of core concepts.
Coming from a background where I had written both C# and JavaScript before, TypeScript took all of one day reading docs and messing with the toolchain to start adapting it for the React app I was working on at the time

If you haven't worked with a statically typed, compile-time type-checked language before, I think you owe it to yourself to learn one, whether or not TypeScript is the one you learn.
The reason it would be faster is at the moment it is not considered ethical to deliberately expose people to the virus after giving them a vaccine. Because we can’t do the exposing we have to use the large field trial approach and wait for people to get ill on their own (or not). These take a long time. If we had a safe strain of the virus then we could do the exposing.

I explain this much more in a previous post on my blog [0].

0. https://www.tillett.info/2020/04/24/it-is-unethical-to-not-s...
Kumiko Okae, the voice actress for Pokemon has died from Covid-19
Anything specific about ts-node that doesn't work or that stuck out as janky?
I guess if it worked at the IP level it wouldn't matter whether or not the transport was encrypted. I'd wager how it worked was by sniffing the Host header in the request, and as this was "many years ago" most likely predated Server Name Indication in TLS so encryption was enough to thwart a host-based blocking approach. Now of course with SNI the host is in clear text in the ClientHello (unless using TLS 1.3 ESNI) so the GFC could still block using hostnames even with TLS.
Alcoholics are a pretty resourceful bunch, I’m sure they can find their local Wal-Mart, Target, or 7/11. Nobody is going to die because Bevmo is closed.

As to your point about selectively closing businesses being hard, isn’t that a good thing? We shouldn’t put tens of millions of people out of jobs because it’s easier than enumerating what can and can’t stay open. The burden should be on the experts to make their case; after all they have had more than a month now to figure out a plan of attack.

How many deaths due to coronavirus are too many? Right now it seems like public health experts are taking the view that any death is one too many. And they’re willing to present or skew the facts to get that point across. I would rather them be upfront about the benefits and risks, rather than take a paternalistic viewpoint. There are real costs to keeping the country closed, and we shouldn’t discount them.
I run the type checker separately from the compiler, which is set to ignore type checking.

So in development, I am hack together things and though the type checker complains and my IDE shows plenty of red marks, it will still compile.

Once I’m don’t experimenting, I fix the type errors, and refactor.
> It’s not undetectable at all. When you go to vote, you give your name and address, and get crossed off a list. If someone did that fraudulently, it would be noticed when the person who’s identity you stole comes to vote, it is obvious.

Sure. But in most cases where someone would do this, they'd do it knowing the person, and knowing they weren't going to vote, for whatever reason.
> Go to the cafeteria of any large business or university and you'll probably find more highly educated people than you found in all of Vienna 150 years ago.

Maybe, but those people aren’t really interacting with each other or sharing ideas in a way that isn’t aligned with their personal or professional goals. The cafe of yore was a melting pot of people and ideas; the contemporary cafeteria is far more functional and teleological.

Maybe it was my fault by using the term ‘brightest minds’, but intelligence or education level is also not really the main draw. Certainly the revolutionary artists of the late 1800s weren’t the most academically educated ones.
Possible Futures of Marketing After Coronavirus
I’ve found this React + TypeScript cheat sheet extremely helpful while recently porting a React codebase to TypeScript. (To the point it’s one of only four bookmarks on my browsers bookmark bar.)

Perhaps others here will find it useful as well.

https://github.com/typescript-cheatsheets/react-typescript-c...
Legal Tech App Store, Theorem, Offers Vendor Security Checks
> They made an error you'd flunk a first-year statistics student for: ignoring the effect of false positives.

I don't think it's fair to say they "ignored" the effect of false positives. The paper very clearly states:

> We consider our estimate to represent the best available current evidence, but recognize that new information, especially about the test kit performance, could result in updated estimates.For example, if new estimates indicate test specificity to be less than 97.9%, our SARS-CoV-2 prevalence estimate would change from 2.8% to less than 1%, and the lower uncertainty bound of our estimate would include zero.

Some statisticians have accused them of being sloppy with their estimate of their lower uncertainty bound (among other things). The authors have stated that they disagree, and are working to put out additional data to show that their findings are "robust". I honestly don't know (I don't have enough of a background in stats to have an opinion either way), but I look forward to seeing what the authors put out next and how the scientific community responds to it. And more importantly than the results of this single study, I’m looking forward to more antibody testing in the future.
It's so predictable. Intelligent people say "we must/must not do this because consequences will be bad", Republicans say "we'll let you do this regardless of consequences", idiots support Republicans because of short term conveniences.
> Some brands are listening to customers. They started including the jack again.

Example?
Probably it's my first reply on HN but dontated!
Yes but the government is sitting on "cash" not stocks and its 100 times more than Bozos.
Use a MDM solution to enroll the device with all the settings on it.
The top reason I did start using tmux was because of how you can select text with the keyboard in copy mode (like visual in vim mode). Then I got the plugin tmux-plugins/tmux-yank which adds "y" command to copy the text. Also works with selection by mouse.

I've run this setup now for something like 5 years across multiple tmux versions and OSes (Ubuntu and Arch) without any hiccups.

But then I think tmux is a tool geared towards keyboard usage and not mouse. The mouse stuff was added because others wanted it, not because it was part of the core idea of what tmux wanted to provide. So if you go against that, you'll bang your head a little.
This only matters if it's mandatory, which voting is in Australia.
This app is voluntary. Whether it has passed or not yet, legislation is planned to make it illegal to force anyone to download or use it. So trying it to a phone number is ok if it's totally voluntary.
Also because users are not identified by their phone number under normal circumstances, this is also ok.
If someone steals or leaks the key used to encrypt/decrypt all TempIds for all users, or can figure out a pattern in the generation of future TempIds for users, they can possibly tie people to their phone number and identify them.
However under normal use there is no way to identify someone, well unless they can snoop the broadcast/encounter json messages and get your device ID and toe that to you
This is so cool

MS-DOS programming was overall a pain in the... byte but what I miss most about it was the simplicity of graphics.

Wanna draw? Just write to memory. Setting a mode was one instruction

(Wanna play sound? Fumble with 2 levels of IRQ controllers one DMA controller then sob uncontrollably. Or use Allegro. Wanna do multithreading? What's that? )
Lines at gas stations weren't the crisis. The fact that there wasn't enough supply to meet the demand was the crisis. But price controls allowed more people to afford any gasoline. It would have been 4-5x as expensive without price controls.

Of course there were gas lines at times in the 70s – there was an artificial limit on the price of gasoline. And the supply was repeatedly cut to almost zero, as oil exporting countries nationalized oil companies, went through violent revolution, or embargoed countries who militarily supported Israel.

Carter had announced a plan to phase out Nixon's price controls, and Regan removed them after he beat Carter.
Stating that being a landlord is "far from legitimate in any way regarding getting what is paid for" is really a grotesque exaggeration.
On the other hand, I can find almost any item cheaper in some other webshop than Amazon if I look for it. The Amazon tax does push prices up.
Alternatively, OP could be answered by someone saying that this is already being done. And apparently it is in some form, according to a sibling comment of yours. Maybe that’s incorrect, but you chose the least charitable interpretation instead of “Hey, here’s an idea. Why doesn’t it work like I think it would, and does it have any uses in any form?”
Josh Constine Leaves TechCrunch for VC Fund SignalFire
Yeah, it's not right. As a CA resident who has looked into it, their unemployment website specifically says that requirement is waved
Yep, IKEA is the worst for delivery. They farm it out to some third party service that has an ancient logistics system.

That said, they're also delivering heavy furniture. I've never ordered those types of items from Amazon so I don't know how they fare.
I doubt there’s a single best way of dealing with this crisis across the entirety of our planet, given the incredible diversity in demographics, cultures, population density, wealth, health care systems and dna.

EDIT: should have added politics as another differentiator
I am trying to make it easy to assemble business solutions out of services, using open source, self hosted solution. It's definitely early in the development but I think I can express the essence of it now. Early code is available here:

https://github.com/tomlarkworthy/camunda-tools/blob/master/o...

It will be all open source.
Right, my point was just that there's no such thing as a "mostly works" consensus algorithm. By definition these algorithms are intended for systems that can't tolerate failure.

If you feel confident you've built a complex algorithm like this correctly on the first try you probably haven't. Hubris and distributed systems just don't mix.

Verifying correctness to back up our empirical claims is often the hardest and most overlooked part of software engineering.
This is the iPhone SE Plus and it's too large. In the original SE format it would be perfect.
Not sure about vim-fugitive, but vim-gitgutter's hunk previews have intra-line highlighting. I mention it because people often use the two plugins together (and I'm pleased with how vgg's highlighting turned out :)

https://github.com/airblade/vim-gitgutter
The technologies behind BMW's future of mobility
Are you talking about using Optional or things like that in java? That's pretty recent so you can't say that's a property of a static language. And it brings its own problems with it.
There is no sense of anger or rage outside the tiny tech bubble that complains about it. In the real world people have forgot about the headphone jack a long time ago.
> I screw up and occasionally type "jj" or ":wq" in message boxes out of force of habit from Vim

Oh, I do this all the time as well! Adding `alias :q=exit` to my zshrc and other tools where I can custom commands just made it beneficial for me instead of a hassle.
Pretty leet.
What Is Bubble Sort Algorithm?
If Covid19 is 10x deadlier than flu, they both say the same thing.

> it’s like a tsunami sweeping across Europe.” The real death toll, he suggested, will be in the region of a severe influenza season

>UK fatality rate of Covid-19 is likely to be 0.8-0.9%,
Not all locales and politicians are equally activist.
Lessons Learned from Dealing with an iMac’s Dead SSD
So Bielefeld actually exists? Did the timeline switch again?
They could still use aisles for transit, but if you're a hardware store with a garden area, you'd just need to close that one section. Though I'm sure you could make a case that someone gardening in their yard is essential, because it reduces their grocery store trips if they're growing food.
As much as I want this rumor to be true, the leaker that “leaked” this has a terrible track record. Furthermore, what he “leaked” is something already in iOS 13 thats meant to be a companion app to Xcode for some debugging stuff.
How to do Agile Product Management using GitHub issues?
What tools to use?

A story can result in a commit to multiple repos. How to track that?

Also, is there an Agile dashboard for Github issues?
The guide also says you need to close Event Viewer before installing. I'm not sure I want to know why.
The other interesting thing about the subjunctive is that it is not preserved in translation.

For example:

"Que tengas un buen día,"

would translate to:

"Have a nice day."

So, in Spanish the subjunctive is not strictly used for conditional situations. It is not really that you consider that the other person may have a bad day. The closest way to say that in English is: "May you have a nice day."

Like a lot of commentators are observing, it is not that clear whether you need a subjunctive. In fact, if you look at Afrikaans, there are only four tenses: past, present, future and historical present. And Afrikaans is considered a full scientific languages: You can translate any scientific article into Afrikaans.

On the topic of languages from South Africa, you also have noun classes in all of the 9 official languages that are not derived from European languages. These classes are a type of concord that have nothing to do with tense, but rather with types of nouns. They are also not strictly necessary, but they make it easier to follow a conversation. One way in which they achieve this is that if you say something like "I have an axe and a shovel," and later that "I often use it in the garden," then you will be able to know which one of the two you are referring to since they are in different classes and the word "it" need to be in concord with the noun. If they are in the same class, then you don't have concord distinction when referring to the object. I think the development of this feature are more to distinguish objects and subjects in sentences, as they are more likely to be different types of objects (e.g.: a human and a thing) and hence more likely to be in different noun classes. An axe being in a different class than a shovel is more of an coincidence.
> Prefetching content is a W3C standard.

When that content is valid for the user... fetching garbage content over a network isn't "pre" anything.
Python Steering council is soliciting questions for a pycon talk
Of course it's a depth-from-mono model, it says so in the article.
Apple's "true depth" is an estimate from two cameras, that's not actually real depth either but it's exposed to developers.

Also in the article
"We’re happy that this depth data — both the human matte and the newfangled machine-learned depth map — was exposed to us developers, though."
Hey all, I work on the TypeScript team. I've been super happy to read some of the posts about the migration on Execute Program. If anyone has any feedback or questions on TS, I can also try to answer them.
When I first configured this it changed my life as a developer. I use eternal terminal + tmux + vim, and can connect to my "IDE" from any computer.
Agreed, the technical meat is here: https://amp.dev/documentation/guides-and-tutorials/develop/m...
Indeed. Seems there are two articles where this one is about the problem, and this: https://amp.dev/documentation/guides-and-tutorials/develop/m... is about the solution
Use consumer rights to refund for faulty MacBook – diary
> don't really seem to be 'functional' in the functional programming sense, but more the 'we use the function syntax of JS' sense

That's right. A true function has referential transparency. I get that hooks have ergonomic benefits in some situations, but I wish people wouldn't call them "functional".
https://freedns.afraid.org/

Works in the free tier as set and forget. As long as you keep updating it (with whatever API), it works. Filling out a form manually makes NoIP sound like a horrible service.
Next is dead-easy to learn. It takes very little and you have a solid React setup. No config required. The docs are very, very good. And they have a little tutorial.
Maybe the real lesson is you should have done your work instead of let management get pissed with you for horsing around with types the whole day?
Is that a problem with G Suite? I think all such cases I've heard of have been with the free personal accounts offered to the general public, not the corporate product.

And if random account suspension is something that happens to G Suite accounts, I think the answer is that your IT department's G Suite admins can click the button to un-suspend your account.
Why is it that you're afraid of this being "split down political party lines," but OK with the fact that "Republicans have come out as pro-reopening?"

If the science supports shelter-in-place for now, it's automatically bad that Democrats support that to avoid splitting from Republicans?
"most situations" don't apply to specific situations. I write code so the computer executes it most of the time, and the times I wonder what type something is is practically never. It's simply not an isse. The real hard bugs I encounter are always logic errors no compiler would catch.

I would love to have static types in JS, but not at the expense of node.. and not just so people who are in different situations than mine are happy, because I act as if I was in their situation.
>Renaissance and the classical period has never been surpassed? The great heights were reached on angels' wings, not via a filthy corruption brewed from a bean that poisons its own tree.
People drink coffee to cope with fatique, Also i thought reinassance was about not using same Christian beliefs, thus named Renaissance. Anyways Caffeine isn't as bad as the article says