skysight-inc/HackerNews huggingface dataset:
You claim that this is reactive rather than imperative, but instead, it feels imperative instead of object oriented.

You still have your "setup method":

Signal.map show (Signal.foldp update initShip inputSignal)

and your "handle updates method":

updateVelocity newVel (updateShooting isShooting (applyPhysics dt ship))

And the distinction between "set the ship's position to ship.position + ship.velocity * dt" and "create a new ship similar to the old ship but the velocity is ship.position + ship.velocity * dt" seems like splitting hairs.

It's not OO, definitely—but it doesn't feel like you're doing anything differently than you would if this was a purely structural program, even if some of the details are different. If this was straight C, "update" would be a method that gets called 30 times per second, and "main" would get called when the game starts, and everything else would map pretty much line-for-line.

Similarly, the "functional-reactive" nature of it feel like an implementation detail, rather than a different way of thinking about the code—in your update method you still walk through the steps "was <- or -> pressed? was ^ pressed? Move the ship. Fire your gun. Change your velocity." Maybe some of them don't need to be recalculated? Okay, but as the programmer you still need to describe the same steps, even if some of them get optimized away.

And honestly, even going through the same steps, it makes it harder to understand. Take your update function:

updateVelocity newVel (updateShooting isShooting (applyPhysics dt ship))

Okay, so you have an applyPhysics method that takes a ship, and a dt. That's pretty clear. And it returns... something, and that something gets passed into updateShooting, and then what updateShooting returns gets passed into updateVelocity. You have to go elsewhere to read that, okay, applyPhysics and updateShooting both return ships. The same steps, written in a more imperative syntax:

applyPhysics(ship, dt);
updateShooting(ship, isShooting);
updateVelocity(ship, newVel);

Which (a) makes it more clear that a ship gets passed into each method, but (b) also lets you pass in the more important parameter first, which aids readability, and (c) lets you list the methods in the order that they occur, rather than writing them in the reverse of the order they occur. To at least get the better argument order with Elm you'd have to write it:

updateVelocity (updateShooting (applyPhysics ship dt) isShooting) newVel

Which is completely unreadable—you're reduced to counting parentheses to see which method "isShooting" gets passed into.
Forget about the apps how about the keyboard.

There is still a significant number of people who would like a decent phone with a built in keyboard.
What a cpu and memory hog that page is!
Most of the comments here are focusing on the OS. It's not about the OS. It's about the ecosystem - the apps marketplace. They can come up with a great OS, like Windows did, but without the ecosystem, consumers will not use it. A smartphone without apps is a dumb phone.
I don't really think so. It's a market that a lot of the big Android vendors were in at one point and got out of. There's some demand for it, but I think it's a more vocal market segment than it is sizeable.
That was my understanding, they know it is possible for a foreign government to tap the phone lines and they don't want a foreign government being able to target candidates for hire.
It's somewhat debatable whether the refactor is an improvement, but there is at least one good argument that it is, and (in my opinion) only a much poorer argument that it makes things less clear.

If the applicative code is better, it's because applicatives are strictly less powerful than monads, in the sense that everything you can do with applicatives you can also do with monads, but not vice-versa.

Many Haskellers prefer the abstraction that is "just powerful enough", or what's the same thing, they prefer the abstraction that is "least powerful"—that is, Haskellers try to write code in a way that lets them do what they want want to do, but at the same time in a way that doesn't allow them do things they didn't mean to do. And for just that reason: using the least powerful abstraction prevents you from introducing bugs by keeping you from writing some of the things that you didn't intend to write.

Thus the least powerful abstraction is the best abstraction, in the sense that it's the "best fit" (and, yes, also in an aesthetic sense). So if you can write what you want using applicatives rather than monads, you should prefer applicatives, the argument goes. (And if you can write it with functors, prefer functors to applicatives.) For the same reason, many Haskellers prefer to use restrictions of the IO type that limit what you can do rather than IO itself, whenever it's convenient.

