MurphyA/hacker-news huggingface dataset:
by rob74 | 2025-08-21 10:18:12+00:00
> The final way is to just flood the Western markets with cheap garbage and alphabet-soup brands, and make up the lower margins in sales volume.

...and because they don't have a presence in the West and don't care about their brand(s), if the shit really were to hit the fan in such a big way that they can't just sit it out, they can simply drop that particular brand, while the remaining heads of the Hydra will be just fine.
by richardblythman | 2025-08-21 10:18:38+00:00
I think part of the reason i like Claude Code so much for non-technical organizational work, is that it's like a controllable memory with human in the loop (as well as a powerful general agent in the loop). Most of what i do is basically just doc creation and management. "Create this doc using this context and store it in this directory." In ChatGPT, I don't have much control or visibility over the memory.
by ActionHank | 2025-08-21 10:19:01+00:00
Whilst rust is a big part of this it is not the core of their innovation. Pushing everything to the GPU is.

Stating that everyone else is building on Electron belies your lack of exposure to any editors other than vscode \ atom spin offs.

Realistically all the editors including those based on Electron could easily shift to leveraging the GPU more and that would be big leap forward for performance.
by mananaysiempre | 2025-08-21 10:19:09+00:00
> Extensibility

> [Data] The schema gives us a fixed set of variants, over which you can of course write any function you want.

> [Objects] We have a fixed set of exposed operations, but different variants can be constructed (including an improved ability to evolve a variant without impacting clients).

No mention of the expression problem? The TL;DR is, sometimes[1] we want both. And sometimes[2] it’s an exceptionally good idea for a lot of slightly different sets of variants to coexist withn the same program, which there also isn’t really a satisfactory solution for.

[1] https://www.craftinginterpreters.stuffwithstuff.com/represen...

[2] https://nanopass.org/
by bamboozled | 2025-08-21 10:23:51+00:00
What on earth happened to free market capitalism, now you don’t want it? You want government intervention in the price of goods to manipulate outcomes ? Make up your mind and make it up quickly because I don't think the world will wait.

People buy cheap junk because it’s cheap. Why do you think so few people buy American made tools ? Your government is now forcing you to buy expensive goods and you’re, “happy with it”? It’s wild. I’m one of those people who always purchased USA, British , Australian, I still but I've had to watch many of my favourite brands lose their soul and offshore only because consumers chose to stop supporting them. It was the choice of consumers. It's just the sad reality, I'm certain the fix isn't government intervention though.
by Theodores | 2025-08-21 10:24:21+00:00
It was a 1 x 9 print head and you could get 132 characters per line as well as the normal 80, plus variants such as 40 and 66 characters per line, where things must have been doubled up with the motor running at the same pitch, hence the 12x9 you refer to.

I only became familiar with the later FX-80, which was the same but different. I managed to get logos printed along with neat boxes around information from the extra characters it had in PCL.

I am sure NLQ was a selling point of the FX-80 but I would like to see how good it was on the MX-80. At the time printers from Epson, HP and Canon were miracles of engineering, more advanced than the computers they were connected to.
by michaelt | 2025-08-21 10:24:43+00:00
It depends on your precise requirements and assumptions.

Does your definition of 'privacy-preserving' distrust Google, Apple, Xiaomi, HTC, Honor, Samsung and suchlike?

Do you also distrust third-party clowns like experian and equifax (whose current systems have gaping security holes) and distrust large government IT projects (which are outsourced to clowns like Fujutsu who don't know what they're doing) ??

Do you require it to work on all devices, including outdated phones and tablets; PCs; Linux-only devices; other networked devices like smart lightbulbs; and so on? Does it have to work in places phones aren't allowed, or mobile data/bluetooth isn't available? Does the identity card have to be as thin, flexible, durable and cheap as a credit card, precluding any built-in fingerprint sensors and suchlike?

