skysight-inc/HackerNews huggingface dataset:
Precedence isn't hard -- but it's often not done with recursive descent. In other words, it's not just "typing out the code".

I think you're misreading my reply. A hand-written recursive descent works a lot of the time, and is almost certainly the right "default". But my point is that it doesn't work all the time. If it works for you, great! That doesn't mean all parsing is easy. Try adding an autoformatter like gofmt or IDE completion for Jai, and see how your parser changes (or if you have to write an entirely new parser).

In particular, I'm NOT advocating that all parsers should written with parsing tools. I think you must have read that somewhere else.

In fact, I used EXACTLY the same strategy as you mention on my recent shell parser. I machine-checked the grammar with ANTLR, and wrote some test cases for it. Then I transcribed that grammar to recursive descent by hand, along with several other ad hoc strategies that you need to parse an ad hoc language like shell.

(ANTLR is a great front end, but not necessarily a good back end. The generated Java code is probably OK, but the C++ code it generates is preposterous. Yacc is not that much better, i.e. with globals all over the place.)

"Just type out the code" is a horrible strategy because you will end up not knowing what language you've designed. If your post advocated "prototype your grammar with a tool, and then manually transcribe the grammar to code", then I'd be inclined to agree.

But that's not what you said. It seems like you are more interested in telling everyone what a great programmer you are, and how things are so easy for you, rather than spreading any interesting knowledge about parsing.
Ah. What I meant to say is "you can't say that with integrity".

The overthrown governments probably thought that the opinions expressed on Twitter and Facebook were highly extremist, and should be shut down.

The only reason they weren't (And they even built an SMS bridge for Twitter) is because their biggest markets supported the insurrection. And if that were made a bit more obvious, it would be far more honest and interesting.
I've seen several comments to the effect of "I didn't think I needed to vote, Remain was ahead anyway".

I've even seen someone explain (on the BBC): "I didn't think my vote mattered, so I voted leave. I'm a bit worried now".

I really hope that that's a minor occurrence, I really don't want to consider the possibility that large parts of the voting public treat elections/referenda with less seriousness than the average talent show vote.
Why shouldn’t we be competing against our developers? (2006)
I have a romantic view of referendums: I don't believe that decision taken via referendum can be wrong. It's the quintessence of democracy and I ultimately believe in democracy, which means I believe that the majority votes as best as the can.

IMHO you're misunderstanding: Listening BBC Radio 5 the last couple of days I can say that lack of transparency, austerity promotion and the way countries like Greece (primarily), Ireland and Portugal were treated in 2014 and 2015 by the EU played a major role in turning voters to Brexit.
Wait, why is it morally questionable that a society comes together to, uh, pool resources and do social things?

We are a social species. It makes sense that a social species pools resources together for the good of their collective whole.
Saying "it's not a difficult problem" and then turning around and implying "... but only if you're not one of those lousy web programmers" sure sounds like moving the goalpost.
I'm guessing you believe every US state should be calling to secede, because they "have zero control" and "have to pay taxes" to the federal government? Since US states, just like Britain in the EU, participate in the larger governing body through representatives?
Cloud Robotics Software for Machine Tending
From Wikipedia:

Current Supreme Court precedent, in Texas v. White, holds that the states cannot secede from the union by an act of the state.[2] More recently, Supreme Court Justice Antonin Scalia stated, "If there was any constitutional issue resolved by the Civil War, it is that there is no right to secede."[3]

Still, tongues are wagging about a #Texit as well. Neither will never happen, IMHO.

https://tshaonline.org/handbook/online/articles/jrt01

http://www.newyorkpersonalinjuryattorneyblog.com/uploaded_im...
It's very popular in Bulgaria, but I'm surprised that there's still no solid scientific proof.
> Stop whining.

This breaks the HN guidelines by being uncivil. Please edit such bits out of your comments here. Your comment would be much better with just the last sentence.
Friendship Paradoxes and the Quora Downvoting Paradox
I agree. From reports from friends: Japan remains openly and structurally racist. I am always surprised to hear how bad Japan still is about this stuff.
This is a pretty good thread:

https://news.ycombinator.com/item?id=11851849
The self destruct instruction panel seems to contain an ESD warning label: https://duckduckgo.com/?q=ESD+warning+sticker&iax=1&ia=image...
Complaints about 911 have a long history; I'll point out the 1990 hit rap song "911 is a joke" by Public Enemy. The video seems extremely dated now, though: https://www.youtube.com/watch?v=CPNK0VspQ0M
It's interesting that the discussion in this thread centers around what to call modules, components, and packaging units. It's like saying that JVM bytecode is a way to author JARs, when it's actually the other way around: JARs are a way to package classes packaging JVM bytecode, which is a compilation target for various languages. WASM is similarly a compilation target for code; whether it's a module of code or a capsule of code or a script tag of code isn't really the point, and "source code" remains an uncountable noun (http://www.edufind.com/english-grammar/countable-and-uncount...). And that it's supposed to be browser-agnostic is cool, but surely the bigger picture is that it's source-language-agnostic.
I didnt read article but this makes zero sense, i didnt want to justify its existence with a click.

Its apples and oranges. California is part of the united states, a country. Uk was part of an organization of countries.

Most importantly, the EU treaties had an exit clause - the US constitution does not. In fact, remember what happened last time some states tried to exit the US?
Depends on where you live. In some areas you pay for something akin to fire insurance - a yearly fee that covers fire service. You don't have to pay, but the fire department isn't under any obligation to help you if you don't. And if you engage their services on an as-needed basis it's going to be very expensive.
How do you make people have more money to pay for services?
You've already posted many uncivil and/or unsubstantive comments to HN. That's not what this site is for, so please don't do that. Instead, please read the site guidelines and post civilly and substantively, or not at all.

https://news.ycombinator.com/newsguidelines.html

https://news.ycombinator.com/newswelcome.html
Hillarious that the writer cherry picked examples worse than any ML programmer ever would by accident or malign disinterest. If the writer had been forced (as they imply programmers should be) to include examples from South Korea (lots of good ML work going on there) or China (Baidu etc) the article would have fallen apart.
We detached this subthread from https://news.ycombinator.com/item?id=11976748 and marked it off-topic.
We detached this subthread from https://news.ycombinator.com/item?id=11977054 and marked it off-topic.
The article's focus on the private equity boogeyman is misdirected, for reasons that become apparent if you read far enough:

> Private equity gained new power and responsibility as a direct result of the 2008 crisis. As cities and towns nationwide struggled to pay for basics like public infrastructure and ambulance services, private equity stepped in.

The budgets of state and local governments around the country are tapped out. Often, that's the result of problems that--though exacerbated by the financial collapse--have been in the making for decades.

The relevant question isn't whether private-equity backed police and fire services are better than well-funded public ones.[1] It's whether they're better than the poorly funded or unfunded ones that states and municipalities are able to afford given their budget constraints.

[1] Not only is that not the relevant question--it's one the article does not even answer. Nowhere does it provide any concrete analysis of the performance of private versus public fire or ambulance services.
>Ah. What I meant to say is "you can't say that with integrity".

What companies have time for such quaint notions of integrity these days? They're too busy trying to extract profit! :P

>…And if that were made a bit more obvious, it would be far more honest and interesting.

I think that a lot of people in the western world choose to willingly turn a blind eye to such, and its a shame, because it will eventually be at their own peril if we look to history as any example.
We detached this subthread from https://news.ycombinator.com/item?id=11976433 and marked it off-topic.
The premise of the article --- and it's a good premise --- is that the secure chat applications you should consider are those that implement Signal Protocol. Matrix does not.
I think almost all people are racists if they're coldly honest. Few are. They may recognize the feelings as "wrong" and be ashamed and deny having them, but it's human nature. We are drawn to people who look and act like we do, and we are suspicious of people who look and act differently from our group.
I was just hinting at what I think is the core problem. If you want to avoid radicalizing bubbles without blocking content, you need to encourage diffusion of ideas, discussion and confrontation. Perhaps, however, radicalized people are just too closed-minded for any such software solution. Then the question is what is worse: An occasional discussion about the decision boundary of what kind of content should be blocked, or dealing with radicalized groups of people more often, potentially risking more terror attacks and also the freedom limiting laws that ensue.
> One nit: interest rate (and monetary policy in general) isn't as important as the independence to determine fiscal policies. The two are related of course if you don't have an independent currency.

