skysight-inc/HackerNews huggingface dataset:
For most strings, it seems to be that using a varint would solve the overhead problem. For short strings the overhead would be no longer than the null byte (which you could discard, except when interacting with existing APIs).

But as with _all_ string solutions, it's the POSIX interface, standard library, and other libraries that screw you. If you're programming in C today, it's because you're integrating with a ton of C code, and thus it's impossible to make progress since the scope of improvement is so small.

It's always struck me as weird that Rust treats strings the way it does - the capacity value is not useful for many cases of strings, and it would have cost them one bit to special case the handling constant strings without the cap measure, which would be better. Most strings are _short_ which makes the overhead worse, proportionally.
> Rather, the economy is what happens when a society organizes its member's aggregated needs and desires.

I like that definition.
Two time world war champs!!!
As a Spaniard we used to have a word for '3 days ago':
People who want separate non-ilc camera are already niche. People who want to compromise image quality and ergonomics for ultracompactness is small niche within that niche. Its not like something Fujis X100, Sonys ZV, or Ricohs are huge cameras
Yeah, I think with all major technological advancements we end up with logistic "S-curve" type growth, with a steep rise followed by an eventual plateau. At the start it can look like exponential growth heading toward a singularity, but that's just not realistic and growth always slows down and levels out eventually. Based on the degree and timescale though the two cases my feel pretty indistinguishable for individuals.
Go on. Which economics text book would tell me that if the government incentivized investments to 100x their actual value, the resulting investments wouldn't be bullshit?
Ranked choice won't solve our problems. Approval voting, single transferrable votes, or mixed member proportional elections won't solve our problems. Elections have intractable problems, they cannot be solved because they are inherent to the process. The ancient Athenians understood this.

The way forward is sortition. Not randomly selecting people directly to office mind you, but convening deliberative citizens assemblies to directly weigh in on issues and even potentially to appoint officials to govern. There is a rising movement to implement such reforms that has started to gain a foothold in Ireland, France and Belgium.

Those who want to know more should look into the Sortition Foundation and DemocracyNext.
But the waste adds up. There are a few projects at work whose integration tests I can't run on my work machine because it doesn't have enough ram (16GB) so I run them on my home PC instead. And that's even when I close IntelliJ, my web browsers, and kill all the background processes I can.
Germany is steadily reducing the legal hurdles to install balcony solar plants. Now one does not have to ask the landlord for permission, no tax, 800W allowed, etc..

Berlin grants one 500€ with the purchase of a balkony solar plant.
Liberals wouldn't even grant that to Americans wishing to travel to a state that acknowledges the 2nd amendment. Liberals want guns banned in locations whose populations overwhelmingly support gun rights.

It would be like republicans trying to ban abortion in San Francisco. Unequal application of power. Very bad for democracy.
Surprised nobody has linked this yet:

https://www.kalzumeus.com/2010/06/17/falsehoods-programmers-...

Also note that while the counter examples might sound extreme, in some languages each character might need 3 bytes in UTF-8, and 128/3 ~= 43 characters doesn't seem to be that outrageous.
Squarespace is directly responsible, my irrational instinct is to blame Google even more, in that their role involved active abdication of responsibility for purely self-interested reasons and involved more employees than just their security engineering team.

Domains are critical infrastructure, wasn't any reason to sell them other than Wall Street puffery. Obvious downside was leaving business customers who got them via Cloud exposed. Per my uninformed intuition at the time, there wasn't a secure way to do this sort of switchover without a lot of manual reaching out neither of them were going to do.

Additionally, Google went out of their way to sweeten the deal by A) making Squarespace the reseller for any associated Google Workspace records which B) greatly widened the vulnerability surface. [1]

This sounded uninformed to me, until it happened, so [2] quotes the retrospective at length to show there was no secure and automated choice.

both via Security Alliance's "A Squarespace Retrospective": https://securityalliance.notion.site/A-Squarespace-Retrospec...