Applicative style, in this case, also keeps you from having to name a couple of things, which means two fewer "hard things" (in Dijkstra's estimation) for the programmer to deal with—and just two fewer things, which means two fewer things to screw up, period.

The counter-argument, that applicatives are somehow more complicated or less clear than monads, is a poor one, I think. Haskell is not a superficial language. It's not one you're meant to be able to read and understand just because you're a competent programmer in some other, unrelated language. If you want to program in Haskell, you need to understand the languange's core abstractions—and, yes, applicative style is one of them at this point. That does mean there's more to learn. But Haskell is all about giving programmers the ability to recognize and use the right abstraction; the time spent learning is worth your while.

Further, if you're not a Haskell programmer, I think you should beware of pretending that you understand the monadic "before" code and therefore thinking that it's simpler than the applicative "after" code that you don't pretend to understand. First, because (syntactic subterfuge notwithstanding) you don't really understand the monadic code, unless you've learned the underlying concepts; and second, because it's not simpler. It's just not. There is more going on in the monadic code, not less. Now, if you're a beginner and you understand monads but not applicatives, you have an argument—the monadic code is familiar, and the applicative code isn't—but that just means you have more to learn. Go learn it. We're here to help.
Had to be me! Someone else might have gotten it wrong.
I am trying to learn assembly myself (for fun) and really appreciate this. Cool stuff!
Although you can use numexpr for some easy (albeit modest) threaded speedups and streamlined memory usage. I've had more success coding custom array processing routines in cython where I can easily exploit threads.
> the population of the game's backers is approaching a million accounts

Seriously doubt that there's a 1:1 ratio of backers and buyers of VR tech.
Um... No.
I was once caught out by that tactic. The interviewer asked if I would use such-and-such algorithm to solve their problem, and I said sure, whatever. I was just thinking to myself, give me the job and I'll research it and make it work. It wasn't until much later that I realized the possibility that such-and-such algorithm didn't really exist, and that I had failed the weeding-out question.
Exploring the Tension in Software Abstractions
Authoritarians. They are the ones escalating all this petty garbage, IMHO.
That article is over 2 years old. The numbers have changed, in apples favor:
http://techcrunch.com/2015/02/26/apple-eating-all-the-profit...
Rule of thumb is to not bother family or friends. Not worth it for a lot of reasons. Also because you will most likely fail.
Google didn't make $300B on the back of its world class HR department.
Had a few subs a while back myself... :)
Hackers have data of every federal employee
Ask HN: Software Developer with Felony Needing Career Advice
I am a software developer who was convicted of a drug distribution felony (Schedule 3, non-recreational pharmaceutical) in the federal system (meaning no possibility of expungement) a few years back. I took a plea deal and was sentenced to probation with no jail time. I'm currently employed as an enterprise Java developer, but I'm underpaid and not really growing as an engineer. This has prompted me to start looking for another position. My current employment was obtained before I had the criminal conviction on my record. Therefore, I didn't have to indicate my felony conviction on the job application and my background check came back clean. This obviously won't be the case this time around. I'd love to be completely open about my situation. Unfortunately though, I don't feel like this will be a successful approach. After interviewing me and hearing my story, I'm confident that many hiring managers would leave with a favorable opinion of me. Unfortunately, I feel that more likely than not I will lose out due to "company policy." Would anyone out there be able to provide me with direction on how I should handle this situation?
You must be joking.

iPhones and to a lesser extent Androids are ubiquitous now in the enterprise. So unless you think people who work there in are just using their phones for games then I would be taking your statement with a grain of salt. I work for an enterprise (market cap 50 billion) and our tens of thousands of employees all use iPhones.
Estimating images using CSS
I'm curious how the C state control works. What does /proc/cpuinfo look like? Are they letting mwait through for real? Are these Xen or real virtualization? I wish Amazon would document their virtual hardware platform more clearly.
There's a Hamilton talk at the last reinvent where he kinda implies what's going on. Because Amazon is running in a datacenter and can guarantee the temperature, they are able to make assumptions and clock the chip less conservatively.

http://www.slideshare.net/mobile/AmazonWebServices/spot301-a...
Are we being fed a heavily edited version of the story? Was there more to the parental history than is mentioned? Why hide the identity of the parents, given that they've already been through the wringer and the whole affair is a matter of public record?

Given how overloaded CPS usually are, this article fails the sniff test.
@bbuchalter WRT the screenshot, you are in the URL node where you should instead be in the Catalog node.
Is there any corroboration of the story, or a response by CPS and/or the court? It's very possible I missed it, but neither the article nor the comments give a solid source other than the parents.

Because the skeptic in me says that while CPS might be pretty bad, it's also not inconceivable that the aggrieved parents might leave out key details of the story. So I'd like to hear what CPS (or really, any other source) has to say before I get too up-in-arms here.
The correct way to write a CSV parser is to import one.
Nintendo Wii.
Wouldn't touch this with a 10ft pole.
Loops in a tree?
I'm assuming that these are the curated subset of documents which have so far been made public by media organizations to accompany articles.
in Australia

So, in Victoria at least, it was recently made illegal to leave your kids in the car for any length of time. Going inside to pay at the petrol station? Take your kids with you.

