skysight-inc/HackerNews huggingface dataset:
Python 3.10 introduces pattern matching: I've not had the chance to really play with it yet so can't say how fully featured it is, but you can do something like:

def foo(login_data):
match login_data:
case {"username": "foo", "password": "blah"}:
return True
case _:
return False

In addition you can use type hinting:

def foo(login_data: dict[str, str]) -> bool:
match login_data:
case {"username": "foo", "password": "blah"}:
return True
case _:
return False

Unfortunately I don't think you can yet do the neat argument unpacking as per your Elixir example, but it's some of the way there.
Most of this discussion seems to be off topic hot takes on conspiracy theories about inflation and big corp.

I am worried about a wage price spiral. But I’m not expecting it to commence yet. Common sense suggests most people are not going to look at inflation forecasts and say “well, I’d better ask for a preemptive wage rise”, rather people will notice price rises, adjust their budget, and when the rises become intolerable they will say “hang on, I really need a pay rise.” Most people are too busy to follow macroeconomics.

So I’m expecting wage bargaining and rises to become a central theme in 2022 once people really notice. Even at an annualised rate of 5%+ that takes time.

It’s very difficult to see how wage rises won’t be granted, which makes me wonder how politicians are imagining they’re going to prevent a spiral. This is exactly why we don’t print money and put it into retail accounts.

I’ve pointed it out before, but in the 80s in Britain Lawson and Thatcher spent years trying to end the spiral, and they really struggled despite throwing everything they could at it. Wage spirals are as much about politics and psychology as they are about economics.
Microsoft Explains How the Red Ring of Death Happened
I know that trick and it is NOT working with dev/zero on ZFS (compression), use dev/urandom instead.
There was an interesting comment in another HN thread, where something like this got talked about: https://news.ycombinator.com/item?id=29558521

Applying that theory here would be to create a feedback loop where the Herman Cain Award content causes more digging in, causes more deaths, generates more Herman Cain Awards. Imagine if you were the creator or an early adopter/moderator of such a community and it grows explosively... If the theory is correct, this is a highly profitable activity for capitalizing socially on the deaths of your political enemies, and while controversial, could net you a status as a lionized hero in some communities, the ones who are sick and tired of the political enemies due to past experiences, and love seeing members of them die.
It because Android is actually less secure, the theory is that on android NSO have the ability to delete the traces of their infiltration whereas on Iphone they were unable to do that which is how they got caught.
Ever since Reuters required a login to view news content, I have continued my old habit of checking it for headlines but I get discouraged and close the window when asked to log in. I find myself less informed nowadays. It irritates me that a website already plastered with ads requires me to authenticate who I am in order to learn basic facts about current events. So I'm actually grateful for the archive link.
HN is slowly becoming the new (old) Reddit in some ways.
This is spreading but still we must try to stop it. We will fail as we have failed so many times in the past but still we must try.

Say, we fought against DRM and while the music industry have completely abandoned it, that victory turns out to be useless because the video streaming industry have embraced it total and there's not even resistance against it this time.

I am so, so tired of fighting against these. I translated Doctorow's anti DRM speech in 2004 into my native tongue as one of my last acts as a Hungarian journalist. We have been fighting for so long. And the DRM war is lost.

Nonetheless , we need to stand. We, who have the privilege to be able to say "meh, I quit" because we know the next job is just days away. We need to for the sake of all those who do not have such a privilege.
That is only valid in general, outside "real world application" of that idea... Or, in fact, of the very product. Product quality is a component supposed to override the "value for pride" of widespread adoption.

You can safely assume that many people will not be proud of participating to a dubious product.

You can not even assume that one in general will be especially proud of wide adoption - the weight given to "general/generic approval" is a personal variable.
They use this scheme throughout the system, for example after clicking on a search result from the Cortana search. That basically skips your default browser settings and opens sites in Edge.
> I never signed such a thing. [...] much different today, and there's nothing with my signature on it

I'm forming a hypothesis -- i.e, vaguely guessing -- that this is American culture because employers have pushed it in this direction, because an absence of any paperwork for employees to point to in case of conflict benefits the employer.

> A lot of it sounds strange because it is strange.

America sure is. :-)
placebo effect
> Do you have an example of some policy that is generally popular, but not passed because of corporate lobbying?

Here is an example I saw just recently: https://en.wikipedia.org/wiki/Asbestos#United_States

Really disgusting to read about it.
You are being overly dramatic. A hundred years ago, workers were treated so bad and had such bad living conditions it makes you sick just to hear about it. THAT lead to some violent revolutions in some countries, most of them young, undemocratic, or unstable. Some of them migrated 2,000 km from their home.

