skysight-inc/HackerNews huggingface dataset:
>I don't see the parent suggest that you use treat coroutines like threads at all. In fact, he's explicitly suggesting that the same issues that exist with threads don't happen, or are at least significantly diminished.

Right, but by implication if you don't want them to happen and are afraid someone will override __iadd__, then by no means just use a lock. Both eventlet and gevent I believe will monkeypatch threading module to now become "green" threading module.

> However, since nothing appears to break if you get it wrong

But nothing would appear to break in the deferreds case I suggested either. It would still be accessing shared data in an inconsistent way.

> I suggest that there's way too much room for people to get it wrong there.

That is why a private queue with a green thread attached to it (a actor!) is a better way to build large concurrent systems.

> Furthermore, in many cases there are simple ways you can make a synchronous library look async in twisted: deferToThread is the most common/obvious one.

Yes it is there and it works but it is clunky. After switching to gevent we, for example, got about about a third to a half as much code as before. A lot it was boiler plate code. inlineCallbacks and yields. Our own counter-parts to already existing libraries to make a Twisted alternative.

> Can you give a practical example of where you used a semaphore to synchronize shared mutable state access? I've only used it for, say, concurrency limiting, I think

Pretty much the exact problem I described above. A server was processing requests from the user. It was listening on a TCP socket and reading commands delimited by a new line. One of the commands initiated a business operation consisting of multiple steps. That operation involved going to some databases, calling a number of sub-processes all of which was handled via callbacks. As the operation was taking place, a local piece state data was updated, tracking the progress etc.

Now if before that request finishes, a new command comes. And starts firing the same sequence of callbacks, but the previous one hasn't finished yet.

So that's it. You are accessing a shared piece of data which is now in a logically inconsistent state in respect to your internal business logic and you have no idea it happened (just like with threads).

So you need to acquire a deferred lock and then release it when done.

> I'm actually very interested in actor-based concurrency, and I think many of my fellow Twisted developers with me (we have a good contingent of actor + obj-capa fanboys). I have a few systems where the reactor is pretty much that queue for all intents and purposes :)

Yeah we switched to that. Actors are basically an object attached to a green thread that a main method. Actor has a queue. Outside processes can send it messages by putting them in the queue.. Actor in main method can do self.receive() for example to get messages off the queue. Basically what Erlang does. You have choice if you want to duplicate data (make copies before putting in queues) or use objects with locks to serialize access to them (say if they are large and copies won't work).
This isn't new, this was why Hoover stayed in power for so long. He had files on everyone.

Remember, information is power.
Britons Question Whether Detention of Reporter’s Partner was Terror-Related
Highlight important image areas using CSS filters and clip path
Who said anything about boost? afair zmq compiles with no boost dependencies
That's the most bizarre part.

First, Snowden steals his information from a Microsoft Sharepoint server? What are classified documents doing on a Sharepoint server? What is a Sharepoint server doing inside the network boundary at NSA?

Next, they blew the recovery. If they negotiated with Snowden when he was in Hong Kong, they could have had him stand trial in Hawaii and won easily. Or alternatively, they could have done nothing and waited for Snowden to settle down anonymously in some Hong Kong apartment and arranged for an extraordinary rendition, most likely with the tacit blessing of Hong Kong authorities.

Instead we've had this wild goose chase across the world, including the surreal scene of Snowden stuck in the Moscow International Airport, with Vladimir Putin claiming that Moscow Airport isn't part of Russia.

Now, they're going to harass a journalist? The US press, which normally handles national security issues in close consultation with US authorities, is clearly spooked, with front page stories in both WSJ and NYT. There's an old adage: never pick a fight with someone who buys ink by the barrel.

The general public, which didn't care, is now bombarded by increasingly fantastical news stories with just enough entertainment juice to keep them interesting: super-spies reading your email, a lone hacker with a model for a girlfriend fleeing Hawaii to galavant around the world, and the invincible United States seemingly flummoxed at every turn.

Not to put too fine of a point on it, but what the fuck guys? Have we really never considered how to exfil someone from a hostile nation?

Is this really the best our intelligence community can do? If so, the real danger is less 1984 and more kindergarten cops. Maybe the story is more complex from the inside, but if not, this is being botched from end to end.
way back in the dark ages, before the Playstation and XBox and Nintendo, I conducted my own empirical studies using coin-operated arcade games. I found that after a couple of hours, my reflexes plateaued, then degraded. I had to go do something else for a couple of hours before I could come back and do better.
Getting started with Vim: Choice configs and plugins.
Nutanix OS 3.5 - Elastic Deduplication Engine & Prism UI
> It's not like there's a whole ideology and movement and organization that supports their actions.

The same can be said of the culture of illegal invasions, illegal detentions, secret trials, secret jails, spying, drone attacks and other fun things brought by the National Security State.

The Taliban is far younger than and wouldn't exist but for the American National Security State. Let's keep cause and effect in mind here.
Would you say you condone all the actions done by your country's government. If not, how are you taking action against them?
Does this mean I have to put a +1 button on my site if I don't want it to come after all the sites that do have +1 buttons (unless I'm a canonical source like Wikipedia)? If so, it seems like a gross abuse of power on Google's part.

