skysight-inc/HackerNews huggingface dataset:
> x | 0 as declaring int. +x as declaring float. Math.imul to multiply integers. seriously???!!!

|0, + etc. are how compilers to JavaScript - emscripten, mandreel, others - have been implementing integers and so forth for years. The bitwise operators and + have the right semantics for that, and are concise. So these are not ways to "declare" integers - they are functional syntax, things that actually do something.

In the asm.js type system, it was therefore natural to use them to also "declare" types. But only in the sense that asm.js figures out the types exactly as JS engines do, from code that has actual effects. (Compare to closure compiler type annotations, which are arbitrary and have no effects.)

Math.imul is not strictly necessary, but it fixes a specific pain point in JS (that multiplying large integers can be rounded due to JS numbers being doubles). You can use asm.js without it though, might be some slowdown with large ints but not large. asm.js is perfectly viable without Math.imul.

Besides all this though, the important bit to remember is that this is a compiler output. It's not a human-readable language. It doesn't matter if multiplication is * or DO_MUL or anything else, just like it doesn't matter how multiplication commands look (in terms of binary data) in x86 or ARM machine code.

> Also javascript (without introducing new concepts) is not low level enough to write down everything you might need (have fun implementing 64bit integer operations with overflow for example).

Depends on what you need. Current asm.js can run Sauerbraten, a 100 KLOC complete game engine with physics, AI, rendering, world geometry system, scripting language - not JS! :) - , level file formats etc etc. It is also enough to run large projects like Python, Bullet, etc. So it already supports quite a lot. In fact almost the entire emscripten test suite runs as asm.js, and that's a lot of C/C++ code.

But yes, there are some areas that are trickier, like true 64-bit ints.
I can't speak to China, but here in Australia they already diluted it to 40%. I'm not sure when it happened, the bottle I have is at least 4 months old.
Found this: The excellent Postgres documentation includes an SQL graph search with two different ways of graph cycle checking, here: http://www.postgresql.org/docs/9.0/static/queries-with.html

One way involves accumulating an array of nodes already visited as the tree gets walked, checking each node as-visited for membership in the array-to-date.

The other method, a bit more of a hack, is just adding a LIMIT clause.

I think the 'WITH' clause is a great addition to the SQL standard, very much worth the learning the weirdness of its syntax and its optional 'RECURSIVE' term (which, as the Postgres documentation points out, isn't really recursion, it's iteration).
Tizen 2.0 Magnolia SDK and Source Code Release
One Random Tweet, please.
Show HN: I built this program to show your friends Facebook relationship history
I've worked at a lot of for profit business (not banks though, i can understand that in those kind of business requirements are diferrent) and made live database updates in all of them. In 99% of the cases all goes well and in the remaining 1% you need to revert to your backup (always make backups before doing anything!) and have a couple of minutes of downtime.

It really depends on what kind of business you're in whether this is acceptable or not.
The global internet is about to become as segmented and jagged as a windshield hit by a baseball at 100Mph.

"We're sorry, the content you requested is not available to you, if you would like to tune-in to our awsome channel, please press the payment button". You didn't pay your linkedin and hacker news surcharge yet, it's gone up, but we think this is in the best interests for corporations who want to own information.

RIP Internet. (1970-2015), a formal funeral will not be held.
He did the first two times. He didn't at the unscheduled third charging stop after it lost range overnight, supposedly on the advice of Tesla staff. (There were reasons why they may not have wanted him to linger there too long - it was at a much slower 240V charger which made the car look bad compared to the Superchargers he was meant to be demonstrating in the article.)
You could learn quite a bit about the organization and function of a country based on the temporal-spatial patterns of its energy consumption particularly when you're given the power to control external stimuli. But yeah, it could be pretty useless for studying something on the scale of a subdivision. It depends entirely on which spatial scales you are interested in studying.
> "How many people follow @BurgerKing? It's probably more on the order of millions."

It's more like 85k, as the screenshot in the OP shows [1].

> "Punishment should be proportional to the crime."

