skysight-inc/HackerNews huggingface dataset:
- Go's opinion about generics has always been that it should have them, but finding the right expertise to implement them in a non-ridiculous way has been a struggle. They are marked for inclusion in coming versions (2.0).

- error is an interface. If you are returning strings most of the time, you're probably doing it wrong.

- Wasn't gofmt originally executed during compile time? I'm not sure why it changed, but it suggests that such automation fell apart in practice.
BTW There are many fast algorithms https://en.m.wikipedia.org/wiki/Multiplication_algorithm

Fastest of them use FFT and parallelism
The issue with changing `arr.push(3)` to `arr.push('baz')` is that there's still a type annotation on the function saying `Array<string | number>`. If you get rid of the type annotation or change it to `Array<string>`, flow is ok with it:

https://flow.org/try/#0GYVwdgxgLglg9mABAWwKYGd0FUAOAVAC1QEEA...

Both Flow and TypeScript have good type inference (with Flow's generally being better, I think) and do pretty well with all type annotations removed, but that wasn't shown in my example because I explicitly annotated all types.

Note that if you do want/need to give an explicit type annotation for this sort of thing, Flow provides `$ReadOnlyArray`, where `Array<string>` is assignable to `$ReadOnlyArray<string | number>`:

https://flow.org/try/#0GYVwdgxgLglg9mABAWwKYGd0FUAOAVAC1QEEA...

It sounds like you're arguing that TypeScript is wrong because it's overly-permissive, and Flow is wrong because it's overly-strict, which makes sense. That's probably why people prefer to use the word "sound" to describe Flow rather than "correct". Every sound type system has cases where you can write perfectly correct code that would be rejected by the type system (which is provable because of the halting problem). Opting into a type system always means that you limit the type of code you can write in exchange for better automatic verification.
Yeah. I think Travis provides a warmed server.
I've seen it hypothesized elsewhere that lower-class racism is largely a product of fear of displacement in the social hierarchy by minorities. I wonder if the same mechanisms are at work.
https://news.ycombinator.com/item?id=15648080

https://news.ycombinator.com/item?id=15651710
Bitcoin's price is determined by supply and demand, not by the mining reward curve. But yes, Bitcoin would need an exponentially increasing price to be sustainable in the long term without higher transaction fees.
> Your analogy is ridiculous. In what way is polluting a river like hosting a social network on your own servers?

It's an analogy for the "age old personal responsibility argument", but if you want to get metaphorical then maybe society is the river, Facebook the pollutant?

I mean come on man, it doesn't take a creative genius to connect the dots here, and it's certainly not ridiculous.
> but in real life an expensive consultant will pay for herself over and over.

Not available to middle class and below, or small companies. This is the entire problem.. in the EU at least if you start adding up VAT and normal taxes you end up at something like ~40% tax pressure for the average citizen. Wealthy people can dodge this with all kinds of fancy constructions. Similarly, big companies can either negotiate special individual rates or, again, use fancy constructions to lower their tax burden. Apple's effective global tax rate is 0,005%[0]...

[0]http://money.cnn.com/2016/08/30/technology/apple-tax-ruling-...
You're saying "graphQL is always better than REST for new/small companies"; that's simply not true. It's a tradeoff. Same with (g)RPC.

Just like you wouldn't buy and install 20 powerful servers to run kafka on day 1 just in case your startup meet huge success in 2 years.
Logitech Will Be Intentionally Bricking All Harmony Link Units on March 16
Citation? Ok, you asked for it...

"Instacart is infuriatingly bad. Replacing your main entree meat item with nothing, no call/notification, negates all convenience it offers"

"My 1st @Instacart experience will be my last. 26 of my 49 items have been replaced but mostly refunded so I still have to go to the store."

"i once had them tell a store had no cheese. completely out of cheese. no cheese was available to replace. i was naturally pretty cheesed off"

"@instacart Why should I continue to use you all if every time I order, a huge % of items are out of stock and replaced? Update your database"

"Same happened to me! 14 items, and 8 ended up being replaced. I'm going to give them another chance, hopefully it was just a bad shopper."

...and more.[1] Clearly the lack of integration with realtime inventory systems is a weak point. But perhaps you could clarify how the model is supposed to work.

[1] https://techcrunch.com/2017/10/01/instacart-needs-to-deeply-...
Kontena Cloud Compute: Fully integrated and scalable infrastructure for containers
I feel like this is true for any language though.

Once you write a well designed, well tested, and feature complete piece of software, you can deploy it and forget about it unless the server it's running on breaks.

Go isn't special in that regard, unless there's something that makes Go easier to write, test, or deploy, which might be the case, but you haven't supported that.
> ... when used judiciously.

That applies to many C++ features, not just auto.

Maybe the problem with C++ is that it's not a language that you can use well without developing a sense of good taste - knowing when to use certain things, and when not to. (And then you have to interface with code written by someone else who didn't have any taste, and just used features without regard to whether they made things better or worse...)
Deep Learning from Scratch: TensorFlow
Article is right on! Read my mind. I've been a developer for 20+ years and iOS developers since developers could write iOS apps. Mac apps before that. I can't tell you how many hours I have had to fix "clever code" and clever architecture.