Does the age validation have to protect against an 18-year-old passing the age check on their 16-year-old friend's account? While also being privacy-preserving enough nobody can tell the two accounts were approved with the same ID card?

Does the system also have to work on websites without user accounts, because who the hell creates a pornhub account anyway?

Does the system need to work without the government approving individual websites' access to the system? Does it also need to be support proving things like name, nationality, and right to work in the country so people can apply for bank accounts and jobs online? And yet does it need to prevent sites from requiring names just for ad targeting purposes?

Do all approvals have to be provable, so every company can prove to the government that the checks were properly carried out at the right time? Does it have to be possible to revoke cards in a timely manner, but without maintaining a huge list of revoked cards, and without every visit to a porn site triggering a call to a government server for a revocation check?

If you want to accomplish all of these goals - you're going to have a tough time.
by theshrike79 | 2025-08-21 10:25:49+00:00
Different strokes and all that. Some people are really goal driven and NEED that north star to aim for.

I'm not in that group. I just go with the feels and flow and if something interests me, I go there and investigate if it's fun.

If I had followed my "plan" from a decade+ ago, I'd be a middle manager / scrum master in a small/medium company with an ulcer and SSRIs. Maybe next in line for regional manager.

Had an opportunity to do something different and more varied, took it. Haven't regretted for a second.
by cloudbonsai | 2025-08-21 10:26:04+00:00
You haven't seen the full depth yet. Suppose that you encountered with this line:

print(f"{n:.2g}")

What will it print? Here is the official explanation from https://docs.python.org/3.12/library/string.html#formatspec:

g - General format. For a given precision p >= 1, this rounds the number to p significant digits and then formats the result in either fixed-point format or in scientific notation, depending on its magnitude. A precision of 0 is treated as equivalent to a precision of 1. The precise rules are as follows: suppose that the result formatted with presentation type 'e' and precision p-1 would have exponent exp. Then, if m <= exp < p, where m is -4 for floats and -6 for Decimals, the number is formatted with presentation type 'f' and precision p-1-exp. Otherwise, the number is formatted with presentation type 'e' and precision p-1. In both cases insignificant trailing zeros are removed from the significand, and the decimal point is also removed if there are no remaining digits following it, unless the '#' option is used. With no precision given, uses a precision of 6 significant digits for float. For Decimal, the coefficient of the result is formed from the coefficient digits of the value; scientific notation is used for values smaller than 1e-6 in absolute value and values where the place value of the least significant digit is larger than 1, and fixed-point notation is used otherwise. Positive and negative infinity, positive and negative zero, and nans, are formatted as inf, -inf, 0, -0 and nan respectively, regardless of the precision.

Make sense? You now should be able to see why it's called f-string.
by mschuster91 | 2025-08-21 10:26:37+00:00
Because I don't have the fucking time to deal with AI scraper bots. I went harder - anything even looking suspiciously close to a scraper that's not on Google's index [1] or has wget in its user agent gets their entire /24 hard banned for a month, with an email address to contact for unbanning.

That seems to be a pretty effective way for now to keep scrapers, spammers and other abusive behavior away. Normal users don't do certain site actions at the speed that scraper bots do, there's no other practically relevant search engine than Google, I've never ever seen an abusive bot hide as wget (they all try to emulate looking like a human operated web browser), and no AI agent yet is smart enough to figure out how to interpret the message "Your ISP's network appears to have been used by bot activity. Please write an email to xxx@yyy.zzz with <ABC> as the subject line (or click on this pre-filled link) and you will automatically get unblocked".

[1] https://developers.google.com/search/docs/crawling-indexing/...
Show HN: Kickpredict – Simple Soccer march analysis ans statistics by AI
by canercbo | 2025-08-21 10:26:47+00:00
Hey everyone, I’ve been working on a little side project: a website where I collect and display stats from soccer games (and I could expand it to other sports too).

