skysight-inc/HackerNews huggingface dataset:
> how would a rust program handle a handle to the currently playing audio device being unplugged and invalidating your handle?

You would either represent this as all the operations having a Result which can be Unplugged or whatever, or you might decide (as the designer of that library) that you'll eat the error and silently ignore operations when unplugged, offering an unplugged() predicate so that callers can check whether they got unplugged if they care.

If you mean, what if the system is allowed to just invalidate handles we've got for some reason, without telling us about that, and then after invalidation they just mustn't be used, then you're screwed, regardless of programming language, that's a pretty bad design and there's nothing to be done about it.

A more common design (e.g. for OS file handles) has an explicit call where you give back the handle (close in the case of file handles), promising you won't use it again. If the handle is meanwhile broken for some reason anyway (e.g. user pulled out the USB stick with the file on it) then the OS will tell you about the problem, but you still need to acknowledge that by closing the broken handle, you don't just suddenly find there's a different file behind your existing handle now. It's no trouble to represent this properly in Rust.

Let's explain a bit more about why Rust cares about thread safety. Rust types can have marker traits named Send and Sync. Send means "You can safely give this type to another thread" and Sync means "You can safely give references to this type to another thread".

For example lets say I have a Goose, which is three 32-bit signed integers named x, y, z, plus three booleans flapping, honking and hissing. All six of those elements are Send, so Goose is Send. I can give a Goose to another thread no problem.

But the type Rc<Goose> isn't Send. Rc is a reference counted smart pointer, like shared_ptr<Goose> from C++ except it's not for threaded software. It's a little bit faster, especially on some CPUs, but you can't safely use it across threads. Rust has another reference counted smart point Arc, and Arc<Goose> is Send for the same reason shared_ptr<Goose> is thread safe in C++ -- it uses atomic integers for reference counting.

Because Rust tracks the marker traits for me, I don't need to carefully read documentation for a new type I'm using FunkyTractor to check whether it's thread safe. If it's Send then I can give it to another thread, and if it isn't then that program doesn't compile and I go "Aww" and use say a Mutex to wrap my FunkyTractor so that multiple threads can access it safely, then it will compile.

Only the people actually innovating tricky thread safety stuff (e.g. building your own spinlock) need to care about this, and make decisions like "Should this type I'm creating say it is Send?" for everybody else it's automatic.
Are there APIs you have in mind?

One tool we have under development is a tool (might end up being a chrome extension) that will analyze web requests to turn them into a spec.

There are a few tools that are similar in purpose, though I've only seen ones based on proxying, rather than chrome's network request recording.

- https://github.com/alufers/mitmproxy2swagger

- https://github.com/adafruit/openapi-mitm
Do you have specific reasons not to believe the model and/or data in that article, beyond "all models are wrong by definition"?
Sorry, but that statement is anti-science. I trust-the-science and the current child development experts believe otherwise.

From the national library of medicine study: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7510529/
It's the long-term, repeated exposure that makes smoking so dangerous.
A handful of examples don't prove anything. If a Widget Lookup Service is used to lookup widgets for its entire lifespan, calling it Frodo isn't doing anyone any favours.

And it's not like "oops some gadget polishing code fell into my widget lookup service": don't put inappropriate crap into your solution. Little discipline goes a long way.
Maybe it's because I live in NY and everything is already so expensive, but I can not name one single item I buy regularly that has had a noticeable price increase.
If you pretend a platform for mass media, journalism, and public discourse that certainly affects domestic and international politics is trivial, sure.

Just people huh? Not the Presidents, politicians, richest business men and high profile journalists right? To say nothing of all the other niche communities like finance and tech.
javascript:window.location="https://news.ycombinator.com/submitlink?u="+encodeURICompone...
> how many people do you know who got the shot have gotten SARS-Cov-2 once or more after getting the shots and boosters?

Me, my wife, her parents, my mom, my grandma, and my brother's entire family.

That said, all of us had very mild systems. For my wife and I, it played out like a cold. A minor fever for one day, a cough for two days, and a runny nose for three. Honestly, if it wasn't for the fact that my wife's work gave everyone 10 at-home COVID tests, we probably would have assumed it was a cold and not tested.

My mom and grandma (who live together) both got COVID about 4 weeks after their second booster. My mom is immune compromised and my grandma is 83 and has poorly managed diabetes. COVID should have been a death sentence to both of them. Instead, they just laid in bed for a couple days and were fine.

The vaccines won't necessarily prevent you from getting it, but they'll greatly reduce the symptoms, hospitalizations, and deaths.
It is hard to see a problem if you are not looking for it or if the cause is distant from the reaction.

An Example: My friend had undiagnosed alpha gal for months because the anaphylactic reaction happened to him more than 12 hours after eating red meat so they did not know the connection.

Is Long Covid actually not from COVID but from this weekend immune system having to fight off old latent viruses it once had not problem with?
If you’re taking a cross-country RV trip, it’s no secret finding places to stay can be a bit tricky (and pricey).
I mean just reading the article about it would tell you how useless it is try to nitpick things like this.
Or those of who got the virus before the vaccine. Now we’re demonized for not wanting to double dip.
I don't really see any problem with wage inflation once it is at least hitting the middle deciles and isn't just confined to SWEs and above.

We spent the past 30 years being very cool with housing costs appreciating out of control and out of the reach of the middle-ish deciles, pricing everyone out of the market. If we could get some wage-price inflation to pull up wages then housing wouldn't need to crash to make it affordable. And then long interest rates would then rise, acting as a brake on speculation and cheap money. Higher inflation that hit wages and not just assets would also help to reduce income/wealth inequality (we could also try substantially taxing the rich like we used to).

Instead the Fed is going to crash the economy into an iceberg in order to create unemployment, keep inflation low, and low inflation expectations on the 10y horizon will keep long rates low and stimulate future speculative bubbles.

Either way the bottom decile loses out and they're always living month-to-month, so I don't think it matters that much. Are they worse off with high cost of living and wages that aren't keeping up with prices, or without jobs due to high unemployment and an economic depression?
Here too (San Diego area).
Real-world data won't don't tell us whether it's the LNP platform or the Spike payload that induces particular changes.
70% of all domains are parked
Author used to build authorization microservices, and now works at a company making a database product. Once again, somebody who works on some web service bs assumes that that's as hard as the world gets.

If all of your software components are constantly changing their scope, it indicates you are doing a bad job of producing an up-front system design. If your experience causes you to scoff at the concept of producing a design up-front, or drawing diagrams of how your system works, then this indicates one of two things about your background.

1. You're a relatively junior engineer who has gotten used to thinking about productivity as slamming code that tweaks existing systems into new incremental features

2. You work on some fucking web service.

Either way, your advice does not apply to the software engineering profession as a whole. Believe it or not, lots and lots of people write software, and not all of it is a web service or some tool / framework to help run your web service. There are many things out there are that can be envisioned, designed in detail, and implemented. And, crucially, in those cases, _it is wise to do so_.

I know I'm being overly dramatic, but it consistently enrages me reading blog posts that, through ignorance or deliberate omission, speak as if the world of software is just writing web services.
> You can define container cleanup policies within the registry, matching on age, tags, etc. https://docs.gitlab.com/ee/user/packages/container_registry/...

As a long time GitLab user, and a user who championed the adoption of GitLab by a previous employer, this is highly disappointing. This basically eliminates GitLab as a viable option to some SMEs and specially for personal projects that relied on GitLab to build Docker images and deploy them as part of the CICD pipeline.

I just checked a personal project I have hosted in GitLab that does nothing more than pulling a Docker image, do a minor tweak and deliver the image to the container registry, and the Docker image build step alone adds ~100MB to the usage quotas each time the pipeline is triggered.