It is so easy to jump into an app that follow the usual iOS design patterns. As soon as I see NSNotificationCenter or Event bus garbage going on, I know the app is a design/maintenance nightmare.

Keep it simple, following patterns like MVC, delegates and protocols. Keep your view code, business code and controller code separate. That is 90% of the issues.
> actually implemented in-depth testing beyond the anemic xcode support

I think this is the key motivator for people looking at alternative architectures. My guess is most people wouldn't stray very far from basic UIKIt/MVC if the established practices weren't so hard to unit test.

I see the experimentation with alternative approaches as the iOS community going through a phase of maturity, and is a positive signal. Many people in the community care deeply about issues of code quality and testability and while striving for simplicity. The increase in iOS architecture related articles is an indication of unrest and an active search for better practices. I suspect that it is only through these experiments that we will discover the balance we are looking for.

Similarly, I think articles like the OP are a healthy resistance against the pendulum swinging too far the other way. Although I agree with several points made I'm disappointed that testability isn't even mentioned and thus many points ring hollow.
Interesting points, especially about the culture change. I really hope that with the legalization, there is going to be a push for better education about marijuana. Right now broadly speaking it's pretty binary, "pot is a gateway drug, etc" and "weed can do no harm". I'm a regular user myself, and have some understanding of the associated risks. So I think we might see a small but non trivial increase psychiatric disorders in young men in particular after legalization. Cannabis is already considered a risk factor if you have schizophrenia in your family [0].

The other thing I'm concerned about, besides the psychoactive effects, is lung health. Anecdotally the smoke doesn't seem as bad as cigarette, but regular (non oral) use can't be great for your lungs, pulmonary disorders are nothing to mess with.

Either way legalization should be lead us to a better world - I just can't wait for research to become easier so we can get some more concrete answers.

0. https://academic.oup.com/hmg/article-abstract/26/13/2462/357...
Take a look at this: https://blogs.scientificamerican.com/mind-guest-blog/opioid-...

>According to the large, annually repeated and representative National Survey on Drug Use and Health, 75 percent of all opioid misuse starts with people using medication that wasn’t prescribed for them—obtained from a friend, family member or dealer. And 90 percent of all addictions—no matter what the drug—start in the adolescent and young adult years.

>A Cochrane review of opioid prescribing for chronic pain found that less than one percent of those who were well-screened for drug problems developed new addictions during pain care; a less rigorous, but more recent review put the rate of addiction among people taking opioids for chronic pain at 8-12 percent.
>> FB need to ask themselves "is the content (eg news) on FB of good quality?"

I think this is a general problem. If Facebook is optimizing for whatever users "Like", as you suggest with the data scientists, it is analagous to a business given customers whatever they ask for.

As Henry Ford is said to have said, "If I had asked people what they wanted, they would have said a faster horse" (or something). You have to find a balance between "the customer is always right" and the fact that you are in a better position to be a domain expert.

