MurphyA/hacker-news huggingface dataset:
by swinglock | 2025-07-26 11:15:55+00:00
Popular allocators will indeed grow your allocation in-place without moving when possible. This is essentially the same as if you'd tracked it yourself in your vector and grown it once in a while, though it will work with bytes instead of number of items. See for instance the size classes in jemalloc at https://jemalloc.net/jemalloc.3.html. If you ask for 1 byte, you actually have 8 bytes, so realloc within the same size class will be cheap compared to actually moving.
by jbreckmckye | 2025-07-26 11:15:58+00:00
Laravel is fine. It's not amazing. Like most "Modern PHP" it exhibits a Java fetish and when used carelessly can degrade into an upside-down impression of Enterprise J2EE patterns (but with an almost non-existent type system).

What I find interesting though is the assumption that web dev is done by "JavaScript people", that even the best "JavaScript people" have no technical breadth, and therefore fester in a cesspool of bad ideas, unlike your median backend dev who swims in the azure lakes of programming wisdom.

Now, I've done plenty of SPAs, but I've also done plenty of other things (distributed systems, WebVR apps, metaprogramming tools, DSLs, CLIs, STB software, mobile apps, a smidgeon of embedded and hobbyist PSOne games). Which gives me the benefit of a generalist perspective.

One thing I have observed is that in each silo, there are certain programmers who assume they are the only sane group in the industry. They aren't interested in what problems the other siloes are solving and they assume any solution "over there" they don't understand is bad / decadent / crazy.

These groups all regard each other with contempt, even though they are largely addressing similar fundamental issues in different guises.

It's a social dynamic as much as any technical one.
by subhobroto | 2025-07-26 11:15:59+00:00
> Until setting up a private chatroom for your family is as easy as downloading an app on your phone

It already is - all my family and close friends are on our own Mattermost instance but it still has them have the same social apps everyone else has because two degrees out are not on our own Mattermost instance :)

This is absolutely ok! As the cost of providing a service becomes less subsidized and starts to reflect the true cost to service a user, more and more people are going to self-host. Hopefully federated networks take off then.
by bitwize | 2025-07-26 11:18:01+00:00
> Kids don't want to become engineers as result, they want to become content creators, tinkerers etc. Even rather good students with a lot of potential see all this engineering stuff more as a media career or a fun hobby.

Well, let's see, would you rather make your money slaving away in some corporation for absurdly low pay, or pointing a cellphone camera at yourself and attracting an audience of worshippers that could make you squillions with the right sponsorships?

The problem isn't the maker movement; it's the broader problem that "influencer" is the new "rapper". Everybody thinks they can do it, and the younger generations are so much disproportionately sicker with main-character syndrome that they think they deserve the fame and riches of the best and luckiest, even though the Cool Career Pigeonhole Principle says they probably won't get it.

I mean, ultimately, you gotta love the work itself, otherwise why bother. I love game development, but I know I'm never gonna be John Carmack, or even John Romero. I keep doing it for the satisfaction I get from doing the work. Maybe the maker community needs to emphasize that aspect more to counteract influenceritis. Or maybe we need to instill more of a sense of duty and responsibility in our young people, so that the smarter ones will step up and take on engineering jobs out of a sense of service to our civilization.

With narcissism being the defining characteristic of society in the USA, going into the highest reaches of power here, I don't know that that will be possible for a while yet.
by ralfj | 2025-07-26 11:18:30+00:00
> "arbitrary concrete behavior" means that at this point anything can happen on the real machine. This implies that everything before this point has to behave according to the specification. "is impossible" is stronger, as the whole program could behave erratically. But having partial correctness is important in a lot of scenarios and this is why we want to have it and in "UB" it is the former and not "impossible".

So that rules out "time-traveling UB", but it would still permit optimizing "x+y < x" to "false" for non-negative y, right? I can't tell if you think that that is a legal transformation or not, and I'd be curious to know. :)

FWIW I agree we shouldn't let UB time-travel. We should say that all observable events until the point of UB must be preserved. AFAIK that is e.g. what CompCert does. But I would still describe that as "the compiler may assume that UB does not happen" (and CompCert makes use of that assumption for its optimizations), so I don't understand the distinction you are making.