[1] "Furthermore, as Squarespace is an authorized Google Workspace reseller, any teams who had purchased Google Workspace through Google Domains had their license transferred to Squarespace. This allows the threat actor to create new administrators in Google Workspace via the hijacked Squarespace account."

[2] "However, what happens for [domain owner] emails which are not already registered to an [Squarespace] account? Well, you could preemptively create a new account for that email and send them a temporary password, but sending passwords in plain text is not a good practice, it would be pretty complicated to create millions of users with temporary passwords, and most people migrating probably want to use their Google account to sign in, not a password. Maybe your systems don’t even support creating temporary users like this."
Results of feasibility study on space data centers
Advertising it as Writing a C Compiler is misleading. This is no where near C's speed. It's just an implementation of a C like language. And honestly there are better books or tutorials for something like that.

C's selling point is performance and portability and this book covers neither
Why did they shoot down the guy? Incapacitate him, instead of blowing his brains out. And you'll get answers, and not a puzzle that might fit together.
(Some) australian aboriginal groups "wrap around" their kinship terms, so they can use a finite (but unbounded) set of dedicated words for arbitrarily complex relationship paths.

In particular, the example which led me to learn about this system was someone traversing something like "neighbour's cousin's friend's neighbour's adopted corella" and addressing him (once translated into english) as "uncle".

https://yidakistory.com/yolngu-malk-or-skin-names/
Sure, it may be bad design. The point is that nothing in the Rust language itself guarantees that memory safety bugs will be localized to unsafe blocks. If your code has that property it’s because you wrote it in a disciplined way, not because Rust forced you to write it that way (though it may have given some moral support).

Let me emphasize that I am not criticizing Rust here. I am just pointing out an incontrovertible fact about how unsafe blocks in Rust work: memory safety bugs are not guaranteed to be localized to unsafe blocks.
Discussion (59 points, 7 hours ago, 60 comments) https://news.ycombinator.com/item?id=40967101
I was about to say.
Another thing is svg sub tags. I assumed they count since they're valid HTML.

I was able to recall 48.
It’s just a simple example to illustrate the point. Realistic bugs would probably involve more complex logic.

The prevalence of buffer overrun bugs in C code shows that it very definitely is possible for programmers to screw up when calculating indices. Rust removes a lot of the footguns that make that both easy to do and dangerous in C. But in unsafe Rust code, you’re still fundamentally vulnerable to any arithmetic bug in any function that you call as part of the computation of an index.
> I suspect part of the problem is a generation of people raised with just enough economics knowledge to be dangerous, with life viewed through lenses of cost, profit and risk instead of joy, experience, and sentimentalism.

IMHO, I think that's part of the problem, but I feel that it's more than "just enough economics knowledge to be dangerous." That knowledge definitely interferes with the ability to analyze the problem, but I don't think it's the main or only thing going on. You could probably add something like "individualism" to the left hand side and something like "duty" to the right to get closer.
> It also forces discipline by carrying around the length.

LOL. It does not force anything - you can mishandle source or destination buffer lengths very easily and compiler won't say anything.

I sometimes wonder what kind of disaster will have to happen to make C programmers agree on a standard buffer (i.e. pointer+size) type with mandatory runtime bounds enforcement ....
This community may be of interest to you: https://community.cancerpatientlab.org/

It is comprised of very knowledgeble patients (like you) that are very actively involved in their treatment. I have been researching a lot of these resources due to my mother's condition, so feel free to let me know if you'd like to do some knowledge sharing.

Wish you all the best on your journey. God bless.
If that is what they are saying, then are just repeating what I said initially. They have a right to send ads, you have a right to block them. I'm not seeing what's getting lost in translation here.
I'd love to read the more detailed results, to have a better idea...
Both referendums and elections are fundamentally broken and not particularly democratic to begin with. Deliberative citizens assemblies are the future of democracy. Randomly selected citizens, selected by stratified sampling for representativeness, are able to deliberate at a farm higher standard of discourse than elected officials. Such assemblies have performed extremely well so far in Ireland, France and Belgium
The state is basically selling the oil in the land on consignment. The state sells the oil rights, the group who buys the oil rights sells the oil, and they send a part of the profit back to the state (there's at least taxes, and maybe fees or royalties--I don't know the financial details of the oil industry).