agreed :-)
I mistook your comment on asset forfeiture as another "the poor man thinks taxes should be lower on the rich." I agree with your sentiment about asset forfeiture, which I'd argue is an indirect consequence of tax cuts on the wealthier end of the spectrum being made up by "revenue" in the form of fines and seizures from the lower and middle classes.

...but since you referenced my comment, I think its context needs to be validated. In order to give context to this, I'll post the information from the poll here. I'll just list data from the most recent poll, April 6-10, 2016.

As I read off some different groups, please tell me if
you think they are paying their FAIR share in federal
taxes, paying too MUCH or paying too LITTLE? First, how
about ... ?

LOWER-INCOME PEOPLE
31% Fair share
46% Too much
20% Too little
3% No Opinion

MIDDLE-INCOME PEOPLE
39% Fair share
53% Too much
6% Too little
2% No Opinion

UPPER INCOME PEOPLE
21% Fair share
15% Too much
61% Too little
3% No Opinion

CORPORATIONS
16% Fair share
12% Too much
67% Too little
5% No Opinion

I encourage all to actually look at these polls to see how the attitudes have changed over time. It's important to realize the sentiment of the American populace as it stands now; it certainly helps us keep from creating cartoon versions of the "average person" as the OP submits some do.

[0] http://content.gallup.com/origin/gallupinc/GallupSpaces/Prod...
This brings to mind Jean-Baptiste Queru's (Yes, that JBQ, the head of AOSP) 2015 post regarding the structural problems inherent in the EU's fiscal policy. Read it: whether you agree with his analysis or not, it will make you stop and think.

https://plus.google.com/+JeanBaptisteQueru/posts/CPB9bwHqsfn
Tony Blair OP Ed: Brexit's stunning coup
So it's okay to attack rural poor people because they're not subsidized as heavily as the urban poor?
Reminds me of a book and Coursera course called "From NAND to Tetris" by Noam Nissan and Shimon Shocken. You can learn how to build a computer from basic logic gates, the web site below provides a hardware simulator in JAVA and pre-made components.

http://www.nand2tetris.org/

https://mitpress.mit.edu/books/elements-computing-systems
Isn't advocating secession still on paper an act of treason?
Remind me, how is the collection of taxes to pay for services in the public interest 'morally questionable'? The fire department in particular is such an obvious case because a fire affecting one property can easily spread to the next -- and so on. Is that something you want to happen because the property owner of the first house couldn't afford the fire department? That's morally questionable.
Cool. I know people also buy tips, but they're expensive.

For really cool stuff, check out the CO functionalized tip AFM coming out of IBM in Zürich: https://www.zurich.ibm.com/st/atomic_manipulation/pentacene....

The AFM I used was mainly for teaching the concepts, so they wanted simple, cheap, low risk => strong NaOH was out.

The technique back then was, somehow, cutting at about 45° angle and twisting the pliers to make this angle go to zero while cutting/pulling. Then you had to put the tip in the machine and do test images to see whether the tip was good. Usually it wasn't, so you tried again. Finally you got a perfect tip, and maybe got two or three good images before you messed up the tip (from being a noob).
Creating next generation of spam?
> If they were more open about "Hey, we're providing you a free service, we can shut you down if you don't conform to public opinion" that's fine also. But you can't have it both ways.

That's why articles like these are being written—it's the companies letting everyone know that they're changing their policies. They used to be more laissez-faire, didn't like the results, and now are starting to rethink their decisions. I imagine in a few months' time they'll have figured out how they want it to go, and will publish updated guidelines.
If you want to admire more of the typography and great aestetic of Alien, the 2014 game Alien: Isolation is perfect for that.