I guess that depends on what the 'crime' here actually is (not saying it was acceptable, just that we should be specific on what the wrongdoing was before getting into sentencing - so to speak).

Edit: And isn't security a more important question than punishment? How did this account get hacked? I'd much rather the focus be on creating more secure systems.

[1] http://tctechcrunch2011.files.wordpress.com/2013/02/screen-s...
I don't think I understand your point. I get what you're saying regarding increased consumption, a lot of people have argued that point. What does distribution of wealth have to do with changes in productivity as it relates to increased workplace automation?
My download has slowed to a crawl around 90% completion. I am doing 3k a second. When I read that your list was not sorted case sensitively I wondered what difference that may make.

I did a little experiment with the american-wordlist-insane wordlist and sorting in the interim. I used msort which does a case sensitive sort[1] and sort which does not. Here are the results:

6830085 insane.msort
1461684 insane.sort.xz
1376548 insane.msort.xz

It is not a big difference but it is still a little better. For future releases you may want to do a case sensitive sort.

[1] Zebra comes before aardvark
"If there is a bike lane and they aren't using it (instead being in my lane), I am pretty torqued."

Cars often stop/park in bike lanes.
No dude, you're just old, in an industry with entrenched ageism.

Maybe if your view of "this industry" stops at Silicon Valley startups. But there has always been a place for older programmers / hackers in the world, and there's a reason the stereotype of the "UNIX Greybeard" exists in the first place.

Personally, If I had money to spend hiring people, I'd hire Captain Crunch in a heartbeat. Hell, I'd hire him to do nothing but sit around and smoke weed all day, and appear at events and what-not, just to support a legend like this. And think about the "geek cred" of being the company that John Draper works for.

It's too bad Capt. Crunch has fallen on such hard times. I wonder what's happened since this article was written?
Exploiting XSS Attack Vectors
The problem for the cyclist is that s/he's often in an equal bind--ride in the bike lane next to a string of parked cars, and you never know which of those cars is going to open their door at the exact wrong time. I have friends who have ended up in the emergency room with broken collarbones after getting 'doored.' Avoid the bike lane and ride in traffic, and you never know which sociopath behind the wheel is going to clip you.
The amusing part is that no matter how legendary you become, restarting the server is always a good idea to solve problems. Software is rarely designed to run forever. Last week i had a moment of madness because a line of code remained buggy even after i debugged it. Turned out it was php's opcode cache that just needed a reset to get its wits back.
Social Media Medellín
Dotcom anunció que MEGA tendrá servio de email, chat y vídeo llamadas además de una versión móvil para smartphone.
I still can't understand why they even bother.

The problem with software-based DRM is that you can always, in the worst case, run the whole thing in a virtual machine and capture the output the software thinks is going to a display but is really going to a video encoder.

The problem with hardware-based DRM is that you have a hundred million devices in service when a vulnerability is discovered. Then you can't even securely issue a firmware update as a result of the exact same vulnerability you're trying to patch, and if the vulnerability is in the hardware itself then you're totally screwed.

Normal cryptography is Alice sending a message to Bob without Eve being able to read it. We know how to do that pretty well at this point -- and even then, look at the regularity we see security patches to e.g. OpenSSL. DRM is not even that. DRM is Alice sending a message to Bob that self-destructs after Bob looks at it, even if Bob doesn't want it to. It isn't clear that this is even theoretically possible against a determined attacker, and in practice it hasn't even held up to amateurs and hobbyists.

All they're doing is just pissing money away and inconveniencing their paying customers. I'm pretty sure the only reason we still have new DRM systems at all (as opposed to faux DRM whose sole purpose is to invoke the DMCA) is that there are still companies who make money peddling it and the people paying them haven't yet been able to see through the lies.
Prior discussion (with comments from dherman, Luke Wagner, and various other Mozilla employees): http://news.ycombinator.com/item?id=5227274
TIL there are still large web sites out there that do not have staging environment.
How are you modelling your data? I think this should be a self reference.