If someone "buys the oil rights" and doesn't sell any oil, they're cheating the state.
I worked for an overfunded startup that somehow got an article in TechCrunch despite the authors not understanding what we were doing but it's fair to say that everybody struggled with understanding what we were doing.

I tried to pitch a few other stories to their writers with no success.

My favorite writer of theirs from back in the day was Kim-Mai Cutler, I spoke with her once and got the feeling she would have been very receptive to a good pitch if I had it but at that time I didn't. It's no wonder she ran off to be a VC because she developed great industry connections doing what she was doing.
True but police are people too with their own expectations and morality and the number of police required to suppress a population is relatively large.

There's still enormous room for abuse, but automating suppression drops even the imperfect checks that we have on the power of the few to oppress the many
> feels like a ban on free speech

No. If the NSF gives you a grant to research cancer and you use it to make an interpretive dance video, they’re allowed to call you out for breach of contract. Similarly, if you pay a fee to enter a national park and then proceed to paint dicks on El Capitan, the rangers won’t be in a conniption about your First Amendment rights.
> Why did they shoot down the guy?

He had a gun aimed at the former president of the united states, and the priority is to eliminate the immediate present danger. Take 1 more second to incapacitate and maybe you've got a dead political candidate?
You never, ever shoot to incapacitate. Shoot to kill or don’t shoot at all.
Right to try makes this a variation of the Trolley Problem, because the person to pull the lever is the same person that's tied to the tracks.
Zod is amazing. Here's why we're also using TypeBox
There was a paper on this in the late 70s from the Cedar group at PARC. This was back when computer science papers were actual scientific papers, so full of analysis of different alogorithms' performance with counted vs delimited strings.
Counted strings won hands down on anything but strings so short the length was a large percentage of overall size.

Yet...since nobody reads the literature, we have all continued to suffer.
Lasers Could Solve the Plastic Problem
Google Drive-Like Storage Using React, Clerk, Vike and Cloudflare
Hey guys, I'd like some feedback from you regarding a CMS management app (inspired from google drive)
>Now it’s happening with car washes.

Yeah, I don't know what the correct number of car washes is to have, but I swear my city has enough for every car to wash every day with capacity left over.
"Light-driven C–H activation mediated by 2D transition metal dichalcogenides" (2024) https://www.nature.com/articles/s41467-024-49783-z
It's Wensleydale, as documented in "A Grand Day Out".
The volatility of stocks is much higher than that of bonds or some other asset classes. If your time horizon is shorter than, say, five years, or if you are the sort of person who checks your portfolio daily, keeping a portion of your portfolio in bonds will drastically reduce your personal volatility.

I have an inherited IRA that I am required to take mandatory withdrawals from; I keep part of it in bonds so that I don't have to sell my stock funds when they're down.
Force is too strong a word. Yes, it's possible someone just passes whatever, or just passes strlen(s) which is an even dumber answer.
Found this part interesting:

> [A]gents in Pennsylvania were unable to break into the phone. It’s been shipped to the FBI’s lab in Quantico, Virginia, where the FBI hopes to get past the phone’s password protection...

Thought standard Cellebrite hardware might've done the trick, but even their "Advanced Services" page[1] only mentions "iPhone 4S to iPhone XS/XR" and "iOS 5 to iOS 12" for "unlocking and extraction".

Does anyone know if that information is out of date?

[1] https://cellebrite.com/en/cas-sales-inquiry/
Hell yes. Also just citizens assemblies in general, whether for appointing officials or directly deliberating on issues. Turns out randomly selected citizens actually perform far better than elected officials.
Thanks! We've changed the URL to that from https://arstechnica.com/gadgets/2024/07/samsungs-abandoned-n... above.

