skysight-inc/HackerNews huggingface dataset:
The claim was he did this mostly while others weren't in the office. If you assume they work a straight 8 hours (and why would they at crunch time) that leaves 14hrs/day to eat/sleep/work. 10/5 isn't so unreasonable approximation

But hey, another way to look at it. 150,000/30 = 5000 lines/day. At 16 hrs/day, that is 312.5 lines/hour, or 5 lines/minute non-stop.

Not killing myself, and leaving the typos in that wouldn't affect compilation, I generated the code below in 36 seconds; I knew what I was going to program ahead of time - there was no thinking involved. I honestly could have typed faster, but I also didn't want to type faster than I could sustain for 16 hours nonstop. I haven't had my coffee yet, so that is a factor.

So that is right at the target rate. I don't think I could maintain that 16/7 for real problem. I'm going to have to stop to think, to look up things, to make mistakes, to write tests, to document. Unless we assume I am perfect, I'm going to have to spend time debugging. This is for a stupid Euclidian distance function, whereas the claim was it was difficult, critical code. And the claim is not 16/7, it is "before/after" office hours.

import math

def distance(x,y):
""" compute striaght line distance between x and y"""

return math.sqrt(x**2 + y**2)
I see what you're saying, but it's not redundant, it's just a synonym. By redundant I meant that there are keys that are not necessary.

/artist/{artist}/albums

/albums?artist={artist}

AlbumsController#index(artist)
1k loc / week sounds like a lot. As a teenager, I got a tour of a company doing contract work for the government making drones. Their manager said they average 12 lines of "final" code per day per engineer over the course of a project. I was stunned and shocked it's so low, but it has stuck with me ever since. After many years more experience, factoring in bug rates and debugging time and meetings and rewrites and all the other things that eat time, I'm quite convinced that nobody goes as fast as they they think, and in reality all software dev is surprisingly slow, measured over the course of a large project. Granted government / military work is expected to run slower (and more carefully) than most software. But if you're writing code, you're creating bugs, and bugs take time to fix, there's no way around that.
Uber meets spotify
Exactly. All minor/revision API changes should be backwards compatible. You can add new optional parameters and new methods/objects, but you can't change the semantics of anything existing.

If you need a breaking change, that's time to increment the major number. Besides that, who'd want to support that many versions running live?
Yeah this is a good idea. I think I'm gonna change the default behavior for that port
Not at the moment... could use runscope.com or set up nginx as a proxy maybe ?
So. What you could do is implement your own task_runner.

For instance, if you wish to represent each user as a load generator, your task_runner's state could store each load generator's user information in the state indexed by name.

You would then log in the user during the init state.

I'm on the subway but I'll describe it more in detail when I get home.
The "randomness" I'm referring to is the answer why one submission got more points than another. It depends on multiple factors, such as time submitted, density of other submissions, current events etc.

This is the same reason your theory is flawed: assuming "independent random variables" only works if events have an equal probability of occurring.
OP is being a rather hyperbolic, but it's not really that unreasonable to criticize Clang/LLVM on this issue.

Both projects are politically motivated. GCC began explicitly as a project to provide a FOSS C compiler (few if any existed at the time). Clang/LLVM didn't start at Apple, but their development has been heavily sponsored by Apple, whose interest in the project stems from their interest in excising the GPL (and specifically the GPLv3) from their entire development stack. (Notice how the version of bash that ships with OS X is almost a decade old, and is also the last version that was released under GPLv2).

The fact that Clang/LLVM are released under a FOSS license today does not mean (A) that they always will be, or (B) all essential functionality will always be[0]. With GCC, being a FOSS compiler collection is their entire raison d'etre - it's right in the name![1]

Edit: Reworded sentence to remove ambiguous antecedent.

