skysight-inc/HackerNews huggingface dataset:
You can get better performance in the one writer thread / one reader thread case by using simple lock-free circular buffers. No special instructions are needed for this. Cache line thrashing can be minimized by allocating the pointers into four cache lines: one writer local, one for writer-to-read communications, one reader local, and one for reader-to-writer communications.

You do need barriers: issue a write barrier before giving a copy of the write pointer to the reader. Issue a read barrier before reading the data.

Avoid cache line thrashing in a mostly full case by never allowing the circular buffer to become completely full (leave at least one cache line free).

The reader thread can quickly poll many circular buffers for work. The pointers will all reside in the reader's cache until someone has written some data (and updates the reader's copy of the write pointer).

You can get more benefits by delaying the update of the other thread's pointers: on the writer's side, until we have no more data available to write. On the reader's side, until we have read all the data (or some larger chunk of it). This allows the cache-line prefetching hardware to work (to prefetch likely used data).

Anyway, if you really want to use a linked list, at the very least allocate multiple items per cache line, and then link the cache lines together (so one link pointer or less per cache line).
Speculating on the attractiveness of the Elliot Rodger's sister, particularly in the context of Elliot's hatred and disgust towards women that he goes on about at length in this very document, leaves me struggling to describe how utterly disgusting a person I find Mahbod. Even if this was a tasteless attempt at humor someone who isn't a piece of shit would see how wildly and utterly inappropriate that was. Not only not funny, but in the context of Elliot's misogyny just disgusting. I'd hope that Mahbod would take some time for reflection, both on how to act like a decent human being and whether he thinks of women as fellow human beings.

For us, this is yet another startup exec who most likely has a serious problem with women.

I would expect even the btards to not behave like that.

Edit: there is a sorority full of women who where targeted by Elliot and are lucky to be alive today because they didn't answer their thick door when he attempted to get in [1].

Elliot Rodger pounded on the sorority house front door while, inside, the
young women he yearned to slaughter were preparing for another Friday night,
authorities said.

The awkward 22-year-old was obsessed with exacting "retribution" for what he
experienced as a lifetime of social and sexual isolation, and had planned
meticulously to target as many people as possible, according to a manifesto
he left behind and a YouTube video since removed. But here again, he was
denied access to those he felt should worship him.

So when no one answered after several minutes, Rodger improvised.

[1] http://www.cbsnews.com/news/thwarted-in-his-plan-california-...
Howdy!

Colin from Customer.io here. Sounds like you've got your own take on using events to send emails. Building this type of system gets harder the more you scale, but it's a lot of fun. Feel free to email me if you ever want to chat. You can probably guess my email.

Cheers,
Colin
Yes, I knew most of that. But the fact remains that they aren't complete yet and therefore can't actually be relied on as a dependency.

(N.B. I seem to recall someone telling me that gevent had been ported over a year ago and that all that remained was to just make a release. So count me skeptical until the port is complete.)

And that's just the most popular projects. Imagine what it looks like with the less popular projects? It isn't pretty. This is what the OP was talking about with the "tail" of Python projects.

N.B. I don't personally have this problem with less popular projects. I've always done my best to avoid depending on unmaintained or inactive projects because they tend to rot as time goes on (irrespective of massive changes like Python 2 and 3). But plenty of other people have this problem and it's definitely not an unreasonable problem to have.
> Shouldn't it be the role of educators to promote the latest version out there

I think the main role of authors of books on programming is to help their readers to become more effective in solving their programming tasks. So they do, if they're wise and honest.
Eminem has "songs" about literally kidnapping and murdering women. Lil Wayne and Drake have a song called "Bitches Love me." Misogyny in rap isn't "primarily contained" within a subgenre of the past.
cite the source
I take issue with the assumption that everything was perfectly compatible before the jump to 3.

I kept running into random incompatibility issues even within 2, like Pai Mei (a reverse engineering tool) only working on 2.4.
Philosophy is what you do when you don't have data. The other thing to do would be to get data, but who would bother. Especially before lunch.
I did too. Learned a hell of a lot from them that's for sure, lol. Their Engineering team does a lot of, in my opinion, cool things and I really appreciate them taking the time to write about it.
Malicious Redirects to Porn Sites on Rise
Joel Arvidsson: A man about to be sued for libel.

makes popcorn
Wasn't Rap Genius already pretty well-known before they were accepted into YC? You could do a site that annotated sheet music for Polka tunes, or annotated cat pictures with more different cat pictures, and YC would still probably accept you if your traction looked like the first few years of RG's.
This was childish, offensive annotations on a murderer's manifesto days after he killed several people.

I'm sure we'd all enjoy discussing great ideas, but this was neither great nor an idea.
How to Build a Happy Startup Culture the Scrappy Way
That comment isn't even offensive. People get offended way too easily.
People are too sensitive. We're basically at the point where nearly any mistake can destroy the rest of your life. e.g. "zero tolerance" in schools, stories like this, and the recently ousted CEO of Mozilla.

