skysight-inc/HackerNews huggingface dataset:
I promised myself to never-ever answer the "CRUD vs HTTP verbs" topic. I could not resist.

It is a huge shortcut to map CRUD operations to HTTP verbs POST, GET, PUT, DELETE. By the way, the definition of HTTP verbs defined in the HTTP RFCs (from RFC 1945 to RFC 7231) and the original thesis from Roy Fielding about REST (which is defining REST principles as an architectural style) never talk about one-to-one relationship between CRUD and PUT-GET-POST-DELETE.

While I understand that it might be confusing without deep-diving in long-long-lectures, the last RFC explains clearly what is the purpose of each HTTP verb including the difference between PUT and POST:

The fundamental difference between the POST and PUT methods is
highlighted by the different intent for the enclosed representation.
The target resource in a POST request is intended to handle the
enclosed representation according to the resource's own semantics,
whereas the enclosed representation in a PUT request is defined as
replacing the state of the target resource. Hence, the intent of PUT
is idempotent and visible to intermediaries, even though the exact
effect is only known by the origin server.

Therefore it would be perfectly valid to "create" a resource with both PUT and POST methods as well as "update" another one with, also, PUT and POST. It is actually even clearly stated with a few examples in the RFC. For instance in POST definition:

Appending data to a resource's existing representation(s).

I used to defined PUT and POST requests according their characteristics: the first one is idempotent, the second is not ... but could be.
Therefore, in my understanding, it is perfectly valid to perform an "upsert" (insert or update) to a resource which doesn't exist yet but for which you already know the URL, it is indeed idempotent. For instance:

PUT /resources/xyz

A last piece of evidence is the first line of PUT section in RFC 7231:

The PUT method requests that the state of the target resource be
created or replaced with the state defined by the representation
enclosed in the request message payload.

I hope it helps to clarify a little bit the topic.
https://twitter.com/rlycalm/status/1592636069224542208

Granted, I don't know this person is actually an engineer as opposed to a troll. And she doesn't claim that she or other employees actively tried to create trouble.

So there was an aspect of me reading subtext into her tweet + Elon's ultimatum. Maybe incorrectly.
How to implement semantic video search in 5 minutes using OpenAI's CLIP
He also said that comedy "was now legal again" on Twitter and then banned a bunch of Musk parody accounts.
Now he only needs to find people who will work for him.
I didn't say it absolves them of anything, I said that the bias was clear and unhidden.
For one, the distribution patterns of Whatsapp are far more simple than Twitter. Whatsapp is mostly one-to-one and then one-to-some with groups (with those groups being limited to as little as 100 users at some point, the current 1024 user limit has only been implemented recently). Twitter is one-to-many, with "many" being "several million".

But also, how much time did Whatsapp have to get to that point? I'm not saying it's impossible, but that it's difficult and takes a lot of effort that shouldn't be underestimated.

> They are taking a lot of users right now.

And still less activity than Twitter, and with federation, and with some servers already locking new account creation (mastodon.social, the biggest one, doesn't let you create new accounts).

Again, it's not that it's impossible. It's that it's hard.
You are assuming that a missing item is a normal (as in "not exceptional") case, but that is entirely application-dependent. But then, the article doesn't give any context either -- it just throws an exception in every variant of the code, so the most likely assumption here is that missing items are exceptional.
The charges he was found guilty of carry a 20 year minimum sentence.
What’s nuanced and biased? That’s literally what those guys are doing. Well, that and Thiel ingesting blood of young people so he can live forever.
Genuinely curious how the ceremonies have materially changed your life.
Isn't everyone just going to move to Mastodon eventually?

Perhaps it will be a slow transition, just like Signal has gained more and more users in the past years.
Well, I said I appreciated corrections :-)

I think this comment from you is a bit too high-level to be useful though, maybe it'd be more helpful to identify the bullet point which is most inaccurate and explain why, with citations.

I mostly vote for Democrats btw.
This reminds me back in the day where we got some properties and thought, PDF is a defined file format. Every pdf has this values…

We were so naiv and didn’t know.
I wonder how high the paycheck will have to be and how much more expensive this strategy will be than just slowly firing people.
Why would you do that unless it's a hotfix or something really critical? Are the costs negligible?
A machine language instruction like

load r0, some_location

may encounter the error that some_location is in a not-present page that needs to be faulted in.

Should the instruction expose that through its interface, like some special value stored in r0,
or a CPU flag being set that needs to be tested?
I doubt they run the website themselves. Like most brochure websites this is almost certainly outsourced to some ad agency.
I assume what you mean is that the CPU may get faster but would ultimately stall waiting for data, which can only move so fast. Presumably to continue feeding data to the CPU we'd want to be much more aggressive about caching and prefetching.