People have food, shelter, entertainment.
Yeah I think it's more import to keep your space under roughly 85-90% of your storage max size.
Just a few months ago you would be flagged on HN for mentioning inflation. Look up any threads on economy from March 2021 for example.

I want to know why. Why was the HN diaspora not allowing dissent with the mainstream narrative? Mentioning inflation here was so harshly ridiculed, I was surprised the massive U-turn from the tech community. I saw the entire media changing the tune. That means no one here is thinking from the bottom-up, it’s mostly servant to the mainstream media.

I’ve lost hope in people here. It used to be the wisdom of crowds. Now it’s the tyranny of the crowds.

I think I feel like leaving HN.
How to make your ex want you back after he dumped you
how to make your ex want you back after he dumped you? It is nothing unexpected to you when I say that getting through a separation or a broke is probably one of the hardest things to do throughout everyday life.
Still, it is the last thing you may want to happen.
The explanation it is so difficult is on the grounds that you are going through. Such countless sentiments on the double, you likely don't have a clue what needs to do. In case you feel as such, then, at that point, I am happy you are here perusing this article.
So when you finish perusing this you will know precisely what to do and say to get and win the heart back of your ex. Even after he dumped or breakup with you in your ex relationship. In addition to answering the question: how to make your past love want you back after he dumped you?
1-Don't be clingy
How to make your ex want you back after he dumped you
The greatest mix-up pretty much every male normally makes like when they are attempting to reunite with their past lovers is to get tenacious. You should attempt to go somewhat longer than a month without conversing together by any means. Indeed, this remembers talking for the telephone, message back rubs, and messages. You need to make your ex want you back and miss you even after the breakup accident
2-Don't talk about yourself
Another error most folks form when attempting to reunite with him is that at whatever point. They converse with the ex boyfriend, they generally get appear to discuss themselves. At the point when the month is up, and you at long last begin to converse with the ex love. Let them in on you grieve and feel awful, however, don't continue endlessly about yourself. Tell the ex that you regard him, delightful, and a princess.
3-Think of a plan
Attempting to generate your sweetheart want to back and reconnect with your old boyfriend without a game plan resembles attempting to hit a grand slam without a bat, it won't occur. For most folks, it is amazingly difficult to think about a strategy, on the off chance that you are experiencing difficulty considering one, you can find a lot of them on the web.
Is it accurate to say that you are Going To Take Action?
Unfortunately, more than 90% of the normal and normal individuals won't ever follow an activity plan. Win them back If you are not among that 90% and you really need to effectively reunite with your ex.
CLICK HERE to find out the other steps to get your ex back
Trim is not supposed to help with ZFS compression, it occurs at a layer below what the FS sees (but the FS hooks are necessary for the controller to understand the logical use).

The issue TRIM helps with is the following: while reads and writes are performed at the page level (2-16k), a page can not be overwritten (it can only be written to when empty) and an SSD can only erase entire blocks (128~256 pages).

This means when you perform an overwrite of a page, the SSD controller really has an internal mapping between logical pages (what it tells the FS) and physical pages (the actual NAND cells) and it updates the mapping over the overwritten logical page to a new physical page (in which it writes the “updated” data), marking the old physical page as “dirty”.

So as you use the drive the blocks get fragmented, more and more full of a mix of dirty and used pages meaning the controller is unable to erase the block in order to reuse its (dirty) pages. So it garbage-collects pages, which is a form of completely internal defragmentation: it goes through “full” blocks, copies the used pages to brand new blocks, then queues the blocks for erasure.

The issue with this process is… the SSD only knows that a block is unused when it’s overwritten, historical protocols had no more information since the hard drives had the same unit for everything and could overwrite pages, and thus the FS managed that directly. This means if you delete a file the controller has no idea the corresponding pages are unused (dirty) until the FS decides to write something unrelated there, meaning if you do lots of creation and removing (rather than create-and-never-remove or create-and-overwrite) the controller lags behind and has a harder and harder time doing physical defrag and having empty blocks to write to, this leads to additional garbage collection and thus writes, and all the “removed but not overwritten” blocks are still used as far as the controller knows so they’re copied over during GC even though no one can or will ever read them.

TRIM lets the FS tell the controller about file deletions (or truncation or whatever), and thus allows the FS to have a much more correct view of the actually used blocks, thereby allowing faster reclamation of empty blocks (e.g. if you download a 1GB file, use it, then remove it, the controller now knows all the corresponding blocks are dirty and can be immediately queued for erasure) and reducing unnecessary writes (as known-dirty pages don’t have to be copied during GC, only used pages).
I would like such a screensaver but the Bs would cause me anxiety. I lived long enough to get accustomed to regular defragmentation (never used this-looking app though, only SpeedDisk and later Defraggler) but not long enough to consider bad clusters presence a norm - they always meant a catastrophe for me.
I wondered too. Wasn't it from Dragon Ball?
If I can get the unifi device and version I will follow up with unifi directly.
I see myself very much like the person in the original question.