The main idea isn’t to predict matches or do betting tips — it’s more about having a clean, easy-to-read overview of stats like: • Team performance across the season • Head-to-head comparisons • Player stats (goals, assists, cards, etc.) • Match summaries and trends

Right now it’s pretty simple, but I’d like to make it genuinely useful for fans who just want to explore numbers without drowning in clutter.

I’d love to hear your thoughts: • What stats do you usually look for when checking up on games? • Anything you wish other sports stats sites did better? • Features that would make you actually bookmark and revisit it?
by marcyb5st | 2025-08-21 10:28:57+00:00
Googler, but opinions are my own.

I disagree. The design phase of a substantial change should be done beforehand with the help of a design doc. That forces you to put in writing (and in a way that is understandable by others) what you are envisioning. This exercise is really helpful in forcing you to think about alternatives, pitfalls, pros & cons, ... . This way, once stakeholders (your TL, other team members) agreed then the reviews related to that change become only code related (style, use this standard library function that does it, ... ) but the core idea is there.
by lionkor | 2025-08-21 10:29:51+00:00
I really like putting context into commits, not into code comments. The reasoning is pretty simple: Comments aren't checked. I might write "This is done this way because John Doe suggested it, it's much more efficient this way", and then someone else changes the code to be buggy, wrong, and slow. Now, the comment is explaining behavior that is no longer there, and wrongly suggests that the code does/means something it doesn't.

Another argument is comments-as-noise, as I would call it. The more "unnecessary" comments you write, the more core developers (who write and read most of the code), will learn to ignore comments. Then, critical comments like "Be careful not to call this when XYZ isn't initialized yet, unless you don't mind ABC happening" are ignored, and ta-da! comments are now useless.

Commit messages are attached to specific changes. If I want to know why a line of code is the way it is, I can git blame it, and see which commit is to blame, together with issue numbers, authors, maybe reviewers, context, history, etc.

Should there be a comment briefly explaining this patch? Probably. But the commit message should add the other context.
by rfoo | 2025-08-21 10:30:34+00:00
... except when you do not crawl with a browser at all. It's so trivial to solve just like the taviso post demostrated.

This makes zero sense, this is simply the wrong approach. Already tired of saying so and been attacked. So I'm glad professional-random-Internet-bullshit-ignorer Tavis Ormandy wrote this one.
by awongh | 2025-08-21 10:31:55+00:00
The thing is that you can now ask the LLM for links and you can ask it to break down why it thinks a piece of code, for example, protects the bucket from being public. Things that are easy to verify against the actual docs.

I feel like this workflow is still less time, easier and less error prone than digging out the exact right syntax from the AWS docs.
by throwawayffffas | 2025-08-21 10:32:09+00:00
It's not really hijacked computers, there is a whole market for vpns with residential exit nodes.

The way i think it works is they provide free VPN to the users or even pay their internet bill and then sell the access to their ip.

The client just connects to a vpn and has a residential exit IP.

The cost of the VPN is probably higher than the cost for the proof of work though.
by JPKab | 2025-08-21 10:32:19+00:00
Ironically, you are responding to a person who has the attitudes that his supporters believe the entire world has: They don't like Americans unless they are engaging in unequal trade where they sell goods at vastly lower tariff rates than they apply to US imports.

They have no problem with China destroying their fisheries, and joining with India to buy tons of Russian oil and finance the destruction of Ukraine, while simultaneously emitting vastly more CO2 than the US does.

They just want free defense, one sided "free trade" and the minute they stop getting it, they hate everyone in this country.

I don't agree with this attitude, but the commenter absolutely embodies it. This whole thread embodies it. It's the kind of thing I would send to a bunch of swing voters to persuade them to continue to support these policies.
by 63stack | 2025-08-21 10:32:51+00:00
While the question of "is it actually possible to do this in a privacy preserving way?" is certainly interesting, was there ever a _single_ occasion where a government had the option of doing something in a privacy preserving way, when a non-privacy preserving way was also possible? Politicians would absolutely kill for the idea of unmasking dissenters on internet forums. Even if the option is a possibility, they are deliberately not going to implement it.
by Ekaros | 2025-08-21 10:32:53+00:00
In the end as outside I see that you have allowed system to end in place where very divisive candidate won. Maybe if decades ago you had worked towards direction where there was more than two options it could be different... And if the other side would have fielded something that got the other side as passionate as Trump does with his base.