Another option would be to not go 100x faster but to go 10x faster and then take the improved cooling + energy usage as a win.
In other news, peoples desire to virtue signal is as strong as ever.

George Hotz is going to be doing a 12 week internship at Twitter to optimize their code. And if you know anything about Hotz, he doesn't involve himself with any bullshit, and most certainly knows what he is doing software wise. Twitter is far from lost.
> I prepare for months before partaking in them

And here is why it is one of the most profound things in your life. Not saying that ayahuesca and other psychedelics do not provide you with a different outlook on life, but by sacralizing this ritual, making your life focused on it and therefore massively overemphasising its importance.

You could have the exact same feelings with LSD if you hyped yourself up for months and the whole thing was a ritual with scientists disguised as aliens from outer space.
>The linux ecosystem doesn't even have a legitimate window manager.

The rest is largely correct, but this part is completely wrong. Linux has a bunch of legitimate window managers, most of them much better than MacOSX or Windows.

The problems with window managers on Linux are:
1) fragmentation: there's a bunch of them, all competing with each other, but with insufficient dev resources, so they all feel half-baked,
2) unreliability: because of #1, they have a lot of bugs
3) churn: with Gnome and KDE specifically, they keep throwing things out just as they finally make their product mature and starting over every so often, subjecting users to systems that are never really mature or reliable.
I have contemplated and sketched out what would be required to build a slot loading sd card reader. Ultimately, I believe a vertical mount door loading mechanism* is cheaper, more reliable, and certainly has a decent aesthetic.

* much like a vertically mounted cd player
> a ticketing system that fans want. Ticketmater could already do that.

What are the reasons they don't?
All discord in his empire was fabricated by corrupt government agents who both served time for this, information that was kept from Ross and his defense and the jury during trial

The corrupt agents staged hits in a makeshift studio, just to extort money from Ross, use the money for personal gain such as landing a movie deal with Fox

Cases have been completely dropped for less

The prosecutor and judge found a strategy that is resilient, that doesn't make it correct
I am neutral towards musk and quite dislike wokist twitter (e.g. biden laptop censorship story).

Hence I favor musk in relative terms. Whether musk destroys twitter or rebuilds it's a postive thing in my book.
> reduce die-size and save cost.

reducing power consumption was also a goal, which this worked for too. Though the early models at least were paired with hungry chipsets that negated most of that benefit.
Great to know the world is a little safer /s
Fyi, perhaps others find this useful also to keep up with the latest: https://twitterisgoinggreat.com/

They have RSS too: https://twitterisgoinggreat.com/feed.xml
Jabref, which use .bib file as storage. The importing features are almost the same (all major sources supported). Tagging and note taking are nice. Full text search is implemented with the mighty lucene. Word plugin and Browser import plugin are good too.

Both zotero and jabref are on similar level of simplicity. However, they are very different on details if you use them heavily.
I do pause the youtube music from time to time to listen to other videos. But I use youtube mainly as a spotify substitute.
Ok, i folded the disk and after many hour of testing i have to say that your are right, it's not working anymore, however for the sake of correctness it was a Pentium4 era harddisk.

But yeah being swiss i know what you mean ;)
Ask HN: What is your favorite HN post of all time?
My ISP in the Bay Area also straight up does not provide IPv6, you'd think this would be the center of adoption.
Mega discussion here.

https://news.ycombinator.com/item?id=33647882
The courtesy is towards us, people engaging in this discussion. Meta is not a party here.
Backup Your Twitter Bookmarks
Maybe youre right about them pursuing engagement for its own sake, maybe they're not in that game.

Though, whatever approach you have in discovery, or ranking posts, you're having an impact on your users, and promote a certain dynamic, no? I imagine their next approach won't be the equivalent of letting go of the steering wheel, just maybe not mindlessly chasing the same metrics as they are currently.

Maybe that's a little too social psych to call tech/engineering, but I imagine the data science that would support that would be quite exciting.
THIS. "Extremely powerful & fast, fun to drive, and the company making 'em is run by an alpha macho guy who also builds space rockets"...yeah, that has huge emotional appeal to a large number of well-to-do males - who would not want to be seen in a Nissan Leaf, Toyota Prius, etc.
An obvious bone of contention would be whether Trump should get to have an account or not. https://news.ycombinator.com/item?id=33652055
Same goes for alligators and komodo warans. What if the temperature was the only thing holding them back from growing?
Maybe they need a blockchain in there somewhere.
Those architectural decisions should be reviewed during the design and planning phase so mid/low-level devs don't waste time building the wrong thing in the first place.
>This translates to fewer visits to the ER or morgue.

Yea, you seem confused, the funeral I went to was because my friends brother actually had really easy access to really great heroin. For a long time actually. Surprisingly easy to get delivered…