Submitters: "Please submit the original source. If a post reports on something found on another site, submit the latter." - https://news.ycombinator.com/newsguidelines.html
Eh. There are a few liquor stores near me that are cookie cutter identical. The local weederies are no more of an eyesore than the alcohol stores.

Which isn’t to say I disagree with you, just that I don’t think we should judge them more harshly than their more traditional competitors.
I wish I could enforce meeting rules at work but they are dictated by TPTB. We recently had cameras forced on because management suspected people weren't paying attention. That is correct. The meetings are regularly derailed by someone, typically some kind of Product Manager, waxing poetic about whatever they think is important. Cameras-on made life even worse. Now I have to sit prim and proper in my chair for 30 extra minutes because no one will shut the malignant extrovert up. Work gets delayed, boredom sets in, etc.

I don't even know who to blame for this. It's really not much better than it was in person. In person meetings sucked more, as you had to be physically present to be talked at, and at least with a remote meeting I can just minimize the meeting and try to get back to work.

I would estimate 90% of my meetings are useless. 50% of the 10% remaining could be emails, and 50% are probably worth it. Why can't I just build software? Perhaps PMs and management should get their own meeting where they can just listen to themselves talk.
Senators should be appointed by citizens assemblies/elector juries imo.
- Sony briefly had a 'screenless' series of 'smart lens' cameras around 2014 - the Sony QX1 ( https://en.wikipedia.org/wiki/Sony_ILCE-QX1 ), QX10, QX30 and QX100 ( https://en.wikipedia.org/wiki/DSC-QX100 ) where you brought your smartphone to act as the screen. I think the concept at the time was just too abstract and clunky since it meant clamping on the camera to a phone, and probably had latency issues. They've also tried to make some high-end smartphones with better camera apps but it was a niche audience.

- RED also had some smartphones with a connector interface to supposedly add cameras, but the product line flopped pretty quickly.
echo 'The push will now exit with an error. No commits have actually been pushed.'

Is this part so that the temporary git objects are cleaned up? Or is there some other reason that it has to exit with error?
There was a short in the second batch of Love, Death and Robots[0] (Netflix), that had a cop, whose job it was, to kill children of "poors," as the rich could live practically forever, and didn't want the competition.

[0] https://www.netflix.com/title/80174608 (Volume 2: "Pop Squad").
Astronaut and accomplished pilot Joe Engle dies at 91
You could just sell it like cigarettes/booze at convenience stores and eliminate the whole need for weed shops on every corner, and just have specialty weed shops for higher stuff, like liquor stores.

If the gov required a full store to exclusively sell candy there'd be one on every block too.
Show HN: Projects from the Wolfram Summer Research Program
> White dude CEOs like Brian Armstrong and Jesse Powell came out hard against DEI efforts and even paid employees to leave, which led, incidentally, to morale at their companies so low it could be measured in millisieverts. But they were making money, baby, so it was all good.

> So, by all measures, Alexandr Wang’s MEI bullshit was just that, bullshit

Amazing, I don't think he gets it. His rant about white dudes while the person being critiqued is an Asian dude. You don't have to think hard about why Asian people might value merit in a system that previously penalized them for their race?

> Haje argued that Wang was a wang.

Comments like this really highlight the hypocrisy and lack of actual principle behind the stances of these people.
I purchased an item advertised as "fulfilled by Amazon" with Prime shipping. However, when I tried to return it, the seller insisted I pay $56 for overnight shipping. After returning the item as requested, the seller refused to refund my money, claiming the item had been opened, which wasn't true.

(But how do you prove it wasn't opened after the fact, especially when they have pictures of it opened? Shady!)

When I wrote a review detailing my experience, it was removed the next day because it focused on the seller's return policy. So now, I'm not only out $100 for the AC sensor itself but also $56 for return shipping. What's worse, I can't even warn others about the seller's shady practices.

My review included screenshots of the seller's communication, but all of it was removed. This allowed the seller to falsely imply they offer free returns when they clearly don't.

I'm frustrated that Amazon didn't provide real support and simply told me to use the seller's return system. And then to have them also censored my review... that all just leads to a junky experience for future buyers who won't have a full picture.

Compare this to Costco... ugh. Anyway, look I just want a human at Amazon to remember how much I spent there, and be like, "Oh great, we see you've had an account for 25+ years, we value that, we'll take care of you! We don't want shady sellers on our platform!" But... nope.
Negative caloric delta requires no capitalism.
See: calpers, where everyone in the organization is both non-finance and getting hoodwinked, often by their coworkers, often by their board! Notable for many things, including selling out of their hedge fund positions shortly before the pandemic, as well as becoming an extremely large owner of timber companies across the US for absolutely no good reason.

https://www.nakedcapitalism.com/category/calpers

edit: here's a more specific article that's very related to the OP https://www.nakedcapitalism.com/2023/11/should-calpers-fire-...
It's not the cycling that's the problem but that one can do nothing to stop it. People (perhaps including me) are dumb and insist on learning by making the mistake.
Totally. I can't wait for the photos at some point. The caves must have just moved to somebodies shortlist.
Isn't the head of Open AI involved in the "regulation" process? Seems a bit sketchy...
Pretty much this. We see it starting to happen already. When's the last time a really big company actually did something to improve its product for its users and thereby get more money from users, as opposed to either raising the price, or improving its product for people who are not the users at the detriment of the users? They do this because the users aren't where the money is - money is concentrated among rich people, and the best way to make more money is to pander to other rich people.
Its not like there is any shortage of alternative string libraries for C; sometimes I feel everyone has gone and invented their own.

Antirezs sds is just one example https://github.com/antirez/sds
>It's likely to result in a DDoS of the court system, but all existing regulations remain in effect until someone brings it to that one-judge jurisdiction in Texas with the judge that loves issuing nationwide injunctions.

But also SCOTUS shot down stare decisis, so another court at the same level can make the opposite ruling and that ruling also holds.

Someone is going to eventually take this ruling to it's logical conclusion: using "scientific mumbo-jumbo" to get a compound legalized/illegal. Hopefully it's something like, "SCOTUS bans all sales of all forms of dihydrogen monoxide", but there's the very real possibility of something far more sinister.
How do you know that won’t be sold to some other dumb org?
Demand can be easily manufactured, it seems. Just look at all the bullshit people buy, from fidget spinners to timeshares to ready-made chocolate cake.
Also:

https://www.nature.com/articles/s41550-024-02302-y

https://www.newscientist.com/article/2439470-deep-pit-on-moo...
I hate seeing Techmeme links because it always guarantees I'll need to click yet another link before getting to the original URL. It's like a useless middleman.
Warning: Don't click that link. Copy and paste the URL instead. That site serves only verbal abuse and harassment to people that it detects are HN users.
Sony QX series, as mentioned in my other comment: https://news.ycombinator.com/item?id=40970490
In the interests of moving this discussion in a positive direction, the comment you're replying to is correct. IEEE 754 doesn't specify correct rounding except for a small subset of elementary functions. In the 1985 version, this was the core +, -, *, /, and sqrt, but it was updated to include a few of the other functions when they were added. arctan is one of those functions which is not always correctly rounded due to the tablemaker's dilemma. If you read the latest standard (2019), they actually cite some of the published literature giving specific worst case examples for functions like arctan.

Even beyond transcendental functions, 754 isn't deterministic in practice because implementations have choices that aren't always equivalent. Using FMA vs separate multiplication and addition leads to different results in real programs, even though both methods are individually deterministic.
Creator solidarity, loneliness on social media, and the businesses behind it all
Just increase the initial payment and decrese the part proportional to the production.
Hyperbolic embeddings have been an interest of mine ever since the Max Nickel paper. Would love to connect directly to discuss this topic if you're open. here's my email: https://photos.app.goo.gl/1khCwXBsVBuEP6xF7