skysight-inc/HackerNews huggingface dataset:
Yeah I think this is the real win - the examples in the paper don't really cover any of the real reasons why someone would use functional programming. The places that I've used C++ lambdas a lot are callback-heavy code, i.e. things with a lot of asynchronous I/O, multi-threading, etc.

While I don't doubt the validity of the argument that it takes longer for a programmer to write correct lambda code in C++ (I have been using them since C++11 was released and still forget the capture list syntax sometime), it's not much more than an academic exercise to take some iterator-based code and replace it with higher-order function calls. It's unfortunate that all the tasks seem to be based around doing that though. I do think it is still reasonable to do this in C++11 once you know how - with -O1 turned on you can get basically the same code spit out using std::transform, std::accumulate, std::for_each, et al, as you would using a for loop.

It's also unfortunate to note that, at least in g++ and clang, there is still significant advantage to using lambdas over std::function and std::bind. Lambdas typically end up being faster in both compile-time and run-time, and end up generating less code. For these reasons I've found myself using them a lot more, especially anywhere I would have done some type of currying. This I do miss somewhat, but it's still leaps and bounds ahead of something I would have written in C++03.
Wow, that was really hard on the Crossfire guys! They couldn't engage with him at all due to, I suspect, either a lack of self-reflection or because doing so would be admitting that they are harmful to public discourse.

Thanks for the link!
But what about if you actually do have a "witch" on your hands? Like, say, an actual fascist?

I think one of the conflicts here is arising because some people see Trump as an actual fascist, and are advocating the kinds of actions that are required to deal with that. Others see him as just another politician, no worse than Clinton, and therefore see the actions of the other lot as excessive and unwarranted.

Sama, however, is trying to have his cake and eat it. He says he believes Trump is a threat to the republic but eh, if people want to support that it's up to them.

Which is arguably open-minded tolerance of intolerance, but also the sort of "so open your brain falls out" liberalism that (ironically) Trump fans hate so much.
Yes, exactly.
If it enters the space of a tilted device, a force (depending on the rotation of the device) is applied to ball.
Linux Kernel 4.9 merge window highlights
M, one of the founders of Final here.

We agree there's nothing better than exceptional customer service and experience. We've built Final from the ground up as a new credit card issuer so that we can continue to enhance the technology, service, and experience. We need to make money somehow, and we think an annual fee is the best way to align with our customers.

We've spent 3 years to get to this point. We're now live and actively inviting people from our waitlist to apply for a card.

We talk to our customers often and ask them what they think about us. We will continue building and making it better. Here's what we've heard:

"The few people I’ve showed your service to so far have said “this is what we should have had all along” and I agree."

"Final just solved my XM radio problem. I've been trying to cancel XM for a year. Each month I dispute their charges, Amex credits my money back.. but Amex would never just BAN them from charging me. Generated new final number, added to XM, then froze account. Boom."

"Final is one of the best banking products I've ever used. You guys could have sat back on your haunches and only delivered the cool feature of generating cards, but the well-designed phone app, the card, and your great customer service make every other card I have in my wallet pale in comparison. I reach for the final card to make daily payments not because of rewards points, but because I see the receipt immediately and I'm able to instantly dispute the charge if necessary. I don't know if there's such thing as 'credit card anxiety', but something about that gives me so much peace-of-mind.
Thank you for creating a great product!"

And our favorite:
"You guys fking killed the UX experience. The site is a pleasure to use."
I think you underestimate the difficulty of open sourcing some projects.

At the last company I worked at, we really wanted to open source some of the stuff we were doing, but we literally couldn't because we depended on some private APIs and were under NDA.
Curious too how this works. "We wrote a lot of code" doesn't actually answer the original question...
Many meds have extreme side-effects in part of the population. Often we call those 'allergies', but those are just the tip of the iceberg. There's nothing new here, just a reminder that a specific medication may not work for you or may work but still make things worse by causing side-effects.
I use ballotpedia.org. However, in the state I live in, Utah, the population seems too small to merit a blog post about the candidates competing for positions less important than governor. So for example, a possible description of the positions of senatorial and gubernatorial candidates, but nothing on people to be elected to the teacher's board or attorney general.
As mentioned already:

>For me what's striking about Erlang syntax is the meaning of the semi-colon and the period, as function clause separator. Most of the rest is just vanilla FP lang syntax.

It's strikes me that everybody notices the pattern matching part, but not the way the clauses are separated, which AFAIK, it's something used by Erlang Syntax only.

And yeah, after working in Erlang and other FP langs for the past 6 years I kinda know this is called pattern matching ;-)
The person who opened that issue to remove an Opal core developer because she didn't like his personal tweets was subsequently hired by Github.
A recent thread on similar question, but for developers: https://news.ycombinator.com/item?id=12702651
Yuvraj Singh’s mom ShabnamSingh spills beans on Akanksha Sharma’s allegations
Bigg Boss 10: Yuvraj Singh’s mom Shabnam Singh spills the beans on Akanksha Sharma’s allegations @http://www.newsx.com/entertainment/44043-bigg-boss-10-yuvraj-singh-s-mom-shabnam-singh-spills-bean-on-akanksha-sharma-s
LIFT – a gadget for heavy MacBook users
Blog spam
Dang. I was hoping it would be virtual cards combined with something like Coin[1]

[1]https://onlycoin.com
The questions worth asking about techniques like TDD are "What problems does it fix?" and "What problems does it introduce?"

I would expect a determined attempt at TDD to solve the "no tests" problem, because it is so utterly insistent on tests. It should also solve the "don't know how to start" problem, because it de-emphasizes planning and design in favor of just jumping in; you write the tests, and then you do the bare minimum to make them pass.

That said, I would expect a TDD-based project to have the "bad architecture" problem: messy interfaces and sort of ad-hoc separation of concerns, because it makes no time for up-front analysis and design. It's always focused on the current feature and doing whatever it takes to make it work now.

In fairness, it does include a refactoring step, which is supposed to clean up the mess after the fact. Color me skeptical. Refactoring is hard, and people tend to do it on a large scale only when they have to.
Interesting...I've noticed mercurial can be a little slow at times, but never had a problem with that much pull lag. Could be an overloaded server maybe? Or just outside the scope of my experience.
According to the original article taking the advice of a medical professional could be much more dangerous. Missing a night of sleep seems to horrify some people but it's quite safe. Just don't operate heavy machinery. But thanks for the safety lesson.
Agreed. Triggers are especially useful for maintaining counts. If you want to feel extra smug, there's a post from Instagram eng about how they realized they should denormalize counts of likes only pretty late in the game.
Why Girls Hipps Increased After Marry
You can advocate but you're going to have to back up your argument first. This is trivial to do for Trump.

Clinton is not currently trying to undermine US democracy, use entire religions as immigration criteria, evade tax on a massive scale, defend her historic sexual abuse, or construct a fascist state, so your job is a little more difficult making your case.
In a community you have to put up with people you don't like and/or people with beliefs you don't like. Github is failing on the latter.
I agree in principal but in practice how do you decide what to include and what not to include. I respect that wikileaks has a rigorous criteria despite having the flaws you point out. If you can think of a well defined way to incorporate the common sense concept of respecting Joe Public's personal space I'd be all for it.
Scientific methods were invented to minimise the flaws in scientific work. If you ignore these methods and base your study on biased data you better forget calling your results scientific. Fortunately there are folks on HN reminding you on this.
What is it about journalism that requires standards like plumbers, doctors, and accountants? More to the point, if you look at the reasons why plumbers, doctors, and locksmiths are held to standards, which ones apply to journalism?

Note also that journalism is the only one of your mentioned professions that is specifically called out for protection in the Constitution.
Do you know about something that Wikileaks did not publish even if they got it? They cannot leak what they do not get.