It was only after he was a full-on junkie estranged from his family after they’d basically given up any wealth they had for rehabs and his theft and violence that the “benefits,” as you call them, of the dark web markets might have mattered in the slightest.

No, no, don’t let me rain on anyone’s parade. Whether it’s heroin, or meth, or who knows? Maybe even sex workers of dubious age and consent! The dark web is just connecting willing customers with quality products.
I was just about to comment on this same sentence. If your validation relies on views and likes on a video, what happens to your ego when you inevitably get haters, trolls, and 1% of people that leave cruel comments for no reason?

I don't think I'm old, but I completely agree with your take. People should base their satisfaction on healthier things than views and likes. Don't ask me what the healthier things are, I don't think I'm old enough to have figured that part out yet.
On US healthcare bills there is:

Billed Amount - what the provider/health system tags as the “billed amount”
Allowed Amount - what the insurer sets as the actual total $ allowed to change hands for the visit
Patient Responsibility - the portion the patient is responsible for.

The Billed Amount is supposed to exceed the Allowed Amount by 2.5-5x typically so that the Allowed Amount the insurer/provider has negotiated “saves” money thanks to Insurance ostensibly in how the bill is displayed.

Put differently, your provider/health system is supposed to per the billing contract put in an inflated value well in excess of expected payment so your insurance company can reduce it so you can “save money” superficially on your bill. It is as smoke and mirrors as it sounds. Sounds like your provider / HS forgot healthcare billing 101 in this case.

The Billed - Allowed Amount value is also usually called Contractual Adjustment
Unless you are in some trivial startup domain, real domains (TM) have almost fractal-level complexities if you dig deep enough, corner cases, sometimes illogical rules etc.

The "why" is still very much needed since it can have 10 different and even conflicting reasons, and putting it in the code in appropriate amount shows certain type of professional maturity and also emotional intelligence/empathy towards rest of the team.

I mean, somebody has to be extremely junior to never experience trying to grok somebody's else old non-trivial code in situation when you need to deliver fix/change on it now. And its fairly trivial to write very complex code even in few lines, which some smart inexperienced juniors (even older, but total skill-wise still juniors) produce as some sort of intellectual game out of boredom.
> But the guy also landed rockets from orbit (on ships!). And then flew them again

But the guy also had money to hire talented people who landed rockets from orbit (on ships!). And then flew them again*
> I'd argue that this is more a difference in usage and culture

Usage and culture and affordances, as in:

- the stdlib doesn’t signal errors by panic-ing

- rust learning documents drive users towards Result and Option

- the standard library provides APIs to manipulate results in ways Java is utterly missing e.g. map_err, ok, ok_or, ?, …

- because results are reified values, the language allows abstracting over results (creating macros or functions around them), as well as providing utilities around them (e.g. eyre, thiserror, anyhow, …)

- because results are reified values, they can be ignored until relevant, an `Iterator<Item = Result<…>>` is just an `Iterator<Item = _>` until you actually need to process the result.

- panics have very little signaling power, technically your panic can carry a payload but I’ve never seen anyone go beyond a message

Also rust panics are explicitly noted to not necessarily be recoverable from, so they can not be used for error signaling: whoever compiles the program can set panic=abort, and now you have no error handling at all, the program just straight dies.

And even if you actually, genuinely, want to use checked exceptions in Java, it’s hell, because it does not mesh with the rest of the language. Just look at the contorsions necessary to get checked exceptions through Stream APIs.

Checked exceptions are not necessarily bad in and of themselves, but Java’s implementation is so awful it has completely poisoned the field. And frankly it just… doesn’t seem like a very useful thing to put work into: you can just use exceptions-flavoured results à la Swift or Zig if you like the “look” of exceptions.
> Perl is a great language

I don't write Perl often, which probably explains why every time I go back to it (we have a legacy Perl app), I get tripped up, over and over again, by the sigils, and the rest of the visual noise — and I can't help wondering, why?. Why can other scripting languages deal perfectly fine with the ambiguity that Perl resolves with a dollar sign as opposed to a percent sign, or an at-sign, or a backslash. Why do I, as a programmer need to remember that when I assign a hash as a value to another hash, I want to write it with curly braces; whereas in other contexts I want to write the hash using parentheses and assign it to a variable prefixed by the percent sign? Why do I then need to prefix the variable with "my" or "our" at the time of declaration? Why don't I have to do this in other scripting languages, not even in php, which has preserved the dollar sign? It's utterly bizarre.
To add to that, Java doesn’t make it convenient to have a place that catches checked exceptions only, because the inheritance hierarchy is the wrong way around for that.