I'm sorry to say, but if this plan stays as is, GitLab ceases to be an option.
Yep, there's lots of software with "su for X" capabilities; it's much better than the normal method which is "ok tell me your password and I'll login as you and see what's up".
Yeah. it feels like a no win situation. If you want to fight inflation, you probably have to endure the pain of higher unemployment and a recession. People described Volcker raising interest rates in the early 80's as being like chemotherapy.
Join the Java community and enjoy the robustness / the lack of headaches!
Truth is rarely binary , it’s nuanced and detailed and when you convert it into a simple statement you inject your own opinion. The world isn’t black and white.

For example, you’re right that people are naturally greedy, but most are also naturally altruistic. Many people are kind to strangers, and provide help as long as it doesn’t get in their way.

Most Wikipedia authors want the popularity which is why they publish, but they’re not publishing the wrong information (esp. because it’s more likely to be removed). Wikipedia is for the most part trustworthy because there are a lot of people who have dedicated themselves to providing “truth”, and while these people each have their own biases especially wrt controversial articles, the factual content is agreed on and so that it what ultimately gets published.
> The instructions for removing the most recent artifacts also just never works (https://docs.gitlab.com/ee/ci/pipelines/job_artifacts.html#k...)

What's the error / job logs you are seeing with having the project settings disabled for keeping the latest artifacts? The async operation to delete artifacts can take a while. Suggest to continue on the GitLab community forum: https://forum.gitlab.com/ where more folks can help. If you continue seeing the problem, also suggest to create an issue as a bug report. Thanks! https://gitlab.com/gitlab-org/gitlab/-/issues/new?issuable_t...

Another thought: You could clean the artifacts via the GitLab API, if that helps. An example script is available in https://gitlab.com/gitlab-de/gitlab-storage-analyzer also listed in the FAQ https://about.gitlab.com/pricing/faq-efficient-free-tier/#ma...
Well they have tested bivalent COVID-19 vaccines in large human trials. These boosters are functionally the same they just target different strains of COVID. I'm not an expert, but that's how flu vaccines are done. They don't have to seek re-approval for every new strain every season, and that seems fine. Maybe that's a bad practice. I don't know, but I'm comfortable deferring to experts in the field on it.
This is a point that I think is being missed. It's about the package, not the product.
And even further.. what wrong?
> It sounds to me as though the tradeoff being made here is: a slightly decreased immune response generally, but a better immune response to the thing you've been immunized against.

No compromise was posited, it is a consequence not a trade off. Not remotely the same
> used to

I prefer to work with people who improve things when they think of a better idea. What do you do?
Who digs up a scan of a pre-internet article to post on twitter to take a shot at someone who is at best a marginal and obscure public figure with an influential job? I wasn't the one who tried to slander someone with decades old pre-internet comments, but I am certainly hypothesizing that the person behind the twitter account is, and that is bog standard politics, as are low quality sock puppet comments in forums.
Who is "celebrating"? The markets are down 3% so far today.
Trump Shows Support for QAnon
This is clearly perjury, you can find it at www.twitter.com

/s
I was going to say it's a ripoff of the Publix logo, just not-green!
https://www.theregister.com/2022/09/08/open_source_biz_sick_...

Here's an article on it. Their logic actually makes sense. Not that I support gouging customers, but when you consider how there are massive billion dollar companies with expensive lawyers figuring out how to end-around OSS (via SaaS, etc) this is the logical conclusion. A lot of companies make a lot of money on OSS and give little to nothing in return. This isn't in the spirit of OSS but company men don't really care. So it seems like Akka finally got sick of it and is now coming to collect its (without question) overdue paycheck from these people. It's just unfortunate they went so aggressive with it. $2000/vCPU/year will do a lot of damage to smaller projects in the process of sinking the billion dollar open source leeches in the process.
AppLovin Withdraws Offer to Merge with Unity Software
There are definitely excess deaths reported starting in 2020. Started in March. See the chart at the bottom of this page: https://www.cdc.gov/nchs/nvss/vsrr/covid19/excess_deaths.htm

And here’s the total death rate by vaccination status:
https://ourworldindata.org/grapher/united-states-rates-of-co...

I assume you’ll switch to some CDC conspiracy nonsense at this point, in which case we are done here.
Here I'm with the OP. A descriptive project name is hard, and gets lost among projects of a similar nature.

Try to come up with descriptive names for projects like Git, Node.js, Docker, well, Linux. Well, BSD is formally a descriptive name, but it elucidates little.

Of course there are some examples of somehow descriptive names which seem natural because of the sweeping success of the product: Photoshop, React. But they are few and far between.

In short, project names are closer to branding than to engineering.

Inside a codebase names should be descriptive, and appropriate effort should be allocated to name key things in an elucidating manner; nothing to debate here. But it's a very different context.
Bit bored of some of these articles where peoples' opinions are based on anonymous twitter accounts that could be owned by anyone in the world.
Is it really ridiculous to consider the impact that massive societal changes we made might negatively impact our young? Zoom school, or even being in school masked and socially distant seems objectively worse for young children than being in-person and able to watch facial expressions and read lips. Why is it hyperventilation to consider the aggregate impact this will have on the generation of children that effectively lost 1-2 years of in-person social development time?
Please be on the lookout for grandstanding and do your own diligence in actually understanding the issues
It's a problem in Python too, but in the opposite direction in that Python is too eager to parse multiple lines as multiple expressions instead of a single expression, forcing you to add parentheses everywhere.

1 +
2

is a syntax error, you need to make it

1 + (
2)
Again, Ukraine was nowhere near to joining NATO in 2008, 2014 or 2022.
Twitter is a propaganda network; whoever controls it, controls the narrative.
For a guy who flippantly dismissed my reply to your bullshit by saying it's like denying the earth is round, you also have a bad definition of "cruelty".

Nobody owes you a refutation of your vibes-based nonsense historical theories.
Not even a modem handshake noise?
That wasn't my experience with Java back in the day.

What the article describes with Scala rings true, and I stopped using it (due to a job change) more than 2 years ago! So Scala was already going down this route 2 years ago.
For a perspective on the language, here is the (in)famous pun on the name “C++”:

ADD 1 TO COBOL GIVING COBOL
So they ran the phase 2/3 trial in >1000 humans for fun?

The problem with anti-vaxxers is you just imagine a world in which everything is underhanded and a conspiracy when all the science and data is out there in the open, just ignored.
ADHD encompasses a lot more than just brain fog.
ADHD being an overall "executive functioning" disorder, one very common symptom that doesn't match brain fog is having 80-100% knowledge of what you need to do, but being unable to choose to start doing the thing you need to do.

That kind of symptom makes ADHD people look lazy and selfish. Brain fog makes them look stupid and unable to learn or figure things out.

Generally I've found that amphetamine helps a LOT with ADHD, but not as much with brain fog.
We had an information system that we used in the 2008-2011 timeframe on our military deployments that only used 3.5" floppies for data offload. Since we wrote our enormously long post-mission reports during each actual mission and had no desire to spend hours following the mission re-writing them from scratch, the week prior to deployment was always filled with folks fanning out to every office supply store we could find in a desperate search for any remaining boxes of disks so we had a sufficient stock to use 2-3 disks per mission and allow for the inevitable disk failures/attrition. It was tough finding them then, can't imagine trying to find them now!
It's easy for us to be sanguine about knocking down the ladder after most of us have already scurried our ways to the top. Think of existing regulation (banks, environment, agriculture, pharma... you name it). Is it really there to protect the little guy? Or, is it a revolving-door between the regulator and the regulated, where megacorps can use public funds & resources to defend their own private interests?
"Fair enough, but my point stands. Conservative politicians merely adopted criticizing CRT. Liberals were born in it. ;)"

No, that point doesn't stand. I'm not sure where you even argued this. CRT is not taught in any public schools. It's grad school level. CRT mania is, again, conservative propaganda. If you want anecdote, I have two kids in big city public schools and they have read Stamped and done anti-racist lessons and Ibram Kendi did a talk for us. Believe it or not, they learned the right lessons. No one was insulted or made to feel bad about themselves at all. Conservatives are framing this kind of education not just as ineffective, but a grave and dire threat to America. Most liberals had never even heard of this kind of thing until conservatives started screaming about it.

WSWS is also just not credible. I doubt any policy makers of any stripe trust what they print.
Software may be eating the world, but hardware monetizes better
Here's just a few seconds of searching re: increased mortality for non-vaccinated:

https://www.scientificamerican.com/article/how-to-compare-co...

https://www.cdc.gov/mmwr/volumes/71/wr/mm7104e2.htm

https://doh.wa.gov/sites/default/files/2022-02/421-010-Cases...

https://www.washingtonpost.com/health/2022/02/08/omicron-dea...
This is all being done so that Elon Musk can back out of his contract to buy Twitter
There Are Holes on the Ocean Floor. Scientists Don’t Know Why
To be fair. Many companies staging is unusable with testing in prod.
Slaves minimize their deaths by not revolting. However, powerful support of their freedom by Union states led to far better world than the one without American Civil War.
It'll bring rents down because people who lose their jobs won't be able to afford those rents and will get evicted.
DB fan here who likes putting things into dbs. Are you guys hiring?
How is that different than literally every other website or publication on earth?
None of the disks he sells are the 5.25” floppy ones.
First Errand
> In a better world, I would have built this in a day, using some kind of modern, flexible HyperCard for iOS.

>

> In our actual world, I built it in about a week, and roughly half of that time was spent wrestling with different flavors of code-signing and identity provisioning and I don’t even know what.

Are you listening, Apple?
How machine learning helps the New York Times power its paywall
Well Duh! Of course a twitter employee could take over any account. Hopefully they have some internal safeguards in place but there are probably hundreds of people there that could take over an account if they wanted to, just as the owners of news.ycombinator.com could take over any account here.

You don't really own a Twitter (or Facebook, or ycombinator) account. Those services have an account on you. You update their account on you when you use their service to post (and they keep other information useful to their business on your account that you have no access to).

This is just the way social media works.
Ask HN: Solution for backyard gardening to counter climate change
I got into backyard gardening during the pandemic as I was working from home. Can people share their experience on how they are making changes to their gardening routine and plants to counter climate change. This year my garden did poorly due to the heatwaves and lot of my plants just couldn't handle the stress. I ended up with almost 25-30% less produce relative to my past experiences. Also are there any good websites or community resources which you would recommend for backyard gardening.
Or just use TimescaleDB which is competitive on most axes but already PG.
At a previous job, I worked at a textbook wholesaler. The industry overall is dying. They were a small player, but they were outrageously profitable. They realize that the good times won't last and they'll never grow into a billion dollar company, but the party isn't over yet.

Sometimes it's better to be the last person selling stage coaches than the tenth person selling cars.
Yep, and temperature doesn't really have an effect on magnets (perhaps at very low or when the disk melts).

I do recall that most of the teachers and students thought it was "most surprising outcome" or something like that, from years of "if you put a magnet near your computer or disk it will eat the world" propaganda.
I'm 23 and finished my second day at a COBOL traineeship at a bank. 2 months of paid education then work. Really fun
Kling's story in general, and this in particular chapter, is truly inspiring.

This led me to think that I'm not sure inspiring of what, and so made me think of whether a sense of inspiration must always be to do something, or if is it sometimes just a feeling (like being sad, happy, angry).

Sorry for the somewhat off-topic thread.
Yes, that is what I replied to... my point was that neither approach is a pure improvement over the other.
Murphy’s Law.
And you think they want to pay those rates ?

The whole point seems to be to convince people to learnt hat so they don't have to rely on some near-retirement people and also able to pay them less.
Why allow indexed access at all if the compiler is emitting a conditional check anyway?