For me, I try to do put in sheer effort on a regular basis. It is just that more day than not, I just can't bring myself to do it. I end up spending more time berating myself for not working, slacking off, writing this answer on HN, etc, than actually working.

The sad (or perhaps enlightening?) thing is that it has always been like this. Since school, I would always do work at the last possible second. The only save is that I actually do a good job at the end, so it goes unnoticed. But the process is excruciating, and looking back at week after week of something like 5-10 hours per week is frustrating.

Like the original question, I also "lie" in standups. I get why people say it is unethical, but I can't bring myself to saying I wasted the whole day yesterday on reddit.
Always amusing to read about audiophile hardware. :)
Nim seems to be targeting the space between Python and Go, which is wide open for disruption. (Also touches at the edges of managed memory systems-y light languages like Java/C#.)

Python is a dynamically typed cowboy land and is painfully slow for many applications. People want types, speed, and fixes for decades of baggage, but they like Python ergonomics.

Go until recently lacked generics (it still doesn't have full generics), has bad error handling, and other weird features.

Rust and Swift also seem to be interested in this space. Rust can be heavy. Swift too Apple-centric.

Nim is doing a good job and is growing at a steady clip.
Anyone who are familiar with this and can explain it?

Honestly isn't this all like a big scam aren't you just buying air/electrons in the end.

I can "mint" an NFT which basically is like a checksum of a image for instance that is encoded(minted) in the etherium blockchain - then this can be sold/transferred to different wallets?

Have i got this right?

Why are people paying so much for this nonsense?
> Don’t get me wrong: the Sacklers are disgusting people who contributed to the opioid crisis. Can a link be established that meets the relevant legal threshold for liability? Again, genuinely curious.

There's a ton of internal Purdue emails, showing that the management was aware of the problems from 1996/1997 with their drug and it's potential for addiction.

There's a superb synopsis of the case by an investigative journalist who wrote a book on this case, exploring the players involved as all the aspects to this case:

https://peterattiamd.com/patrickraddenkeefe/
My father was a GP, which obviously meant he didn't just see patients with symptoms related to a specific specialism he had studied intensely. He saw patients with a broad variety of symptoms that needed a diagnosis to decide if he could just administer treatment himself, or might require a referral to a consultant.

He was an excellent diagnostician, but when he was unsure or stumped by a set of symptoms he would outright just use Google. All the partners at the practice did. The skill was then sorting the wheat from the chaff in the search results, and then making the correct decisions for treatment.

Doctors don't just use specialist software to look things up, they often just use Google like the rest of us, it's bloody fast and with personalisation of search results, it often returns answers most relevant to you (or your profession).
This is absolutely not true, and has not been true before Covid.
Massively agree with this, either do nothing or do it right. I’m a contractor and change around a fair bit and when I join a project you can tell if it is good or ok or terrible.

My current project is terrible, the people who set it up tried but have that real lack of understanding what is required (they have clean code but no tests) it is really hard to debug and takes forever to deliver anything. If they had just done nothing I could have set it up properly when I started and we could have been done months ago.
What people in the US call left elites, is being called slightly rightwing in the EU. When I hear comments like „state-funded housing is socialism“ I have to chuckle. That’s just how you make sure people won’t starve if they don’t resort to shady business.

Bernie‘s ideas would be called leftist here, but not extremely so.
thank you this is very helpful
The better optimization with Python is to not use python. Half joking. If you want awesome performances, transform your problem into a numerical one, and use Numpy. Numpy is awesome. I always miss it when using other languages than Python.
Not to dismiss your point -- because it maybe true -- but don't Americans say this like pretty much all the time? Between survivalists to qAnon supporters it's always about revolution in the country. I'm not saying you are part of any of those, but it seems to me that in reality people in the US just adapt and life goes on...
> Over 9000 began as a joke among Naruto fans

I stopped reading the article with this exact segment copy-pasted, in order to comment about it. Am I being taken for a ride here?!
vue and react are relatively close

if you want to try something different I'd go with svelte
You can just start 10 more instances of your monolith. It‘s not a problem.
For me it's the intersection of performance like Rust, the readability like Python, the ability to generate native executables without dependencies like Go and a very cool type system.
All while delivering fast compile speeds!

The adoption isn't like Rust and Go, but Nim is growing: https://github.com/nim-lang/Nim/wiki/Organizations-using-Nim and the community is active across all socials.

Some downsides: not a big ecosystem(tho can piggyback off C libraries) and tooling isn't great.

Advent of Code would be a great way to dip your toes into a language you might not really care about!
Inflation helps reallocating labor more efficiently since salary is sticky.
"punching up to the majority, or more specifically the hegemony which is the majority that holds the power."

Uh, if you look at classical antisemitism of the 20th century (or its contemporary offshoots, very much alive in some Islamic countries), it operated along the same lines of thinking, only without using the word "majority".

Antisemites chose a few rich and connected Jews, pointed fingers at them and screamed "See, Jewish plutocrats control the world! It is a Jewish hegemony!" They absolutely saw their activity as a desirable "punching up" to the nefarious world masters.

Of course, the vast majority of Jewish people were neither plutocrats nor powerful, and the vast majority of whites today isn't in positions of power either.

This practice of taking an entire ethnic group as a whole and treating them the same based on a few negative examples is pure, unadulterated bigotry. It is dismaying to see how it took vigorous root in the West again. It is evil and it is going to have evil consequences.
I believe Vaex can do this, in addition to GPU processing and reading direct from s3.
https://github.com/vaexio/vaex
Solid.js feels like what React should have been in the first place (but even Preact would have been a nicer default for the community)
> I don’t want a company microphone listening on my family conversations in the distance

Indeed. These machines should not have a built-in microphone. How do you really know if it is not listening? Cameras can at least be covered.
The big resource for doctors (or was back in my day) is UpToDate.com - which includes up-to-date clinical summaries of diseases, treatments, with references to clinical studies that back them.

It was an indirect inspiration for MacRumors' roundups. Where we summarize the current information on a particular product rumor, so you don't have to keep up with the "literature".
Anything related to the seller is not accepted as part of the product review (which makes some sense in most cases, since one product can be offered by multiple sellers).
Seeing that the team behind Nim is accepting Bitcoin is not a good sign.
It always felt to me like this was vulnerable to collusion - if Alice and Bob team up and have disjoint interests they share votes. So in elections P and Q instead of Alice spending 100 points on P (and Bob zero, as he doesn't care) then Alice can spend 25 and Bob 25. In Q, visa versa. It's a huge advantage to do so, no?
Most of the people here are from the professional class. Not real hurt as much by Covid restrictions. Some even benefitted by being able to work from home, they benefitted from election rule changes, from online censorship, and so on.

So they don't really understand how much the restrictions are loathed by the working poor, who were already on the brink of bankruptcy pre covid restrictions.
Google maps. Has its flaws, but not bad at all.
Defrag with "telemetry"... sounds about right for "current" software.

"By clicking Accept, you agree to share the information about your files with us and any relevant third parties [read: anyone who wants to pay us money to get info on you]".
Glen Weyl (the economist who has done a lot of work on quadratic voting, mentioned in the article) has also written and talked extensively about Harberger taxes and quadratic funding; the former is a fairly deep change to how property rights work, and the latter is a way of democratically allocating funds to public projects. I would definitely encourage reading up on both of those!
Yes. Google will constantly remind you to add one to “secure” your account, but just ignore it. You want no recovery emails and just an authenticator app.
So did anyone decode the "It combines successful concepts from mature languages like Python, Ada and Modula." blurb yet?
Unions in Nordic countries don't stop employers from paying more, they just set minimum pay level. And usually the normal raise level. They can always pay more and usually do with fields like software engineering.
Because it's the only truly unique selling point of blockchain apps. So it has to be important to justify cryptocurrencies being valuable.
It depends of the work I am tasked with. If it is boring and tedious, I tend to become lazy. If I find it interesting, I tend to work more.

If I am tasked with design and implementation, I tend to enjoy more so I tend to work more. If I am tasked with just the implementation, I tend to work less.

It also depends on teams. I worked in teams where the product owner wasn't very pushy and the all team mates tried to work as little as possible and I worked in teams where high pressure was the norm, the product owner was very pushing, team mates committed to over work and kind of pressured their pears to overwork, too.

In the low pressure teams we had less code of higher quality, in the high pressure teams we had tons of code of less quality which kind of needed rewrites.

If someone asks me, I don't think either of the extremes is good. A team or developer should produce a reasonable amount of work of good quality.
And I could tell just from reading the comment that it was another case of developers not knowing about Unicode normalization.

It's extremely unhealthy for web standards that every deviation from Chrome's behavior is considered a nonsense bug now.
A link to back up your claims would still be appreciated.