skysight-inc/HackerNews huggingface dataset:
Just a few points:

> Two stand out to me: the Paris environmental deal, and the Iran nuclear deal. In both cases, do you think that renegotiating these deals will lead to a better outcome? Congressional Republicans have been arguing for tearing up the Iran nuclear deal, which seems highly likely to make the world less safe.

I think that renegotiating is always a good idea. Starting off on one extreme and then making concessions is one way of negotiating, and one that I think is the best. That way the person you're negotiating with doesn't quite know how far they can push you, and you might get concessions you might not otherwise get. And it's just renegotiating - nothing is set in stone. Once you start making definitive statements, you start painting yourself in a corner. Since renegotiations under Trump will start at the earliest in 3 months, why would you commit to a course of action now? Lots can change in 3 months, and you don't want your words thrown back in your face.

> But to be clear, do you merely support deporting "criminal" immigrants (i.e. felons), or do you believe it's necessary to deport as many undocumented residents as possible?

I would argue that semantically, all undocumented residents are "criminal", as in technically they're breaking the law being here. Now that being said, they do provide a large boost to our economy, so I guess the answer is "it depends". Not to sound too cold-blooded, but a lot of illegal immigrants seem to feel entitled to life in the United States while they are breaking the law. "We've lived here decades and worked very hard! We should be citizens." They fail to realize that they are uninvited guests in our country right now, and we are fully within our rights to send them back to their countries of origin. Once again, Trump has done a great job of not getting nailed down to one specific course of action, because like I said before, a lot can change in 4 months, and he'll get a lot more information once he becomes president.

> Yet because the Clinton Foundation takes Saudi contributions you assume Clinton is opposed to LGBT rights, and you assume otherwise about Trump?

Also she advocates for the intake of refugees from primarily fundamentalist Islamic countries, many of whom believe in Sharia law. Trump has softened his immigration stance on Muslims to be "extreme vetting" for countries known to be jihadi hotbeds. Those are the countries most oppressive to LGBT rights, and I think it's good that we restrict immigration from there.
Wrapper functions are not the same as full blown ORM.

For every heavily used ORM features, there's an opportunity to fall into a trap, e.g N+1, because the surface area of an ORM is wide.

In contrast, wrapper functions are low cost, easy to write, and recognizable because you write them yourself.
Warmer and on their terms; attempts to have closer relations without Putin, and with other US leaders seem to have both been less well-received.
Grossly incompetent not just stupid people could have died.
I really like the idea and also how it looks, but the main reason I balk at using something like Disqus is that I hate having to pull in javascript from domains and servers I don't control on personal sites.

I think there is a large market for an open-source library that you can just drop in that functions exactly like this... particularly if you can manage to get it to run entirely client-side.
That's quite a performance improvement. I'm curious if this was directly related to just switching to PHP7, or something under the Tumblr hood, that they improved upon as well. While reviewing their own code.
Thinking about it I'm not sure they all do. If that sort of behaviour is validated enough and they come out of school with next to nothing, which is the case for many bullies in the UK, they will definitely get a sharp shock when they step into the real world.

On the other hand, some go on to head large companies and make billions where their behaviour is idolised as the way to get great things done.
There are dutch people in this comments section saying that laws are too lenient and that harsher prison sentences are needed. That should count for something. There was one commentor talking about how someone had assassinated a front-running political candidate and gotten off after a measly 12 years. That suggests to me that something is wrong.
I see what the feature is, but I don't see the use case or benefit - in this particular case! The social, payment, consumer storage, I definitely do. But it feels a little like the age-old example of abstracting away your database layer, in case you wanted to change which database you use later. (It's incredibly rare to do it!)
Isn't that a timing race? You're relying on the notification of "I'm done" getting there before the other thread tries to send.

Write-and-panic has the advantage of being atomic. And you can catch a panic.