Whatever you say at least Trump has truly passionate base. Or will next Democrat nominee be Harris?
by Dylan16807 | 2025-08-21 10:34:37+00:00
> It's not exploitable.

The article doesn't say it is.

> It's an exploit mitigation, in fact.

The article made that clear.

> It's not a bug; it's intentional that it works this way.

What is "this way"? Trap or jump? If you're saying a jump is supposed to count as a trap, it's a pretty bad one. It still allows a lot of jumps to the padding to continue and execute valuable code.
by bflesch | 2025-08-21 10:36:19+00:00
Oh, thanks for the pointer. I've seen it before but never used it. Can it compile a Windows exe file on my Linux system?

Edit: I can't seem to find a clear mention of cross-compilation on the lazarus website, and a web search points me to several free pascal wikis. On the Lazarus IDE website it mostly mentions that Lazarus IDE itself can run on both Windows and Linux. Ideally I'd do everything on Linux and ship an exe to Windows, but this seems to be very hard to do nowadays.
by theshrike79 | 2025-08-21 10:37:13+00:00
One more quote:

Neil McCauley (Robert De Niro) in Heat: A guy told me one time, "Don't let yourself get attached to anything you are not willing to walk out on in 30 seconds flat if you feel the heat around the corner."

Even if your heart is set on becoming the greatest at X and have the scrapbooks and timelines to prove it, don't hesitate to go for Y instead if it feels better and excites you more than doggedly sticking to The Plan
by benchly | 2025-08-21 10:37:49+00:00
As an aside, this is not the first time I've seen a discussion (mine and your comments) about racism downvoted on HN. It makes me question the crowd I'm attempting to mingle with, here.

I get that the site is primarily concerned interesting tech-related things, but if anyone thinks that we can just avoid politics, social and economic issues that tend to surround those things once in awhile, they're delusional.
by robertlagrant | 2025-08-21 10:38:22+00:00
That's still not saying what it is, though. Is it a thing you put in front of your backend to allow/deny requests? Is it an endpoint something like nginx calls with an auth token and the http verb and url that responds with 200/403 that nginx can react to? Is it a library you embed in your application? Is it an agentic AI?

It's as though you're describing a car to someone who's never seen a car before by listing all the places you can go in a car.
by nmeofthestate | 2025-08-21 10:38:34+00:00
I'll keep using self-checkouts because they're fine and frequently faster than using a non-self-checkout. There are a few minor headaches like hair-trigger sensitivity of the weight sensors. I don't care in the slightest that a camera is filming to try to deter thieves - don't consider that a downside. The security measures are a bit depressing but only in what they say about where society is going with respect to theft from shops.
by immibis | 2025-08-21 10:39:01+00:00
The USA should do, perhaps, four fifths of that. Despite having 4% of the world's population it has 25% of the world's prisoners, and one of the highest crime rates in first-world countries so it'd obviously not working.

They could also consider banning substances that make people more aggressive... There's a particular artificial pesticide whose name I don't remember, which is coincidentally banned in all the places with much lower crime rates, and has been shown to alter behaviour in monkeys.
by bko | 2025-08-21 10:39:21+00:00
What do you mean "this just doesn't work"?

You do understand that an overwhelming majority of crime and overall anti social behavior is done by a tiny percentage of people. Remove those people and you spare the rest of us.

For instance, the number of prisoners that have had 15 or more prior arrests is over 26%.

You can just have a 15 strikes and you're out policy and make a huge impact. Once these bad actors are out of society, high trust can be built. Stop letting a tiny percentage of people terrorize the rest of us.