Case in point, the amount of downvoting happening in this thread: Someone says something you don't agree with so they must be the devil incarnate.

The reaction to his comments and the comments here are laughable.
Yes, both Github and Rap Genius are obviously utterly evil corporations and the source of their connection, which is also the sole source of their existence, must necessarily have spawned their evilness.

Downvoted for at least a triple non sequitur and not adding anything on topic, except for an attempt to derail it into yet another discussion about the thing that must not be.
Java is simply becoming the next C. For a reason, in my opinion, since the languages share quite a few traits both on the language level and the ecosystem level. Both are fast. Both have a rock solid execution system which sometimes feels backwards compatible to the first punch card made of rock (gcc vs JVM). Both of them have huge communities having significant infrastructural services and other huge code bases developed in them (linux kernel, application servers, databases in both teams). The big improvement of java would be a higher programmer safety.

And to be fair, neither language is the prettiest, shiniest and fanciest for it's time, but they get the darned job done.
Here's the thing. I don't know Tom Lehmen, but the mere fact that he'd associate with a guy like Moghadam, let alone found a company with him, speaks volumes to me. I just took a look at Moghadam's twitter feed. Within the first score or so of entries I came across ""your pussy is wet, my floor is slippery" - persian proverb" and "Donald sterling dissed magic cause he's jealous of his aids." This is simply a repulsive individual and there's nothing subtle about it. I don't feel I'm at all off base by judging Lehman and Rap Genius negatively by their association with Moghadam.
If anyone wants a fish function:

function jk
history | head -n+10 | tail -r | gitjk_cmd
end

Maybe git full undo via automatic snapshotting (branch/stash)? It's fine unless you hit a perf wall on huge repos.
Almost completely died out? Have you heard Kanye's new album?
Show HN: Centry – Panic Button for Protection Against Cold Boot Attacks
Awesome. I started looking at vNext last week, and stopped short of trying it then due to lack of a Windows machine (which I've set up in the meantime). This will make it a lot easier to experiment with.
I agree, but I think it's just part of the beast. Investors don't want garbage like this (clear lapses in judgment that have little to do with the business itself) affecting their prospects of a return, and quiet discipline allows the Gawker/Tumblr/Reddit/Twitter/blog complex to spiral out of control in a positive feedback loop of outrage and speculation.

And while you say Moghadam has been 98% perfect, that doesn't really change the fact that the other 2% of his behavior would have had him instantly fired multiple times over in any other setting. I think his removal will allow Rap Genius to clean up its image a bit.
> from any culture that has ever existed

Actually there are a lot of eras that had a very low life expectancy in early times [1]. Giving birth at an age earlier than what our society finds acceptable would have been normal, if not the responsible thing to do, for those eras. Otherwise the parents would be living an unprepared 5 year old alone in the world.

[1] http://en.wikipedia.org/wiki/Life_expectancy
"How come nobody caught this and raised a red flag?" asks

It looks like they caught it to me.
"Integrate intensely virtualized trust in HTML5."

Hmm, some startups are actually doing that ;)
Next Gen Warfare: Hackers, Not the Government, Will Fight Next Big War
I'd say factory working conditions at amazon are humane. Working in a factory just sucks.
Ha. One of the faces of rap music (Dr. Dre) started in a gangsta rap group (NWA) and featured misogynistic lyrics in both his group and solo career. And, according to sources, is about to become an executive at the largest technology company in the world.

If you honestly think misogyny–or, at a minimum, objectification of women–isn't easy to find in modern rap genres, I'd say you're seriously misinformed or delusional.

Eminem has the #3 album on iTunes right now. Here's one lyrical excerpt[0]:

Snatch the bitch out her car through the window, she screamin’ / I body slam her onto the cement, until the concrete gave and created a sinkhole / Bury this stink ho in it, then paid to have the street re-paved.

[0] http://www.nme.com/blogs/nme-blogs/eminem-hip-hop-we-shouldn...
This comment is crass and tasteless. I guess some people never really get out of the middle school locker room.

But firing somebody over this? That's totally an overreaction. People may be outraged now, but in a month nobody will even remember this happened.
Here's some more information about the plutonium dust in Spain - there was a mid-air collision between a KC tanker and a B-52 which was carrying nuclear weapons.

