Readit News logoReadit News
ricudis commented on Rust GCC backend: Why and how   blog.guillaume-gomez.fr/a... · Posted by u/ahlCVA
eslaught · 2 days ago
The other answers are great, but let me just add that C++ cannot be parsed with conventional LL/LALR/LR parsers, because the syntax is ambiguous and requires disambiguation via type checking (i.e., there may be multiple parse trees but at most one will type check).

There was some research on parsing C++ with GLR but I don't think it ever made it into production compilers.

Other, more sane languages with unambiguous grammars may still choose to hand-write their parsers for all the reasons mentioned in the sibling comments. However, I would note that, even when using a parsing library, almost every compiler in existence will use its own AST, and not reuse the parse tree generated by the parser library. That's something you would only ever do in a compiler class.

Also I wouldn't say that frontend/backend is an evolution of previous terminology, it's just that parsing is not considered an "interesting" problem by most of the community so the focus has moved elsewhere (from the AST design through optimization and code generation).

ricudis · 16 hours ago
Not just C++. Even C parsing is context-dependent because of typedef. Requires a bit of hackery to parse in a conventional LL/LARL/LR parser.
ricudis commented on We collected 10k hours of neuro-language data in our basement   condu.it/thought/10k-hour... · Posted by u/nee1r
clemvonstengel · 10 days ago
Yup exactly this. Also Ctrl-W, alt tab, etc.
ricudis · 10 days ago
All these issues having been solved already in kiosk setups.
ricudis commented on End of Japanese community   support.mozilla.org/en-US... · Posted by u/phantomathkg
mkagenius · a month ago
Are we reading too much into one sentence? HN comments dese days
ricudis · a month ago
No, we aren't.

It was this exact part of the conversation that touched me negatively too. marsf expresses some very valid criticism that, instead of being publicly addressed, is being handled by "let's discuss it privately". This always means that they don't want to discuss, they just want to shut you down.

ricudis commented on Why does Swiss cheese have holes?   usdairy.com/news-articles... · Posted by u/QueensGambit
rootusrootus · 2 months ago
Fun fact - in Switzerland the holes are not permitted. Bonus fact - Switzerland imports more cheese than it exports.
ricudis · 2 months ago
And how would they know if my cheese has holes, given that there is a non-zero probability that a random cut over a piece of cheese goes through no holes at all? They would have to make so many cuts that the cheese becomes grated. And grated cheese most definitely doesn't have holes!
ricudis commented on Why does Swiss cheese have holes?   usdairy.com/news-articles... · Posted by u/QueensGambit
sixtyj · 2 months ago
For those who are interested, Taste Atlas has a very huge list of cheese.

https://www.tasteatlas.com/cheese

ricudis · 2 months ago
Having experienced several of the cuisines rated by Taste Atlas, I would not trust a comma out of their reviews :P
ricudis commented on Why does Swiss cheese have holes?   usdairy.com/news-articles... · Posted by u/QueensGambit
ricudis · 2 months ago
Swiss cheese have holes so the swiss dwarfs can hide in them.
ricudis commented on Estimating the perceived 'claustrophobia' of New York City's streets (2024)   mfranchi.net/posts/claust... · Posted by u/jxmorris12
rayiner · 2 months ago
Who does the best job managing density? Tokyo is lovely and orderly, but it’s not that dense—similar to San Francisco. Maybe Seoul?
ricudis · 2 months ago
Of all the places I've been, Singapore.

They have a population of 6 to 7 million people in an area of 700 square kilometers, resulting in a population density of 8300 people / km^2. Substantially more than that if you account for the fact that a large percentage of the island is still tropical jungle.

Despite that fact, their city planning is so good with large open spaces everywhere interspersed with greenery, that you almost never feel claustrophobic. Even the so-called "hearland" neighbourhoods with rows after rows of high-rise residential HDB buildings are quite pleasant.

The most claustrophobic place I've been in Singapore are the few squares in the center of CBD filled with skyscrapers that almost obscure you the view of the sky.

ricudis commented on It's not always DNS   notes.pault.ag/its-not-al... · Posted by u/todsacerdoti
ricudis · 2 months ago
It's always DNS, except when it's BGP.
ricudis commented on 4Chan Lawyer publishes Ofcom correspondence   alecmuffett.com/article/1... · Posted by u/alecmuffett
jolmg · 2 months ago
If it's just the outbound Singaporeans, that would be different because they'd at least have the citizenship to claim jurisdiction on.
ricudis · 2 months ago
They're warning everybody, not just Singaporeans. It's just that Singaporeans are the most likely to go travel abroad, have some fun, and then come back like nothing has happened. But if somebody inbound gets caught in a random drug test at the airport (they do that), he's going to be prosecuted just the same no matter their citizenship. There were several (in-)famous examples of this happening.
ricudis commented on 4Chan Lawyer publishes Ofcom correspondence   alecmuffett.com/article/1... · Posted by u/alecmuffett
jolmg · 2 months ago
> If you enter America, there may also be consequences

That isn't much different. Say an adult American drinks alcohol in America; then they travel to a country where alcohol is illegal. Should they be prosecuted in that country for having drank in America?

ricudis · 2 months ago
Singapore does exactly that, and they explicitly warn outbound Singaporean travelers that any drug use outside Singapore will be prosecuted as if it has happened in Singapore.

u/ricudis

KarmaCake day117October 7, 2018View Original