skysight-inc/HackerNews huggingface dataset:
That's where I always end up when I start playing with Rust too. At this point I genuinely think I've given up on belief that the "borrow checker" paradigm is ever really going to be broadly successful (vs. "screw it, just do it in <other managed language>").

Problems with well-constrained allocation paradigms do really well in rust. Problems with reading/parsing/storing messy data structures from external data just really, really hurt.

I think a big part of the problem is that the ownership analysis layer has the dual crises of being (1) really complicated and too hard to keep in your head as a single model and (2) specified in an ad-hoc way that resists formal rules. So eventually you end up in of those puzzles like you mention where... there's just no answer! No one's been where you have, and the lack of rigor means you end up trying to reverse engineer the compiler front end trying to find the trick that works. And then you give up and write it in Go or Python or whatever.
Selective reporting on what? Russia has been massing troops on the border.

The reporting is fine, at this point it’s not a question if Russia would invade the Ukraine they already have, the question is would the west stand up to them with this time or not.
This is absolute and total BS. 2% death rate? Who comes up with this total garbage?

You have 100M infected in US as the estimate. A 2% death rate is 2M deaths from COVID alone. I've not seen anything like that as credible death rates - it's at least half if not a quarter of this rate - more like 0.5% or less. Do the same thing in countries with 70% infected rates - if fatality was really 2%+ death counts would be insane.

You really start to understand how people start to doubt the crap COVID "experts" put out when basic math shows it is garbage.
I get so tired of this line.

In the west, problems of racism and homophobia get put out into the sunlight so they might be addressed. It leads to people exerting their democratic right to manifest against injustice and root out inequality.

In China, racism and homophobia doesn't exist because any mention of it gets wiped off the internet, and "different" people get shipped off into camps.

I wonder what percentage of people that make your argument are doing so in bad faith.
Agree with exploitation mentality, disagree with "everybody getting their fair share" being the core. That exploitation/financialization mentality really hit its stride with Reagan, though both parties eventually vied to see who could do it more. It is ostensibly independent of where the money goes to.

