skysight-inc/HackerNews huggingface dataset:
Not really. Making a one-time allocation for a linear pass through an array is almost always bad. It’s often just as bad for many small arrays as it is for one big array.

The idea to not prematurely optimize was never intended to be a free pass to use wasteful practices everywhere until there’s a horrible problem, it’s more about avoiding factoring your code into something you can’t maintain. Generally speaking, baking your corner cases into your precondition code is more dangerous than avoiding allocations.

The idea was also not to leave concerns about performance completely off the table until your application is correct; it is assumed that you are making somewhat reasonable choices for your unoptimized code and your architecture, not that you are actively trying to slow things down with unnecessary allocations.
Some folks in this thread are convinced that end-to-end encryption is going away when the article says the exact opposite.
It's still, on average, a choice between two very cushy six-figure-plus-stock-options deals. No doubt collusion like that puts downward pressure on salaries, but with so much inequality in income in the US, you could put a LOT of such downward pressure on salaries before anyone's going to bat an eye.

(Hm... There's either an economics or sociology paper in the making there about the consequences in employment practices when the wealth inequality in a nation skews large).
Or it's a pilot program is some province where 0.01% of Chinese live and the reports make it like it's everywhere...
Hi is perceived as a defender of democratic systems who has seen fascism - and the war that inevitably follows it - at its worst. He has donated the bulk of his fortune to a foundation that follows this philosophy.
My experience is even locals wait and don't press the button. Near where I live there is a pedestrian crossing across a busy road, and I've seen people waiting there many times without pressing the button. This is in Zone 2, far from where tourists would go.
I got a young friend that is quite bright minded. He is an engineer, graduated from a top school. He works for Microsoft selling software, mostly the Office suit to schools ... Meanwhile I'm a FOSS "enthusiast". There are a lot of money in the school enterprise sector.
> already happened for Instagram

This is the case for business accounts but not quite for normal users just yet. You can create an Instagram account with a username and password and it will repeatedly nag you to connect to Facebook for a while but eventually give up.
I doubt that it's feasible to reimplement GUI widgets. They require tons of micro behaviors. Revery will need to implement not just the looks, but also input, with a bunch of different devices in various configurations―which means lots of possible combinations and interactions between the elements.

Since Revery doesn't use native widgets, it will lose all advanced native features―e.g. nuances of input handling, and automation―or will have to reimplement them one by one on the low level, polluting the code with native paradigms from each platform.

Browsers and GUI toolkits spent decades on this, and still they lag behind, as evidenced by QT's non-support of keyboard remapping on MacOS (i.e. sane “home” and “end”).
No cert chain for starters. The better answer here is some sort of "self signed standard data" for non-CA certs. But right now, testing in a NAT using HTTP2 is a ugly nonstarter.
I think the relevant wikipedia article would be [0].

0. https://en.wikipedia.org/wiki/Starve_the_beast
Yep, also C# has the same damn thing specialized to optional chaining for the same exact reason. The Prior Art is Strong in This One.
"Currently, that isn’t possible because the apps are separate."

It is impossible, because the don't want an open API, which other clients can use too.
Recommend this video instead. Comes with a python library (Ciw).
https://www.youtube.com/watch?v=0_sIus0mPSM

I played with some python queuing to model an analysis pipeline of microservices, as when one of the analytic steps took too long, it jammed up the queue.

A visual queue modeller for microservice orchestrations was a project I abandoned. Would be a fun utility, but requires people building services have heard of queues to begin with.
I disagree.

I feel a lot of the comments decrying "clickbait" actually disagree with the opinion or the underlying assumptions the title conveys.

(Such as in this case the question whether or not this is a simple decision over technical details or a broader shift in strategy with consequences for the users)

I fear this feature could be easily abused by people removing the connotation of the title in the name of making it more "objective" - but by doing this, actually throwing out the reason why the article was posted.
You can try just using https://mbasic.facebook.com/messages/ on your mobile browser. It's quite limited but it gets the job done. Let's hope they don't shut it down as well.
$30 for a smaller inbox though. I have all my email since 90s in there and it all still fits just fine.
It was decided over dozens of meetings with dozens of people, and there are not good notes. Those people are smart and considered more details than you did (but not always the same details). There is rightly fear that if we reconsider this again we will forget one of those other details and some up with a decision that is better for your case but worse overall because it breaks some other case.
I hate to sound pendantic but this part is wrong or very misleading too:

>"a Facebook user could send an encrypted message to someone who has only a WhatsApp account, for example. Currently, that isn’t possible because the apps are separate."

Nothing stops you from encrypting with your own scheme before sending the message to the other service, it’s just added inconvenience. More importantly it implies that you depend on the medium owner for the key management which (as others here are pointing out) defeats the point of encryption (in part) by allowing said medium to read the plaintexts.

Edit: Am I wrong?
Theming a front-end
This feature wasn’t even invented in Swift, the fact that a patent was granted on it shows the sorry state of technical policy making
MH-Z14 or Z19. But this is just the sensor, you'll need an Arduino/ESP/Rpi too.
World Gold Reserves (as of Dec 2018)
I didn't explain it fully, but the alternate future I was imagining was one where SMTP could evolve/instantiate a connection for "ASAP email" -- AKA instant messaging. Kinda like how HTTP can upgrade to websockets.

There would obviously be a lot to work out, but if something like this was in the SMTP standard (or at least introduced), I think eventually email providers would race to differentiate themselves with support for it, and we might not be where we are today. In my view there's no reason to even require the SMTP servers to serve chat traffic -- as long as they could hand off reasonably, and everything spoke the language as specified in the spec (or at least came close).
Used to do this exclusively.
Now it requires a $200+ fee.

Beats nothing, if you’re up against a deadline.
Unregistered filing saved me last week.
IANAL, but as far as I understand Apache 2.0, it grants patent license only in cases which were used in the original code, not universally.
The patent hasn't been granted to the world via the Apache license. The Apache license only covers the code in the Swift language.

So if you implement the claims of the patent in something that isn't derived from the Swift code you are not covered under The Apache license.
If there is someone who will push Facebook to abandon end to end encryption, it will just as soon be Congress, facing pressure form law-enforcement, with the implicit help of the NYTimes, who will no doubt be happy to feed the Anti-Facebook hysteria with classics such as "Facebook is allowing child pornography to be sent through it's newly unified infrastructure".
By "the original ruling" are you referring to https://www.eff.org/files/alsup_api_ruling.pdf , which says, "on the specific facts of this case, the particular elements replicated by Google were free for all to use under the Copyright Act. Therefore, Oracle’s claim based on Google’s copying of the 37 API packages, including their structure, sequence and organization is DISMISSED. To the extent stated herein, Google’s Rule 50 motions regarding copyrightability are GRANTED"?

Can you point to what part of this ruling sided with Oracle on either technical or legal matters? (With the exception of rangeCheck.) Or can you link to what ruling you mean by "the original ruling"?
Privacy is a human right, we need a GDPR for the world: Microsoft CEO
Could you please try to increase the quality of your comments? We're here to learn something substantive, and one-liners don't deliver.

https://news.ycombinator.com/newsguidelines.html
I've been waiting for one of the big Japanese automaker to make a reputable electric car. I'm hopeful for 2020 especially after Toyota announced that they're joining NVIDIA's DRIVE. An electric car that has Level 2 self driving capabilities and 200 mile range under $30000 would be awesome.
>This is very disturbing. It's like Apple has gone insane. Computer languages are not supposed to be owned by any company. We learned this mistake with Java and APIs. Computer languages are supposed to be a part of the Commons, owned by everyone for the benefit of humanity, not the benefit of a greedy corporation.

Who "learned that"? The public (devs, etc) already knew and wanted that.

Companies however, have been patenting their languages and techniques since OS/360 or earlier (IBM, Oracle, MS, Google, and so on). So it's not as if "Apple has gone insane" at all, all big players do it. And not because they want to sue either -- you also need them to not be sued yourself oftentimes... (if Apple doesn't patent e.g. their "Optionals chaining" technique mentioning, what's to stop e.g. Oracle doing it and suing them?)
This is fundamental. If Facebook messages are still to work as before, with a web interface, an archive etc. then you need to supply Facebook servers with a decryption key. You no longer have end to end encryption.

And I don't really see how they could get rid of the web features, it represents a massive number of FB Messenger users. This ties nicely with the older pressures from Zuckerberg to monetize WhatsApp and the resistance of the founders for security reasons, this most likely means access to the conversation plaintext.
We make a big hoo-ha about “social credit”, but I would argue that western financial credit scores function (or will function) in a very similar way given the amount of data some of the third party credit score providers pull and can pull in. The threat is huge because pretty much everyone needs credit to buy a home, and if you’re not a good boy or girl, that possibility will be taken from you.

And here’s the dark feeling: Facebook profile and use creates a personality profile. Personality profile is valid credit-score data. That data was possibly stolen from FB. If so, your financial credit score (and by axiom social credit score) is now available to anyone who will pay for it.

I’ve been particularly aware of this, because as a self-employed entrepreneur, my credit score has taken a pummeling - I think largely due to erratic cash flow. I see it as a long term threat to risk-taking. Basically, the lesson is clear: by seeking to change things, as entrepreneurs do, you’re not being a good boy or girl.
So is Airbnb misinterpreting GDPR then? I’m pretty sure GDPR rules apply to EU citizens regardless of where they reside?
You're only as anonymous as the contact records in all the phones you're communicating with, i.e. not at all. The only winning move is not to play

https://www.cnbc.com/2018/03/26/how-to-stop-your-phone-from-...
There's 23 authorized retailers in New York according to Canada Goose's website. While it's possible they were all sold out, that seems unlikely to me, especially since some of those retailers include large companies like Bloomingdales with warehouses of their own and websites accordingly. They could have walked into any of the 23 and purchased one physically. If they wanted one, they could have gotten one, above board. The real thing that happened here is the author had buyer's remorse and had the opportunity to rectify the situation, and while that's completely fine, this article should be much more indicting of Amazon than it is as they're really the culprit for this author's problem.
Monsters.
We look up to historical figures who owned slaves. There were people who were morally opposed to slavery back then as well.

The fact is, people who accomplished great things also engaged in morally questionable stuff as well. If we try to erase all of these figures from our history books, they'll end up empty. We have to accept that social mores fluctuate over the generations and read history with the appropriate perspective.
In the same area; don't those have a visual light indicator that flashes when you press it?
Fun fact: All three of Go's creators have written APL interpreters, and Go's "iota" keyword is modeled after the corresponding APL operator.
Maybe there is, maybe there isn’t. But software and Sistine chapel having creators doesn’t provide any proof regarding origins of anything else.

Some people choose to assume things that make themselves feel better, such as after lives and gods. Some people assume the opposite. Some people don’t assume anything at all. Either way, it’s nobody else’s business. Belief = assumption + ego, so I find assumption to be a better word to use when speaking about a political topic.
Good idea! I'll add it.
Ironic timing: I just adopted Singal as a replacement for WhatsApp and have been telling all of my WhatsApp contacts I’m going to drop it in favor of Signal because I don’t trust FB not to fiddle with Whatsapp’s Infrastructure or pull games with the end-to-end encryption.
They actually finally did this in OneCore AFAIK.
Golf communities not on par with neighborhoods
I don't like the overt branding either so I just got a black labeled one instead.
The idea is that the higher purpose of a $1 ticket is creating a paper trail of jaywalking behavior that could be useful in court.
Dangers of the unibrow(ser)
You know what. I looked again at the license. I think this is the first time I've noticed a flaw in the Apache 2.0 license. I think you are right. Derived works is described as: "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof."
Choosing Between Windows and MacOS Still Matters
Proof and test are different things, you seem to be missing them. A proof is a math concept to verify that all cases are handled, a test is a implementation concept to check one particular case is handled the way you think it should be. Both are important because both uncover a different type of bug. (Proofs uncover cases where you didn't think of something, tests uncover cases where you thought of something but didn't get some detail right)
Well-Preserved 3,000-Yr-Old Pre-Viking Sword Unearthed
Your prescription cannot be the same for contacts as it includes additional parameters like curvature. The diopter may or may not be similar, true.

The whole point of a separate contact lens exam is to assess lens fit and check for corneal complications usually related to over-wear.
At night plants start to produce CO2 as well - when you're sleeping and most vulnerable! If the amount of CO2 they scrub is significant, the amount of CO2 they produce in the evening should be as well, no?
In Sweden it works the same. When you are walking down the street and finish your drink, it's common courtesy to not throw it in the trash can, but instead just leave it on the ground right next to the trash can for someone to collect.

They've also basically completely mitigated the fraud aspect of this by having all machines in all grocery stores scan the UPC on the bottle to determine whether it is manufactured in Sweden. The deposit is pretty significant there too, 1 SEK, which is equivalent to about 10 cents right now.
I think this sentence from the essay does a nice job of summing up Feynman's character:

'The act of discovery was not complete for him until he had taught it to someone else.'

I'd recommend Hillis' Web of Stories interview series [1] to anyone who appreciated this piece. He shares several of the stories described in the essay in video form (e.g. 105, 106, 119, 127 & 234), and there are plenty of other anecdotes and insights worth listening to.

I think Hillis is pretty interesting in his own right, but he's crossed paths with some other people in addition to Feynman that HN readers might be interested in hearing about: Marvin Minsky, Jeff Bezos, Freeman Dyson, Steve Jobs etc.

[1] https://www.youtube.com/playlist?list=PLVV0r6CmEsFzo005LM6PT...
Just publish all your findings and establish prior art and you should be ok. Or is there more to it?
> all big players do it

I don't know of any instances of Amazon, Google or Facebook trying to patent programming languages. Microsoft definitely did try this.
So, Websockets over HTTP/2 are only available in latest Firefox (or experimentally in Chrome, if you manually turn on a flag for it). Almost no servers support HTTP/2 Websockets, too.

Sorry, it is a little too early to switch.
There's nothing stopping you from having one connection per request with HTTP/2. You could build your software to simply have the same behavior as HTTP/1.1 with keep-alive
WhatsApp's UX is pretty darn good and would be copied for Messenger. You sign-in on the web from your phone and then messages are proxied through it.

Also an option to enable web E2E with a password-protected key stored on FB's servers is still pretty darn good.
Yup. It was arguably even worse before. Pulitzer himself ran fake news about the Spanish in Cuba as propaganda to support the Spanish-American War:

By the time [Joseph Pulitzer] actually composed his thoughts for the North American Review, his bed chart included rheumatism, dyspepsia, catarrh and a bad case of shame for the Spanish atrocities in Cuba deliberately invented by his reporters to goose the circulation of his newspapers. - Michael Lewis (1)

It was a part of the news culture of the time, too. It wasn't just restricted to Pulitzer. (2)

[1] Michael Lewis, "J School Confidential", 1993
[2] David R. Spencer, "The Yellow Journalism", 2007
I'm having trouble recounciling that with the study that shows cognitive decline, can you explain your wife's thinking?
The court did. But the appellate courts (who are known for being pro patent) said the ruling was wrong
> what's to stop e.g. Oracle doing it and suing them?

Proof that they had it before it was patented.
Yes. Using it now with Ubuntu 18.04. Available via apt-get.
did all of this spawn from Phonegap? I remember when Phonegap first came out, it was a clever thing but rough around the edges. I used it when chasing the cross-platform mobile app dream with some success.

Then Apache picked it up as Cordova and the Ionic framework really helped to show what could be done with it. Ionic has come a long way and I'm, today, finishing up a client mobile project using that framework.

A while back I recommended Electron to a colleague who was tasked with implementing an old java applet as a stand alone application (we're all web developers) and it really saved him a lot of grief (client was happy with the price tag too).

To me, Electron is Phonegap for the Desktop. Is that how this all came about?
Hume has interesting comments on this idea. https://en.m.wikipedia.org/wiki/Watchmaker_analogy
Airbnb buys meeting space booking startup Gaest
because punishment will be smaller than profits

This is easy to fix by increasing the punishment, right?
Yeah, a little OCD but I couldn't stand the first example (and some of the others). Here's a more reasonable implementation that doesn't special case (or more precisely wraps the special-casing in a standard library method):

class Array
def neighbor_sums
map.with_index do |_, i|
fetch(i - 1 & 0xFF_FF_FF_FF, 0) + fetch(i + 1, 0)
end
end
end

[1, 1, 1, 1].neighbor_sums # [1, 2, 2, 1]
It can definitely happen. I'm guessing it varies state by state, but I was hit by a car while out running. I was crossing at a green light, didn't press the button, and a car made a left turn at the same time and hit me. The police report said the driver was not at fault.
Freezer is probably better.
That was my understanding as well, but I'm not a lawyer of course.

They also seem to be misinterpreting their own support pages which say accounts can be deleted and don't mention anything about GDPR or country of residence (https://www.airbnb.com/help/article/240/how-do-i-deactivate-...).
Free and New MERN-Stack Online Course Available
> The move, described by four people involved in the effort, requires thousands of Facebook employees to reconfigure
how WhatsApp, Instagram and Facebook Messenger function at their most basic levels. While all three services will
continue operating as stand-alone apps, their underlying messaging infrastructure will be unified, the people
said. Facebook is still in the early stages of the work and plans to complete it by the end of this year or in
early 2020, they said.

Thank god. If they collapsed WhatsApp into Facebook Messenger, I would quit
WhatsApp.
That's the point. The idea of having a "defensive patent" is to avoid having trolls patenting the same thing and then going after small companies with no means to defend themselves in a patent suit. For instance: https://www.x-plane.com/2015/12/patent-troll-update/.

Anyone would be free to use the patent. But trolls can't sue with it.
This is interesting because it raises questions about what is a fork. Can I fork Swift and throw out everything except for the patented part and then merge it with my project?
AlphaCiv would be interesting as hell, but I fear that there isn't historical data for Alpha to consume. I would expect it would have a similar result to AlphaStar though-- it beats the human player before the end game.
The proof is in the pudding. The creation is the proof. Even Moon does not have life... Even though it has the right distance from the sun and what not...
To me the only purpose for having a button is for intersections that only go red when there is a car or pedestrian waiting to cross.
I'm willing to bet that at least some of the people all indignant about people buying coats that cost more than was "necessary" think very little about buying computers and other electronics that are more expensive than what they really need.