If you have a stoppable reader like that, maybe have it pull using a channel of channels. That is, consumer sends the producer "here is a one use unbuffered channel, please put an item in it" and then blocks waiting for the response.
Sounds amazing. I'll make sure to reach out to you tomorrow.
I think one of the key takeaways from Tuesday: Trump won in spite of what was widely regarded as a NON-EXISTENT ground game. I did not vote for either Trump or Hillary, but I was pretty confident that Hillary would win due merely to the fact that she had a much much stronger campaign organization in swing states. Perhaps ground game, grassroots field offices, and voter databases don't matter as much as everyone thought they did prior to Tuesday.
That's an issue? A price is just a value on something. It's wrong that things have value?
Harvard scientists might have pinpointed the source of human consciousness
Instead, today they mostly visit swing states. Is that any better?
There will be deeper analysis done in the months to come as more data is gathered but it's clear from the initial data that economic anxiety did play a role in the election outcome:

http://fivethirtyeight.com/features/trump-was-stronger-where...
The most accurate time measurements of quantum jumps to date
He's largely talked about tax breaks and trade reform to encourage more companies to bring things back to the U.S. that are currently done overseas. I don't recall him ever talking about eliminating technology that replaces human labor. I think it's way too big of a leap to speculate on that until he shows signs of moving in that direction.

There's a lot to dislike about him and I don't think it's fair to speculate on positions of his he's given no evidence to merit speculation on.
http://www.politifact.com/new-york/statements/2016/aug/14/se...
4 Client-getting myths, debunked
Thank you, I believe Leibovich's response provides the relevant context though.
Apparently I get those two words confused. Should be misogynist.
The first answer is that it appears there is no way for the embryo to have its sex selected non-randomly. It's like throwing a coin, you end up with 50% chances for each sex.

The second answer is that there are indeed cases the environment can influence the chances for either male or female in several species.
For example, mostly for reptiles, https://en.wikipedia.org/wiki/Temperature-dependent_sex_dete...
And now apparently there will be some 300 US Marines stationed on Norwegian soil. Something that didn't happen even at the height of the cold war...
if i read it right, its really clever but also not very nice to the other states.

For the NPVIC not every state has to join it, it comes active when the states that joined the NPVIC have a majority of the electors. Then the electors do not vote according to who won their state, but to who won overall. So if the democratic states and enough swing states all sign the NPVIC to get to 270 electors, they changed the rules of the game.

There is an realistic chance for it to succeed. I wouldn't give it 84% ;) But it's not impossible.
You can compare these guarantees and results from testing:

https://github.com/andrewgaul/are-we-consistent-yet
Almost all kid kidnappings are from someone the kid knows, like a parent without legal custody.
So it is not about transparency but to influence the elections. Thank you.
> This isn't so much the Japanese being weird and different as the American's being the odd ones.

German, confirming.

What I fear is, that like many other cultural things, this will eventually make it's way over the Atlantic and, when I have kids, I will be forced to do this to them, too.
> What do you have to say about the women who voted for Trump. Do they support molesting themselves?

They are feeling relatively safe from molestation. That good. They like to think it's because they are keeping themselves safe. If it's their doing then they're in control. So it feels good to them to blame women for their assaults and to believe that men like Trump aren't doing anything. It makes the world feel safer.

The liberal position, that men like Trump do sexually assault people, and that rape is common, and your friends might do it to you, and you should probably believe rape accusations by default, is much scarier. Many women would rather not believe it if they can avoid it.

Women with a LOT of privilege can safely believe it because they can use their prvilege (money etc) to stay safe. Women who are forced to be in unsafe positions can believe it, because they see how common sexual assault is. They are on the front line. Those two groups make up the feminist core.

But there are a lot of women who are just trying to put as much distance as possible between themselves and the rape scene, and for them it's a bit of an abstract matter.
2008-2016 Popular Vote Shows Less Democrats Came Out
I guess when Russia tried to invade them back in 1939 there was no referendum and it wasn't a whole nation's decision either. Heck, you could even deem the Russian people friendly towards the Finns (they were trying to free their Finnish comrades from the capitalist yoke!). I don't think it made the Finns any happier though.