Admittedly it's not going to end you up in the middle of the story in the article, and you're going to have to be pretty unlucky to find a cop who's enough of a dickhead to apply this law apropos of no other issues, but technically it's now illegal to do so.
Nice to know I wasn't imagining things I didn't think the regular price was $89 last time I looked.
Or, you can use one close to your house but ensure every other signal is scrambled (such as, have someone take your phone to the next town over and use it while you do the payphone thing)
A streaming reduce in 3 lines of code
Agreed, in the summers (in small town america), when i was that age i was kicked out of the house after breakfast and not allowed back (unless it was raining) until lunch, and then kicked out again until dinner. I loved running around outside with my friends, our dogs, horrendously constructed forts, and our bb guns. The "bad" parents were the ones that let their kids stay home and vegetate in front of the TV. What happened?
Yeah, I don't much care for the apparent general trend and there have certainly been some documented cases that are pretty ridiculous. I daresay things that I did as a child at various ages would shock a lot of people today.

That said, this particular story is from:
Lenore Skenazy is host of the reality show “World’s Worst Mom” on the Discovery Life Channel, starting Jan. 22. She is also a public speaker and founder of the book and blog Free-Range Kids.

That doesn't make it wrong. But it clearly comes from someone who is on a particular side of the issue. And a quick search doesn't uncover original reportage from elsewhere. So color me skeptical.
Per the details in the original post, she is employed by a school, and has been suspended and told to not to talk to media until this is over:

http://www.freerangekids.com/boy-11-plays-basketball-in-own-...

And given the steady stream of well-documented, actual and equally ridiculous cases like this on Free Range Kids, I doubt this is a prank.
Well, someone failed, but I don't think it was you. Unless you actually lied about knowing it.
What it feels like to be last generation to remember life before the internet
Well, I guess that is the power of it being so general purpose. I have used Spark more for analytics (and Spark SQL) but not extensively for ETL. What you're saying makes sense, you're still using Spark as an execution/computation engine, just writing the plumbing code to use it like an intermediary ETL tool.
very cool article

although to a layman I would try to answer "what is code" more simply: code is just instructions.

instructions for how to tie a windsor knot or cook a recipe or play a piano piece can be thought of as "code" executed by the human.
The two don't really overlap.