[0] (ie, it's conceivable in the future that nobody will want to use Clang/GCC on its own, but will essentially have to use it in conjunction with another piece of related software, and there's no guarantee that this software will be FOSS. With GCC this is not a relevant concern only because the FSF would never let that happen; it undermines the entire founding point of the project.

[1] GNU Compiler Collection
Actually I've used emacs since 2003 or so... but still.
Removing magit from ~/.emacs.d/elpa and reinstalling seems to have solved it. I'll check prelude.

I still think we need more text editors.
Well, I'd argue that the convenience of C/C++ is so low that nobody should be using them for anything other than toy programs, but that's just me.
That seems pointless, since you're still shifting the ground under your users' feet.
Show HN: Just Get 10
Amazon Web Service plays the strategy "catch me if you can" (e.g. new services launched last week). Google is trying to catch up, if they want to beat AWS they would need quite a few differentiators (e.g. like buying Firebase).
I would agree, although I doubt Microsoft will lead the charge there. The money is in selling MSDN licenses which means they are going to be on Windows anyway.
Do You Know PHP? Take the Quiz
well, its just wikipedia, but its actually well written page on the concept, in my opinion

http://en.wikipedia.org/wiki/HATEOAS

key concept:

> "The principle is that a client interacts with a network application entirely through hypermedia provided dynamically by application servers. A REST client needs no prior knowledge about how to interact with any particular application or server beyond a generic understanding of hypermedia. By contrast, in a service-oriented architecture (SOA), clients and servers interact through a fixed interface shared through documentation or an interface description language (IDL)."

a truly RESTful service that follows the HATEOAS pattern doesn't require documentation to be hosted separately. it will supply all the information necessary directly through the RESTful service.
Evil C Coders Wanted
But being in an enterprise is what I was talking about.

And hard as I tried I couldn't find the details as to what that means without downloading the new version.
"Lot of networks have only access to http/https services" - indeed, which is what SSL VPN solves.
Is it just me, or did Jonathan Amos slip a subtle Star Wars homage into the article? "It's a trap" is one of the section headings.
58% of desktops is not dominant browser share. IE does not today, in any way, set a standard that web-based companies feel that they need to meet.

That's the thing with Microsoft: I doubt they will go out of business or anything; in fact I think they will continue to have lots of success.

But they don't dictate anything to the rest of the computer industry anymore. And that's a big transition because for decades, their business model and culture were built around their ability to do that.
These are some excellent resources for you to get started with node and free too.

http://howtonode.org

http://nodejs.org/documentation/tutorials

http://nodetuts.com/ (video tutorials)

http://blog.modulus.io/absolute-beginners-guide-to-nodejs

When you are done, look at this list of extensive node at Stackoverflow:

http://stackoverflow.com/questions/2353818/how-do-i-get-star...
Forget disappearing messages, Poof is a disappearing APP
Why RJ Metrics 'rewrote' its code
My statement that HATEOAS is misunderstood is corroborated over and over by the replies to my comment. HATEOAS being misunderstood is so weird because it is an acronym of its own definition so I have no idea where all these other definitions are coming from. Let's examine it closer. HATEOAS stands for:

Hypermedia as the engine of application state

Hypermedia means HTML, period. Putting a list of URLs in a text or JSON response does not magically make it hypermedia.

Engine of application state means that all representations of the resources must be possible.

Combine those two and it means that all functionality must be accessible to and from the text/html content type. It must be able to handle all supported HTTP verbs and no fancy request headers that are not supported by HTML forms or hyperlinks.
I quite like this article from Martin Fowler on the "Richardson Maturity Model" that works up to HATEOS:

http://martinfowler.com/articles/richardsonMaturityModel.htm...
Webdesigner Depot gets a redesign
I think that's a poor analogy. Desktop isn't dead at all. It's very much live in the way farming and electricity generation are alive -- very important and critical but not growing rapidly. It's a "mature" market.

Part of why "desktop is dead" is a big meme in the valley comes from the fact that the valley is dominated by big-money venture capital. To VC, anything not growing at double digit rates simply does not exist.

BTW... I do wonder if we'll see another leg of desktop growth at some point in the future as the developing world becomes more developed and starts wanting to do more of the things people do on desktops...? We might indeed be in an era when "mobile first" describes the order of computing device adoption by a culture.
For people who have difficulty with reading: If you aren't downloading things with curl (which is the entire subject of the thread), how else (other than wget) would you download things to a remote server?

No need to answer, just helping out the non-native speakers in the thread.
Does anyone have details on why they made the switch ? The email states very little improvements, even a bug on 32-bit Debians. Is this only because of the license of the compiler ?
Hm okay.

The key concept I understood but I don't get how clients and servers have to be, to just "get" each other in the way HATEOAS implies.
Self-Tracking Suitcase Passes $1M on Indiegogo
It amazes me that we take for granted the sheer complexity of hitting a moving target like a comet at such an incredible distance in space. Navigation in space has to be so incredibly complex because you are moving in so many planes.
It's like firing a gun and hitting a quarter that was thrown miles away.
Sounds like the podcast is for people like you who sweat the details!
I can pull drunk chicks from the clubs, call an uber and have the perfect bang-list ready to go in the car when we get in? Solid, bro.
Is this actually common? I'm just curious. I have three years experience out of school and assumed that consulting rates were more like $50-$100/hr
I will want to read that paper in the entirety later, but I think they are wrong. Many languages are now fast that were designed primarily, or even only for humans (see Lisp for the last one).

Python is the language specification that is probably most impaired by performance on multi-core, due to the fact that threading semantics were so strongly specified. Pypy is now making a compelling argument that even that is not an insurmountable barrier.

If by "retrofitted" they allow backwards-compatible changes to the languages in question (e.g. optional type annotations for dynamic languages) then I would estimate that a language not designed at all with performance in mind would suffer less than a 2x penalty given enough engineering effort.
Hyperion Cantos is my personal favorite.
Show HN: 1-to-1 video calls with real-time translations (Chrome only)
Actually, the reason Apple sponsored Clang/LLVM is because Apple engineers were unhappy with GCC's build times[1]. If you need to rebuild an entire operating system (kernel and userland) every day, your C compiler's build performance matters a lot.

[1] http://www.imore.com/debug-48-melton-ganatra-episode-ii-unde...
Ancient Meteorite Reveals Vital Clues about the Solar System’s Birth
Apparently the propellant they used was found (after launch, unfortunately) to be unreliable in a vacuum.

http://www.wired.com/2013/10/in-space-no-one-can-hear-your-n...
Robots using RFID to locate objects – interview w Travis Deyle
You'll probably love the podcast then, where we talk through this kind of thing with some amazing designers!
To be fair to clang, one big motivating reason for starting clang (one of the reasons I got involved in helping clang myself) was the fact that at that time GCC would refuse any patch which made it easier for anyone to get a C++ parse tree out of gcc.

clang was designed to do that from the start, and for me this has lead to greatly improved C++ tools.
The original blog post is here:

http://blogs.esa.int/rosetta/2014/11/17/osiris-spots-philae-...

There's a nice image[2] which shows this in context linked to in the comments [3]. ESA seem to think the lander ended up somewhere over in the dark cliffs of the large crater filling the right hand side of this image.

[2] http://i.imgur.com/4m4WqAN.png

[3] http://blogs.esa.int/rosetta/2014/11/17/osiris-spots-philae-...
Removed the "open source" mentions. Sorry for the confusion. I didn't post it on Hacker News, I've just mentioned it in twitter for people who follow me. Didn't expect that much attention from HN.
So for someone who's first complaint was I was living in a magical world. You are clearly not in touch with reality. You mention divorce and college.

1. a very low percentage of minorities even get married. Meaning divorce is a statistical outlier [http://www.economist.com/news/united-states/21569433-america...]

2. Low income teens are likely to get pregnant while in high school. This has nothing to do with mommy and daddy not being able to pay for college and them getting stuck in a dead end job while trying to raise a family. These kids are dropping out of school and having kids before any prospect of a job is on the table. Then they have to deal with the fact that they have kids and it limits their choices ( can I go to school and work two jobs while raising kids ? )[http://www.nber.org/papers/w17965.pdf]

Yeah right some kids can get away with more poor choices but that doesn't mean they are not poor choices, and while I don't think there is a good body of evidence for this exact situation, even kids who are middle or upper middle class who have kids early in life and have their parents who can cover for them, their kids are statistically likely to make the same poor choices and the parents are not as likely to be able to support them. So the first generation might be able to "fail upwards" but the second generation which is statistically likely to fail as well will be much less likely to do the same thing.
yeah, if they're not risking serious brain damage, they're not a real athlete
I see what you're saying. I think the one-handed-password people mainly did it so that they could do something else with the other hand, like hold a cup of coffee, flick through the newspaper, that sort of thing. Seems like madness to me but there you go.
Thanks Patrick, really enjoy your blog. Um this doesn't look so bad tho.

https://developer.paypal.com/docs/api/#create-a-payment

https://github.com/paypal/PayPal-node-SDK/blob/master/sample...

EDIT

I've been googling and heard such bad things about PayPal but it looks fine. Am i crazy?!
:+= Returns A copy of this sequence with an element appended.

Meaning the cache is no longer shared as all threads end up having a thread local cache. You can't update shared changing state and have immutability at the same time.

Immutability is great when one can have it but sometimes its not possible. Shared changing state is something to be avoid as much as possible but sometimes we need it.
Azure has it: http://azure.microsoft.com/en-us/documentation/articles/clou...

And based on the comments, has had it for 1-2 years now.
I found "Build APIs you won't hate" to be an excellent resource. Probably somewhat of a beginners text, but I found it to be extremely clear and concise, and very readable for the amount of information it covered. It was also very pragmatic about when to adhere to REST dogma and when to deviate from it.

https://leanpub.com/build-apis-you-wont-hate
My point is that APIs are an exception mostly because developers are conditioned by the RPC "APIs" mental models, which doesn't take effect when they're thinking about a "website" instead, not due to some fundamental technological difference.
Not sure if you caught this, but that's what Chris Allen is linking to on this page http://new-www.haskell.org/downloads/osx

Also, that app is great. Really nice that it comes with Cabal 1.20 .
They do mention:

> With the switch to clang, binary size dropped about 8% while performance mostly stayed the same. Startup time improved a bit,

Also I can imagine it might be nice to use the same compiler on different OSes, and gcc is very much a 2nd class citizen on mac.
Try and not all web apps should have a mobile web app. But there's are instances where a productivity app will benefit from having a mobile app than just a responsive website. I've worked on a couple of web apps that made mobile-first their paradigm and it sucked. Testing sucked. Dev'ing it sucked. We had to sacrifice a lot on usability and experience which sucked a lot. A mobile app would have made more sense than a responsive site. Then again, I used trulia and having them ask me to download their app was just stupid as the app provided zero value to me (their responsive site was perfectly fine).
Most of the papers are available but first linked IEEE paper is
paywalled: "A controlled experiment to assess the benefits of procedure
argument type checking" Prechelt, L.; Tichy, W.F.

But it's available here:

http://page.mi.fu-berlin.de/prechelt/Biblio/tcheck_tse98.pdf
Do you have a direct lsso? Can't seem to find it anywhere
Think web browsers. REST was modeled after the existing web.
They have 0.146.0 out now.
I likes lessons on CodeSchool.
https://www.codeschool.com/courses/real-time-web-with-node-j...
Materialize, a CSS Framework Based on Material Design
Stop this nonsense. Not everything that isn't exactly according to Stallman's vision is the devil. Black and white thinking helps no one.

http://llvm.org/docs/DeveloperPolicy.html#license

To others: I presume what the parent comment is complaining about is that companies are legally allowed to modify the llvm source and distribute those binaries without source code.

This is not a bad thing, unless you're an open source zealot.

From the URL above:

> We intend to keep LLVM perpetually open source and to use a liberal open source license.

and

> We believe this fosters the widest adoption of LLVM because it allows commercial products to be derived from LLVM with few restrictions and without a requirement for making any derived works also open source (i.e. LLVM’s license is not a “copyleft” license like the GPL).

This is reasonable.
The "piece of related software" is likely to be a binary blob that outputs the special instructions for some optimization in a new CPU, or GPU instructions, or similar.

Or it could be a frontend for a new proprietary language.

Or a backend for a whole new architecture.
Done and done: https://github.com/alongubkin/spider/issues/30
Does SEO Still Matter?
Is there any reason to think this isn't sanitized (or desalinated, if you like)?
That is under 7.2 seconds per line, nonstop. [1]

I'm a fast typist, and I can't type that fast.

[1] 75 hrs/week * 4 weeks * 3600 sec/hr / 'over' 150,000 lines = 'under' 7.2 sec/line
Yep. Systems that construct narratives like that can be entertaining. Performance and presentation of self are key skills for a chatterbot on the right side of the uncanny valley. (I.e. we can make an actor that plays Jarvis before we make Jarvis.)
Huh? In C, if you have a function from Person* to Date* and another function from Date* to Int*, you can compose them as well, and then use the resulting function to both get and set a person's birth year. The syntax is admittedly ugly, but I don't see any asymmetry between get and set.
Note that you can't use their REST APIs with the product whose pricing you want.
Oh.

IIRC, haskell.org used to point to a download of the Haskell Platform for OSX (definitely not to ghc.app at any rate), so when I saw that's where it pointed, I didn't even notice that they'd changed it.
I'm a magician, and it's one of my biggest passions in life.

This is being reported in many publications as the first time artificial intelligence has been used to create a magic trick. This is false, not only has it been done by others before, it has been done by this team at Queen's Mary University before. Saying it's the first time certainly makes it more news worthy though.

Edit 1: If I were communicating this to someone else, I would say that they used analysis to create a new method, not a new trick. It's a new method, if it's really new, I haven't validated that in magic, and the vast majority of time any method you have isn't new. But perhaps it is, I will take that at face value for now.

Edit 2: "we suspected that audiences would be suspicious of the involvement of technology in the delivery of a trick but we’ve found out that isn’t the case."

Audiences are suspicious of the involvement of a phone during a trick. This is a minor contention, but their quote is flat out wrong. It would be interesting to see why they came to this conclusion.

Edit 3: Here is a video for the main trick discussed, "Phoney". Apologies for the misc intro, this was the best version I could find.

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

Edit 4: Analysis of the method of the trick -

The captions say the cards are shuffled, but they aren't. They can only be cut. From there you deal 6 cards, and ask the spectator in order to tell if you if they are red and black. From there, you can determine the card.

Edit 5: And for my last trick, I found this method isn't even new, I can see it published by Persi Diaconis - http://en.wikipedia.org/wiki/Persi_Diaconis

Edit 6: As with any method, I might find a significantly earlier providence for the method, but I'm still looking for my own sake.
Awesome article! You really cover a lot, in a short but easily digestable write-up! It might be a little fast for complete beginners though :/...

I've come to be quite happy with my current VIM setup. I'm using,

* haskellmode for _t and _T (show and insert types, respectively) [0]

* ghc-mod for integration with neco-ghc and syntastic and for running ghc check [1]

* neco-ghc [2]

* neocomplete that uses neco-ghc, for completion suggestions [3]

* syntastic for hlint checking on save [4]

[0] https://github.com/lukerandall/haskellmode-vim

[1] https://github.com/eagletmt/ghcmod-vim

[2] https://github.com/eagletmt/neco-ghc

[3] https://github.com/Shougo/neocomplete.vim

[4] https://github.com/scrooloose/syntastic/
Looks like this is it:

http://posativ.org/isso/
All languages other than pure machine code were designed for the humans first.
The World Needs Black Girls Code
at this point i have no idea of what an ssl vpn is :). The two kind of them i am aware of are openvpn-like (a custom service running on a tcp/udp port, but not on http) or the ones that are more "proxies" to internal networks. They do not allow to interconnect peers or to use services like bonjour or any other broadcast/multicast technology as they are at an higher layer. Am i missing something ?
I am surprised there is no mention of the BSD fetch(1) http://www.freebsd.org/cgi/man.cgi?query=fetch%281%29 , which probably pre-dates both curl and wget.
I'm being accelerated at 1g right now and I'm about 40...so in another decade or so I should be able to get to anywhere in the universe!

Jokes aside, there's no fuel source we know of that would allow a ship to accelerate continuously for 50 years at 1g.
When I put credit card PIN code, I intentionally make mistake or false tap to confuse possible attacker.
It looks requires exercise to input seamlessly anyway ?