skysight-inc/HackerNews huggingface dataset:
Tunnels can overlay each other. The following arrow swaps the outer two elements of a 3-tuple.

I can't tell if this is intentional or not, but it's a prime example of when programmers should Stop Writing Code and use a high-level flow diagramming tool, for the same reason that large projects shouldn't be done in assembler, that chip designers long ago gave up doing layout by hand, and architects use drawings instead of writing out step-by-step instructions. Code is a really terrible medium for defining structural relationships.

Sticking with the architecture metaphor, if you look at the plan for a building it requires skill and effort to understand properly - and for large buildings, a capacity for understanding abstraction - but even to the untrained eye there's a clear isomorphism between the plan and the actual structure. When you first encounter a large body of code it's more like a jigsaw puzzle without the reference picture. There are some standard reference points you can rely on - analogous to identifying edge and corner tiles, and knowing about different conventions of interlocking tiles - but you have to do a good bit of reading before the flow of the program emerges and you get a sense of where most of the computational effort takes place. My mental representation of a program is as a causal network, somewhere between the operation of a clock and a Rube Goldberg machine (probably because I spent a lot of time dismantling clocks as a child); reading code in order to figure out the operational structure often feels to me like closing my eyes and trying to infer the structure of something through my hands.
The Genius ISMs
OpenHFT Chronicle – Queue, Map, Logger and Now Engine
i totally agree on this, I feel that I am already too dependent on 3rd-party services like heroku. however, i feel that the free server offered by DigitalOcean should be a good place to try stuff without extra help?
If your mind calms down, your heart rate drops, your cortisol goes down, and your muscles become less tense. Those are all physical benefits.
There may well be, but if the blog post loses me as a reader by the time I'm finished with the first paragraph, there's no reason for me to scroll all the way to the bottom to see if there's more information.
If any Plastc employees are watching this thread, the bottom of the linked page displays some htmlspecialchars() escaped PHP code:

&lt;?php if( extension_loaded('newrelic') ) { echo newrelic_get_browser_timing_footer(); } ?&gt;

This does look like an awesome product and I'm glad it addresses the rechargeable battery issue that kept me from going for Coin. Hopefully it supports mobile platforms besides iOS like Windows Phone :)
I pressed the comforting, blue button and my chronic gullibility was cured instantly! Thank you Placebo Button!
For Mongo I write a data layer that has methods like GetFoo() or UpdateFoo() where the methods have implicit knowledge of key structure (and query model objects for validation, etc)

For SQL I would do something similar but use (for example) SQLAlchemy Core (not ORM) to do DB-agnostic SQL generation. That would essentially give me a SQL API somewhat similar to pymongo.
I should note that I don't have any special information about AutoAwesome, so my knowledge is based on the blog post.

The author seemed to be surprised which makes me think it was unplanned, but I might have just been reading into it.
To me, the difference is in the free will. The computer doesn't have a choice; the dealer does.
NSA’s Privacy Officer Exempts Majority of NSA Spying from Her Report
EXCLUSIVE BY AWARD-WINNING INVENTOR – How to “BOUNCE BACK TO LIFE”
Um, how about, no?

var time = new Date("<ISO-8601 string>") // in Javascript

time = DateTime.iso8601("<ISO-8601 string>") # in Ruby

Aaaand it's human readable! Aaaaand it works before the Unix epoch!

EDIT:

Changed DateTime.parse to DateTime.iso8601, to be even more retentive.

Look, parent claimed that parsing ISO strings is hard (it's not, especially if you're consuming a web api on a modern web language) and that it was more readable (which is so clearly wrong I have no words).