What I CAN see is the glee on the Russian discussion boards whenever an incident like that is mentioned in the news. It's either that or outright denial blaming the Finns (British, Estonians, etc.) for making these claims up out of "russophobia".
Damn, I gotta learn haskell!
Buy a handful of these ones:

https://m.aliexpress.com/item/32584791011.html

$1.80 a piece (with free shipping), takes 3 AAA batteries, good light (but probably just 1/10th of the "2000 lumen" claimed), useful zoom function, resonable size, lasts for 3-4 hours on a set of batteries in max-light mode, probably twice in low-light mode.

I've had several over the last few years. They are not super durable, but for a general purpose flashlight, at that price it's perfect.
Running Linux. I don't have a 4k monitor, but multiple monitors are trivial to set up and automate with XRANDR. In addition, window managers like I3 allow for fully customizable, keyboard-driven navigation between screens and windows. Not saying there are no problems, but once you figure things out the setup is much more extensible than what I was experiencing on Windows previously (former Windows dev here).
Thanks! We'll address this in our documentation.
Gerrymandering has a clear effect on the House. Some of the districts that were redrawn in my home state (Ohio) are completely absurd and if you look at their shapes, their only purpose is to maximize Republican's chances at winning districts.

Still, as Trump showed, you can flip the needle to the other side.

The Senate can't be Gerrymandered but a lot of people argue it's not fair for California and New York to have the same level of Senate representation as North and South Dakota.
please add "storage APIs" to the headline. without it, it is misleading
The late 90's dot-com bubble. The idea that any business vertical can be converted into a .com and it will just work by default. We were supposed to have learned from that era but this is not always the case.
Definitely protest and voice difference in opinion, engage your representatives. But this kind of visceral reaction goes both ways. I really have to disagree when people think violence is the way out (whether it's far-right militias of far-left destructive demonstrations). It's _counter-productive_, it obscures your point of view. You cannot do things in a vacuum. You have the rest of the people to contend with. What, 53% of white women voted for him, ~30% of Hispanics voted for him, more blacks voted for him than Romney --so despite all the negativity thrown his way and how people lean naturally politically, he won greater percentages of those constituencies. Obviously they don't see him as much as a devil as you do.

You may have a particular issue you have dear to your heart, and I accept that, but you have to have other people see your point of view rather then fear your point of view.
I'm not saying anything about Adam Bain or anyone else, as I'm not clear on who specifically is good or bad. What I am saying is that Twitter's senior management is poor and needs to be replaced.
The girl character is very pedantic and probably not a team player, I'll just hire the guy.
Trivial, but it warms my heart to see short-ish identifiers with gaps in the names (underlines, but other languages use dashes, dots, etc), rather than reallyLongStudlyCaps names. I love that Elixir uses the Ruby convention of short names with underscores in them.

C++ is the tragedy that keeps smiting the industry with its children. (e.g. - Java, and its silly names)

"But we need long names, and need to compress them since they contain so many words". No, you need to better partition things so there is enough context around what the name is attached to, so that the name can be simple.
What if something like the Morris Worm never happened?
>I saw a person on my FB feed the other night say that she knew Trump was going to take away her right to vote now that he won, and her post was like by many. Trump is flawed in many ways, but that is absurd.

Is it? The Voting Rights Act is being gutted as we speak. https://www.aclu.org/feature/voting-rights-2016-whats-stake
True, but our current system is more like security through size in that we hope the sheer number of votes drowns out voter fraud.

They both have problems and I'm not saying one is totally better than the other.
I guessing that it was just the PHP7 switch. We are seeing similar performance/resource-usage changes just with a switch from PHP5.6 (opcache enabled) to PHP7 (opcache enabled).
> You get that for free with Go

You get that for free in any language that allows you to pass parameters to a query. There is nothing Go specific.

> One of my biggest complaints about ORMs is that I often know the exact query I need to write, and it is a pain to compose it with the ORM.

I agree that ORMs are often their own DSL one has to learn, when SQL is already there. In that sense they are opaque. Yet ORM still deal with relationships that have to be manually wired with queries, since AFAIK SQL query are still 2 dimensional. In my opinion query builders are often a nice trade-off between a fully featured ORM and raw SQL : you get SQL abstraction thus query reuse at minimal cost without the complexity.

An other alternative is Jooq style code generation/scaffolding but each time a tool like that is added to a compilation pipeline it is yet another dependency to manage. Code generation is opaque in its own ways.

Finally there is the nuclear option in shape of HQL but it sounds like a half baked farce to go back to "SQL" to avoid SQL.

I myself chose to go with query builders, in fact i'm porting Doctrine DBAL to Go as we speak.
It sounded like they were running the same code in both places, not a separate code base. (With the exception of extensions.) So unless those extensions are heavier than I'd guess, probably just the PHP upgrade.
I see Erlang and Go as duals of each other here, at least considered locally; Erlang focuses on the destination and Go focuses on the conduit of the message. Each have advantages and disadvantages. I think Erlang's approach ends up easier to use, but you lose the useful ability of channels to be multi-producer and multi-consumer.

(I'd like to see Erlang create a concept of a multi-mailbox where you can have a PID that can be picked up by a pool. Trying to create pools from within Erlang proper is quite challenging, and the runtime could do better. I acknowledge the non-trivial problems involved with clustering; I think it'd still be a big improvement even if they only work on the local node.)

The Erlang equivalent is that messages don't carry their source with them, so you must embed the source in the message if you want to send a message back. The main difference here is that Erlang doesn't offer anything that can be misunderstood as sending back a message any other way, so nobody is fooled and this never comes up as a problem once someone gets Erlang. The problem in Go is that the client end of the channel is capable of closing the channel, even though it really seriously never should.
If you open it in Chrome, you can try disabling JavaScript on the site with the lock icon. This is the default for me, seems it doesn't load the header image this way but that's fine.
yes but "look at how long it took them to add X feature!" isn't useful critisim, it's a put-down.

The product isn't going to improve because the developers felt worse about finally getting a requested feature in.
Trump has publicly said he will appoint judges who will overturn Roe v Wade. I expect that if he goes through with that gay marriage will also be attacked.
Storytelling with Data: A Data Visualization Guide for Business Professionals
I have tried that and it didnt work but I'll give it a try one more time.
Regarding multiple devices I mean multiple mobile devices (iOS and Android apps) and not through a browser and extension.
I'm being downvoted despite what seems like a straightforward and reasonable comment, and I don't understand your response at all (is it sincere or sarcastic?). I wonder if I'm being misinterpreted somehow.

The Right to Die is a controversial and emotive topic, so legislation is likely to be a gradual process. Colorado's voted to legalize one aspect, the sale of life-ending medication. Legalizing physically administering it would require a different measure, which may or may not happen at some later point.
> then they hit it with their hand a few times and it works again.

Just in time to see the antagonist right in front of them.
Continuing to burn coal when the global consequences are known is the act of aggression. The measured reaction is sanctions instead of missiles.
What is "Western tribalism" there are plenty of subcultures that young Japanese can get into - where do you think Buzz Rickson got started.
Agreeing with the sentiment, but massively editoriaizing the NPR article arent you.
“Technological change is mostly inevitable ... I don't think we could have avoided what's happened. Often when technology causes a problem, it also hands you a solution. I'm hoping that will be the case here. But I'm damned if I know what it is.”

I think these are common cop-outs, easy irresponsibility by people in our industry (in fact, I'm omitting the speaker becasue my comment is about the industry and not to pick apart the words of someone who spoke off-the-cuff in a moment). They only work because outsiders exalt us and don't question us (yet), and insiders don't question these ideas because they serves our interest and we hear them so much that the ideas have become normalized. But let's look at them with fresh eyes:

* "Technological change is mostly inevitable" is just really a way to rationalize doing whatever you want without the burdens of accountability and responsibility - 'there's nothing I can do, it's inevitable!'. It's similar to 'God made me do it' or 'I was following orders'.

* "Often when technology causes a problem, it also hands you a solution." As I understand the implication, the premise is that the problem is unanticipated and the solution a reaction. But that again avoids responsibility: Many problems of tech, especially the consequences of spreading misinformation widely, can be anticipated and dealt with proactively. Also, it assumes that some god, Technology, is giving and withholding things - again it's out of our hands.

* "I'm damned if I know what it is." That's another rationalization to avoid responsibility, a common one: a claim of helplessness. People in SV pride themselves on solving the impossible; probably these words wouldn't be heard if solving the problem was a priority.
According to https://www.ssb.no/fengsling/, for 2014 only 25% of inmates were incarcerated due to drug crimes. Of new incarcerations in 2014, drug crimes represented about 18% (because of other shorter sentences, e.g. traffic or financial crimes).
A recent post about PHP 7 deployment at DailyMotion [0].

Another one, Taking PHP Seriously [1].

[0] https://news.ycombinator.com/item?id=12704511

[1] https://news.ycombinator.com/item?id=12703751
Also libcloud https://libcloud.apache.org/
People who argue from the fringe view that "life begins at conception" and "a fetus is a human being" often bring in a lot of other fictions about abortion, like that it isn't safe for women, that it's murder, whatever.

It isn't.

It's also none of your business what other women do with their bodies or with their doctors. Wishing that it was your business (or telling fantasy stories based on your fringe views) does not make it so.
This is really cool. I worked on something similar during a hack day while I was still at Twitter.

https://github.com/jkubicek/Switters

My project used QR codes attached to a tweet as images to encode the message. It's still got a long way to go before it's at all user friendly, but I had fun building it.
What fabricated quote are you referring to? I hope not the quote in the comment you're replying to: https://www.youtube.com/watch?v=d_Wtu8Pzvd4

Was there a fabricated quote some other time during that segment that you're referring to? I'm finding your comment difficult to parse.
You're right about those first drafts, my mistake.

That Clinton campaign strategy documents comes from, apparently, the Guccifer 2.0 hacks. Glenn Greenwald and Lee Fang contacted Nick Merrill to confirm the document's authenticity, but received no response.

https://theintercept.com/2016/10/09/exclusive-new-email-leak...
Snapchat’s Spectacles are available today from strange yellow vending machines
I miss generics, not because I would write new generic functions all the time, but because a few key generics provide infrastructure that increases the beauty of programs dramatically.

The tupled (T, error) return types are a key area I think generics would help. The error-tuples themselves aren't the problem, but rather Go's inability to cleanly handle them. Threading error state around requires repetitive glue code (if err != nil). In some languages, you hide the glue code in monads. In some languages, you hide the glue code in macros. In some languages, generics reduce the glue to chained methods on helper objects. In Go, once in a while you can hand-write a lambda function to manage a closed-over error variable and clean things up a bit, but that's about all you get.
Even if you don't want to switch and believe in non changing APIs, it is easier to integrate with CloudRail :) But as already mentioned, this interface is really part of a bigger offering. We want to handle all your integrations eventually and enterprise cloud storage has to be part of that.
In Common Lisp in your first example it's not

(funcall #'f (first list) ...)

but

(funcall f (first list)) ...

f is already a function object.

We could write a macro for that or a new version of defun. Here just a macro lisp1fy:

(defmacro lisp2fy ((&rest calls) &body body)
`(flet (,@(loop for (f . args) in calls
collect `(,f ,args (funcall ,f ,@args))))
(declare (inline ,@(loop for (f . nil) in calls collect f)))
,@body))

(defun bad-map (f list)
"Maps function `f' over `list', inefficiently."
(lisp2fy ((f a))
(when list
(cons (f (first list))
(bad-map f (rest list))))))