It is clear that their sources use Wikileaks to influence politics. Wikileaks could perhaps withold the information until after the elections - but then they would be accused by the other side.
Yeah, I tried to avoid specifying a methodology. I just couldn't resist throwing in a 'TDD' because it turns better quality results for me personally than 'test later'. My point in commenting was: testing comprehensively is not optional at my workplace due to the way the devs have suddenly been held so accountable.

Personally, I don't care how you test. Just get decent coverage over all the control paths and have a test suite that catches regression bugs. Ideally also have integration tests to prove your connections to your partners are good and maybe a smoke test to prove your code is wired up right once it hits an environment.

I'm still on the journey myself, so I can't claim to be an expert. I know there are people in my org that are suffering because of code quality issues. I call them incompetent because they're producing shoddy work products with lots of defects. A smart way to combat bugs and kill them for good is to test, so that's why I connect not testing to incompetence. A dumb way to combat bugs is heroics and working 18 hour work days trying to debug with "GOT HERE" logging.
First two tests used lambda with custom for each method. If authors used real c++ iterators and for each loop it would become obvious that comparing iterators and lambdas at iterating is the same as comparing lambdas with if statements at being if statements.
> Why do you specifically limit the burden of proof with the FBI and the Clintons?

I don't understand the "and", I specifically wrote "FBI or Clintons".

> Numerous independent cybersecurity firms and experts have already said Guccifer 2.0 is linked to two Russian intelligence agencies

Many of them refer to [1], a post that I wasn't aware of (seriously, I just read claims from politicians whereever I went)

[1] https://www.crowdstrike.com/blog/bears-midst-intrusion-democ...
In all honesty, the juice isn't worth the squeeze. When you put a battery into that form factor battery life is a big issue and keeping in sync with your phone really harms it. Add recharging and you have other tradeoffs, so EMV gets us 95%+ of the way there and we're happy not having to solve really hard esoteric challenges related to things like the Bluetooth stack for BLE use.
OnePlus 3 at RS.1 [One Chance]
The political ostracism has happened - people are already distancing themselves from him. It's a given here.

I'm saying he should limit the damage of it to himself, rather than letting his friends be dragged down with him, yes.

By forcing YC to stand with him, he has dragged them into his fight and undone a lot of their previous good work.
Well, things start to get complicated and messy when the team size starts to grow and the technical debt starts to mount. Thats when it needs to goes from hacking to engineering.
I missed that bit of news. Had I known that I would have canceled my account when they hired her/him/xir.
Unfortunately most teachers aren't like Kate Gregory, and I fully agree with her, they should stop teaching C -> C++.

Already in 1994 it was obvious to me that it leads to bad unsafe code and worse, the mentality to micro-benchmark each code line.
So, uh, I'm ignoring the medication debate, but:

> Missing a night of sleep seems to horrify some people but it's quite safe. Just don't operate heavy machinery.

Most of us drive to work most of the time. Yes, most of us operate heavy machinery every day, often in busy areas.

People worry all the time about guns and planes and other potentially dangerous things; people don't worry nearly enough about transportation accidents. If you didn't sleep, call a cab (or a rideshare, or a friend) - don't risk the lives of everyone around you.
That is not normal. We at RhodeCode works with some of biggest Mercurial behind-the-firewall setups. We have one customer which uses a global VPN for their few instances.

They always measure Mercurial pull performance using a load tests. For example between 4.2.X and 4.4.X version of our software we went form 1.8s to 1.4s average time for a pull to happen under load.

We only do this via HTTP since this can be really optimized for speed. So having to take minutes sounds like some backend problems like overloaded server, not enough workers to handle connection etc.
> But there is a difference between using C in crazy ways

Is signed arithmetic using C in crazy ways? Is shifting by an arbitrary value without checking to make sure that the number of bits is in the valid range of the type using C in crazy ways?

Undefined behavior is everywhere in C.
Isn't this like Heroku Garden?

http://i.imgur.com/EOH6zY2.jpg
That flash interface has not changed in 16 years, except that a few years ago they added a requirement to enter the three digit code from the back if card.

