skysight-inc/HackerNews huggingface dataset:
> Braces sound like they are always balanced in Ruby, so you can match them outside of the parser even if you don’t know how they will be used. You still have to “parse”, but freeing your parser from matching leads to more robust parses.

I don't see what you mean when you say it makes it more robust. They're no different than other operators and punctuation.

With respect to balancing, I'm actually not sure, There are sufficient corner cases to try to exploit that it's not obvious to me if you can or can't construct cases that'd be hard to get right. Writing a Ruby parser keeps teaching me corners of the grammar that I've never touched in 13 years of using the grammar... Many of them are dark corners I've never seen in the wild, and hope I never do.

With respect to "<>", you certainly can do %<foo> in Ruby, but that's easy enough to handle in the tokenizer, assuming you add a token lookbehind so I don't think it changes things (needed to know if "%" is the modulo operator or starting a quoted string). Meanwhile "%>foo>" means the same ("<[{(" after "%" starts a quoted string that ends with the "closing" sybol, but most other non-alphabetic symbols starts a quoted string that ends with the same symbol - unfortunately this includes whitespace)

I'm starting to think you may be right they'll be ok to handle separately, though I still don't see a reason to do it.

> It looks like you are checking correctness in your precedence parser, which is fine, but it’s not possible to do that for many languages.

Depends what you mean by "checking for correctness". In the simplest form, such as the example I posted, it is applying one very basic check: Does the number of available values on the value stack match what is required by the operator currently being processed?

The only thing you need to be able to do in order to do that is to be able to split the tokens into operators and other symbols (which are all values/operands as far as the precedence parser is concerned), and match the operators against a list of operator types and priorities. If you can do that, you can construct a well formed tree as per the rules specified by the precedence parser configuration. If you can't, you probably shouldn't parse it with that parser, but should instead either augment the parser to support what you need, or use something else.

It sounds to me as if you're checking the trees afterwards because you've shoehorned a grammar that's beyond the capabilities of the specific precedence parser into using it anyway but deliver trees that matches what you've actually specified but not what you want, and that this is what you don't consider well formed. That's fair enough, and I've done post-processing myself too, but generally I've come to think it's better to push capabilities to build the tree the way you want it in the first place to the parser. In any case I don't really consider that "fixing" malformed trees: The parser will only accept trees that are syntactically valid according to the classification of the tokens and the precedence rules.
Kostolany became rich shorting. He wrote the worst of being a short-seller is that you are earning a lot of money while all your friends are losing it. You have to keep a low profile because everyone looks at you as the cause of their loses.
This is generally true of tuning an instrument. It's how I've always tuned guitar.

In the case of guitar you only need a starting E tone and can figure out the rest by yourself.

In the case of an orchestra or concert band, everyone plays at once during tuning and you use the dissonance as a guide. Once there is no dissonance, everyone is in tune.
Hasn't it been shown that the 4th doesn't apply to information you give to someone else?

They are requesting this from Google, not you, so your 4th amendment rights don't matter.

I don't necessarily agree with that ruling, but as far as I know that's the current state of things.
> None of the libraries I looked at actually implemented it.

Can you elaborate on that?

AFAIK gRPC comes with bidirectional streams out of the box. I played around with gRPC on Java and it seemed to work.
Yeah, short selling is scary: limited upside, unlimited downside. I've been tempted to short some stuff, but have always resisted, because the normal adage of "don't bet anything you can't afford to lose" doesn't apply.

EDIT: This is not the whole truth; see the replies below. You can essentially buy insurance to limit that downside (via a call option), or put up money that you lose if the shorted stock rises above a certain price (via a margin). I am not a lawyer or a financial advisor. I'm just some internet person.
For what it's worth, Daniel Dennett spends considerable time in _Consciousness Explained_ (and his other books) deconstructing both why Searle's Chinese Room argument is misleading, and also why is seems intuitively appealing (he calls it an "intuition pump"). I suspect you would find Dennett's treatment of Searle very much aligned with your skepticism!
Whelp, now I wanna do a 100. After three full Ironman triathlons, my mind is looking for new novel ways to suffer. I’m totally going to do this.
Particularly when those young men feel disempowered, usually through unemployment or under-employment. Consequently, their well-being and the well-being of society in general are no longer neatly aligned, and their rational self-interest does not allow them to support the status quo.

It’s worth noting that “driver” is the most common job for white American males, and the United States can’t be too many years from full automation of vehicles. If the benefits accruing to the broader society from this automation are not redistributed in such a way to alleviate the strain placed on the workers displaced from their roles, I fear it will be the moment this pot boils over.
Seatbelts are optimized for easy release. They have a big red button and using it is muscle memory for the vast majority of people who ride in cars. This is good because there are a lot of conceivable situations in which one might need to exit a car in a hurry. It's possible that a seatbelt or its release might cause problems in some situations, but they're designed to make this as unlikely as possible.