> In the ISO C standard, we use "unspecified" for a non-deterministic choice among clearly specified alternatives. So this is well understood.

Except for "unspecified value" which apparently can be very different from just non-deterministically choosing any value (https://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_451.htm). If "unspecified" always meant "normal non-deterministic choice", then this would clearly be a miscompilation: https://godbolt.org/z/9Gqqs7axj.

Quite a few places in the standard just say "result/behavior is unspecified", so the set of alternatives is often not very clear IMO. In particular, when it says that under some condition "the result is unspecified", and let's say the result has integer type, does that mean it non-deterministically picks some "normal" integer value, or can it be an "unspecified value" that behaves more like LLVM undef in that it is distinct from every "normal" value and can violate basic properties like "x == x"?
by FirmwareBurner | 2025-07-26 11:18:45+00:00
>women should be allowed to have a space to speak anonymously

It was only anonymous for the women speaking there, but not for the men they were speaking about, hence the justified outrage, since anonymous strangers are gossiping/slandering you in a public online space behind a 2$ entry fee.

Would you also support if men had their own such public "safe spaces" to gossip anonymously about real women with their names? I can assure you it would be shut down immediately.

So then why do we allow double standards where only one sex should loose their right to online privacy?
by ttiurani | 2025-07-26 11:19:00+00:00
> That's a localized date and time.

Note that I'm not arguing against storing the numeric part in a consistent format, of course you should. My point is that right mow in 2025 you don't know the timezone.

E.g. if you write that as the zones are now, it would be "2029-07-26T11:00:00.000Z", but if the timezones change, then when a person is looking at their calendar in 2029, they will be an hour early or late to the meeting.

So it's not about presentation of the timestamp, it's that the timestamp does not match what the user meant.

> In the same way, place names are localized.

I beg to disagree. All spellings refer to the same phyysical place, but you can't guarantee my example timestamp description and a simple ISO time representation without a geolocation will refer to the same singular point in time.
by riedel | 2025-07-26 11:19:17+00:00
I just thought the same and thought this was really some dark pattern not adding any trust. Also there is no really good examples or performance metrics.

There is stuff on GitHub that actually does similar stuff [0] [1] . We tried some pipelines a year ago for a project (understanding compliance relevant process diagrams) and it was still quite a challenge . Wonder what the state is now with all those vision llms and even if commercial how good that stuff is.

[0] https://github.com/Zackriya-Solutions/diagram2graph

[1] https://github.com/modhtom/Pic2Chart
by drew_lytle | 2025-07-26 11:20:28+00:00
Yeah, I chose to ignore the VPS angle because I feel like it presents essentially the same problems as self-hosting – just on rented hardware. It didn't really serve the story. But I get that omitting this makes it confusing for more tech-savvy readers. I use a VPS with Dokploy for hosting apps, but I don't know if I'd use it to host my photo library haha

Also, I'm actually working on jailbreaking my Kindle and will probably write a future article about that! Thanks for reading and commenting!
by luckylion | 2025-07-26 11:21:17+00:00
> I can’t understand why anyone would become emotionally invested in any of them.

I think that's simple: because they are financially invested in them. That's obvious for the developers working on the frameworks themselves or building libraries / plugins / UI-themes for them, but I believe it's also correct for "normal" developers who build things with these frameworks.

They know these frameworks and can use them, and they've made an investment in time to get to that point. Likely they're also making at least some of their money _because_ they know these frameworks. Emotional attachment follows the economic attachment, and then you'll get plenty of rationalizations.
by clippyplz | 2025-07-26 11:21:47+00:00
> If you say that [PWAs] lack certain features, then you confirmed my point that it's due to active sabotage and denial of equal rights

How does that follow?

More generally, do you have any sources for your repeated claims of intentional sabotage? You make accusations of ignoring evidence but you have provided none - unless you're saying that apple has already poisoned the well and anything they do is suspect.
by adrian_b | 2025-07-26 11:23:54+00:00
TFA says 75% round trip efficiency, compared to 85% for batteries.

While there is no leakage as such, the storage vessels might require continuous cooling, unless they are buried deep in the ground and they are very well insulated.

For great enough capacities, so that the costs of the turbo-generator and of the compressor become relatively small, the cost per stored kWh should become significantly lower than for batteries, especially when considering the far longer lifetime.

For small capacities, batteries are certainly preferable, but for very large capacities this should be a very good solution.
by pr337h4m | 2025-07-26 11:25:15+00:00
The most disturbing thing about this saga is that websites that have no physical/legal/business presence in the UK are proactively geoblocking UK-origin IPs.

Censorious governments have always been a thing since the beginning of the internet. Websites (especially non-corporate ones like 4chan or R34) preemptively surrendering to a foreign government that has no jurisdiction over them is what's new.
by photios | 2025-07-26 11:25:55+00:00
The "gain" TFA is describing is very very questionable too. You're losing a lot in terms of complexity.

You're going from a straightforward "Pydantic everywhere" solution to a weird concoction of:

1. Pydantic models

2. "Poor man's Pydantic models" (dataclasses)

3. Obscure third party dependencies (Dacite)

Thanks, I'll pass.
by olgs | 2025-07-26 11:26:53+00:00
I was also there and especially enjoyed seeing the number of parents with kids. The badge making area is always full of kids, and adult parents or staff/volunteers guiding them in completing the Open Sauce badge.

Getting to see and hold a 3D printed regenerative cooled liquid rocket engine was my personal highlight.

BPS.space (Joe Barnard) released a nice YouTube Short that also highlighted some favorites.
by drew_lytle | 2025-07-26 11:27:02+00:00
Thank you so much for your thoughtful comment! I think this is a great path to fight for. I think it's very funny that most people (in the U.S. at least) scoff whenever I talk about a "public, centralized provider for digital identity". There's so much governmental distrust. Meanwhile, everyone I know logs in with Google. Have a great day and thanks for reading!
by mandmandam | 2025-07-26 11:28:26+00:00
Here are some statistics for you to consider:

* Out of every 1,000 sexual assaults, approximately 310 are reported to the police.

* Of those reported, only about 13 cases are referred to a prosecutor.

* Ultimately, only about 7 cases lead to a felony conviction.

* For every 100 rapes reported, only 18 result in an arrest.

* Fewer than 7% of reported rape cases lead to a conviction.

* In some studies, the conviction rate for rape has been reported as low as 3.2% in certain jurisdictions.

Sources:

https://rainn.org/articles/what-expect-criminal-justice-syst...

https://www.uml.edu/news/stories/2019/sexual_assault_researc...

If you could imagine what girls and women go through, some on a daily basis, for years, since childhood, I think you might have a better understanding of why a "gossip app" might actually be a pretty sensible option for avoiding sexual assault and worse.
by ranguna | 2025-07-26 11:28:37+00:00
Makes sense, thanks for the reply!

I've never owned a pixel, but I'm planning on getting the pixel 10 so I can use the new android 16 Linux terminal with graphical support. I hope the pixel 10 will still fit your requirements and it won't be a hurdle to port GOS without the device tree. I see no other OEM supporting the level of virtualization with kvm and vergil Google is bringing to the pixels. Good luck!
by alexey-salmin | 2025-07-26 11:28:40+00:00
> But if I’m being honest, I think this claim that if you don’t own the book you don’t have the knowledge and society will turn into digital feudalism is hyperbole.

I dunno, when Roald Dahl e-books auto-updated to censored versions with no way to rollback it did feel distinctly dystopian.

If you think beyond kids, when a certain book is ruled illegal in a certain country it will disappear from internet-connected devices overnight. Seizing physical copies from people's homes is orders of magnitude harder.
by dns_snek | 2025-07-26 11:28:51+00:00
Should or shouldn't is a matter of opinion that I disagree with because it has no evidential basis. Downloading a free VPN isn't just doable, it's completely trivial in the privacy of your home and doesn't require any confrontation or risk unlike trying to buy alcohol or cigarettes illegally.

And that is before you consider that what you're ultimately doing, even if your blocking strategies were successful, is steering kids towards the darker markets where illegal and actually harmful content isn't removed and that don't care about your ID laws.
by Xylakant | 2025-07-26 11:29:49+00:00
You are misrepresenting how dilution works - and dilution usually is not what fucks you. Dilution is fairly straightforward - someone ponies up money and gets a share of the company. The valuation that gets handed around is usually what’s called “post money” - how much is the company worth after investors have paid in their money. In a simple example, matching your numbers, a company that is worth 10 million, with 10 million shares, each valued at 1 dollar with a 90/10 split finds someone who invests a billion dollars at 1 dollar per share. These shares are created as part of the acquisition. The value of the shares doesn’t change - the company, post money, now is valued at 1 billion 10 million and has 1 billion 10 million shares, each worth 1 dollar. It also happens to have 1 billion in cash at hand. No change in value for anyone here, but dilution happened - the person that owned 10% of the company pre-investment now only owns 0.1% - but the value of each share is still the same, which means they still own the same number of shares, each at the same valuation with the same total value.

The problem tends to be elsewhere - as part of the deal, the investor asked that his share get preferred treatment in the next round - a liquidation preference which grants them the right to first take their investment of the table and then, whatever is left is distributed. The company gets sold for 1 billion. The investor takes the billion that they invested off the table. There’s nothing left to be distributed. Your shares are suddenly worthless - just as the founders.
by SXX | 2025-07-26 11:30:03+00:00
UK is literally the only country except for China that pushed to disable Apple E2E encryption country-wide. It doesn't matter how secure Avanced Data Protection is and how trustworthy is Apple. Just think on it.

Also UK had law for years that can land you in prison for not providing decryption keys for data that you supposedly encrypyted. It's not actively used, but it's there.

So nope, there plenty of UK politicians from both parties that will happily push something that will invade your privacy. And really no one who push against it.
by jamil7 | 2025-07-26 11:31:08+00:00
> In every public-healthcare country, this happens.

Outside of Canada and the UK this isn't true.

> Because incentives are stacked against delivering to the patient and for increasing spendings.

Germany, The Netherlands and Japan all have regulated competition models.

> It’s the tragedy of the commons.

Public healthcare isn't a free for all, its regulated, actively managed and budgeted.
by elktown | 2025-07-26 11:31:41+00:00
> Developer experience - Yes, in most cases.

I think if people remembered how productive you could be before the SPA frontend/backend split they'd reconsider. Being able to take a feature from A to Z without either context-switching between ecosystems or, even worse, involving other people, was incredibly productive and satisfying. Not to mention a much more streamlined dev env without a bloated js ecosystem of bundlers/compilers and whatnot.
by sillyfluke | 2025-07-26 11:34:20+00:00
Yes I agree that could be the case, and people figure out which are the falsehoods by the act of gossiping as well, which is the point I'm making (like the anonymous salary data publishing site example I mentioned in another comment).

A generic example: Jack tells Bob Alice spiked his promotion (a lie), knowing they are not on speaking terms and thinking Bob won't confront Alice. If Bob gossips to Alice about what Jack said, he is in a healthier position to make an assessment about the situation.

Don't leave the gossiping to sociopaths is what I'm saying.
by uecker | 2025-07-26 11:35:17+00:00
Exactly! Why would I want to add my own memory management logic on top of the memory management logic that already exist.

One valid reason might be that I can't rely on realloc not be poor, but then I would rather use my own special allocation function. Other valid reasons would be to have very precise control or certain guarantees, but then I would prefer a different interface. In any case, I do not think that this logic belongs into my vector. But it is also possible that I change my mind on this...
by okayishdefaults | 2025-07-26 11:35:21+00:00
Some tools are better than others at specific things. AI as is commonly understood today is better at fuzzy problems than many other tools. In the case of programming and being able to tab complete your way through symbols, you'll benefit greatly from having tools that can precisely parse the AST and understand schemas. There is no guess work when you can be exact. Using AI assistants for simple tab completion only opens the door for a class of mistakes we've been able to avoid for years.
by NomDePlum | 2025-07-26 11:35:48+00:00
Under international law (specifically the Fourth Geneva Convention), an occupying power is prohibited from:

- Transferring its own population into occupied territory.

- Destroying property or forcibly displacing residents unless absolutely necessary for military operations.

A more accurate term than "taking" would be "annexed" or even "ethnic cleansing" as they are dispossessing those on the land.
by astrobe_ | 2025-07-26 11:36:16+00:00
> when somebody's first answer to a problem/inquiry is "you're not good enough or else you would see the lights" it raises alarms in my head.

You are kind of right about that, as it is often leads to the "No true Scotsman" fallacy [1]. On the other hand, one should be cautious of not using that as an excuse to give up when one has reached a progress plateau and the next learning curve looks steep.

[1] https://en.wikipedia.org/wiki/No_true_Scotsman
by shinycode | 2025-07-26 11:36:17+00:00
Yes I sacrificed the right ⌘ but the gain I have all day compensate for the few times I have to do ⌘ + p in one hand. You can cycle through and have a switcher yes. It’s really instantaneous to switch apps for me and I gain so much time for the main apps I use. You can summon them from any screen and virtual screen and it goes right to it without an other modal in the middle. All other tools I tried didn’t offer the same flawless UX
by gostsamo | 2025-07-26 11:36:30+00:00
I'm sure that the pydantic guys had a reason to rename .dict to .model_dump. This single change caused so much grieve when upgrading to pydantic2.1 The very idea of unnecessary breaking changes is a big reason not to over rely on pydantic, tbh.

1 we were using .dict to introduce pydantic in the mix of other entity schemes and handling this change later was a significant pain in the neck. Some python introspection mechanism that can facilitate deep object recasting might've been nice if possible.
by jon-wood | 2025-07-26 11:36:34+00:00
I’ve not done this in Python, where mercifully I don’t really touch CRUD style web apps anymore, but when I was doing Ruby web development we settled on similar patterns.

The biggest benefit you get is being able to have much more flexibility around validation when the input model (Pydantic here) isn’t the same as the database model. The canonical example here would be something like a user, where the validation rules vary depending on context, you might be creating a new stub user at signup when only a username and password are required, but you also want a password confirmation. At a different point you’re updating the user’s profile, and that case you have a bunch of fields that might be required now but password isn’t one of them and the username can’t be changed.

By having distinct input models you make that all much easier to reason about than having a single model which represents the database record, but also the input form, and has a bunch of flags on it to indicate which context you’re talking about.
by rpastuszak | 2025-07-26 11:37:52+00:00
Ha, my high school was named after a related event (https://en.wikipedia.org/wiki/Defence_of_the_Polish_Post_Off...)

Also known for a song about three boys, the youngest of whom—who, to put it mildly, didn’t have his life together—made a choice. (This is heavy dad-humour though.)

Trzech synów matka miała, Dwóch słynęło z mądrości, A trzeci, co był głupi, Poszedł do łączności!

That said, it's a paraphrase of an older song about WWI.

(the school was fine, and my dorm was a constant nerd-fest, so I am not complaining)
by brap | 2025-07-26 11:39:14+00:00
I’m far from being an experienced Pythonista, but one thing that really bugs me in Python (and other dynamic languages) is that when I accept an input of some type, like User, I have to wonder if it’s really a User. This is annoying throughout the codebase, not just the API layer. Especially when there are multiple contributors.

The argument against using API models internally is something I agree with but it’s a separate question.
by dns_snek | 2025-07-26 11:39:16+00:00
Kids aren't going to pay for a VPN, even if they had the option to. They're going to Google "Free VPN" and download the first option which will probably add their device into a "UK residential proxy" botnet. Everyone is getting something out of it, the state of UK cybersecurity is weakened further, and no money is changing hands, good luck stopping that.
by sokoloff | 2025-07-26 11:40:20+00:00
Eh. If 1 line of code in 500 has a trailing bit of punctuation scrolled off the side for 1 in 8 coders who have chosen to have both narrow windows and wide tabs, that hardly seems like a deal-breaker, but if it is, enforce common settings/standards.

(I'm fully converted to Team Spaces, but I also don't get too wrapped up in treating what seem to be soft limits as hard limits.)