It's not about poverty and ironically the biggest victims of this criminal behavior are poor people. Poor innocent people deal w theft, getting hassled and other consequences of criminal behavior at a much higher rate. It's not compassionate to let them suffer.

https://mleverything.substack.com/p/acceptance-of-crime-is-a...
by Towaway69 | 2025-08-21 10:39:44+00:00
> Because data is fully immutable, you get a lot of nice things "for free"

This. I discovered this by implementing Flow Based Programming[1] (FBP) in Erlang[2] - the FBP is best suited to languages that are message based and immutable data structures. When using a mutable language, messages are constantly being clone as they are passed around. This does not need to be done using Erlang/BEAM.

My feeling is that FBP is a much under-rated programming paradigm and something really worth exploring as an alternative to the current programming paradigms.

My take on FBP is that data is being passed to functionality, as opposed to function being passed to data - the functional programming paradigm, or data and function is passed around as is the case with OOP.

IMHO it makes sense to pass data to functions, particularly in the times of SaaS and cloud computing.

[1] = https://jpaulm.github.io/fbp/index.html

[2] = https://github.com/gorenje/erlang-red
by WillAdams | 2025-08-21 10:39:47+00:00
>Python still isn't where BASIC was in the 1990's.

As a person who is still quite bummed that he compleatly missed VisualBASIC for various reasons, and is even more disappointed that Livecode rug-pulled their opensource version, and has never found a GUI development system for Python which feels comfortable, this rings true.

Still working to finish up my current project (essentially text-based 3D modeling using (Open)PythonSCAD), and suffering analysis-paralysis for the successor to it (a scriptable drawing program which integrates with it), but hopefully something obvious will present itself for cross-platform opensource graphical app development.
by graemep | 2025-08-21 10:40:03+00:00
Into whose arms precisely? India into China's? Not likely! This is what the US government is counting on - they only need to be a better alternative than China.

The US has a lot of power, that only China comes close to matching. The dominance of the US in certain fields (like IT hardware, software and services, payment services) makes most countries dependent on the US.

> The great brands are going to go more and more offshore, like Apple or Google already does.

Offshore what? Manufacturing? US tariffs do not affect offshoring to sell to other countries, but the US is a huge market for all those brands.
by rfoo | 2025-08-21 10:40:41+00:00
> and frankly, it likely will only need to work until the bubble bursts, making "the long run" irrelevant

Now I get why people are so weirdly being dismissive about the whole thing. Good luck, it's not going to "burst" any time soon.

Or rather, a "burst" would not change the world in the direction you want it to be.
by theshrike79 | 2025-08-21 10:41:58+00:00
In Rotten Tomatoes there's always That Guy who's being contrary for the sake of being different.

Like Paddington and Paddington 2 had 100% review scores for a long time, until some "reviewers" disliked it on purpose bringing Paddington 2 to 99%

Using multiple sites as an aggregate works. In IMDB you need to check the vote distribution graph and in your mind take out all the 1's and 10's and see where the average/median lies after that.

And it's important to find actual reviewers whose taste aligns with yours and use them as more directed guidance.
by account42 | 2025-08-21 10:43:57+00:00
> There are antiabuse systems that do incur asymmetric costs on automated users. Youtube had (has?) one. Rather than simply attaching a constant extra cost for every request, it instead delivered a VM (through JS) to browsers, and programs for that VM. The VM and its programs were deliberately hard to reverse, and changed regularly. Part of their purpose was to verify, through a bunch of fussy side channels, that they were actually running on real browsers. Every time Youtube changed the VM, the bots had to do large amounts of new reversing work to keep up, but normal users didn't.

That depends on what you count as normal users though. Users that want to use alternative players also have to deal with this and since yt-dlp and youtube-dl before have been able to provide a solution for those user and bots can just do the same I'm not sure if I'd call the scheme successful in any way.