Strapping people into an aircraft such that they effectively cannot release themselves in any emergency is completely insane, and in this case it's a decision that led to 5 deaths. If they can't design secure harnesses that can also be easily released, or can't trust customers with such a responsibility, then they shouldn't be running open-door flights at all.
Airlines propose long list of rules to kill or revise
In context, it takes a very uncharitable reading to assume I was referring to anything other than helicopter travel.
not in subsaharan africa. nigeria alone is set to hit ~1 billion by the end of the century, even if current birthrates slow dramatically. if china is the centerpiece of the 21st century, africa is the stage for the 22nd:

https://i.imgur.com/9obArWa.png
Whether you meant to include an anti-Semitic slur or not, this comment breaks the HN guidelines badly by taking the thread into low-rent political flamewar. These discussions are always teetering on the brink of that. It's no reason to push them over.

We detached this subthread from https://news.ycombinator.com/item?id=16612279 and marked it off-topic.
“personalized search”

While a true statement, it’s unfortunate how broad of a license it ultimately provides.
A co-worker gave me a great phrase for this: Fix the blame. I've run into a bunch of companies that spend far more time fixing the blame, then actually fixing the problem. Good luck with that business model.
I'm indifferent on whether Tesla succeeds. I do appreciate that they sparked a modern revival of EV technology, and I'd be happy if some day an EV made sense for me. At this time, it does not. Range is still too short and charge times too long.
> There is no place for gRPC in NGINX.

Meh. There's place in NGINX for Adobe HDS[0], flv streaming[1], JWT[2], memcached[3], flash mp4 pseudo-streaming[4] and XLST[5].

Hell, spdy draft 3.1 is still supported[6]…

[0] http://nginx.org/en/docs/http/ngx_http_f4f_module.html

[1] http://nginx.org/en/docs/http/ngx_http_flv_module.html

[2] http://nginx.org/en/docs/http/ngx_http_auth_jwt_module.html

[3] http://nginx.org/en/docs/http/ngx_http_memcached_module.html

[4] http://nginx.org/en/docs/http/ngx_http_mp4_module.html

[5] http://nginx.org/en/docs/http/ngx_http_xslt_module.html

[6] http://nginx.org/en/docs/http/ngx_http_spdy_module.html
Apparently there is a brewery named Tin Whiskers. I would like to meet the founder, I bet we would get along. :)
I hear this preached all the time but I honestly don't believe it.

Few third-party applications I use on my Windows computer have a native (or native-looking) UI. Blender, Photoshop, text editors/IDEs, DAWs, video editing software, even web browsers... The only real exception is the file dialog and the window frames.

If they went to match the native UI they would dilute their brand at best and lose usability at worst.
Crucible isn't a super common word, but it's not a super uncommon word either. It means "a severe test where many things combine to influence the end result". It is an entirely correct word to choose for this situation.
What are "subjective reasoning" and "objective reasoning"? It's not clear what you mean.
This is great! TL;DR: instead of building JSON or GraphQL API now you can easily expose your gRPC service to the outside world!

We use gRPC in my company. We're happy but some things were not easy or straightforward to implement. With this update nginx makes load balancing and authentication easier to implement.
I'm an American with mediocre German living in Berlin, I've been here for a decade. I don't feel like a foreigner whatsoever. My social circle is 70% German and the rest is a mix of nationalities.

I would absolutely feel like a foreigner in any other city in Germany, but not here. If being a "foreigner" disturbs you significantly, like it did me when I lived in Vienna, I would say moving is worth it. There aren't many cities where there is no such thing as a "foreigner", but they do exist and are not exactly mysteries.
I also see more Teslas than I would expect here in Florida. It's apparently catching on with the retirees-with-money demographic. Along with all the old boomers buying sports cars - porsches, corvettes, etc., it's getting harder to identify and avoid all of the older, dangerous drivers anymore. They used to have the courtesy to identify themselves by driving giant full-size Cadillacs and Buicks :(
Tesla is facing a test. There are some bad signs that point to deferring profitability longer than expected, such as high defect and rework rates.

On the one hand, despite the challenges, Tesla has built more Series 3s than Chevrolet has built Bolts. On the other hand that's about 15% as many per week as Tesla thought they could do. The reason this isn't a fatal disaster is that nobody else is yet willing to try to beat that. There is no real replacement for a Model 3 available.

Building hundreds of thousands of cars per year is not something that industry newcomers have managed to do for a very long time, nevermind electric aluminum cars. This is a different challenge than competing against high-end BMWs and Mercedes that also have relatively small production runs.

The advantage Tesla has is that they started the learning process early. The competition is still a couple years from profitably selling a direct alternative. But every month Tesla is late is a month of sales runway and revenue gone.
I am open to all the options. I only do not know which one is the most convenient. In some countries you need to pay taxes in the place where you are working
I have a model 3 and it basically feels like the iPhone of cars. Financial issues could take them down, but you'd have to be a fool to bet against them.

Comparing the model 3 to other electric vehicles reminds me of when people were comparing the iPod to other MP3 players based upon tech specs. At this stage, the electric nature of the car just bolsters the design and UX of it. Comparing it to other EVs because they happen to share the same type of motors is stupid. They should be comparing the Model 3 to high end luxury combustion vehicles because from my vantage point you're getting that kind of driving experience, better even, for half the price. The only place where the electric nature of the car creeps into your life in a negative way is when you consider long trips. And even then, the impact is minimal because of the supercharger network. (You are going to stop regularly on long trips for breaks anyhow, so just charge the car.)

Beyond that, the only way the electric nature of the car impacts your life is beneficial -- no more trips to gas stations and less cost of ownership. At some point you stop even making the comparison because it's just a plain better ownership experience so you don't think about it anymore.
Google Fuchsia: Changing the way apps are built by making everything modular
I've been on Quora since 2011 when I wrote my first answer. I would easily spend hours back then reading incredible insights from all kinds of people. Sadly these days it's exactly as you say, a community filled with spammers and low-quality answers from popular personalities crowding out focused responses from people who are experience in that topic.

The product itself has also become 1000x worse to use and I think it's one of the biggest examples of a Silicon Valley company that remains successful despite the constantly bad product management.
LOUD NOISES

What’s with the all-caps title? Did they spit it out from the server using ToUpperCase instead of using CSS text-transform?
Brand power can result in more sales, though, which usually does increase cash flow? We don't know yet at what point they'll transition from being supply-limited to demand-limited.

Tesla owners seem to be pretty forgiving of quality issues so far. We'll see how well that holds up.
Go user checking in here as well -- bidirectional streams work just fine
Why don't you just flag the anti-semitism?
Does anyone know of any ventilation kits that would work in an apartment that doesn't otherwise get a lot of air circulation? I can't drill holes in the walls for air ducts.
> so it's not like my opinion is somehow more valuable than yours.

But you admit to trying to suppress his ability to express that opinion and see no problem in doing so?
macOS treats click-hold and click-release differently for menus. Click-hold is for when you want the menu to disappear by itself, click-release for when you want it to stay open until you click on something else.
The article is correct that machine learning doesn't remove bias. If the training data is biased, the output will be biased in the same way. But machine learning doesn't add bias, either. If the training data are unbiased, the output will be unbiased. In this sense, algorithms are fairer than humans.

So if someone wants to argue that a machine learning model is or is not biased, they should base that argument on how the model is trained. For example: suppose a bank wants to use a machine learning model to predict who to make loans to. Historically, human bank managers made those decisions, and they tended to have a bias against people from the wrong side of the tracks. There are several possibilities:

* If the bank trains the model on the bank managers' decisions, and it uses ZIP code as a feature, then it will discriminate against people from the wrong side of the tracks just like the human bank managers did.

* If the bank trains the model on the bank managers' decisions, but the only features it uses are monthly income and existing debts, then it will probably be unbiased (although it's still conceivably possible for there to be a bias).

* If the bank runs a controlled experiment by approving loans for 100 people at random, and trains the model on which loans were paid back, then the results of the model will be fair; it will accurately predict how likely people are to pay back loans, regardless of which side of the tracks they live on.

* If the bank trains the model on loans made by human bank managers, but it trains the model to predict loan repayment instead of loan approval, then the algorithm will actually _invert_ the bank managers' biases. If the bank managers never approved loans for people from the wrong side of the tracks unless they were an extraordinarily safe bet, then the algorithm will conclude "people from the wrong side of the tracks always pay back their loans!"

Arguments about machine learning bias should be based on these sorts of specific details, rather than assuming "algorithms aren't biased" or "algorithms are biased".
"Short selling" is the process of selling something you don't have, promising to deliver later, on the basis that you expect the price to go down. Then, later, when someone requires you to deliver the items you sold them, you buy them at the current market price and deliver them.

If the price has indeed gone down then you win. Problem is, the price may have gone up, and now you have to buy at a higher price, so you lose. The worst part of this is that the loses are unbounded, since the price rise could be arbitrarily large.

In practice it's not a problem, some you win, some you lose, and you are effectively betting on price market movements.

You can now deal with options. So when you promise to sell someone something in the future at price X, they have the option in the future of taking you up on that. If the price of X has gone down then obviously they will go and buy it directly, but if the price has gone up then they come to you and demand that you supply at the agreed price. In return for this option, they pay you when the deal is strike. Thus you are selling them the option of buying at a price.