create table post (id int primary_key, parent_id int references post(id), child_id int references post(id), created_at timestamp)

How will you place the check constraint? You only have parent_id and child_id, not parent and child entities. You will have to write a trigger.

I am not saying this can't or shouldn't be done. I am saying a db won't directly solve it.

However, you example will work perfectly for enforcing constraints in the code via the mutator which can compare child and parent timestamps, provided pg was doing it via a mutator, and not directly changing the ids.
This is insane.

First of all, no one's going to bat an eyelash that you have a female cofounder, and if an investor decides not to fund you because you have a female cofounder, then it is not an investor worth taking money from.

Second of all, if you don't list her as a co-founder now and you have interest from investors, what are you going to do, lie about it, or say "oh, shit, I am sorry, we forgot to list one of our cofounders earlier?" Regardless of how you think having a female cofounder makes you look, forgetting to list someone as a cofounder or lying is an immediate disqualifier.
it was fine, perfectly readable. thanks for the cool library.
I think a lot of the car rage at bicyclists has to do with this unfounded sense of entitlement. I suggest you read up on bicycle laws.

http://bicycledriving.org/public-awareness/motorists-should-...

(tl;dr: It ain't your lane)

There are a ton of reasons for not being in bike lanes including snow, pot holes, glass, other debris, and the very real potential of getting doored.
> cycling on the pavement (sidewalk)

At speed. Don't forget how fast they buzz along now that they don't have cars to worry about, and how quietly they move.

I greatly prefer skateboarders. Even if they move at a good clip, they're clattering along and giving everyone plenty of advance warning. Bikes just barely make any sound at all until they're nearly on top of you.
Civil War Relic Collector: The Shell Hunter
> That's naive and inefficient.

So is having a user read stuff over the phone that you already know.
Cloud computing is a trap, warns GNU founder Richard Stallman
What the rumored Apple iWatch might look like, inside and out
Should highly visible graffiti (say, on a freeway overpass) deserve harsher punishment than graffiti down a poorly lit rarely trodden ally or in an unlit subway tunnel?
It seems like the 32 mile thing has been a bone that is constantly being picked in discussions about the article. Broder continued the drive based on Tesla's advice:

"It was also Tesla that told me that an hour of charging (at a lower power level) at a public utility in Norwich, Conn., would give me adequate range to reach the Supercharger 61 miles away, even though the car’s range estimator read 32 miles – because, again, I was told that moderate-speed driving would “restore” the battery power lost overnight."

http://wheels.blogs.nytimes.com/2013/02/14/that-tesla-data-w...

--

Consumer Reports confirms that when the batteries warm up a little, they'll start reporting a longer range:

"Anyhow, after a seven-hour overnight park (unplugged) and temperatures dropping below freezing, the "rated" range dropped to 65 miles." ...

"But by now I've gained enough familiarity with our Tesla to assume the car would readjust once I started driving and things warmed up. (Owners would likely pre-condition the car before leaving, using household current to raise the battery temperature and heat the cabin.) Indeed, 30 miles into my trip, the car predicted 55 miles of range."

http://news.consumerreports.org/cars/2013/02/tesla-model-s-w...
When I'm driving, I'm more than fine with cyclists who stop at stop signs, use hand signals to show their intentions, don't swerve around wildly in and out of my lane, etc. The conscientious ones will, if they have to go into your lane (for instance if the bike lane is blocked), signal and merge, speed up as fast as they can so as not to slow down traffic more than needed, then get out of the lane as soon as they're done passing. I think this is more than fair if you're sharing the road with cars.

However, a lot of cyclist do do infuriating, selfish things. From what I've generalized over time, they are either the inexperienced ones who don't really think about what's going on around them, are too fearful of the others on the road to make logical/informed decisions, or they are dipsticks on fixies who break all the rules because it's just too hard to stop or because they are just so hip the rules don't apply.

I don't think there's some deeper meaning behind it all, I think that some cyclists are courteous and skillful when sharing the road, but many of them don't really know what they're doing or think that the world owes them something because what kind of asshole drives a car anyway?!?! It's the latter ones that ruin it for everyone.
BTW, Ernst Fehr is a terrific researcher, so please nobody hold this dumb article against him.
>The closed-source nVidia drivers are a pain in the ass to use, though, and nouveau isn't up to snuff. Multi-monitor support is also simply not good enoughl the baseline isn't "usable", it's "as good as OS X", and, for me, I don't find TwinView (is there a different hack for 3+ monitors now?) as don't-have-to-care-about-it as OS X.

Why didn't you just say "I've haven't used it lately" and be done with it.
Ah, I see this detail is in the follow-up article and seems to be egregiously missing from the original article. It seems that, if we take Broder's word, that he believed the car would mysteriously regain lost range after being charged for an hour, but he left a charging station knowing the range readout was lower than the distance he needed to travel and -- and no-one seems to have pointed this out on either side -- never having received such a pleasant surprise in the course of the journey.
Or, like my night last night, garbage cans. Pickup is in the morning, doesn't help me at 11pm.
"How many other people would have needed to call into a car company's customer service (and that many times!) to finish a simple test drive?"

If you saw last night that you had a full tank of gas, and woke up this morning and saw the tank was empty, wouldn't you call the car company? If you saw any other critical fluid mysteriously drop in level, wouldn't you call the car company? I've done this multiple times with strange sounds and other things I never expect to happen.

If I were in Broder's situation and saw strange things happening with the range indicator, I absolutely would be calling. Especially if it's a test vehicle -- the courts have decided that journalist drivers are responsible for the cars: http://www.digitaltrends.com/cars/you-break-it-you-bought-it...
Looks pretty promising so far.
Don’t become an entrepreneur unless you are insane
counter point, how many people now know Burger King has a twitter account?

They could have done them a favor in two ways, first bringing attention to the BK twitter and through sympathy for being vandalized
There's a simple reason: cyclists slow you down.

As a driver/cyclist as well, I think you're absolutely right and not just from the perspective of a car driver - one of the most rage-inducing things I can experience while on my bike is when a car in front of me causes me to slow down in otherwise open driving conditions.
This is absolutely the biggest issue for me. Another commentor pointed out this can't be the issue because drivers do the same thing.

The actually problem isn't that cyclists break laws. It's that they break them doing incredibly stupid and dangerous things that I don't/can't expect. I know most of the stupid things other drivers are going to do. Cars are easily visible and I can usually see stupid maneuvers coming. I've had several close calls with cyclists. A common scary scenario is when they are driving against traffic on the sidewalk when there are serious visual obstructions. That's what makes me the angriest.
Once I saw a cyclist with the NYC city cycling laws silk screened onto her backpack, I was surprised to find out some of the rights I had, but am not going to start riding like a full sized vehicle just to exercise them.
Legitimate it may be, and by no means is this the most shining example of a good article, but it's not spam or anything like what is usually on the homepage of Reddit.

> if there are no real limits on what material is appropriate, then how do we define ourselves as a community

Let me stop you right there. There is a limit on appropriate material; in fact, it's from pg himself, and I included it in my original comment. The article in question qualifies as appropriate material, which is where diego is incorrect.

Even experienced people are not infallible; everyone makes mistakes.
I think it has more to do with hypocrisy.

She bemoans advertiser funded journalism yet makes money from advertisements. She's created an incentive for herself to perform a certain way, and yet writes about the dangers of just such an incentive.
It's a problem in virtually all industries. Lasting solutions simply aren't a good business model.
Yep, came here to say this. I live in DC, every day without fail people just whizz right through intersections as they please. That is exactly why some cyclists anger me, they demand equal use of the road while ignoring the rules. It's incredibly hard to enforce those rules without bike police of some sort though.
Coding stuff for shits and giggles is the spirit that makes a good programmer.
You're probably right. I was under the impression that Chrome wasn't shipping Skia GL on desktop yet, but my info could be way out of date; I haven't checked recently.
Looks like someone got some free A/B-testing on add-free vs banner-free out of the exchange :P
But he didn't. He drank the fancier wine.
I don't it'll be much of a concern in a few years, though we're not there yet. Currently, Chrome will just gloss over any debugger statements unless the dev tools is open; if others happen to follow suit, then leaving a debugger statement in won't have any side-effects.
Nothing incites vitriol from opposing camps than a good 'Cyclists vs Cars' debate.

"The only winning move is not to play."
Another angle is that the cyclist knows that he is slowing down a caravan of cars behind them and yet he's still OK with that. It's the egoism that is irksome.

(edit) Why the hell am I downvoted?

If you are cycling at 10 mph in a rush hour and holding back a block worth of traffic, do you seriously not have a slightest concern that you might be valuing your own interests a bit too much? And then you wonder why-oh-why the cars drivers don't love you with all their hearts. Jeez. Do not do unto others what you don't want to have done to you.
PyPy jit friendly code tips:
https://bitbucket.org/pypy/pypy/wiki/JitFriendliness
Completely agree with you on this one. Although I have to admit, after getting a racing-cycle I slightly changed my views. Its almost impossible to drive fluently more than a few meters either on the sidewalk or in a bike lane. Weird and changing pavement surface, bad pavement in general (the slim tires of a racing cycle make such a terrain much harder to navigate compared to using a normal bicycle), you have to switch sides frequently...

I really tried to ignore all that as the cyclists not using the existing bicycle lanes are really annoying when in a car. But in the end I gave in. I know I am annoying, but it's sometimes the only option you have.
Bringing laughter to people is changing the world. There is no greater calling then teh lulz.

I know I got a kick out of it.
http://catb.org/jargon/html/W/wheel-of-reincarnation.html

There are other examples of this than the one cited. There's a wheel of reincarnation in computing between the mainframe/thin-client model and the PC/P2P-network model. Right now we've come from an era of PC dominance back to an era of mainframe models around the "cloud." (The new term for mainframe computing.) IPv6 and ubiquitous wireless broadband would be among those things that would turn the wheel back around to the PC/distributed side.

The big barrier is the carriers and their squatting over the wireless spectrum and insistence upon control over the device. Once the carriers are opened up and commoditized, or once meshnets or other innovations make them less relevant, we'll have this. Open the spectrum and kill NAT (with IPv6), and you kill the cloud.
A VC who will marginalize an intelligent and productive co-founder just because that person has the wrong set of chromosomes - such a VC, I'm sorry, there's no polite way to say this - is a fucking moron. (I may be naive, but I find it hard to believe that such a VC exists). You do not want to do business with this kind of investor. You're creating a new, cutting-edge technology. A sexist, luddite dinosaur is not the type of person you want funding and influencing business decisions.

Don't hide the fact that you have a female founder. Her presence will filter out any sexist assholes and will ensure you find a true financial partner, whose interests align with your own.
Nowadays being alive is art.
Theoretically, one could write an interpreter specifically for the purpose of nesting other interpreters, which would then (nearly) remove itself from memory as it transfers control to the second interpreter, but I know I'm not quite insane enough to start working on such a thing.
The article mentions "free riders". As a motorist who's auto and gasoline taxes pay for the roads, has an annual auto inspection, it's mildly annoying to be trapped behind a slower cyclist who's not subject to those requirements. It becomes enraging when they break traffic laws and stage mass rides just to fuck with drivers.
Another advantage of C over Old C++ is that there's one C, defined by one standards document and maybe a few common features that are not standard but reliably present on most compilers and hardware. There isn't a list of features you're theoretically able to use but the compilers don't support (templates in Old C++) or common things you do differently in every implementation.

Pascal figures in this in that the official standard Pascal was basically unworkable as a language, due to features like the size of an array being an obligatory part of its type and the resulting lack of a way to write a function that could handle more than one size of array. Having it be optional, as we see here in C, is really the only way to go unless an array knows its own size and won't let you overstep the bounds.