So that's pretty impressive that they can still support and maintain code that old.
They allow spamming github issues. The biggest spamming case I've ever seen was from the person that likely wrote these community guidelines.
I take only a very small dose of paroxetine and if I don't take it for a few days, my girlfriend notices (long before withdrawal symptoms occur). Without it I'm more impatient, stubborn and less capable of self-reflection. When I take it I'm just a more pleasant person and with that my entire life becomes more pleasant, because many interactions with other people are more constructive and productive.

It is my firm conviction that a lot of people would benefit from small adjustments to their brain chemistry. I'm lucky to have found something that works for me.
Fair point, problem is that theres no short answer here. We partners with a bank to get our own BIN (https://en.wikipedia.org/wiki/Payment_card_number), that when loaded onto the networks, gets routed to our core infrastructure. There are many ways to segment this BIN, randomly, PRIN(?), few other industry standards, and so when you want to issue a new consumer a new card # you use whatever your algorithm is, and assign it to that customers account (or whatever exactly your data model is).

So its 2/3rds BD to get setup, 1/3 enterprise engineering and a lot of integration work to get fully setup and running. Payments is the only trillion dollar industry where nothing is written down, we're working on changing that since we find a lot of the stories fascinating and so do most people we retell them to.

If anyone is in Oakland area and wants a primer, always happy to share, we spent 3 years learning industry and now its our time to start giving back.
Doxxing, Harassment, Swatting, etc...

Plus it's hardly right that you can threaten someone just because "lol it's the internet brah"
Do WWN writers call themselves journalists? There's something to be said for what readers call journalism. It isn't the same for everybody. So, is it the journalist's responsibility to hold to a standard, or is it the audience's fault for thinking that a particular writer is a journalist?

This raises the question: can the term "journalist" even be controlled?
"shackle" was a bad choice of word, I agree. I meant to say that you might be disciplined enough to never use anything except RAII, but most (users/libraries) aren't.

> If so, you're that one percent.

I probably am that one percent (and I don't use sprintf, because there is no sane way to use it). When I say people use C "sanely", I do not mean that they never err in any way, far from it. And my observation (your mileage obviously varies) is only that C code bases that I tend to use and meet (e.g. x264, ffmpeg/libav, the linux kernel, the Nim compiler) tend to be saner than C++ code bases that I tend to use and meet (e.g. libzmq, although that one improved dramatically since 4.0, and is now almost sane, boost, stl)

I admit that I have not yet met a C++11 codebase with lambdas - that might have restored sanity. But even if it does, it does not retroactively bestow that goodness on the millions of lines of code already out there.

I stress again - I am not passing judgement on the language, but about how it is used in practice, through my own sample set. If I work on a project in which I can dictate the exact subset, choose the people, etc, I might pick C++. But in most projects I'm involved in, the constraints are dictated in some way or the other that makes C at least as good a choice (and often better) than C++
Server side Elm: Postgresql adapter  the revolution is happening right now
I would say becoming "happy" when the circumstances of your life would and should make any right-minded person unhappy is a pretty extreme side-effect.
Being a language geek with major in compiler design and systems programming, I tend to be a bit language lawyer.

I seldom meet C developers that are able to distinguish between ANSI C and my compiler's C, that extrapolate from my compiler's C version Y, how the language should behave.

Then they port the code to my compiler's C version Y + 1, or another compiler vendor, their code gets broken, blame the compiler, only to find out that the code was already broken from ANSI C point of view.
Scientists traced depression to the lateral orbitofrontal cortex
TLDR; When they go low, you go high.
We know that sleep deprivation increases risk of attempted suicide and death by suicide.

We also know that sleep hygiene helps fix sleep problems.

"Skipping a night of sleep" isn't compatible with sleep hygiene.

In general suggesting made up bollocks to "treat" an illness which is potentially fatal isn't a good idea.
> That already looks bad somehow.

It's a big leap to go from suspecting nefarious motives to "definitely". It could be anything from lower cost of land and living expenses to executives thought it would be a good place to raise kids. Or it could be that IBM thought it would try a "Skunk Works" type operation that was deliberately cut off from the rest of the company - a setup made famous by Kelly Johnson at Lockheed.
No, it's GCHQ contracting Appen. They only deliver the platform for distributed outsourced transcription.
Killing civilians has absolutely nothing to do with whether a country is an enemy or ally of the USA. Saudi Arabia, Egypt, and Israel are recent counterexamples to your theory.
[WIP] Docker Hub in Your CLI
Basically anywhere where you would have used a callback in C code could probably benefit from a C++ lambda. It's easier to see what's going on, you don't litter your code with hundreds (or thousands) of tiny functions, and the compiler can easily inline everything. The fact that you can capture whatever you need makes it super easy to use inside a class if needed (eg; you need to access class members).

It seems really dumb to me to declare that lambdas are detrimental to novices when it's clear they have a great deal of utility outside of something like replacing iterators.
fail2ban and similar tools are standard, widely used, quick to configure, and very effective at removing noise. You won't need to hassle to configuration of any new or existing clients, vulnerability scanners, etc.
Sample size is 21 and they used Kruskal–Wallis (which is parameter free). Might not be the best tests (iirc. it's usually recommended for the exact combination of ordinal+nominal but I'd have to check) but it's suitable enough.

Also I don't think convenience sampling is bad in this case (and they clearly indicate they did it etc.) as it allows you to control for TDD experience and the like. I'd even go further and say the typical "lol students as participants" isn't an issue either.

"How effective is test-Driven Development.
Making Software: What Really Works, and Why We
Believe It" by Turhan et al. is a good meta analysis if you want more studies.

As an aside I like the fact that this is a replication study and that there have been a couple of these.

I mean worst case you can uses theses studies to guestimate better priors for your own Bayesian analysis :)
No private institution has achieved manned orbit.

That's because manned orbit is motivated by prestige, not rational economic behavior.
There is no silver bullet here. For some teams it makes sense to integrate development and testing. For some teams it makes sense to have dedicated QA people. For some teams a different constellation is optimal. I know developers that are brilliant at the big picture, finishing the implementation however was lacking. I also know developers that cannot get the major architecture right, but they can finish tasks and get it shipped. pick one of each and a devops guy that can write tests, and you have a team of 3 that produce top quality software.
Keep in mind that narrowhg is extremely experimental!
This is ridiculous. C++ lambdas (and std::function) don't replace iterators except for the most fervent disciples of the Church of Haskell. They replace single-function interfaces in cases where you would have had to put together a custom struct that did exactly the same thing as a lambda with capture but in about 15 more lines.
> Otherwise, plenty of people are already living exclusively on bitcoin today

Citation needed? This seems hard to believe unless "plenty of people" is in the ballpark of maybe a dozen.
The research seems low quality. Whenever i try creating something more complex than just a CRUD webapp, i'm always relieved after getting a significant code coverage.

It may be because i'm a medicore programmer (i mostly do hobby projects), but getting assurance that my 'small change here' didn't mess up anything major in a distant part of the system is quite relaxing.

Obviously i only test logic and usually write the tests after coding. It still helps with my flow.
Automated Web Scraping Software – Extract Data from Any Website
Leap second scheduled for New Year's Eve 2016
Journalists do this all the time.
This may sound harsh, but taking the researcher's difficulties into account is not our responsibility.

The research presented here is weak. Honestly pointing that out without pulling punches is better than simply giving them a pass because 'doing good research is hard'.
I found this on Amazon, although pricey it looks like it might be a good solid introduction:

https://www.amazon.com/Artificial-Intelligence-Modern-Approa...

I would be curious if anyone has gone through this book and what their thoughts were on it.
Dr. Peter C Gøtzsche: Psychiatry gone astray.

https://www.youtube.com/watch?v=DiJcSoo3C4Q