Hacker News new | past | comments | ask | show | jobs | submit | kcolford's comments login

Recursive parsing of CFGs is only better when they're LL grammars, but LR grammars (which are the most common grammar used in programming languages) are definitely better with an explicit stack due to the repeated way the state machine needs to run. You might be able to do a nicer LALR parser recursively but I personally haven't seen one.


Deeply nested instances of right-recursive rules will blow the stack. If the LARL parser has an unlimited stack due to dynamic allocation, that will perpetrate a DOS.

Table-driven LALR(1) with an explicit stack does not make the recursion issue go away. The tooling may provide built-in handling for it which translates excessive depth into a syntax error.

Recursive parsing using the native stack can take steps to protect itself, like by keeping track of the depth, and bailing upon hitting a limit.

Techniques involving obtaining the stack pointer (or close estimate thereof), and comparing it to a limit, are also possible.


That’s only used for .NET and other ms technologies. There is a totally different ecosystem surrounding WebAssembly.


Yeah, that isn't as fashionable and with startup opportunities.


You didn’t adjust for risk in your comparison. The s&p 500 has many companies in it that are far riskier than a grocery store chain. Now I can’t say for sure what the aggregate risk is, so you may still be on to something there. In this instance though you’re comparing apples to oranges.


> The s&p 500 has many companies in it that are far riskier

Yes, "many" companies. But it's five hundred of the biggest companies, including Kroger.

There's no way around it - KR is a significantly underperforming stock, and a lousy investment.

If you think KR is a good investment, buy some shares in it. I'll pass, no thanks.


I don't know about the mind uploading... but the fact that device is applying electric shocks to a person's body and physically destroying them is a massive problem. Any respectable mind uploading would leave the original in-tact. A standard autopsy of the person's body would discover the site of electrocution and the damage associated with it, incriminating the "huckster" under at least "gross negligence" (the only crime for which mens rea is not necessary) up to first degree murder.


That is horrifying that your medical issues could be used against you in insurance, mortgages, and licensing... I'd suggest just leaving the country at this rate or getting the diagnosis in a sane country that won't share this information and getting the medication from over there (assuming you can move somewhere close to the border)


> I'd suggest just leaving the country at this rate or getting the diagnosis in a sane country that won't share this information and getting the medication from over there (assuming you can move somewhere close to the border)

I live on the border with Denmark, I’m not sure if it’s ok for me to access healthcare in Denmark without a “CPR Number” https://international.kk.dk/cpr-number


I think a state in which people are culturally more polite to each other then it becomes okay to allow concealed carry.


What are you talking about?? We completely understand aircraft lift. Bernoulli's principal is a nearly irrelevant footnote that gives a small boost to efficiency.

Aircraft lift is caused by the upward angle of the wings forcing air downwards as the jets move the plane horizontally forwards. This "angle of attack" is usually very small so it's hard to perceive with the naked eye when looking at a commercial aircraft.


That's not totally correct. See here:

https://www.grc.nasa.gov/www/k-12/airplane/wrong2.html


It says it in the article. Lift is created by turning a fluid. Just as a spoon in a faucet, it’s all how you “throw” the fluid in the direction opposite the direction of lift. This is angle of attack.


The year is 2312, and we still have to combat the Bernoulli-airfoil misinformation. Even though all you have to do is stick your hand out of the window of a self-driving drone and twist it around a bit.


This sounds like an XKCD comic!



I find it hilarious that in the future everyone is more capable than the present at inventing things and also simultaneously these same people are incapable children who can’t use anything manual. It’s concerning that people dream that way.



There's a reason doctors call it "practicing" medicine...

(And it has nothing to do with the word practice getting a connotation of imperfect performance long after that phrase came into existence. :D )


It's also contested because while intuitive to a countable set of countable sets, generalizing to higher cardinals is not intuitive. Although the same could be said of the Power Law as well...


Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: