MurphyA/hacker-news huggingface dataset:
by uecker | 2025-07-26 11:40:23+00:00
There are less annoying ways to implement this in C. There are at least two different common approaches which avoid having macro code for the generic functions:

The first is to put this into an include file

#define type_argument int #include <vector.h>

Then inside vector.h the code looks like regular C code, except where you insert the argument.

foo_ ## type_argument ( ... )

The other is to write generic code using void pointers or container_of as regular functions, and only have one-line macros as type safe wrappers around it. The optimizer will be able to specialize it, and it avoids compile-time explosion of code during monomorphization,

I do not think that templates are less annoying in practice. My experience with templates is rather poor.
by southernplaces7 | 2025-07-26 11:40:42+00:00
Take a good look at the world around us, and note especially how the countries in which sexual expression and by extension porn are heavily censored also coincidentally have some of the most sexually repressive and hostile attitudes towards women and consensual intimacy between adults of any kind in real life. People being allowed to express sexuality in sometimes crude and commercialized ways is not what you should be pointing at if you want to mention a dangerous progression of society toward violent attitudes around sex.
by ricardobeat | 2025-07-26 11:42:01+00:00
> will have class “font-heading-2”

At that point, why not write these in CSS instead? There is little advantage in using the tailwind shorthand classes in your own class definitions.

- You can use plain CSS variables for theming

- You're bringing back the supposed downsides of cascading and shared classes

- simple Gzip compression will achieve similar size reduction as the utility classes

Working on your codebase now requires full knowledge of the Tailwind utilities, layers, directives, pseudo-classes, theming, and all the complexity that comes along with them.
by geokon | 2025-07-26 11:42:19+00:00
i think its because the germans deliberately destroyed cities, like Warsaw (not sure if it was done as systemstically in other cities). they literally dynamited the old city and levelled it to the ground

https://en.wikipedia.org/wiki/Destruction_of_Warsaw

https://en.wikipedia.org/wiki/Pabst_Plan

Krakow was famously deliberately spared on Hitler's orders

i dont think the soviets did the equivalent. And they poured a lot of resources in to restoring the old town in warsaw after the war

Id love to be corrected if im wrong
by michaelt | 2025-07-26 11:43:02+00:00
Well, it all depends if the politicians actually care if this works.

You see, this bill was passed in 2023, under a Conservative government; then a Labour government was elected in 2024, before the bill came into force.

A nice little time bomb, set by the outgoing government - impractical and illiberal, but labelled all over with 'children' and 'cyber-bullying' and 'violent pornography'

So if the Labour government keeps the legislation, they look like heavy-handed censors silencing LGBT voices and local hobby/community forums, yet if they repeal the legislation you can criticise them for wanting children to have access to violent porn.

A Labour politician who thought this was shitty legislation, but who didn't think going on record as a pro-pornography voice would help his or her re-election prospects, might be entirely happy for age checks to be easy to bypass.
by 9dev | 2025-07-26 11:43:16+00:00
The problem is that you're equating the wide range of violence against women with a specific kind of violence against men by calling both "bad things", insinuating those are even remotely comparable. They are not. 90% of rape victims are female. In the US alone, every 68 seconds, a woman is sexually assaulted.

After the big war, some Germans were quick to point out that their people had suffered when they were displaced from the land they occupied in Poland, for example, and that "both sides had suffered". I assume you're also incapable of understanding why the victims of the Nazi regime were completely aghast by that?

> But it sure does (or should!) make anyone with a brain question hyperbolic claims of abuse or violence without actual evidence.

What do you suggest to do instead? Sexual violence is often a crime with only the perpetrator(s) and the victim as witnesses. In most cases, rape doesn't leave persistent traces. Rape victims tend to be in shock, however, and often need time to process what happened. Your suggestion seems to be that we should question these claims?

Judging these cases correctly is incredibly complicated, and claims of wide swaths of men falling prey to abusive women don't really help anyone affected.
by ivape | 2025-07-26 11:43:20+00:00
There are many paths to a fallen society. I'm not disagreeing with anything you said. The answer is always in the middle. I think we've gone pretty far with the proliferation of commercialized sex in the West, and they have gone pretty far with regards to repression in the East. AI is the first time as far as I can remember where just about everyone is considering the ethical and societal implications of it. We really didn't do that for porn, video games, and social media. We're late to the discussion, but a discussion about "how much sex exactly?" is always a discussion that needs to be had. I'd say the same for "how much money exactly?". How much comfort, how much wealth, how much power, how much, how much, how much?
by RansomStark | 2025-07-26 11:44:13+00:00
> Also UK had law for years that can land you in prison for not providing decryption keys for data that you supposedly encrypted. It's not actively used, but it's there.

It is actively used, it's just most people fold and hand over the data [0][1][2].

[0] https://www.bbc.co.uk/news/uk-england-11479831 [1] https://www.pinsentmasons.com/out-law/news/court-of-appeal-o... [2] https://news.sophos.com/en-us/2017/09/27/campaigner-who-refu...
by torginus | 2025-07-26 11:44:34+00:00
I'd say self-hosting on the verge of becoming ubiquitous and accepted.

The whole sales pitch of cloud providers is that instaling and maintaining a server is just too hard for the average Joe.

Thing is the average Joe already has at least 2 dedicated servers in their home - their router and their IoT hub. Both are designed to be servers, and talk to third party endpoints over the internet.

While I'm not crazy about IoT, I think we are reaching the point where most people have something digital in their house that makes sense to be networked.

And thanks to IoT stuff, running and managing servers has become a certified Dad activity, like woodworking and home improvement.

I know multiple dads, who had no prior exposure to IT, who have set up rather complex Raspberry Pi based home automation systems, managing all the complexity of setting up and running a server at home.

I think the skills and interest are proliferating, and it's no longer going to be accepted wisdom to just rely on some nebuluous remote cloud provider, esp for simple stuff.
by frankbyte | 2025-07-26 11:45:11+00:00
Yeah, that would be possible as well and probably for some interactive terminals better. I’ve found this handy, but maybe it’s just me personally.

Aliases are in my understanding in those cryptic terminal files, this is I suppose an attempt to make it more understandable with easy json structure and also make it shareable between team or machines.

But yeah, if you’re clever enough this probably doesn’t do anything you could achieve otherwise.
by jleyank | 2025-07-26 11:45:38+00:00
This seems to refer to software innovation, and it’s an open question whether much of the recent developments in software are innovations or “innovations”. Some people prefer privacy and less intrusive options…. European pharma/biotech seems to be doing ok, and they can make neat cars and planes when they put their mind to it. Come back in two years and review the overall tech and science scene to see whether the article needs revision.

CERN is pretty neat, too. Oh, and how much US innovation is really Indian innovation?
by Nevermark | 2025-07-26 11:46:01+00:00
> That's Henry George.

Yes! He was a very clear thinker. Refreshing when you find someone who manages to see things as they are, right in front of you the whole time, independent of the numbing filter of unexamined cultural momentum.

--

> the wealthy and powerful object to it

The poor, whose property to land ratio is high (even if they individually own very little in absolute terms), subsidize the rich whose property to land ratio is low (even if in absolute terms they own more). And it compounds, because this makes land, like Bitcoin, a place to park money and reap the rewards of other people's growing population demand for something limited, and other people's investment in development. So housing for anyone but the rich becomes more and more of a financial challenge. And market warping mechanisms are tried, like rent freezes, etc. But somehow, simply taxing the precious limited resource (land) more, and dropping the tax on developing useful property on land, which is what is required to increase housing, rarely gets tried. And as you say, quickly gets reversed when it happens.

So many ways the poor, middle class, and not so rich, pay the taxes of the very rich.

And the very rich do a very good job of framing things, so the want-to-be rich believe they need to keep things that way -- to their own, and everyone else's, detriment.
by spacechild1 | 2025-07-26 11:46:50+00:00
> my variable going out of scope does not generally mean I want to de-aquire that resource.

But it does! When an object goes out of scope, nobody can/shall use it anymore, so of course it should release its (remaining) resources. If you want to hold on the object, you need to revisit its lifetime and ownership, but that's independent from RAII.
by SXX | 2025-07-26 11:47:16+00:00
Are you absolutely sure you and your partner not changed default content filtering preferances on Steam?

Because Steam literally have settings in "Home > Account -> Store preferences -> Mature Content Preferences" with following options:

> Some Nudity or Sexual Content. Games or content that contain some nudity or sexual themes, but not as the primary focus.

This is where basically 99.9% of your normal games belong even if they have sex in them.

> Frequent Nudity or Sexual Content. Games or content that primarily feature nudity or sexual themes. By ticking this box you affirm that you are at least eighteen years old.

This is where all the sex VN slop belong.

> Adult Only Sexual Content. Games or content that are sexually explicit or graphic and are intended for adults only. By ticking this box you affirm that you are at least eighteen years old.

And this is porn.

I'm absolutely sure that "Adult Only Sexual Content" is disabled by default and pretty sure "Frequent Nudity or Sexual Content" disabled too.
by lazide | 2025-07-26 11:49:35+00:00
There is a reason ‘he said, she said’ is widely known as the shittiest type of situation, eh?

Yes, we should question those claims, and any others. Or everyone who wants to be shitty will do it via that route. It’s basic shitty human behavior.

That it screws actual victims is why people gaming the system should be punished.

But not challenging these claims just makes more victims too. And eventually people will just tune out accusations, because the shittiness has gotten too pervasive. And then the predators/shitty humans will get be doing more actual rape eh? Which is terrible.

This is why it’s also prudent to be very careful who anyone is alone with, favor video recording of public spaces, etc. as well. Because the best way to avoid a situation is to make it as difficult as possible for the situation to occur, and minimize the chances of any ambiguity. Which is also shitty for everyone.

Personally, I also don’t trust the stats because I’ve seen many (5+) women retcon clearly consensual behavior (that they were even bragging about before!) into ‘he raped me’ when someone tried to shame them for it later, or there was some leverage they could get out of it. I had one who literally admitted to me when I investigated that she was doing it to punish the guy for refusing to date her later. Another was fine until she went home and her mom gave her crap about her dating behavior, and then all the sudden it was rape. Until we started to interview her for her story, and then she admitted it was consensual.

I very much believe actual rapes and SA’s occur. I personally have literally never seen an accusation for rape or SA that stood up to even the lightest scrutiny, within the environments I’ve been responsible for. And not because I was trying to avoid them!

The joys of being a manager of mixed sex groups eh?

If we could figure out the actual truth of these situations, then we could punish actual offenders and not constantly be in this BS situation.
by tossandthrow | 2025-07-26 11:50:46+00:00
HN's search is hosted on Algolia, and is not a part of the HN "App".

Hacker news is not a SPA.

Algolia's search is a SPA, but is perfectly utilizes the search so you can refresh a page (besides the error that they don't use page-based search), and is largely indistinguishable from a non-SPA site.

> You can load entire HN

You obviously have not context what so ever on how much content is hosted on HN.
Ask HN: Claude Code–style agent, but Aider-like and model-agnostic?
by dsrtslnd23 | 2025-07-26 11:50:56+00:00
I don’t use UI-integrated coding assistants; I live in Aider. Mostly on Gemini 2.5 Pro, sometimes o3—after a while you learn which model shines at what.

I wanted something more agentic (simple things like edits across repos), and everyone kept hyping Claude Code. So I bit the bullet: signed up for Pro (Sonnet-only).

- Loved the agentic behavior—especially for debugging a distributed system (AWS CloudWatch/Lambda/SQS/CloudFormation). That would’ve been a ton of manual copy/paste pain in Aider.

- But the “Pro” subscription hit the wall after ~3 hours and Claude told me to wait “a couple of hours.” Disappointing.

Upgraded straight to Max, got Opus access. Nice—Opus is good. Sonnet, though, was a disappointment: lots of beginner mistakes I never see with Gemini 2.5 Pro or o3, so it just wastes my time.

Then I discovered my Opus quota was gone in under 30 minutes and I had to wait hours or fall back to Sonnet. Paying for something called “Max” and hitting brakes that fast reminded me why I avoid vague quota subs. (Later I learned you can theoretically use Claude Code via metered API, too.)

Main takeaways:

- Claude Code agent behavior is great (and I didn’t even touch MCP yet).

- Sonnet is bad.

- Opus is good—but basically unusable on a Max subscription!?

Question: Is there anything comparable to Claude Code but more Aider-style so I can plug in whatever LLM? I’ve seen some “hacks” to run Claude Code with other models via wrappers, but they feel half-baked.

What are folks using?
by reliabilityguy | 2025-07-26 11:51:27+00:00
What you are saying applies to militia/military-issued weapons. Private citizens with gun permit can buy ammo freely.

Here: https://www.swissinfo.ch/eng/society/many-guns-few-shootings...

Scroll down to “ I’ve heard that there are strict limitations on ammunition in Switzerland. Who can buy ammunition and how much can they acquire?”, the answer to which basically boils down to: anyone with a valid permit.
by diabllicseagull | 2025-07-26 11:51:29+00:00
same here. I'm always hesitant to build anything commercial over abstractions, adapter or translation layers that may or may not have sufficient support in the future.

sadly in 2025, we are still in desparate need for an open standard that's supported by all vendors and that allows programming for the full feature set of current gpu hardware. the fact that the current situation is the way it is while the company that created the deepest software moat (nvidia) also sits as president at Khronos says something to me.
by sillyfluke | 2025-07-26 11:51:32+00:00
I agree that this take should be very uncontroversial and innocuous under normal circumstances. Your other comment got flagged to death because commenting about being downvoted is against the guidelines.

Frankly I'm against downvoting people simply because I disagree with them, but I think you have to admit you haven't really addressed the problem mentioned in this thread. The whole issue here is the "a lie travels halfway around the world before the truth puts their boots on" phenomenon of the social media virality era.

It's a difficult problem to solve, but if you have a suggestion for allowing people to help others avoid abusive people without ruining innocent people's lives on the way I'm sure some people here would be curious.
by dgan | 2025-07-26 11:51:33+00:00
i have to confess , i use Protobuffs for everything. They convert to pure python (a la dataclass), to json strings and to binary strings, so i literally shove it everywhere : network, logic, disk.

BUT when doing heavy computation (c++, not python !) don't forget to convert to plain vectors, Protobuffs are horribly inefficient
by tgsovlerkhgsel | 2025-07-26 11:52:27+00:00
There are soo many examples from the US showing why GDPR is a good thing: Clearview AI (biometric mass surveillance, essentially "search the internet by face"), car manufacturers collecting and selling location data, phone companies collecting and selling location data, ISPs collecting and selling browsing behavior, companies running mass surveillance on license plates and selling the data to law enforcement and really anyone who pays, some DNA sequencing related abuses that I don't remember the details of, all the data collected by the ad "ecosystem" (note that this still happens in GDPR-land because enforcement is lacking), this, ...
by yedpodtrzitko | 2025-07-26 11:53:35+00:00
Just because it's written in Rust it doesnt mean it's fast. I was working on a project where Pydantic was the bottleneck - there were multiple levels of nested Pydantic objects, and creating the instances was very slow due to the validation which is performed on input values. Even after disablign the validation, dataclasses were twice as fast, compiling the dataclasses with mypyc improved the performance ten times.
by drew_lytle | 2025-07-26 11:53:41+00:00
Totally agree! I relied a lot on Claude Code to help me with issues I was having setting up hardware encoding in Immich. But I also think – as accessible as LLMs are as a tool – they still don't make the complexities of self-hosting trivial. Maybe they'll get there, but I feel like LLMs really are just another coding abstraction. It's like a programming language. You still need to know how the language works and how the underlying "bare metal" works to make anything reliably.