They have to balance "what gets people engaged" with "what's good for everybody" and hopefully find an optimal solution for both.

Not sure how accurate it is, but the way Facebook's founding ideas are portrayed in The Social Network definitely screams "exploiting human psychology".
Building Webapps with Golang
Wonderful side effect: the company can honestly say that they fired them after the incident!
I was thinking of making my own sites to spread fake left and fake right news and tracking clicks.
Bitcoin compromise collapses, leaving future growth in doubt
Non-mobile link:

https://en.wikipedia.org/wiki/Multiplication_algorithm
Anand Varma has a really powerful/terrifying photo series on host-parasite relationships in nature:
http://ngm.nationalgeographic.com/2014/11/mindsuckers/varma-...

The accompanying article in National Geographic:
http://ngm.nationalgeographic.com/2014/11/mindsuckers/zimmer...
How Some Small Banks Are Firing the Fed
Likely near term price movements in Bitcoin using Elliot Waves
GNU Time 1.8 released
I own my vehicle, if you drive it and cause an accident aren't you primarily at fault.

Assuming normal circumstances (so not considering things like me letting a child drive, or letting you drive drunk, etc.). The person/persons in control of the vehicle are surely at fault - being the owner doesn't give you power to alter the programming and so you are powerless to avoid a crash.

The company directors, who instruct the system's programmers, are the one's able to avoid the crash by making the vehicle operate effectively.

There may be circumstance where a crash could not be avoided but there are going to be plenty when alternative actions - for which there is a strong rationale - would avoid a crash too.
Back in the early 2000's there was this driver/library to output any graphics in ASCII instead of framebuffer or whatever.

A colleague had a Linux box at home with a TV Tuner PCI card. We would SSH from the University's lab and watch TV-on-ASCII-over-SSH to the amusement of the people around us.

Sounds so simple and silly today, but it was a fun way to learn back in the day :)
“The Digital Evolution of Stock Trading”
The study abstract: https://jamanetwork.com/journals/jama/article-abstract/26615... . This study appears to be too new for sci-hub to have it; it is extremely unlikely that the Ars Technica writer read the study at all.

The headline here says the study "finds opioids no better", but what actually happened is that the study was too small to reach statistical significance on any of its endpoints.

More importantly, the study chose the top of the recommended dose range for the ibuprofen+acetaminophen group but the bottom of the recommended dose ranges for the oxycodone+acetaminophen, hydrocodone+acetaminophen, and codeine+acetaminophen groups. This strongly suggests that the study designers knew what outcome they wanted, and arranged subtle details of the study (which are hidden behind a paywall!) to make sure they got it.
How to Implement Multifactor Authentication in Your Django Application?
Seems like an oversight, doesn't it? I've created an issue to track here: https://github.com/keratin/authn-server/issues/15
My journey to unlocking Amazon Affiliates
So you're admitting that the problem is quality tooling, not lack of C++?
This is mostly equivalent to grade-school multiplication, but in binary. Good enough for multiplying small numbers; too slow for very big numbers.
A danish director made a film on the topic: he follows a Rent-A-Friend business boss who hides what he is doing for a living to his own family
Imdb: http://www.imdb.com/title/tt3242460/
I went to a hackathon a few years ago. At the end of the hackathon, my team member (about 10+ years older than me, I am in my early 30s) asked to contact her on Facebook. I told her I didn't have one, because I didn't. Not even an account that I didn't log-in to. She gave me a weird look, then frowned, as if I was shunning her. My other team member looked shocked as well.

I thought it was weird that if you don't have a Facebook account you're kind of looked at weird now.
Yeah, we use Visual Assist here, I suspect it's the reason behind this issue but then again it's a lot better than Intellisense in day-to-day use so.....
This is what a lot of people miss. There isn’t much of a “honeymoon” period to cannabis legalization. There’s already a LOT of people consuming illegally right now. They will buy it through legal means in due time. They will still continue consuming. And there’s a LOT of users. It’s a pretty well established, stable market once the customer starts buying.
Agreed. This is one of the things people hate about type systems is fighting with them saying "I know better".