I would imagine Facebook could file an anti-trust suit over this.
Irish terrorism was never anything to do with religion, religion just happened to be a reasonably good proxy for political leanings.
Agreed. :) But IMHO, that puts them in the top 0.1% of engineers, and isn't reflective of the "middle class" or vast majority of programmers, even in SF or NYC. ;)
We have rebooted mail, see Freemail[0] and I2PBote[1].

[0] http://freenetproject.org/freemail.html

[1] http://i2pbote.i2p.us/
I agree with your points, but the setjmp/longjmp issue is largely orthogonal to RAII.

If you've got code in your library that you need to run after invoking a user callback (like free or mutex unlock) and the user does a longjmp on you, it doesn't really matter if the code you want executed is done automatically from a destructor (as in RAII) or manually. If you want to allow the user to do a longjmp from a callback you have to write the code carefully to handle this, be it C or C++.
So you're saying there's a correlation between the rise of the political stories, and decline of the technical content?

Seems plausible to me.
A nice approach, I will look at implementing it on my setup at home; Probably worth noting that if you are taking these steps then running it all out of an encrypted filesystem is probably a sensible addition. Although if you are looking at doing this you probably have an encrypted filesystem already.
I understand where you're coming from, but I just don't see how a more globally integrated society can be used as an argument to exempt members of the press, who are physically located in a nation, from being subject to the laws of that nation. We still manage to have international trade despite the fact that each nation has their own laws regarding money and trade, so a news organization (or reporter), like a business (or individual), can relocate itself to a country more favorable to its agenda.

There is a big difference between being concerned, advocating for, and helping those in other nations, yet still being a citizen of your nation, and imagining yourself as a global citizen who is above the laws of any one nation.
Very cool. Lightnings and thunders.
Miranda was offered a government lawyer at first, not one of his own choosing. He was smart to refuse their stupid offer.
So, discuss.

Why shouldn't we know about our own governments spying on us? Why shouldn't we be informed about how our government is governing?

The US Constitution, at least, was written in remembrance of the privations of an occupying army. The country was founded on the belief that the people are sovereign. If the people are to be sovereign, then they need to know what the government is doing. This is why we have freedom of the press, etc., and why this right is more important than any short-term goal.

The governments of the US and UK are acting like occupying armies. They disregard the rule of law, act arbitrarily, arrogantly, and without accountability. Fixing this is more important than any marginal security the NSA's secrecy provides. It's probably worth more than everything the NSA provides altogether.
Thank you. I guess cash currency isn't really property either. It is backed by the "full faith and credit" of the government so it is like a IOU that the government requires you to accept to settle existing debts.
Mailpile – taking e-mail back
Yeah right, we British might well need the skills of such immigrants to survive freely. Shame we dont have much of a tradition of immigrants from France...