Also, the type system isn’t strong enough in most cases to express something being generic over the exception type, so lots of interface implementations end up having to wrap every exception in a RuntimeException anyway.
Thanks, this is pretty much what I was getting at. While "Moore's Law" might strictly mean transistor density, "performance" is about many things.
Out of interest, how do you?
I'm using Firefox but if you are that paranoid you should be using Chrome. Firefox is a child play compared to Chrome in term of security (but not privacy).
> Realistically most problems that show up by themselves (ie not caused by bad code)

Well that goes the first assumption.

> or scaling events that reach a tipping point

Such as having applications running without restarts for a long time due to deploy freezes?

> Odds are those aren't the bread and butter of problems faced by Twitter _right now_.

Right now, exactly this moment, probably not. But if those were the only worrying events that could happen in the short term, I doubt anyone would need to offer any help to Twitter.

> due to code changes

Well, Musk has said that he wants to do "hardcore engineering" implying there will be a lot of changes coming up. That surely can't go wrong.
Foreign Dispatch: Ideas from code editors applied to foreign language writing
Unlike with Tesla and SpaceX, nobody at Twitter signed up under the auspices that taking it in the ass from Elon will help humanity get to Mars.
But it's not the same. Who wants to be exploited like an influencer when you can be the star of a creepy old man's sex videographer fantasies, before he kills you and hides your body.

That's the kind o freedom that heroes like Ross are protecting!
Just a small suggestion to consider: If the title was "Zero-Cost Exceptions and Error Interfaces in Python" I would have received it in my personal Hacker News feed in Telegram (https://github.com/lawxls/HackerNews-personalized) as I do have "Python" keyword added. And there's also email notification services people use which might have Python as a keyword.

Thanks for providing further resources btw, added Sebastian Witowski presentation to "watch later" list :)
If you need half of 7500 people to maintain a system like Twitter, something is fundamentally wrong with the tech stack and the tech people that work there.
You don't need to use APIs and databases, I don't think. A language that deploys like PHP and that lets you use a script per URL path would be ideal. Maybe Cloudflare functions? Maybe just a Flask server.
Reminds me of old IE days when you can eval() anything in CSS.
More of a scare crow. The government should investigate whether there's collusion.
People are seeing the young YouTube in TikTok. For monetization reasons, YouTube shifted to longer and better produced videos, and the quirky and raw content the OP is praising TikTok for has become less prominent, although it is definitely still there.
What is a DR system?
Hey, I took a look at your GitHub Page and I'm wondering can you provide more information in the readme so I can understand the value of the product better.
With a bit of practice, you can nail this too. The trick is to have a few seconds you can add or remove with some comment/fact which you can leave out for timing.

You'll often do it in regular conversation with people - if you're in a hurry for some reason, you can explain something to someone quicker by leaving out some less important details.
> I don't think sentencing should be using information that wasn’t part of the charges or the conviction. I’ve seen prosecutors chose to be extremely strict about that, judges chose to be extremely about that

The judge addressed this:

> The record was more than sufficient to support the district court's reliance on those attempted murders in sentencing Ulbricht to life in prison. The attempted murders for hire separate this case from that of an ordinary drug dealer, regardless of the quantity of drugs involved in the offense, and lend further support to the district court's finding that Ulbricht's conduct and character were exceptionally destructive. That he was able to distance himself from the actual violence he paid for by using a computer to order the killings is not mitigating. Indeed, the cruelty that he displayed in his casual and confident negotiations for the hits is unnerving. We thus cannot say that a life sentence was outside the “range of permissible decisions” under the circumstances. Cavera, 550 F.3d at 189.
Don't need a financial reporting team if you're not going to make it to the end of the tax year.
It's probably part of how they keep things simple. But you seem to imply that storing lots of data is hard. It doesn't have to be. I've worked with search teams that operate at a very large scale. You need lots of hardware but not necessarily lots of people.

The scale of Twitter is large but not enormous. Basically a few trillions of messages overall. Most of them pretty small. All of them immutable (well so far). And lots of images/videos with some CDN in front of that. It's a lot of bytes but not a whole lot of complexity. And a couple hundred million users and user profiles. I can think of a quite a few ways of dealing with all that.

What's hard is things like algorithms and good search. But that's a space where you can achieve a lot with a small and focused team with access to lots of hardware. And obviously this is also something where Twitter has maybe been a bit underwhelming and struggling. User growth and engagement stagnated years ago for them. This was not a healthy social network. It's not like they were nailing this. Throwing more people at the problem wasn't working.
Well, depends on the backing they got from Musk, doesn't it? And honestly, who would have believed someone would burn 44 billion, including 13 billion in dept, so fast to a complete pile of ash? I do wonder so, with a lot of Tesla's success depending on Musks reputation and ability to raise money, what the fallout of this will be. Until the Twitter desaster, Musk was a sure bet for investors. Now? Well, his financing banks wanted 60 cent per dollar when selling the debt on to investors. And they were only offered 50 cent. That alone tells you a lot.