This example is quite interesting because javascript itself does not provide a way to check the type of an array, unlike a primitive. This is likely due to the fact that an empty array doesn't really have a type for it's items yet.

Here is an example where typescript can infer the type using the `typeof` runtime check but provide compile time checking.

https://www.typescriptlang.org/play/index.html#src=function%...
If you're still using c++ in 2017, you're already doomed. While I understand not everyone is pro enough to translate old rotting code to Rust and other superior languages, you still can make your contribution to humanity by writing new projects in better languages. For how many upcoming years will you fool yourself writing in shitty languages and calling yourself programmers while inflicting pain upon next generation of programmers lol.
Today. See my point about 2024.
Rent a Family, inc (Documentary)
TIL Parsing XML in ES6
Regardless of the usefulness of the device $40K award doesn't seem a lot, especially for a company like Dayson.
what about this? "To confirm it wasn't just the chewing mechanism of the caterpillars degrading the plastic, the team mashed up some of the worms and smeared them on polyethylene bags, with similar results.

Read more at: https://phys.org/news/2017-04-caterpillar-bags-biodegradable...
So what you're saying is, if a company like Amazon or Google has the excess bandwidth, it is beneficial for them to send way too much data in the first place in order to disguise what data is actually being sent.

Now, there is some security basis

http://www.cs.unc.edu/~fabian/papers/tissec2010.pdf

>Uncovering Spoken Phrases in Encrypted Voice over IP Conversations
And the scarier quote is this one: "Because, you know the [Warren Buffett] expression about compound interest. ... [G]ive us billionaires an extra hundred years and you'll know what ... wealth disparity looks like."

Having a large ranch of data cows is one of the ways of getting there.
Yarn: From Zero to 700,000 User Searches per Month
I guess I must have imagined a decade or more of seeing absolute positioning in objc code.

I will re-state it. What would cause people to say that Auto Layout is one of the top achievements Apple has ever produced? Unfamiliarity with how other people have approached the problem is high on my list.
Those opioid doses are all super low, roughly equivalent to a single Tylenol 3. The alternative is a super high dose of acetaminophen. 1/4 your daily recommended maximum. At roughly 3x the acetaminophen + the fairly high dose ibuprofen I don't think there is anything really surprising about this.

You couldn't take that acetaminophen dosage for more than 8 hours with 2 hour dosing without hitting your daily maximum. I'm skeptical that opioid alternative with such a low dosage over such a short period of time has any real chance of being addition forming.
auto can be ambiguous:

template<typename Collection>
void foo(const Collection &c) {
auto x = c.find("foo");
...
}

is x an iterator (Collection is std::map) or a number (Collection is std::string)? Here it is better to write out the iterator type if that's what you mean.

auto can also be downright misleading:

template<typename T>
void foo(std::vector<T> &c) {
auto first = c[0];
...
}

`first` has type T except when T is bool. Gross. Better to write out the type T.

auto can simplify many cases, but please don't take Sutter's "almost always auto" suggestion. Keep your future code readers in mind and be aware of its pitfalls.
That would have been interesting, if a bit rehashy.

This is a guy blurfing at length about text game design. The "Skyrim" is just thrown in there as a callback to something recognizable but has almost zero to do with Bethesda's game.
Right, but "post-scarcity" is about stuff, no?
You simply don't ship

That's totally an option for our product, great idea! Why did I never think of this!

No seriously we are shipping, using OpenCL and it gives about a 20 times performance advantage for most users regardless if they have AMD or NVIDIA hardware. If something that's actually better than OpenCL comes along (or if AMD RTG goes out of business) I'll switch to it no heart broken.

But that hasn't happened yet.
World Record 1000+ Case Binder Dominoes
I’ve also never opened a FB account. I also used to receive those surprised reactions. For whatever reason, nobody ever reacts that way anymore. To me, that’s one strong indicator that FB doesn’t actually matter.
C is already dying why are we even talking about it? It should be in history books while us guys celebrate writing code in much superior languages :)
Per https://en.wikipedia.org/wiki/Household_income_in_the_United...