But, I could be wrong! Thanks for reading and commenting!
by microtonal | 2025-07-26 11:53:43+00:00
I had the iPod Touch and iPhone relatively early (well, much earlier than the general population). I don't remember Shazam being important at all, I think I only discovered it a few years later.

What blew pretty much everyone away that I showed it is how incredibly smooth web browsing was (remember, there were no apps on the original iPhone and even after that it took a little while for apps to really take off). Most smartphones at the time had clunky resistive touch screens or even little joysticks to move a mouse pointer. With the iPhone, you could scroll with your fingers and it was butter-smooth (at least for the day). The iPhone was a game-changer because you had a device in your pocket that you could browse the web with and it was at least as easy as on a desktop, if not easier.

Just for comparison, this is how you browsed the web at the time on probably the most iconic smartphone at the time (Blackberry):

https://www.youtube.com/watch?v=5NuQrjBIofo&t=6s

and on an iPhone:

https://www.youtube.com/watch?v=euNlVt60hwk
by elktown | 2025-07-26 11:54:49+00:00
When people complain about CSS being hard I'm not sure what parts of it really? It's rarely explained further too.

As someone that did a lot of CSS like 15 years ago when fullstack was the norm, then just sporadically for various non-public tooling, is that yes, the old ways of trying to position things really sucked and had a lot of hacks and some of those trail-n-error "how-does-this-change-the-elements-position" seems to still apply, but are much rarer now with grids/flex etc. But the structure of CSS itself is very straight-forward to me and has almost always been?

Is what's really going on that when people are trying to use vanilla CSS they go overboard with keeping CSS DRY? Which ofc ends up with an interdependent mess that's becomes increasingly harder to change. Just stop that? Start namespacing and copy pasting? CSS doesn't need to be compact.
by rtpg | 2025-07-26 11:55:24+00:00
To be fair I do think that Pydantic leaning into the type annotation story is nice. If you’re really going lean or performant the restrictions work well in your favor. Just like… for the bog standard B2B SaaS the expressivity tradeoff just doesn’t feel worth it.

In a more just world pythons typing story was closer to typescript’s and we could have a fully realized idea like it that supports the asymmetric nature of serializing/deserializing and offers nice abstractions through the stack

Right now Pydantic for me is like “you can validate a straightforward data structure! Now it’s up to you to actually build up a useful data structure from the straightforward one”. Other tools give me both in one go. At the cost of safety (that you can contain, but you gotta do it right)
by chrisldgk | 2025-07-26 11:56:21+00:00
Maybe this is a stupid question, as I’m just a web developer and have no experience programming for a GPU.

Doesn’t WebGPU solve this entire problem by having a single API that’s compatible with every GPU backend? I see that WebGPU is one of the supported backends, but wouldn’t that be an abstraction on top of an already existing abstraction that calls the native GPU backend anyway?
by frizlab | 2025-07-26 11:56:27+00:00
I’m on macOS and it’s alt-space.

Ctrl-space moves the cursor by “words inside words,” e.g. in theBestVariable, will go between “the” and “Best.” However it conflicts with the system ctrl-space that switch space. Not really an issue, because ctrl-shift-arrow will do the same word inside word move, but extending selection. In the end we can select until the desired location is reached, then hit a single left or right arrow to deselect and we’re there.
by drew_lytle | 2025-07-26 11:58:40+00:00
Haha! "Showing a lot of ankle" – I've never heard that before! Thanks for reading and commenting – very cool that you've managed to successfully host email. I'm sad advertisers and spammers have turned that into essentially an unusable technology.

Definitely a proud self hoster, but the main point is really that I don't think we're going to live in a world where self-hosting is the dominant method of using internet-based apps and services. Would love to be wrong though! Maybe we'll all be self-hosting email in a few years!
by fuzzfactor | 2025-07-26 11:59:39+00:00
This kind of thing doesn't seem like it complies with the Texas Deceptive Trade Practices Act.

https://texaslawhelp.org/article/deceptive-trade-practices-a...

It would be interesting to see what a legal expert has to say.

Either way, the right time may be now for Texans to formally request your money back, to preserve your rights regardless of warranty expiration.