Rift is likely to be purely gaming/social. HoloLens seems to be far more productivity/goal driven.
Curious about the legalities of downloading these materials. (Not that it's going to stop me.)

Are they technically still "classified"? Or have they been declassified? I remember hearing threats of prosecuting NSA folks who had these materials and weren't supposed to, even though they were already released.
So the original author transferred ownership (incl. github page) to a the uBlock community, in reality to one of them. It turned out he handed it over to s kid who in turn made some weird source code changes and asked prominently for money/donations.

This scheme seems to popular with adblockers, afaik the original AdBlock and the AdBlockPlus had a similar "relationship". And later a German company took over AdBlockPlus in a similar manner and is doing big business in a gray area (whitelisting domains costs ad networks a lot of money and is absurd for an adblocker!?)
It means the "balance of power between entrepreneurs and investors" is different when your monthly allowance runs into the thousands, i.e. this very successful and commendable outlier is not represenative of the norm.
Well... let's not assume that the article has told the whole story. There's nothing independently verifiable in it.
Applicatives are definitely something that every Haskell programmer knows. I would expect everyone on the team to understand the recommended new version, but it's less clear whether it is actually an improvement. There is a proposal to allow applicatives to use the same syntax as monads (the original code, before the change), which would render the question moot: https://ghc.haskell.org/trac/ghc/wiki/ApplicativeDo
They want to make an example out of her.
Really? Holy crap! I live in Victoria (don't have kids), and this is news to me. I remember that it's illegal to leave your kids in cars on hot days, but that's it.
Maybe the parents simply contacted the author with the story and asked not to be named. It's kind of pointless journalism though if you have no verifiable facts. In some other stories she uses real and full names; she has a TV show and is a published author; I don't feel like she made this up.
The "good news" is that this should help show that there isn't already big back doors in windows otherwise they wouldn't need these tools.
There are many things. First, Florida is odd. Dave Barry made his career out of odd things happening in Miami.

Perhaps more accurately, the us has a large population. It's roughly the same size as all of western europe. With 350 million independent agents running around, you'll get some funky edge cases.

And C, I think everyone is susceptible to abuse of power. There are a million stories of HOA (home owner associations) making crazy complicated rules because of smart yet bored homebodies with nothing better to do.

The U.S. has certain freedoms, like self defense, that you don't see in the U.K. Freedom of speech is pretty cool, but you get these weird effects where things advertised as "news" aren't actually required to tell the truth. So it's not all sunshine and lollypops.

Classic puritanism tried to take comfort knowing that people not acting in a godly way would just go to hell when they died. The U.S. has a long tradition of everyone knowing everyone else's business. And being judgmental of it. Sometimes echoes of that ring down through the ages and we get weird laws. We get the moral imperatives, but can't really rely on bad parents going to hell, so we get kind of crazy.
Coding a simple algorithm is a work-d
sample test.
Giving stuff away for free is not how business works :P
BitReserve removes all fees – peg Bitcoin to and from any currency for 0%
Is this the reason they stopped Linux development?
http://techcrunch.com/2015/06/11/oculus-rift-consumer/#.xwct...

> The partnership with Microsoft will also see the Rift work “natively” with Windows 10, plus play Xbox One games in the headset.
http://twitter.com/whatiscode
Ask HN: First Employee/Hire - Trust Among Founders?
With any new startup, the founders are usually hesitant to fully trust some of the people they hire. How did you, as one of the first hires, convince founders to take ownership over a certain portion of the business?
>> not even close

Huh. What the fuck have I been doing for the last 6 months, then?
Having a reality TV show and running a popular blog would make me think they're more likely to spin or embellish things.
I don't think it's impossible that this story is true, nor do I think it's a prank, but I wonder if the original author were pressed for identifying details if they would claim it was an amalgamation of different cases crafted into one "cautionary tale".
I once figured out the weakness in my response to an interview problem 3 years after the interview. It was something basic too. Made me feel like an idiot, yet relieved at the same time.
Mr. Yarvin, is there some way to get ahold of you, via email or IRC? I'm not some hater who's pissed off about your political views or anything like that. This is very important. Thank you in advance,

Nathan Klein
" it's all about not doing anything that someone can point a finger at you for later. Nobody ever got fired for choosing IBM, Oracle or Microsoft."

THIS ^

"Groupthink" writ large - BUT, it is the unfortunate reality.

By the time a small dynamic, free thinking company becomes an "Enterprise", it has metamorphosed into something almost unrecognisable.
"At the time of the incident, he never mentioned what had happened, and I assumed that he was unaware, that the best thing would be not to bring it up. But, of course, kids are astute observers and somewhere along the line, he figured it out.

I got out of the car one day to feed the parking meter next to the driver side window. “Don’t, Mommy. Don’t. The police will come.” I went to let the dog into our front yard while he was watching his morning cartoon. “Mommy, no!!! The police.”

One afternoon after his swim lesson, he came out of the bathroom and for a second didn’t see me — I’d kneeled down to get his shoes from their cubby. When I looked up he was crying. “Mommy, mommy, I thought someone was going to steal me.”

That evening I sat him down and tried to explain it. I told him that he was right, that mommy had left him in the car for a few minutes one time and that was a mistake. I wasn’t supposed to do that. But it was all going to be fine now. Mommy wasn’t going to jail. And no one was going to kidnap him!

“Most people,” I told him, “are not trying to hurt you. Most people are good people. Do you understand? You don’t have to be afraid?”

He nodded slowly, but I could see from his face that he only half believed me."
While the story is of course fucked up the comments about CPS being some kind brownshirt-nanny corps are perhaps a bit overblown? There are actually people who do more harm than good to their kids and that's the reason I suppose these procedures exist.

I would say it is the 'common standard' of what constitues a negligence that is the twisted thing here. Normal kids don't need a 24 hour supervisor once they go to school.
fuck all of you idiots. america is doomed and you are personally to blame. yes, YOU, idiot.
Tangential, but one of his granddaughters lives in Portland OR. [1] Living an interesting life. Looks like she has adapted pretty well to local life.

[1]http://www.parismatch.com/Actu/International/La-petite-fille...
Fluid particle demo in WebGL
Only the government can declassify a document, even if it's available through other means. These are still classified documents, you should at minimum treat them with respect.

IANAL: Not unlike copyrighted material, if you are found to be distributing classified documents, you are definitely at more risk for prosecution. Holding classified documents in your personal possession, however, won't likely cause any real means for prosecution.

Read the documents, be informed as to what they mean, then act on them through legal means -- in the voting booth or through the courts.
The United States does not have an Official Secrets Act (UK does).

Outside of the Intelligence Identities Protection Act of 1982, if you were never granted a clearance or read in to specific programs (you'd know; you have to sign an NDA and such), you have no obligation to keep classified information secret. Arguably if you gave information/support/etc. to enemies of the US, it might be treason, but there's no need for that information to be classified in the first place for it to be treason.

If you have had a clearance, even for unrelated stuff, you don't want to touch these -- it can be a violation of your NDA for the other materials.

I am not a lawyer; I am not your lawyer; this is not legal advice.
Time on side projects this month: 2 hrs. Profit: $751. Rad