If you were earning more than 100k you were in the top 7% (in 2014)

More than 75k puts you in the top 13% or there abouts.

Tech is wealthy
I know the Netherlands has had issues with drug tourism after their legalization efforts. I wonder if Jersey won't have similar issues. Other states that have legalized have been protected from this by geography, but Jersey City is smack in the middle of a gigantic greater metropolitan area and mass transit system that spans multiple states.

But the plan is to delay actual legalization till 2019 (the Gov just wants the legislation passed in his first 100 days), so presumably they're conscious that legalization will bring about a bunch of logistic issues like this that need to be worked out.
Yeah, but what is it, 1/8 Americans are already alcoholics, so 12% of the time you're not making things any worse!
Top Tips for Successful Seasonal Ecommerce Emails
Certainly there are some unjust laws for which it is just as bad to leave them in place as it is to have enacted them in the first place. These may not rise quite to that level, but just because he did not sign them himself doesn't absolve Obama.
I have, but early on and not much since. I forget my particular issues; I just remember at the time there didn't seem to be a way to do what I wanted (I think it was adding docker as a dependency).
Interesting! I hadn't heard of that system before.

We still don't even have representation for the 680k people living in Washington DC, also more populous than a number of states. So sadly I'm not optimistic.

The 580k people of Wyoming have two senators and a house representative, while DC gets one non-voting representative. It's somewhat absurd.
>Or games like Bloodborne or Dark Souls, which, at first glance, are just action games, but when you look beneath the surface, they hide extremely rich and deep storylines (but its up to you to dig for it if you so wish) and incredible environmental storytelling

In a similar vein, Overwatch, one of the biggest 3D action games at the moment, has gameplay that exists entirely as non-canon action segments borrowing characters from the world. But it's still not shallow; there's a ton of worldbuilding in the environments, voice interactions between characters that hint at shared histories, and stories told in Blizzard's incredible animated shorts.

Just because something looks like a shallow action game doesn't mean that's all it is!

Related: the most recent animated short, Honor and Glory https://www.youtube.com/watch?v=sQfk5HykiEk
I assume the game they were testing was "Overwatch".

I recently saw some compilations posted by female streamers of the abuse they receive. It was pretty scary, and the community is uniquely aggressive for some reason.

I am a particularly bad player myself. I actually quit playing with strangers because the abuse made the game not fun, and I am a male.

In my experience low skill players receive an equal amount of harassment, but where I was being called The "N" Word, homosexual slurs, and just told to kill myself, women were given extremely detailed descriptions of how they would be raped, murdered and even cannibalized.

The stuff children think it is acceptable to say to a women anonymously is INSANE. And we have no way of reporting someone for being the next Harvey Weinstien or even Ted Bundy and getting them reliably removed from the game.
I think getting the facts right is important. If the number of millionaires is "not the point", why even include the figure in a comment in the first place?
Same. I was then expecting the first comment to be "If you have to ask ..."
Yeah, isn't the heavy computational work what's provide value and security to the blockchain?
Revealed: aluminum foil can actually help to fix Wi-Fi weak spots
Ask HN: How to make Facebook App Install Ads work?
I have an app for which my net revenue per download is $0.62 (calculated by dividing monthly revenue by number of downloads). Facebook ads for this app cost an average of $5 per install. I've tried FB ads a few times with different messaging, but always gave up in a week or two after seeing the amount it's costing me. Is there any way to make FB ads work for this app? Are there any benefits other than just revenue to consider when purchasing FB ads?
> I just wish people were able to collectively give up social media.

As long as you realize that Hacker News is also social media.
It never occurred to me before... from the perspective of an insect (with a bit of anthropomorphism), fungus is an invisible, undefeatable faceless enemy that quickly turns the world into a nightmarish hellscape. It's almost like the borg. I'm fucking scared.

Imagining A Bug's Life or Antz could have been far less family-friendly if a couple of these spores made an appearance.
sigh I thought this was going to be a realtime AI which described the world from the frame
This seems an odd test - when I first had diet coke it tasted weird, but it became an acquired taste and now normal coke tastes weird.