Similarly you can sell them the option to sell you something at a price. These options are derivatives from the original concepts of buying and selling at given prices.

There's more, but I'll stop, not least because that's pretty much all I know.
Funny, as a Brit I found the super-servile attitude of US waiters really creepy. And if anything Japanese service is less formal in a way that makes everything more efficient - you call the staff over when you want something (or to pay) rather than having to wait for them to come to you.
All core grpc libraries support bidirectional streaming. It's the "routeguide" example.
> this resurfaces my, perhaps mislead, hope that AI will be the field to prove that the Chinese style of eduation will prove unfruitful [...]
>
> The latter attribute, creativity, is something I have always thought was necessary to foster with freedom in thought and expression, two things I see incompatible with the authoritarian system currently in place in China.

It's always dangerous to believe something based on wishing it were true.

Yes, China is an autocracy, and yes autocracies might hamper scientific and technological development (though there are many counterexamples). It would certainly be very convenient for the West if China's growth faltered because their political system can't do AI.

But China has an impressive record of economic growth over the last 30 years. In a decade it will probably overtake the USA's GDP at current exchange rates to become the world #1 economy; with 4 time's the USA's population, China doesn't need as high GDP/head to have a total GDP much higher than USA. A rich China means they will have plenty of money for education and AI. Chinese people already score higher in IQ tests than westerners. It is quite likely that they will start selecting embryos for intelligence soon, and then there will be a bigger IQ gap -- with more people who're more intelligent, China will have a massive advantage in AI research (as well as everything else).

It strikes me as entirely plausible that China will dominate the world in the 21st century, in AI research as well as economically and militarily.
My main reason to consider portugal was a favourable taxation with (NHR system) would I be able to benefit from it under any circumstances ?
That's a pretty high social security rate. I am in a similar position to OP, but in Spain. My overall tax burden (including social security) is around 30% which is not bad at all. So, if you're flexible and just looking for something new, I definitely recommend looking at Spain.
from my understanding this only works over h2 or h2c
I am a native Slovenian speaker who speaks a bunch of different languages to varying degrees of "speak". I definitely feel each of them changes my personality somewhat in its own way.

I assume part of it is due the language used and part due to cultural traits you pick up when you learned it. Would be surprised if there was no feedback loop between language and cultures that use it.
https://google.github.io/flatbuffers/ and https://capnproto.org/ are both successors to protobuf
>That's like asking, can you show me an immaterial soul?

Precisely my point. Saying "the mind is material" is like saying "the soul is ether"
Ask HN: Migration from AWS/GCP to Alicloud
Hi All,

Anyone has ever done migration of their production system from AWS/GCP to Alicloud? Any experience that you can share regarding the use case and lesson learned after migrating to Alicloud?
One of the reasons that is not tracked here is the fact that in developing countries as more and more people get educated. They tend to have 1 or 2 children and they try to ensure their kids have good education and upbringing. These parents realize that if they have more children they might not have enough resources and money to push them through higher education.
Basically you are selling something you don't have.
How to Make a Free Call from or to Syria
Not long ago, a significant proportion of the scientific establishment - along with a number of celebrities and policymakers - believed that the "population bomb" is an inevitable, imminent, and apocalyptic threat. There was talk of "point of no return", calls for worldwide China-style fertility restrictions, and so forth.

Instead, what happened over the past several decades is not just a drop in birth rates, but also dramatic improvements in our ability to grow cheap food at a scale (something that the article doesn't really talk about).

So it is a very interesting take to claim that the population bomb has been "defused" - since this implies it wasn't an episode of pathological science flirting with mysticism (with frequent allusions to the pristine "natural" order contrasted with the evils of Man), but just some sound science that turned out to be a bit off.

(Please don't read into this as a critique of any contemporary scientific debates; that's not my point, but I think we should be more willing to recognize our past mistakes.)
I understand short selling, but the guy in this story says he's been shorting Tesla for years. In that time, the stock as done nothing but go up, AFAIK. How can he afford to still be shorting? As I understand it, a short position is not something you can hold indefinitely... there's a point in time where you need to provide the shares.
That does absolutely nothing. If you don't want to be tracked, don't carry a phone. It's the only way.
I think that's just a Safari feature. Safari > Preferences > Websites > Auto-Play

"Stop Media with Sound"

I personally have all videos blacklisted, and I white list a few sites.
Computer personality judgments more accurate than those made by humans: study
Mister Wainzinger,

Sorry to ask for your time, but if it is possible for you to let me know, I would love to read about a Japanese engineer living in the US. Are you aware of any related articles or response articles on this topic? I understand that it may be an inconvenience to tell me about these articles, but your cooperation is greatly appreciated in this matter.

Apologies and thanks,

Thien, Chip