Hmmmm.... The British (Or US) Resistance, any one? Really annoy our right wings by taking inspiration from the "evil surrender monkey" French? Or too ironic?
Research - Qubits teleported at kilobits per second
Upsalite: Most Absorbent Material Accidentally Discovered
Building following/unfollowing capabilities with Angular
I know you think you're being very clever, with your disingenuous "A LITTLE", but ironically it really is only a little hyperbole in the grandparent comment. For fuck's sake, partners of journalists in the UK are being intimidated by the government. If I was the journalist I'd be very hesitant to travel at all. This is in bloody england, remember, the progenitor of everything we think about when we think "the west".

Open your eyes. Look how far things have come. This is not about LOLPOINTS™ on the internet, this is actually getting pretty damn real, and people are worried.
Why the rampant fanboyism around CoffeeScript worries me
Encrypted computer files seized from David Miranda 'were from US whistleblower’
> while not even being able to fix it to the pylons

Tubes are fixed to the pylons, just not rigidly (in longitudinal direction).
Also (slightly OT):

* Link to homepage is on the right-side!?

* Somehow, content text feels too thin/dull. Little bit difficult to read :)
Anybody building such systems today should have a plan for when (not if) they receive a National Security Letter.
You're right, a plain hybrid is substantially different here.

A regular (non-plugin) Prius will go maybe a mile on the battery alone, and only in the right circumstances. Acceleration on the battery is poor, and battery-only mode is limited to 40-45MPH. It'll start the engine for you on demand, so this is no problem when driving, of course, it just illustrates that the battery performance isn't all that important.

Depending on how you drive it, cold weather can hurt gas mileage. If you're driving in a way that the engine doesn't run much, then it may have to run the engine more to generate heat for the heater. However, if you're driving in a way that runs the engine a lot anyway (highway driving, decent amounts of acceleration hard enough to require the gas engine, etc.) then you get the same kind of "free" heat as a normal car.
Do they really have a monopoly in search? Have they bought/created all the patents that stop other companies from implementing online search engines?

I don't think there is a monopoly in search, look we have duckduckgo for instance.

Since it's their search and their google+ why aren't they allowed to use one as metrics for the other?
It's rather more pseudothought than thought - groupthink and machiavellian manoeuvring and politicking, rather than cohesive decision making about any given matter at hand, and the continuation of policies not because they make sense but because they are policy.
An example: Calcium is required for good bone strength/density. However, Vitamin D deficiencies mean the body can't absorb enough calcium.

With regard to the "natural vs supplement" argument, some people are very pale and susceptible to skin cancer. It may not be safe for everyone to get enough Vitamin D through natural means alone.
Named Entities in Law & Order Episodes using NLP
I completely agree. I'd love to see some major public transportation like this around Colorado. Just last weekend my girlfriend and I took a day-trip to Boulder from Fort Collins (through Longmont), and the congestion through Longmont main streets is outrageous on the weekends. It would be ideal to just drive to Longmont (about a 15-20 min drive from Fort Collins) and catch a tram such as this to the Boulder/Denver area. Once you are in the city of Boulder, most things are within decent walking distance. It would also be great for daily commuters as I know some who commute from Longmont to Boulder/Denver and visa versa.
My app and I are hurting
I read it as having your site +1'd not having a button (but the button makes it easier for people to +1 your site).
There's two things to consider regarding 9/11 conspiracies - is it true that they would want the benefits that fear of terrorism has lead to, and if so would they actually have killed people for that sake. We're seeing more and more that the first part of that is true, i.e. proving the motive.