As for being more accurate, again no. The range is worse (lol wraparound if you're using a 32-bit int), there isn't explicit support for fractional seconds, doesn't map onto UTC cleanly, doesn't handle leap seconds, and so on.

It's only "easier" if you don't actually care about a human-readable timestamp that is robust and if you desire to do date parsing yourself instead of using any of the well-established libraries out there. Ugh.
I actually experienced the opposite. The employees who went to heroic efforts to work long hours and “get things done” were often the ones who did the worst work that had to be cleaned up by someone else later. The people who came in on time and left on time tended to be more methodical and their shit just worked.
Detroit Homeowner Offers to Swap East Side House for New iPhone 6
That's an implementation detail of CPython. You rely on that behaviour, your code is broken:

* on pypy

* on jython

* on ironpython

That is, it's broken on Python, and it's not correct Python code. It's only correct CPython code.
You can do that if you want, just use the Rc<T>/Arc<T>/Weak<T> types.

That said, you're right: if you don't need Rust's strengths, the tradeoff may not be worth it.
I'm also currently writing a scraper[1] for the HN frontpage (for my WIP Hacker News redesign), and while there's a limited Algolia API available, it doesn't do much good if users can't post comments, upvote etc. Same goes for the official one now.

So, @anyone involved with the API project, can you give us an estimate on when will the OAuth-based user-specific API be rolled out? I'm fining with pausing my efforts until then, if it's going to be soon, in order to go a less complex and error-prone path.

[1]: https://github.com/geomaster/hnop/blob/master/backend/src/hn...
It's not. It's the reputation damage control, largely superficial.
In Rust, you often use stack allocation, which, as you pointed out, is much more efficient. There's some heap allocation in Rust, but in my experience it's actually a minority of all allocations.

Rust also has an Arena library (http://doc.rust-lang.org/0.11.0/arena/index.html), which can be used for cases where you know that you have enough memory for a given operation and are willing to throw out the entire thing when the operation (or program ;) ) is done.
I don't mean to question your friend's decision, and I don't know the exact situation, but this is just anecdotal evidence. Was it discrimination by the government or by fellow Spaniards in a private capacity? If it's the latter (which I'd guess), then it's not really a restriction on individual freedom.

Nonetheless, I don't think this would conform to the experiences of the vast majority of Cubans, wrt individual liberty. I know several Cubans myself who fled the Castro regime.

The UN charter on human rights also includes the right to freedom of expression, freedom of assembly, for political action etc.

Take a scale of 1 to 10. Spain may be an 8/10 when it comes to equal treatment wrt sexual orientation. For the sake of argument, let's say Cuba is 10/10 in this measure. For reference, Saudi or Iran (where you can be executed for being gay) are 1/10.

In most measures of freedom, Spain (and Chile) would be 8+ while Cuba would be 1-2/10. Here's another rating (considering political and civil liberty) where Chile/Spain come out perfect and Cuba is one of the worst: http://www.freedomhouse.org/report-types/freedom-world#.VDQw...
One year, we couldn’t buy bottled water for months, because the plant that produced the water somehow caught fire.

Ouch. A way to know one lives in the developing world.
I think people wanting others to tell them what is and isn't a big deal seeds some of the biggest problems in the western world.
Well, I am afraid that we are discussing semantics. The functions performed by the software, like facial recognition, are classical AI problems. Granted the software is certainly not any kind of general intelligence, and probably not even cutting edge AI, but it does still perform pattern recognition in unstructured data etc.
Why's it easier to teach girls to code than teach ourselves to treat women well?
The Giant Online Ad Scam
Great news, I've avoided touching my iPad reader because of the whole scraping issue to get at some of the data. Now I can justify updating for iOS8 + the new API. (just hope it gets approved in time)
And snapchat plans to make money how?

Plus, at least in europe kik and viber seem a lot more popular than snapchat. And it would take them about an afternoon to add a "self destruct" checkbox to their image and video dialogs...

I can understand yahoo desperately wanting to get a foot down "with the cool kids". But 10 billion, seriously?
What made you decide to get a paid plan instead of the free plan?
tptacek is similarly impressive, with 30,051 posts.

https://hacker-news.firebaseio.com/v0/user/tptacek.json?prin...
Types are usually understood as proofs: in this case, a proof about whether the tag of x is suitable for passing to cos without causing an error. (If you like, read "dynamic type" for "tag".)

So the proof and the tag are related in that one is about the other, but that does not mean they are the same thing.
to be fair the people who get appalled by reading the f-word are probably not the target customer. who drops f-word all the time? programmers, entrepreneurs, designers, developers, managers. certainly not established 100 year old corporation, but most certainly the hip, fast moving, horny, 20~30 something olds who eat and breathe technology.
Are they buying favourable coverage with that premium?
I think the implication here is that kelukelugames doesn't think it's a big deal, and is asking others for input without explicitly taking a side.
Chromebooks come close to Android, get MTP support
Wow, this will certainly give Coin (https://onlycoin.com/) a run for their money.
I always thought HN was more of a one man job. I didn't realize there is an entire team working on it (full time?). Honestly there doesn't seem to be much to work on here. It's a simple site that rarely changes (at least on the front end).
Any kind of rate limitations with the REST API we should be made aware of?
It's nice to see a real life example of the prisoner's dilemma going against the Nash Equilibrium:

>Prosecutors had a weak hand, and they knew it. As a December 3, 2013, trial date approached, the Feds made Kane and Nestor separate but identical offers: The first one to agree to testify against the other would walk away with five years of probation and no jail time.

>The old gambling buddies had one more game to play together. It was the Prisoner's Dilemma. Without speaking, they both arrived at the optimal strategy: They refused the offer. A few months later, the Justice Department dropped the last of the charges, and they were free.
I am from Malta, where students get paid to attend University, in the form of stipends and government grants.

It can stand to improve, but I see nothing wrong with the idea. You still have to pay taxes anyway, why not spend them on the common good?
Big Data Will Enable the Next Generation of Manufacturing
Meteor Acquires YC Alum FathomDB for Its Development Platform
The Woes of a Knowledge Worker
How Shrebo, the Sharing Economy Platform, Innovates with Cloud Foundry
In other words, exactly like the first Bitcoin wallet ever created (Satoshi's), but less secure (subject to the JavaScript being MITM'd, something breaking out of its JS sandbox and getting your private keys, keys being recovered from de-allocated memory because they can't be wiped by JS, etc.)

I'm just not a big fan of blockchain.info, so I have a strong reaction to midas's gushing above. What does blockchain.info do that "wasn't possible before"? It can't take credit for Bitcoin itself. It's like an online bank? Doesn't seem very innovative in that sense.

Again, the things that might seem like pluses (being able to access your bitcoins from any computer with an internet connection and a browser; keeping your own keys) are also really dangerous. I'd rather just use an actual application that lets me keep my own keys, without being subject to the browser's attack surface.
Twitter sues U.S. government over limits on ability to disclose surveillance
Or we could build a train, which we've had hundreds of years of experience with, using proven technologies we understand, without squeezing people into a tiny pod.

The hyperloop is a distraction from actually building useful infrastructure, and one that is half-baked at best. It's what a billionaire doodled on a napkin one day and decided to publish to get free publicity for his other, more legitimate businesses.

What bothers me most is that he's building spaceships, for heaven's sake. He understands what engineering problems and solutions look like, and he knows this isn't one.
I'm not in any way opposed to vulgarity in general, but I have to admit that this stuck out to me too. Not really necessary.

(Though my first thought wasn't "Who puts 'fucking' in their testimonials section," it was "Who puts 'fucking' in a business email to a new vendor?")
It also significantly helped that Lua's main users could easily use an older implementation if something they depended on/didn't feel like fixing was removed. In contrast, breaking backwards compatibility for Javascript would be unthinkable.

OTOH, there is real fragmentation between 5.1 and 5.2, so not even Lua is immune to the downsides of breaking backwards compatibility.
So if you have an existing DigitalOcean account, it makes it seem like you can't apply the promo code to it. But I shot off a ticket to DigitalOcean's support, and they applied the $100 promo to my account within 5 minutes. So definitely send them a message if you have an existing account that you would like to have the credit applied to.

Awesome pack, and great service from DigitalOcean as well.

Also of interest is that my account is apparently already flagged as a "student account" since I've gotten the 5 free private repos in the past with it. Which means once I hit "Get your pack" it immediately gave me access.
The gaming laws do not give the dealer the right to change the rules of the game once they have been set by the house and registered with the gaming control board.

If the dealer decides to deviate from the rules, the dealer has committed a crime. The player could also be an accomplice if he was in cohorts with the dealer.

Now in the case of the buggy slot machine, the software has been checked to NOT perform this action. If it does, it's obviously deviating from the rules as well and needs to be shut down. To avoid making the player an accomplice, the "malfunction voids all pays" rule comes into play. If the player knowingly made the slot deviate from the rules, then that falls under the definition of cheating.
Reading things like this kinda depresses me. I guess I just don't understand what makes things popular on the web. I mean, I would have never thought things like Twitter, Instagram, all of the various messaging apps would ever get this much traction. I think it's bizarre.
It's realistic. Most law enforcement officers only have a high-school diploma. It isn't unreasonable to think that they would think that "Eliminate the State" was some kind of anti-american anarchic slogan, or that "Hash" was referring to concentrated marijuana...

Cops are a pretty stupid bunch. Not all of them, but quite unfortunately the majority of them...
HN is getting a mobile-optimized site?

Best news I've heard all day!
The code blocks are really something else in terms of looks. Is that a custom look, or is it some open source plugin?
Code42’s New Dropbox Competitor Now on the Market
How the fire alarm boxes in Boston work: 19th century telegraph technology
Important difference: Plastic supports Chip & Pin, Coin does not.

Plastic: https://www.plastc.com/card#tech-specs

Coin: https://onlycoin.com/support/faq/#security
Hopefully even small such victories against NSLs will encourage more companies to sue the government for using NSLs.

Or we can just push for Congress to stop renewing the Patriot Act next year.
I've been working on a Hacker News client for Windows Phone over the past several weeks and am very close to an initial release, so I feel somewhat ambivalent about this.

On the one hand, of course it's great that HN is finally getting a proper API and also modernizing its markup (which is a mess even if you ignore all the tables – for example, the first paragraph in a comment usually isn't wrapped in <p> tags), but on the other hand this current v0 version is very lacking and impractical for a regular client application.

Since the top stories (limited to 100) and child comments are only available as a list of IDs a client app would have to make a separate HTTP request for every single item, which is obviously not something you'd want to do especially in a mobile environment. Other lists apart from the top stories (new, show, ask, best, active etc.) don't seem to be available at all right now.

Of course this is just the first version, and the documentation promises improvements over time – which I don't doubt at all – but there's no clear indication that the API will be at feature-parity with the current website, even excluding anything that requires authentication, by October 28. So this means that I – and other developers of client apps or unofficial APIs – will probably have to write new scraping code once the new rendering engine (which I assume refers to the website) arrives instead of being able to switch to the new API immediately.

Now I guess I might just be needlessly worried, especially since the blog post explicitly says that the new API "should hopefully making switching your apps fairly painless", but then why not wait until it's actually ready for that before making the announcement? Putting a half-baked API out there a few days/weeks (?) in advance before it's fully fleshed out doesn't seem all that helpful, at least to me.
Webinar to Answer the Unanswerable
The info security community is still struggling to find answers to their Shellshock questions. While many companies have provided you with the pieces to the puzzle, SecureState actually has solutions. Check out their webinar coming up next week on 'Preventing Shellshock'. Even if you can't attend, register anyway and they will provide you with the recording and slide deck for reference. You can even submit question before and during the presentation and they will directly answer them! Pretty cool.

Webinar: http://engage.securestate.com/shellshock-answers-webinar

Blog on Bash Bug: http://blog.securestate.com/?p=5693
As to C++, Eclipse is good. (Not perfect, not certain if great, but it is good.)
According to the article, the government gave the money back to the casino:

>Meadows still has his winnings
This approach to porting node.js library to C++11 is implemented in node.native library: https://github.com/d5/node.native
Looks interesting. Was thinking of waiting until a v2 just to let them work through security issues. Seems like the website itself has some front-end glitches - like the "About" page for example (this code visible: <?php if( extension_loaded(‘newrelic’) ) { echo newrelic_get_browser_timing_header(); } ?>)
Custom! We spent a ton of time on the "documentation builder", since we wanted it to be as painless as possible to write documentation.
> It's all about hooking them into your brand early.

Yup. That's how Amazon Prime got me. Free Prime for students? Well, four years later I'm hooked and pay full price.

Ingenious marketing strategy.
> What part of that is undefined? When you move the pointer, the original becomes null..

Nope, the argument is "valid but unspecified" not necessarily null. And http://en.cppreference.com/w/cpp/utility/move specifically has this as an example of UB:

std::vector<std::string> v;
std::string str = "example";
v.push_back(std::move(str)); // str is now valid but unspecified
str[0]; // undefined behavior: operator[](size_t n) has a precondition size() > n

There's an other fun UB because std::move doesn't check for aliasing, so self-assignment:

v = std::move(v);

is also an UB.

And of course even if it were null., pcwalton talks about use after null. Deref'ing a null pointer (to use it) is still an UB.
Really cool, but I can't help but think this is too little too late. With Apple Pay set to launch this month, this feels lackluster.
You need to sue to get it back. Even if the trial is acquitted. It's a major source of revenue for police. It's one reason why they're becoming more and more militarized.

New Yorker Article: http://www.newyorker.com/magazine/2013/08/12/taken
SPHINCS-256: A high-security post-quantum stateless hash-based signature scheme
With chip & pin (and the October 2015 deadline for the US to switch to chip & pin) this is awesome, and might actually make it up to Canada, where we've moved onto NFC and chip & pin.

I have a sneaky feeling that Coin's long radio silence and pushed ship dates are them re-engineering to have chip & pin at launch.
> And the IRS is after him too.

The situation as a whole is pretty crappy, but this part actually makes sense. It was income, and it's taxable. I'm definitely not condoning the fact that the government seized it and hasn't returned it after the acquittal, but the IRS still wanting to tax him for it is expected behavior.

Interestingly, it appears that (according to some very crude, preliminary research), the two men could probably claim their legal fees as deductions, which would lessen the tax burden a bit.
I'm not sure I understand the first scenario. If they are tested against drugs which have already been shown to be better than a placebo, doesn't basic logic show they would be, as well?

Or is there a case where one could "pass" this test, but still "lose" against a placebo?

For the rest, I didn't realize there was a difference between inert and active placebos.
Twitter wants to be able to say how many NSLs they've received with more preciseness. The government says they can only be vague, they want to be more precise.

I think it would be a 'big deal' if Twitter and other companies started reporting the exact amount of NSLs they receive when they receive them. That would be great. Whether this lawsuit will result in that, even if Twitter wins, is not clear.
For those paying attention, that above lkml thread ended with Sarah Sharp stating that she'll bring and distribute pot brownies to everyone on stage at linuxconf. No word on whether GKH or Linus enjoyed them. :-)
How do you monetize a large user base without credit cards? How would they get teens to get their parents to pay for the ability to send nude pics to their friends?

Meanwhile, millions of small businesses paying $10 a month for secure document shredding with years of increasing profit remains large ignored by the media, nobody bats an eye. Nobody puts an insane valuation on it because it's not cool. So business is no longer about positive net cash flows but spending it. Whoever spends money in the coolest way is the winner as long as you got investors who suddenly forgot what happened the last time we were in the new and hip economy.
Haskell, Scala, Rust, Java (you can't really consider 8 to be not modern), even C++11. Just off the top of my head.

Thank God.
Hey, I'm one of those, I think! For me, dropping a few in a conversation is one thing. Seeing it chiseled onto a web page is quite another.
We don't even have ways in English (probably any language) to speak about internal states without resorting to dualism. The closest we can get is hardware/software analogies.
Isn't too crazy. Is also there to keep everyone blind as to whether they are taking the real thing. Not just those that have no information.
That's two programming languages. Not all languages have a nice ISO-8601 parser built-in.

Human-readable is a slight advantage, agreed.
http://www.coryarcangel.com/things-i-made/pizzaparty/