It pretty much encourages you to explore it's decomissioned (and of course Alien infested) Sevastopol station, which is lovingly built to mirror the original movie aestetic and it's full of terminals and other lore pieces :)
So is SGX open to everyone? We don't need a key signed or blessed by Intel to use it? If so that's great. Provably secure mixing services. Secure data processing clouds. Sounds neat.

You could build a secure webmail system and verify it's running as designed.
It might not work out as well as you'd expect. Insurance companies are going to run the numbers, and if they make the most money by covering only 95% of the houses and then just paying out the last 5% that's what they'll do.
Of course everyone is doing it ?
RT is for external consumption; let's see what the mainstream media outlets have to say.
Check it out - this has been debated for at least 200 years!

https://en.m.wikipedia.org/wiki/Exponentiation#History_of_di...
The story about the soundtrack is interesting in itself. Jerry Goldsmith originally composed a score which Scott rejected for being too classical (it had what I believe Goldsmith called a romantic musical theme), and cut major portions of, borrowing an earlier Goldsmith soundtrack is the process (which I believe they had used as a temp track during editing). Goldsmith didn't like it at all. There is also an interview clip on YouTube where he talks about it; the way he speaks of the incident, he is obviously bitter and considers it a terrible (and inexplicable) judgement on Scott's part. The rejected portions of the score (which is available as part of the soundtrack album) are beautiful, but the film score is also obviously superior.

Edit: Here's the interview. https://youtu.be/U8bv0QDLI7M?t=481
The very assumption that Snowden even before he fled the US was under the illusion that Russia was a bastion of freedom and has only now "learn the nature of the bear" is so nonsensical to be borderline trolling.
I am not a metasploit ninja, my job is mostly in design and defending systems. However, on occasion I'll need to demonstrate a pivot or exploit a common vuln to make a point to a DEV team. I might bust out the cheatsheet because that tool isn't I my muscle memory.
https://news.ycombinator.com/item?id=11974873
No. The founders of the US were so nervous about abuses of the term "treason" by tyrannical governments that they defined the term in the text of the Constitution. Advocacy of secession has never been treasonous, and is protected by the 1st Amendment.
As someone with no horse in this race, I hadn't been following the debate leading up to the Brexit but I did see the aftermath on Twitter, FB, mainstream media, etc. What I saw was really fascinating - an almost universal outpouring of scorn and derision for "Leave" voters: Ageism. Racism. Classism - "Only uneducated old, poor, white people voted to leave".

It hit me then pretty hard just how much of a echo chamber places like Twitter, FB, and even the mainstream media now are and how poorly they sample and represent the views of everyone. Here was a democratically conducted vote for which >50% of a population voted "Leave", yet based on how one-sided the response has been you would think the votes must have been rigged.

I deeply suspect as well that the one-sidedness of presentation in the MSM is a root contributor to the massive divide that drove the Brexit. What you have here is a failure of empathy - as the article touches on, "every smug, liberal, snobbish barb that Ian Hislop threw his way...was ensuring that revenge would be all the greater, once it arrived". Here are ridiculed and marginalised people showing you that while they lack representation in Twitter, MSM, etc, in a democracy their vote is just as powerful as yours.

In some sense I actually find it quite a satisfying outcome when viewed in this lense. A simple analogy might be "A bullied child just threw a punch back at his bully even though he may have deep down known it'll get him in more trouble."

And a part of me wonders whether the same daily outpouring of hatred you see dumped on Trump/Trump supporters has also created a very large class of marginalized, ridiculed people who are going to let us know exactly what they think come time to vote -- and like the Brexit we may not even see it coming, because we live in the Twitter, FB, MSM bubble that does not accurately sample the people.
The one I've used for 3 years counting:

http://pentesteracademy.com/topics

Its the Pluralsight / Lynda.com but for Computer Security.
Brexit was a harsh political awakening for young people
Elm-plugin for IntelliJ now with nice color support
Probably yes, kind of.

On newer CPUs (unclear which ones yet), there is a set of MSRs called IA32_SGXLEPUBKEYHASH. If available and unlocked by BIOS, then SGX is open to everyone.