But the winners were always the rich. Inequality in the US between the top 0.01% and "everyone else" has increased tremendously in the past 40 years (https://review.chicagobooth.edu/economics/2017/article/never...).
I don't understand. How does Dubai control what other sovereign nations citizens are allowed to buy? And even if they did, why would they do so?
Having been in unions before, I can confirm that this is exactly what happens.

At least Frank is fucked if their relationship ever sours though. Fucking Frank. Everyone wants to see that guy get injured.
The multiplier should be the number of empty houses owned.

So if you have house A that you live in, whose tax bill is $10K, and house B that's empty, whose tax bill is $7K, then your total tax should be $17K.

If you additionally have house C that is also empty, whose tax bill is $8K, then your total tax should be $10K + ($7K + $8K) x 2 = $40K.

If you additionally have house D that is also empty, whose tax bill is $5K, then your total tax should be $10K + ($7K + $8K + $5K) x 3 = $70K.

This would strongly incentivize against this activity of having one person or entity simply hoovering up homes and treating them like bars of gold.
spot on. CCP cultivates it.

also, your account is screwed. These are not the sort of opinions one's allowed to have connected to their real name
People have already touched on setting the addresses using the pins but sometimes you can just buy near identical I2C parts that have slightly different part numbers because the range of user-selectable addresses is different.
The West is in total decline. We are living through the complete collapse of the old order and the values of Western Civilization are being replaced before our very eyes.

All of our advantages are being withered away and there is really nothing special about the West.

China is confident and is executing a plan to grow very quickly. They have embraced markets and their people are growing wealthy.

Personally I'm betting on China to win, my money is there. The Chinese work hard, they produce everything, their government works, their society is united and peaceful and the 21st century is literally theirs to take.

What do we have to offer the world? Soy Beans? Scrap metal? A government that doesn't produce results? I have trouble finding a single advantage.
Can we get a new a trade deal with China which enforces democratic and labor rights? Otherwise please embargo them for the sake of humanity, shift industry back to the West and forget about them.
Probably not; detecting unnecessary clones is expensive for non-trivial cases. If a human can't prove that the clone isn't necessary (by writing the code in such a manner that the borrow checker accepts), I doubt the compiler could.
I am sorry, this is the whole other level. First of all, you are not obliged to discuss your medication with friends or parents. Second, your reply is pretty much like:

>> In China you disappear if you publicly say bad things about CCP.

> Yeah, I know what you mean, I called somebody motherfucker and got banned on HN. Freedom of speech is nowhere these days.
I just don't see how the US keeps together.

The disconnect between the two sides is, on the one hand, not based on anything concrete. So maybe we can patch it up somehow. Like, before the Civil War, slavery is a real thing with real human and economic effects. Today though, conservatives are mad about what exactly?… It seems like they're mad about a generalized disrespect which the mainstream culture has towards them. And fair enough, they aren't imagining that. But they vent this anger into really bizarre things like trying to keep trans people from using the bathroom and imaginary voter fraud prevention laws. And those are the mainstream, non-conspiracy minded Republican issues!

On the other hand though, if there can't be any communication between the two sides, if anyone adopting a position that is popular with 40% of the public makes them a pariah to the other 40%, I just don't see how you can run a country like that. I also don't see any causes on the horizon that would cause the current trend to reverse and for things to become less polarized.

So my current best guess is that we are in the quiet period now, things will stew along for the next 2 to 4 years, then Trump will run again or some other crazy thing, and then there will be secession crisis. It doesn't have to happen, but preventing it from happening requires the Republicans to denounce Trump and anyone associated with him, and I don't think they're going to do it. That isn't to say that the Republicans will necessarily be the ones to precipitate the crisis. I think it's pretty much equally likely that Trump/a Trumpist wins and then the blue states decide to leave. I think something like that probably would have happened in 2020 if he had squeaked out another narrow electoral college win, so it could happen in 2024 or 2028 instead.
I clone all the time to make the borrow checker leave me alone. If this code shows up as a hot spot in a profile I can spend the extra energy to optimize it.

I hope to evolve my understanding so that I can do the right thing at design time to minimize unnecessary clone()s.
There was a similar story about the ascendancy of Japan over the west in the 1980's, but demographics eventually slowed Japan's growth. There were simply not enough young people to keep the economy growing and take care of the growing elderly population. A similar thing is happening with China as many young people chose to not have children or only have a single child. So far in human history this trend towards fewer children in advanced societies is irreversible. The successful parts of the "west" have counterbalanced this trend by attracting and integrating young immigrants (both educated and working class). Unless China becomes a more attractive place for immigrants it is probably nearing its peak potential.
Left Joins, Pt. II
You mean performance in terms of latency or relevancy?
It would still be worth it.
As of 2021, the year of the linux desktop still ain't here. PC users still choose windows over linux now, and this is after god know how many enhancements.

In the 2000s, getting linux to work with wifi was a mess of command line commands and other PITAs that no normal users would put up with.
I had a similar experience. It really made me question whether the borrow checker is worth it. I'm all for memory safety, but there are some pretty compelling low pause GCs out there now that can give you memory safety without the ergonomic problems.
There's a Cargo tool called "clippy" which will tell you if it finds unnecessary clones.
They are not alleged at this point, they are real, and we have enough data that proves it. Using a language that pretends that vaccines can't have lethal side effects is just dividing people farther. It's all about the risk-reward calculation, which is still on the vaccine's side for most people.

For a 18 year girl though it may be better to wait 2 weeks more for the Moderna / Pfizer vaccine in lockdown at home than to take the J&J or AstraZeneca. As an example my parents did the same thing (watching TV and using the elliptic machine for training, waiting 2-3 weeks more than their friends who got the Chinese vaccine).
I’m so tired of Facebook’s irresponsible behavior. I sold my FB stock even though I still believe it’ll go up, I just can’t participate in their bullshit.
They are comparing jj and astro zeneca, both use adenovirus delivery. Albeit very different variants.
I feel like the time is ripe for a "streaming service" for online newspapers.
One person's unlikely is another person's design requirement.
They don't control it, so it's as theirs as Crimea.
"invade" seems to be a wrong word. "liberate" sounds better.
Kicking out Russian forces, reaching the border, putting neutral peacekeeper forces and then starting gradual reintegration would be the best scenario for Ukraine.
> You see practices cargo culted across the decades (like the 80 character terminal/line width and null-terminated strings, which can both be traced back to Hollerith punchcards from the late 19th century)

I limit my lines to 80 chars for more practical reasons. I have a wide-screen 43" monitor and restricting content to 80 columns allows me to have the project/navigation pane + 4 vertical splits side by side. Couple of those vertical splits can be split horizontally and I can see/edit, say, 6 open files at once without any switching of windows. Probably sounds like overkill but once you experience it, you know its worth it. Plus my eyes like less horizontal scanning too.
Because in America the poor are merely temporarily embarrassed millionaires, millionaires-to-be, etc. It’s less disdain than sheer ignorance.
> The statement Rust is for Professionals does not imply any logical variant thereof. e.g. I am not implying Rust is not for non-professionals. Rather, the subject/thesis merely defines the audience I want to speak to: people who spend a lot of time authoring, maintaining, and supporting software and are invested in its longer-term outcomes.

I think the title is a little bit misleading and paired with the first sentence invites flame, but this one in the middle of article sums it up much better.

With some languages you pay some special costs that are only recovered for certain types of applications.

For example, programming in C is slow, tedious and bug-prone (as compared to Python) but it is easier to solve some types of problems (like writing system software, controlling memory layout for performance, conserve resources, etc.) For most projects the cost may be too high but if you are one of certain types of projects the pros will outweigh the cons.

In general, when programming with strong types you pay for long term maintainability (ability to automatically ascertain correct type of object at any point and extra features that come from it).

In Rust you pay even more for even more benefit in controlling the types and ownership of the data which means this environment should be thought as geared even more towards long term maintainability.
PHP has a standard library that's just incomparably larger than node's. That explains the number of packages.

The size, OTOH, is usually in the same ballpark of a node project. If I import chrome from npm (for testing) in some way (directly or transitional), then node leaps ahead, when not, usually composer takes the lead.
Right. I found you are running on Windows after posting the comment. Makes sense, though there were some fixes in the latest Lucene I believe.

The Lucene's own benchmarks are at: https://home.apache.org/~mikemccand/lucenebench/ , though I admit to not know enough about benchmarking to form a strong opinion.

Either way, good luck with the project/service. More competition is always great. The open-source components look interesting too.
Globalization combined with a strong dollar(due to our reserve currency status, which gives us power over other countries but at a cost) led to the export of millions upon millions of manufacturing jobs and businesses, causing a decline in manufacturing, mostly in rural areas.
I think this hits the nail on the head. For some people the safety and income that these companies provide make it worth doing the dance. For many others, we just think "Meh, there is more to life than money, I am not doing that dance I am going to do this other dance that I think is more fun." Like honestly, what I am going to do with that extra money? For me just now, the answer is waste it. 100% even if I invest it and make more money with it. Eventually I have to spend it and buy pointless stuff. An super duper exercise bike that has a built in screen and looks cool. A cool car. A big house that is too big for my needs. All while being annoyed about a stupid dance. While I can get by working on other things and be less annoyed. And get to do more of what I actually want to do.
>Chinese have access to poisoned shitty water

And the so-called top dog of the west have cities where people for years had to get bottled water because the whole city were poisoned and whole states are drying out. Not everyone in the west are as lucky as those of us with clean water. Definitely not the US.
There may be cases sure, but this isn't one of them.
Right but they are still gene-based. No gene-based vaccine has ever received approval for human use, and the present coronavirus vaccines have not undergone preclinical testing as normally required by international regulations.

A potential danger of DNA-based vaccines is the integration of plasmid DNA into the cell genome (1). Insertional mutagenesis occurs rarely but can become a realistic danger when the number of events is very large, i.e. as in mass vaccination of a population.

(1) https://www.nature.com/articles/3302213
Ubuntu 20.10 won't install on PCs in legacy-BIOS mode unless there's a UEFI ESP
Applies to all remixes, too. It's a known bug but nobody's assigned. https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1893964
Hitler believed that America was in such moral decline that the country would be unable to unify and run any kind of large-scale war effort in Europe. The Nazis had a particular derision for jazz music, viewing it as a way for "undesirables" to corrupt and destroy society. Again, internal division and cultural change had little bearing on America's ability to move vast amounts of equipment and manpower to Europe when the country decided to.
Taiwan has a different strategic importance than Crimea or Eastern Ukraine.
> because progressive values don't promote strength.

Venice in the 1400s,

London in the 1685-1700

Paris 1875-1914

vienna 1890-1914

London in the 1960s

All of these cities flourished because they were progressive.
My thoughts exactly. I can't believe anyone is advocating for censorship regardless of the accuracy of the content.
Ok, but please don't post unsubstantive comments to HN.

Edit: you've unfortunately been breaking the site guidelines so often that I think we need to ban this account. If you don't want to be banned on HN, you're welcome to email hn@ycombinator.com and give us reason to believe that you've read the guidelines and genuinely want to use the site as intended.
That seems rather trivial, and I'm not sure how you could possibly have any issues with the borrow checker.

Just do the first regex search, then escape into a String with regex::escape, then build a regex from the String and search with it.

Of course what you are doing is probably wrong since you should use a string matching crate rather than escaping characters and using a regex matching crate.
You could message me or put a contact on your profile! I'm an strategy and ops guy (consulting, now FAANG) interested in helping startups grow. Would be interesting to explore this problem further.
Political proselytism. Certain advocates for democracy believe that democracy and autocracy cannot coexist in the same world and autocracies must be toppled wherever they appear.

Honestly I'm seeing parallels with the christian crusades. Remember that religion and politics were historically one and the same.
1. At least it's drinkable and not poisoned like in China.
2. No it is not. Have not you seen the dystopian reality of Beijing from last month?
3. Chinese healthcare is hazard on its own.
4. I have. China is not attracting anyone on a comparable level like the EU or the US. Also you dont get to stay and work in China even if you married someone from there.
I once had a coworker who refused to install a two-factor code generator (such as Google Authenticator, but there a dozens of alternatives) on his personal phone. I told him that he could generate codes any other way he likes, but the personal phone would be easiest.

He wouldn't have lost his job but he wouldn't be able to gain production access, which required two-factor codes.

He grudgingly installed a two-factor app. I'm sympathetic to the idea of "don't make me install stuff on my phone", but when it can be one of several apps, and the sole purpose of the app is retain a cryptographic key and run some hashes on it... I lose most of my sympathy.

I suppose it'd be nice if that employer (I no longer work there) provided a device to generate the two factor codes, but I can understand why they don't.
This is great advice. I use the Libby app on iOS to borrow books/magazines from my local library to read on my Kindle.
Me too, but most people can't be trusted to decide for themselves and are lead to believe crazy shit only because it brings ad revenue in the best case, because of interests of bad actors in the worst.

Where to draw the line is the point of the discussion, because the democracy of the viral nonsense is causing more damage than a straight up dictatorship, IMO.
Yes, if the preview is the representation of what you have indexed, then half of that article is missing. You may have identified the weakest link in your stack - crawler/extractor (which is notoriously hard to do, would be good if you provided more detail eg. do you use headless browser or simple GET request, do you crawl PDFs etc). Little use of the advanced stack on top of it, if the data does not end in the index in the first place. Hope you provide an update on this in the future. I'd probably sign up for a plan.
It’s slavery as a service. Great for saving costs because you only pay for the time that you actually use, and you can outsource the maintenance of the service to the provider.

If real slavery was still legal it wouldn’t even be used because the paycheque to paycheque employee model is so much more cost efficient.
I don't accept that someone is unemployable unless they have extreme physical or mental handicaps. I think what the article reveals is that this person's ego is heavily invested in the idea that they are competent in areas they are not. If your mental schema is wrong, you cannot take life's feedback that you need to put in the work in areas you aren't getting your desired results. If you're not careful your ego will prevent your growth.

Overcoming ego is hard... but not impossible. It's like telling someone they are parenting their children incorrectly, but you're the one telling this to yourself. Often it takes an emotionally difficult situation that triggers deep self reflection or incredible friends whom you trust, and who are willing to speak the truth.

I'm happy that the blogger has seemingly found a way to be happy, but I can't help but wonder if they've just optimised for a local maximum, and not their full potential.
Hello, HN! I got tired of seeing so many ads, paywalls and newsletter popups in Safari, so I built a simple JavaScript blocker.

Add any site to JavaSnipt and it can't load external JS files. Best of all, you can set blocking on a per-domain basis. That way YouTube keeps working, but some news site overloaded with trackers can't kill your battery with ads.

The app is buy once, own forever. $2 gets you the iOS and macOS version. Both are native apps - I spent a lot of time polishing the macOS version to be a simple, fast, Mac-assed SwiftUI/AppKit app.
those students are being used as cover for espionage. Most have no idea.
All 4? I imagine American occupation was "good" for employment while it was going on - providing a steady flow of income from soldiers and the military paying for goods and services while we were there.
Sure maybe at banks or companies where IT isn't a core focus but most tech startups and medium sized companies have taken the Leetcode cargo culting to heart
This is cope.

We've had numerous examples of third world style infrastructure failures (Flint water, Texas power outages) within the US that will likely continue. We have under invested in infrastructure for decades, while China has done quite the opposite.

Freedoms are increasingly becoming an illusion in the West. Saying something unpopular or taboo on the internet (even if it were years ago) is likely to cut you off from both your income and healthcare (as healthcare is tied to your employment).

All not to mention the simmering social unrest caused by insane income inequality, the levels of both private and public debt, and the likelihood of the dollar losing its reserve status in the next few decades. Things do not look good for the US.
Please don't post unsubstantive and/or flamebait comments to HN, even when something feels Orwellian. It doesn't help.
How do you think we got to this state? It didn't happen overnight. Society used to be orientated around walkable neighbours. Sprawl is a relatively recent development and a product of auto-mobilism. I don't think it would be impossible to walk things back.
> So, you’re suggesting that the USA is in decline because marginalized groups are demanding equal treatment?

Some demand equal treatment, some demand better treatment and other not only accept their life-style, but to consider their niche life-style as something more desirable than an average life style.