That said, I'm firmly in the "it wasn't a conspiracy" camp - but you can at least see why a conspiracy believer would see these things as backing up part of their beliefs.
Bullshit. Their political leanings that stem from their religion. You could say the same thing about Islamic terrorists.
the market cap comparison is somewhat misleading because clearly there is substantial probability of Tesla selling many more cars, once they release mass market versions. They have created enormous brand value. if they successfully offer a mass market car, their market cap could easily be higher than Ford.
Is there a way for people to initiate impeachment of Obama / get rid of scumbags from the Government given the number of lies and mess that's already out there?

Like it or not but a lot of non-American users see these actions like a bid to take over the Internet. It is a sort of waging a war against the rest of the world. Treating ordinary citizens from outside America default as terrorists and subjecting 'em to round-the-clock surveillance is a gross violation of human rights.

Why is the world silent on this? Why do I read 'only American citizens deserve privacy' in every piece of debate and discussion out there?

IMO, a historic equivalent of this type of naked surveillance was when the Jews were stripped of their clothes under Nazi Germany (I know this sounds a bit over the top, but well it's not). The world needs to stop thinking that privacy is grant only to those who belong to certain nations.

[Edit: Thank you for the negative votes. The statements hold true despite your lack of respect for opinions.]
And the internet.
The NSA "hoovers" information, but it doesn't refer to the vacuum cleaner anymore.
We need a plan B. It may be that the citizens have already lost this power war. Certainly the reaction of the UK police to the uproar (if it's that) of the Miranda detention and the snarkiness of the White House Dep. Press Secretary about being informed says to me that they don't really care what we think. And if they don't care it's either because they know they don't have to care (because we're not powerful enough), or they can't care because they are getting even more pressure from the other side, the intelligence community (who are thus more powerful than we are.)

Yes, political pressure. But what if that doesn't work?
> in the US they shoot each other and innocent bystanders or professionals

What are you referring to?
I just want to say that everytime a site like Groklaw -- whose main work was revealing how broken the status quo is (mostly with regard to tech IP law, in Groklaw's case) and thereby creating pressure or exchange among interested parties to fix it -- shuts down, for whatever reason, the powers-that-be win.
Sure; I gave a great example in my blog post here: http://www.erica.biz/2012/failure-success/

Feel free to email me with more specific questions if you like; email is in my profile.
Does that Groklaw logo on the Guardian have a CafePress watermark in the background?
With respect, a conspiracy believer sees everything as backing up their beliefs. That is the major defining characteristic of conspiracy theorists, their ability to twist everything to support their narrative.

People have a tendency to see the short term and hype it up beyond all belief. At the same time as we are discussing this, the CIA have formally admitted to essentially trying to destroy a democratic nation. I like to try and keep things in perspective.
He was smart to refuse the lawyer, but Greenwald's assertion that Miranda was not allowed a lawyer present was not actually grounded in reality. This whole thing stinks.
Ask HN: What is the most annoying part about finding a new job in tech?
Is it spending the time to search for good positions? Dealing with recruiters? Phone screens and interviews? Something else?
They have more than 90% of the market. The fact that alternatives exist doesn't make them not a monopoly when hardly anyone is using those alternatives. See windows in the late '90s.
I think we need to go one step further than encryption.

We need to encrypt all communications expensively. Make algorithms which can be tuned to be arbitrarily expensive, computation-wise. Tune them so that it takes as much time as we can bear to encrypt and decrypt an email. Seconds, ideally.

The goal is to make it so that some large fraction of our computational resources are taken up encrypting and decrypting communications. Say, 10 or 20%. For every day uses this will just show up as emails being slow to open, since most people's computers are idle most of the time. But if your goal is to intercept and process all communications, all of the time, you can't do it without having an absurd level of computational resources at your disposal, even if you have all of the secret keys. Ten or twenty Google's worth of data centers.

If this was done properly, it would kill (free) webmail search. It wouldn't prevent targeted snooping, except insomuch as normal encryption does, but it could make pervasive snooping too expensive to be feasible.
Wait, what?

Ireland is nothing to do with religion. It's a handy banner. It's all about British colonialism and oppression. Fuck, we sold the Irish as slaves to west indies planters. Of course it's geopolitics.

Religious fanaticism, however, does not equate to terrorism. It is a subset of the phenomenon, and operates on its own little set of utterly irrational rules.
Why Data-Driven Initiatives Are More Important Than Ever
I'm not sure how helpful knowing someone's income is when sampling user's from around the world unless you have some form of secondary data that helps place people on the same measuring stick

That and comparing my salary to people in San Fransisco is depressing at face value (but less so when cost of living gets worked in)
Easy: when you oppress women, you prevent progressive democracy.
The NSA is the wrong unit of analysis. The NSA is a tool. The group of people that has disproportionate power over the government wins everytime anyone that opposes the status quo supported by that faction is intimidated into stopping a part of their work which focuses opposition to some piece of that status quo, though.
Being On Call At Facebook
Commentary - The Six Things That Will Change the Future of Payments | PYMNTS.com
If you think that equating journalism with terrorism is only slight hyperbole then you have no place in reasonable discussion.

It is excessive hyperbole that helps nobody and serves only to polarise discussions. In reality the statements so far indicate that they stopped Miranda in order to determine if he was carrying information likely to be of use to terrorists. This seems to be an illegitimate use of the powers, which we'll find out soon.

That is a reasonable take on the matters, not 'JOURNALISM NOW IS TERRORISM!!!!!'
And you could argue that replacing governments is political "hacking" on the grande scale.
So how we we achieve political change? As Charlie Stross points out, some very wrong has hijacked our political system:

http://www.antipope.org/charlie/blog-static/2010/12/invaders...
Abortion doctors are often the target of violent actions. Bombings and fatal shootings have happened intermittently, but with enough regularity as to paint a pattern. Collateral damage is hardly a concern for those engaging in these events.
Powow AS acquires Gitorious AS
It is a curious quirk of psychology that a single vote for a two major parties is considered to matter, despite being guaranteed not to sway the outcome, while a vote for a third party is considered "wasted". And even curiouser, choosing not to vote at all is considered the more rational option.

Here's hoping that the people eventually figure out that instant runoff can be implemented state-by-state.
I'm surprised how fast it happened! With 22 days left it may get high enough for them to bring on another developer.
Ummm, no. I'm sure he didn't have files on my parents (well, perhaps aside from a pro-forma one on my father, who as an USNavy officer for 4 years in the '50s would I believe have gotten a Secret clearance as all officers do today), he had files on everyone "important". And e.g. the fruits of bugging Goldwater's campaign airplane, as ordered by LBJ. About the latter he said something to the effect of "If the President orders it...."

There's a qualitative difference between "The government has its eye on 'important' people" and "The government is spying on every phone call everyone makes" etc. (the metatdata collection we're pretty sure is happening from the Snowden leaks which included a blanket writ for all of Verizon Businesses' metadata).
http://editorial.autos.msn.com/blogs/blog--tesla-to-add-chea...

Evidently the roadster doesn't count.
Fascinating reading - makes me realise just how rusty my theoretical CS knowledge is (I haven't used lisp or some of that sets notation since 1990!)

However IMHO the author should have told them NO, and why, much earlier.

Shame on you google - take dozen emu eggs, break into a bowl, whip up and apply to face.
While I see the potential for "Zersetzung", it just doesn't scale as well as mass surveillance.

If your communication (and location) data is stored by US companies complicit with programs like PRISM, and there is no hope that this data will ever be destroyed, then that's enough to make you communicate (and move) a lot more cautiously.
The government offered someone by their choosing and told Miranda that he was a lawyer - which the person may be or may not be.
What sort of tools are you envisioning?
How could this be translated to Postfix, for a Postfix novice?