Looking at the provided Launch Enclave source (https://github.com/01org/linux-sgx/blob/master/psw/ae/le/lau...), it appears that, even on existing CPUs, the LE can be configured to launch anything. There's a file in the git tree (https://github.com/01org/linux-sgx/blob/master/psw/ae/data/p...) that sounds promising, but I haven't checked whether it's signed with production keys or whether it works for this purpose.
Just too many good scenes in the movie...
I would rather have a permanent top-level tracking banner section built right into my browser as long as I don't have to write JS anymore. It's very high on my priority list.
The referendum was about staying or leaving EU. Nothing else.

And politicians are elected with elections, not polling for a reason.
It does, quite a lot.

To not understand this is not understand the philosophy and ideology of the system by which Putin (and the heads of other modern hyper-autocratic states) operate.
I would advise finding another name for the tool. 'mac' is an obvious trademark infringement and it's only a matter of time before Apple lawyers come knocking on your door. Honestly I find it uncool to piggyback on someone else's brand in this way. The protagonists are different but it's the same fundamental issue as the "Ubuntu vs OVH" and "Let's Encrypt vs Comodo" stories we've seen recently.
Wow, that’s harsh.

If it knows his number, then why would it need to ask? And why would it suggest a wrong number?
Interesting comment. I can't join you in finding the outcome satisfying. But it certainly is a wake-up call to those of us terrified by the idea of a Trump presidency.
Be sure to read the blade runner version on that site. It's great as well!
Also, double quotes are in HTML attributes, and JS can be embedded in HTML attributes and vice versa (though it's less common nowadays)
Who's donating to Trump? This bot will tell you
Thanks for your advice! Do you have any suggestion regarding the name? I'd love to hear some ideas.
Couldn't agree more on the bullying aspect. That's what I love about Trump / Brexit, it's nice to see the little guy throw a punch or two. It's also once of the best BATNAs to enter any negotiation with. Destroying the EU was such a better play than 'free college' or '$15/hr min wage', screw the table scraps go for the jugular, show them you aren't fucking around.
http://pentesteracademy.com/topics - used it for 3 years. happy customer!
This is part of the problem with quantifying "technical debt", that is, what some people think is "good code" is overengineering.
https://news.ycombinator.com/item?id=11977180
To give details from https://en.wikipedia.org/wiki/Article_Three_of_the_United_St...

"Treason against the United States, shall consist only in levying War against them, or in adhering to their Enemies, giving them Aid and Comfort."

and as an example of the nervousness, in Federalist No. 43 James Madison wrote:

"But as new-fangled and artificial treasons have been the great engines by which violent factions, the natural offspring of free government, have usually wreaked their alternate malignity on each other, the convention have, with great judgment, opposed a barrier to this peculiar danger, by inserting a constitutional definition of the crime, fixing the proof necessary for conviction of it, and restraining the Congress, even in punishing it, from extending the consequences of guilt beyond the person of its author."
Top 16 Machine Learning Books for Entrepreneurs
I've been thinking things like this for years, especially about a "general loss of confidence."

For me the two most confidence-destroying events of the past two decades were Iraq and the 2008 financial bailouts/crisis (and the housing bubble that caused it and is still delivering pain). Both of these occurred under the Bush Jr. administration or very shortly after it. For years I've seen Bush Jr. as the worst president of the past 100 years -- far worse than Nixon and Johnson -- and now I'm seeing quite a bit of real world confirmation of this.

On the other hand I'm not a huge Obama fan either. He ran as a "change" candidate, but seems to have more or less stayed the course. That's been disastrous.
Yep, came across a man standing in a crosswalk in Berkeley who appeared to be dazed and the people with him asked me to call for an ambulance, explaining that the man had been pushed and hit his head on the street. It was probably within two minutes of my calling 911 that an ambulance had arrived and the man was being treated.

The other time I called 911 from roughly the same location, the call only rang. I hung up after probably 10-20 rings. [I woke up to the building next to my windows engulfed in 15+ foot flames. I setup the call while evacuating, but cancelled it once we began leaving the building. Made it outside and there were already many engines deployed and actively fighting.]
Sometimes I feel like I'm the only programmer who doesn't have an interest in typography.