https://en.wikipedia.org/wiki/1966_Palomares_B-52_crash
I assume this is cofounder privilege. If one of my employees got my business this kind of bad press, I'd lead him/her out by the ear immediately.
Startup founders are like samurai: quicks to fall upon their swords (or be pushed on them).
So, some parts clearly were, right, complimenting the writing style and whatnot (which, honestly, wasn't great, but whatever)?

That comment about his sister I viewed more as teasing/disparaging the author--your mileage may vary.

Reading a bit more about the dude from Rapgenius, though, he seems like kind of a gangsta-wannabe tool.
As far as I can tell the main difference between a patriarch and a misogynist, is that with a patriarch the women haven't successfully rebelled yet.
I can only say that this is a fitting response. From the farce of Men's Rights, PUA & brah culture to general misogyny, I'm getting a little tired of many of the youth of my gender. Has anyone seen any studies on why we're seeing this surge of ignorance?
Thanks for the reply. Great! I will check out hammer.js, I haven't used it before. Have you used snap.js / what do you think of it?

I don't think your demo works by the way! Doesn't seem to include the hammer.js file!
HTTParty Cookies and Devise
On the deskop, I find it hard to believe that web apps will come to dominate the app space. Perhaps they will find a space to sit side-by-side with native apps. But will they ever be able to match the speed, responsivenes and capability of a native app? I'm sceptical. Web apps on mobile are mostly about consumption of content in some form or require limited interaction.

What if I want to create my own music? Edit or touch-up my photos? Create graphics for my web pages? Do some digital painting? Edit some videos? Dabble in 3D or motion graphics? Create an animated GIF? Create a richly formatted book, magazine, brochure or report? Can I do any of this right now in a web app with the same richness of features, speed and capability as a native desktop app?
I'm not sure he knows anything about philosophy, ethics and epistemology are both ridden with word arguments.

Ethics - Are people really altruistic if they gain pleasure from it? What does altruism mean?

Epistemology - what does know mean? (Yes, he's completely wrong, a whole chunk of epistomolgy is about the meaning of what is a justified true belief)

I didn't read any more. No idea who he is, but he doesn't seem to have studied first year philosophy.
Any script worth it's salt that depends on a newer feature of Python 3 can just check `sys.version_info`. This was a thing one had to consider back when new versions of Python 2.x were coming out, too.
> nearly any mistake can destroy the rest of your life

This, this, a thousand times this. What kind of world do people think doing this kind of crap is going to create?
No, because most games only have Nash Equilbria. Nash Equilibrium assumes that everyone is acting rationally, not just the person you are advising.

Some games, like second price auctions (under certain assumptions about people's values for the good, and knowledge of their own and other people's values) have so called dominant strategy equalibria. In this case, you can say how a person should act regardless of how others act.

But these scenarios are the exception rather than the rule.
Yeah. Here's the issue for it "Port twisted.trial.runner to Python 3" twisted.trial https://twistedmatrix.com/trac/ticket/5965
>> Suppose I’m wondering whether it is it right for me demand extra equity because I’m the guy who came up with the idea for our startup. This is not a question about the meaning of my words. If someone responded to my wonderings by saying, “It depends what you mean by the word, ‘right’,” we’d probably think they have missed something.

I haven't studied philosophy, so I may be naive here, but does this question NOT depend on the definition of "right"? In a practical discussion, maybe both parties would agree that "right" in this case means "fair, in accordance with my contributions to this startup".

But in a philosophical debate, "right" would be quite ambiguous. One party, for example, could posit that the ideas of "right" and "wrong" are completely subjective. That, in the absence of some stated goal or constraints, what's "right" or "wrong", "good" or "evil" is no more valid a topic of debate than whether chocolate ice cream is better than vanilla. However, once you introduce said constraints, the discussion is no longer philosophically interesting.
As an aside, I would highly recommend making a trip out to see Discovery if you are ever in the DC area (the Udvar Hazy Center is just a few minutes' drive from Dulles airport). They let you get remarkably close to the shuttle (close enough to touch, although you shouldn't do so). Also, they chose not to clean her up very much when they installed her (as is somewhat evident in the linked photos). As a result she retains all of her scars from usage and re-entry, which I think makes her feel both much more real and fantastical.
> Although, you are talking about PG (who is the founder of this forum), so you might get downvoted just for the hell of it ;)

I'd like to add that while this may be true, it's not a good thing. Any act of silencing someone in an act of fanboy revenge is an embarrassment to this forum. It's a shame the downvote threshold doesn't rid of this type of behavior, and I doubt raising it would help. I'm tired of seeing grayed out controversial opinions.
You do seem to be suggesting it not be hosted on RG, which lends itself as a convenient place for public study/annotation/debate.

I agree that the quality of the annotations and conversation is likely to be low.
And yet when I suggested naming and shaming the real assholes of our industry, the patent trolls, everyone lost their shit and began defending those low-lifes.

edit: downvoted again; I will never understand this community
I'd love to have scapy for Python 3. A lot of ports of it have been started but it seems none of them reached a working state.
`sudo` is not the best practice with regard to removing that warning, try the `-f` flag instead.
EnduroSync (https://orandolabs.com) is a new service for syncing object stores. It has clients for iOS and Android now, with several others right around the corner.

Data is modeled with objects. The object store works offline and online. If you sign up for the service, then you get syncing.

EnduroSync also has a very nice permission model, enabling sharing of object stores in a variety of ways (per user, per app, ...).
I bet it restricts how often you can do that on a given book.

If not, then "print" the whole damn thing to PDF documents.
I don't know if I'd go so far as calling them "plain evil," but they definitely have tendencies. They are certainly a near-monopoly, and they are known to treat their employees (at least the low level ones), vendors, and customers in monopolistic (and maybe evil) ways, such as by basically dictating "everything," for one. That said, I am not at all unbiased. In fact, I strongly dislike Amazon after a bad experience with them as a marketplace seller: Amazon suspended my seller account for life, without opportunity to appeal for an honest mistake I fixed myself before they even noticed it. Details on Ripoff Report: http://goo.gl/xgbelU
"they are a middleman replacing another middleman" True, except the two middleman aren't equivalent. Amazon sales books. Period, end of story. The publisher offers a lot of value, editing, marketing, research, among other things. Perhaps the model will change where the publishers offer the things that Amazon doesn't. But as the Author points out, Amazon wants more of the pie than they are giving back, and as a single author you have less recourse than as a publisher.
I also worked in the grocery industry for most of a decade.

My sister worked for local fast food and general retail chains (Taco Time & Target) and I was always amazed at the lack of palletization they used. Target especially.

Target sends several trucks a day to each store. Each truck is half-full, and half of that freight is simply "stevedoered" into the truck, not put on pallets. So emptying a truck is a several-hour process of moving individual boxes of merchandise out of a truck by hand. What pallets they do use are often poorly stacked (by retail grocery standards), not well wrapped, and often fall over in transport.

Wal-Mart, by comparison, looks to have embraced the same "CHEP-only" policy as Costco.
Good points but I think the entire post is just link or karma porn anyway.

While I agree that forks like this post sometimes make interesting discussions (and here I am discussing it) I'm not sure what the exact authority is of the OP (per the about page) "I’m a wannabe philosophy professor turned wannabe tech entrepreneur" is anyway, so that if I don't know much about philosophy to begin with why should I even pollute my brain by reading it. Not to mention that I don't know to what degree I can even trust the comments here about this subject at all.

Ironically, that said, separately, and since a theme of the post is "words" [1] interesting how it has been concluded that "seem to be relatively new to HN" when as evidence all you have is the fact that the account was created 22 days ago and a review of the previous comments.

[1] I just changed what I said from "you have concluded" to "how it has been concluded" so as not to appear to be attacking you. Once again, ironically.
Wow, I'm actually embarrassed reading through these tweets, I really hope people don't end up seeing him as the Persian face of tech...
Let me goo... follow that about link on his website for you:

Formation de K. Matthew Dupree
Tufts University
Master's degree, Philosophy

2012 – 2013

University of Central Florida
Bachelor of Arts (B.A.), Philosophy and Religious Studies

2007 – 2011

University of Central Florida
Minor, Mathematics

2007 – 2011
More than likely this is the straw that broke the camels back and not a knee jerk reaction to uncommon bad behavior.
I also agree that the annotations on the Dorner manifesto don't show NG at its best. I wasn't around at the time, but News Genius as a brand was just finding its feet, and you'll see examples of both great and terrible annotations on it. For example, http://news.rapgenius.com/1489298 is a great annotation, and perfectly epitomizes what News Genius tries to be—objective annotations on the news, highlighting facts.

But no, we didn't do a good job with the Dorner manifesto, as a whole. Part of that is due to the level of quality increase that the site has seen since then, but maybe part of that should have been a warning.
The only thing this is missing is a bitcoin address to send the ransom to.
I think the lesson is that if you're going to break backwards compatibility, you better offer something really enticing in exchange. Python 2 wasn't so broken that people where clamoring to get off it, and Python 3 wasn't so much of an improvement that people are clamoring to hop on it.
The conference was great as well. It was amazing to hear how fast Tivo was able to port their 1M+ loc library over to Haxe, and how they're able to compile the client to new platforms now.
Another computer scientist's take on philosophy:

http://www.naur.com/Antiphil.html
PG was not the only one highlighting "confusion over words".

The more notable philosopher Wittgenstein also expressed this idea: http://en.wikipedia.org/wiki/Philosophical_Investigations#Pr...

The TFA proposes that 2 other branches of philosophy 1) ethics and 2) epistemology have not been affected by "confusion over words".

I think Wittgenstein would say that must be false because those 2 subject areas also are discussed using the mechanism of words. You can't escape "words" because philosophy (any branch) can't be discussed any other way.

I believe the TFA is arguing incorrectly because he thinks PG's criticism of philosophy is about "word confusion" when the higher meta-issue is that the "words" themselves handicaps all of philosophy.