MurphyA/hacker-news huggingface dataset:
by muzani | 2025-08-22 09:51:10+00:00
Repeated code. Like SingleFormDialog() and SimpleDialog(). PositiveButton() and PrimaryButton(). Humans do this, but only when different people wrote the classes.

Tests that are not connected to anything. You'll have FooTest but it's all mocks, never connect to Foo. My favorite was something like Assert('this function is able to destroy a planet') which returns true as just because it asserted a string.

Comments as signboards where to go next.

Really specific comments like `Alice function has been moved to RepositoryAlice`. Especially things that nobody would ever ask about.
by account42 | 2025-08-22 09:51:51+00:00
> Eg maybe insert “a” at position 0 is valid, but inserting at position 1 would be invalid because it might insert in the middle of a codepoint.

You have the same problem with code points, it's just hidden better. Inserting "a" between U+0065 and U+0308 may result in a "valid" string but is still as nonsensical as inserting "a" between UTF-8 bytes 0xC3 and 0xAB.

This makes code points less suitable than UTF-8 bytes as mistakes are more likely to not be caught during development.
by webworker | 2025-08-22 09:53:22+00:00
I personally prefer the Power Macintosh 6100 form factor, but even I can appreciate the goofy personality of Apple’s engineers to tease Carl Sagan with a first-generation PowerPC Macintosh. “Cold Fusion” on the 8100 was probably the coolest name of the series, while the poor 6100 got stuck with “piltdown man.”
by thaumasiotes | 2025-08-22 09:53:22+00:00
In the United States, carts are free. There is a stereotype that homeless people have shopping carts in which they keep their things.

There's no particular need to change this, because one person can only use so many shopping carts. If you maintain the price at "free", demand saturates and people stop stealing carts.

It's common for people to return carts to a designated area, and it's also not rare for people to just leave the carts somewhere convenient for them. Store employees periodically go around and move the carts back to the place where you expect to pick them up.

Costco is an interesting hybrid case. They make it easy to return the carts "correctly" by providing little depots scattered throughout their enormous parking lot. Realistically, the parking lot is so large that very few people would be willing to return a cart to the front of the store, where you get the cart from if you're going shopping.

However, people also aren't going to pick up carts from those depots deep within the parking lot and wheel them over to the store. So Costco employees still have to make rounds of the parking lot and move carts that have been left there to their correct location at the front of the store. But for Costco, you're supposed to leave the cart in the parking lot, but only in certain locations.
Show HN: Zen Lake – 50B-digit π computation on modest hardware
by mikihiyamada34 | 2025-08-22 09:53:25+00:00
I computed 50 billion digits of π using y-cruncher on a 10-year-old PC. The run took ~22 hours and used a reproducible setup I call Zen Lake Architecture. It isolates swap, binaries, and output for stability, and the README is minimalist and poetic.

The goal is to democratize high-precision computation and make trillion-digit π runs accessible to students and researchers worldwide.

GitHub repo includes English and Japanese README files, benchmark logs, and MIT License. Feedback and reproducibility reports are welcome.

“The lake where π swims is made of 64KB grains.”
by simonask | 2025-08-22 09:54:16+00:00
That's a reasonable implementation in my opinion. It's not that complicated. You're also apparently insisting on three-letter variable names, and are using a very primitive language to boot, so I don't think you're setting yourself up for "maintainability" here.

Here's the implementation in the Rust standard library: https://doc.rust-lang.org/stable/src/core/str/validations.rs...

It even includes an optimized fast path for ASCII, and it works at compile-time as well.
by Sweepi | 2025-08-22 09:54:16+00:00
> I would say that nearly everything in the real world (outside math) especially computer related uses top left as an origin.

I concede that point, its not want to meant, but I did express my point poorly.

My point is: - A lot of things work like books[1]: top-left to bottom-right - However, 99+ % of graphs (anything from revenue numbers to health data) in all mediums (books, newspapers, websites) use a bottom-left origin. Never seen a revenue bar growing from top to bottom. In fact, I dont remember the last time i have seen a graph not using the I. Quadrant. Do you? - D3.js (imo) is a lib to create graphs from data, but does not abstract this problem away? Why?

[1] "western/latin"-style books ofc
by Razengan | 2025-08-22 09:57:40+00:00
> I came to a decision. It was time to leave modern macOS behind.

It was the opposite for me: I decided to leave Windows behind after a mounting cascade of frustration and disappointment with Microsoft and Their Way of Doing Things.

Fast forward to Now: I'm still happy on macOS Tahoe. Apple does some dumb annoying shit too but it hasn't yet gotten to the point where I give up computing altogether and retire to a Tibetan monastery. Or switch to Linux. Whenever I get to look at the current state of Windows it has nothing that makes me want to go back. Sure, like an ex it still has a few things that you wish you could still enjoy, like a few games, but then you remember why you left them in the first place.

Some of the things that irk me the most about macOS:

• The dumbness or complete lack of documentation about some specific things, specially on the developer side.

• Some features touted as hot and sexy during a new release's PR wave and then rotting in a half-baked state.

• Some minor bugs remaining unfixed for years.

• Most improvements being tied to a major version cycle, even if they could easily be shipped in a minor monthly/quarterly update.
by muzani | 2025-08-22 09:58:15+00:00
X is the 4chan of 2025. Porn, politics, racism, "hot takes", but with more celebrities and less anonymity. It's a little worse because people think they can make money dunking on others.

Reddit's group think can be a little weird. There was a phase where r/openai was full of OpenAI haters. r/writers was full of people who would dunk on Stephen King and JK Rowling. r/cooking was full of people who think that cheap wine should be used for cooking. That was my frustration with reddit. At least with HN, only half of the community hates AI and NFT.
by whizzter | 2025-08-22 09:58:22+00:00
Considering our past and the Finnish progress (they considered following us in the 80s/90s as they had done but stopped), 19th is an disappointment.

Having teenagers that's been through most of the primary and secondary schools I kind agree with GP, especially when it comes to math,etc.

Teaching concepts and ideas is _great_, and what we need to manage with advanced topics as adults. HOWEVER, if the foundations are shaky due to too little repetition of basics (that is seemingly frowned upon in the system) then being taught thinking about some abstract concepts doesn't help much because the tools to understand them aren't good enough.
by vidarh | 2025-08-22 10:02:41+00:00
> The thing is, what you are serving to the browser is always a View-Model. If you serve a Model instead you are just "silently casting" it onto a View-Model because at that moment they are identical. Sooner or later the need will arise to imbue this with some presentation specific information attached on the fly to data from your data layer Model.

There's a huge difference in the level of presentation specific logic you include, though. E.g. between including the publication date of something vs. including the publication date in 4 different ways because it needs to be presented in 4 different ways in different formats and templates. One is about having to ensure a superset of the information required is available, and that superset can often involve very limited overhead (and can even end up being "cheaper" through being able to have fewer, more heavily accessed, cached items), while the other means you need to closely couple it to specific details of the presentation.

> I no longer try to use XSLT either, but I think web components are completely orthogonal tool. Your XSLT could still generate web components if you like. You could even "hydrate" generated HTML with React for interactivity.

Web components alone maybe, but combined with a higher level framework that also lets you do server side rendering, we're back to being able to serve up a single format and choose to transform it either on the server side or client side as needed, without the pain of XSL

> Your XSLT could still generate web components if you like.

Yes, but I wouldn't gain anything at all from that other than the pain of dealing with XSLT.

> What XML+XSLT was solving was basically skipped entirely by programmers.

Because XML+XSLT wasn't solving it in a way that was good enough even for people like me who badly wanted to like it. We got it to work, but neve
by thomashabets2 | 2025-08-22 10:03:17+00:00
Under load it's zero syscall (barring any rare allocations inside rustls for the handshake. I can't guarantee that it never does).

Without load the overhead of calling (effectively) sleep() is, while technically true, not relevant.

But sure, you can tweak the busyloop timers and burn 100% CPU on kernel and user side indefinitely if you want to avoid that sleep-when-idle syscall. It's just… not a good idea.
by joshstrange | 2025-08-22 10:03:44+00:00
My preferred method of finding something to build (assuming I don’t already have an idea I’m passionate about) is to pair up with someone who has deep industry knowledge in a non-tech industry (or any industry I’m not well versed in). Take their knowledge with your skill set to create a tool/platform/whatever for the given industry.

I find that vast majority of people, even top people in another field, don’t have a good grasp of what is possible with technology. I don’t say that to make them sound dumb, just they don’t know what they don’t know. You get to be the one who can suggest technologies they can use, either existing things you can glue together and/or custom code to help accomplish a task.
by Hendrikto | 2025-08-22 10:04:01+00:00
They are not forcing anything on anyone. You can decide to never run `uv format` and ruff won’t even be installed.

You can use uv without ruff. You can use ruff without uv. You can invoke ruff yourself if that’s what you want. Or use any other formatter.

I don’t think I understand what your complaint is.
by replete | 2025-08-22 10:04:53+00:00
I relied on the TotalVisor - every system I have I will hack together something to get this functionality:

- Windows hotkey bottom file explorer: https://github.com/replete/productivity-ahk/blob/main/Bottom...

- MacOS hotkey bottom Finder: https://gist.github.com/replete/245986ddfb5a912f0bc71f5708be...

There's XtraFinder which promises something similar, but now all modern macs require disabling security features, which seems a bit much for a convenient hotkey.

I have also requested TotalFinder-like feature for PathFinder(https://cocoatech.io/) which is the closest thing to what TotalVisor did.

Wild how tiny little utilities can change your expectations of using a computer. Simply cannot get by without quake terminal and bottom file explorer anymore, on any machine I daily drive.
by PeterStuer | 2025-08-22 10:05:10+00:00
At the start of the eCommerce business, people flocked to Amazon because they had trouble trusting smaller retailers.

These days it is the opposite. These brands went from trusted sellers to whitewashing marketplaces for the most dubious fraudulent drop-shippers by means of things like "sku-pooling" (you by design can not and never will know who shipped your specific item into the giant pool at Amazon).

So now I shop at dedicated local outlets, and avoid the "marketplaces" like the plague.
by ruszki | 2025-08-22 10:05:46+00:00
They are way more sloppy when the topic is for example poverty, inequality, etc. Economist has also problems with these kind of topics, but way less. I know people who prefer WSJ/Bloomberg/FT. All of them are from wealthy families, with zero clue about average people, and some of them even consider themselves poor, when they are rich as fuck. That hypocrisy is better fitted for those. I'm quite annoyed by that view. I'm even annoyed by Economist's elitism. The Economist has these topics because it's beneficial for the elite to solve these, the others simply ignore this fact.
by simonask | 2025-08-22 10:05:46+00:00
Well, the problem is that what you are advocating is also that knowing Latin would be a prerequisite for studying medicine, which it isn't anywhere. That's the equivalent. Doctors learn a (very limited) Latin vocabulary as they study and work.

You are severely underestimate how far you can get without any real command of the English language. I agree that you can't become really good without it, just like you can't do haute cuisine without some French, but the English language is a huge and unnecessary barrier of entry that you would put in front of everyone in the world who isn't submerged in the language from an early age.

Imagine learning programming using only your high school Spanish. Good luck.
by throw8349498 | 2025-08-22 10:06:37+00:00
> what to be critical about

Media can fill that gap. People should be critical about global warming, antivax, anti israel, anti communism, racism, hate, whitr man, anti democracy, russia, china, trump...

This thing is bad, imhate it, problem solved! Modern critical thinking is pretty simple!

In future goverment can provide daily RSS feed, of things to be critical about. You can reduce national schooling system to a single vps server!
by afiori | 2025-08-22 10:09:02+00:00
The main issue I can see is not garbage bytes in text but mixing of incompatible encoding eg splicing latin-1 bytes in a utf-8 string.

My understanding of the current "always and only utf-8/unicode" zeitgeist is that is comes mostly from encoding issues among which the complexity of detecting encoding.

I think that the current status quo is better than what came before, but I also think it could be improved.
by sarmadgulzar | 2025-08-22 10:09:31+00:00
I didn't say perfect, I said closest to perfect. Regarding the implicit return types, it's all a matter of taste. I think they're very clean, but Rust is not forcing you to be implicit—you can be explicit if you like. e.g., if a function's return type is String, then whether you write the implicit "Hello".into() or the explicit "Hello".to_string() or String::from("Hello") is entirely up to you, and Rust will not complain.
by kace91 | 2025-08-22 10:09:59+00:00
I think there’s a balance to be had. My country (Spain) is the very opposite, with everything from university access to civil service exams being memory focused.

The result is usually bottom of the barrel in the subjects that don’t fit that model well, mostly languages and math - the latter being the main issue as it becomes a bottleneck for teaching many other subjects.

It also creates a tendency for people to take what they learn as truth, which becomes an issue when they use less reputable sources later in life - think for example a person taking a homeopathy course.

Lots of parroting and cargo culting paired with limited cultural exposition due to monolingualism is a bad combination.
by jfoster | 2025-08-22 10:10:05+00:00
I run one of the many online word counting tools (WordCounts.com) which also does character counts. I have noticed that even Google Docs doesn't seem to use grapheme counts and will produce larger than expected counts for strings of emoji.

If you want to see a more interesting case than emoji, check out Thai language. In Thai, vowels could appear before, after, above, below, or on many sides of the associated consonants.
by thaumasiotes | 2025-08-22 10:10:32+00:00
> Regular carts are only used inside or by people who need to bring their stuff to their car and a pain in the ass to operate in the streets as they don't climb curbs easily.

Curbs have onramps. Pretty much every corner and every driveway provides a ramp where wheeled vehicles can easily get on to the sidewalk. You will never have any difficulty pushing a shopping cart onto a sidewalk.

https://sdotblog.seattle.gov/wp-content/uploads/sites/10/202...
by jibal | 2025-08-22 10:10:48+00:00
It's neither American nor imperialism -- those are both category mistakes.

Andreas Rumpf, the designer of Nim, is Austrian. All the keywords of Nim are in English, the library function names are in English, the documentation is in English, Rumpf's book Mastering Nim is in English, the other major book for the language, Nim In Action (written by Dominik Picheta, nationality unknown but not American) is in English ... this is not "American imperialism" (which is a real thing that I don't defend), it's for easily understandable pragmatic reasons. And the language parser doesn't disallow non-ASCII characters but it doesn't treat them linguistically, and it has special rules for casefolding identifiers that only recognize ASCII letters, hobbling the use of non-ASCII identifiers because case distinguishes between types and other identifiers. The reason for this lack of handling of Unicode linguistically is simply to make the lexer smaller and faster.
by Hendrikto | 2025-08-22 10:11:39+00:00
Regardless of your political stance, how is taking money from a VC company that has a single person that said a single thing you disagree with “supporting genocide”? And how is uninstalling a text editor going to help literally anyone?

This is 100% pure virtue signaling. This brigading is not helping a single Palestinian. These people just want to feel and show the world that they are “the good guys”, while not actually doing anything or helping anyone. To me, that is absolutely a joke.
by john01dav | 2025-08-22 10:11:55+00:00
I think that government intervention here is needed in order to coordinate people. We'll all be better off once ivp4 is dead and buried, but the incentive for each entity to do so is minimal. It could be some other powerful entity instead of government, for example tier 1 ISPs degrading ipv4 performance substantially or Google delisting websites that don't support ipv6 (and eventually delisting websites that do support ipv4).
by danielhanchen | 2025-08-22 10:13:09+00:00
Oh ok sorry maybe I misunderstood sorry! I actually found my partial work I did for precompiled binaries! https://huggingface.co/datasets/unsloth/precompiled_llama_cp...

I was trying to see if I could pre-compile some llama.cpp binaries then save them as a zip file (I'm a noob sorry) - but I definitely need to investigate further on how to do python pip binaries
by ath3nd | 2025-08-22 10:14:22+00:00
> Short sighted

If we wait 20 years for VR to take off and it's not Meta who benefits then, it's them who are short sighted to have started so early on that bandwagon.

Besides, waiting for something to materialize before being able to declare that it is stupid is a cop out. What, are we waiting for NFTs to become useful? They are stupid now. VR is stupid and unsuccessful now. I ain't waiting to be able to declare that Meta screwed up both in VR and in the Metaverse whatever the Metaverse is.
by nathan_compton | 2025-08-22 10:14:52+00:00
Really classic "rationalist" style writing: a soup of correct observations about statistical phenomena with chunks of weird political bullshit thrown in here and there. For example: "On a more contemporary note, these theoretical & empirical considerations also throw doubt on concerns about ‘algorithmic bias’ or inferences drawing on ‘protected classes’: not drawing on them may not be desirable, possible, or even meaningful."

This is such a bizarre sentence. The way its tossed in, not explained in any way, not supported by references, etc. Like I guess the implication being made is something like "because there is a hidden latent variable that determines criminality and we can never escape from correlations with it, its ok to use "is_black" in our black box model which decides if someone is going to get parole? Ridiculous. Does this really "throw doubt" on whether we should care about this?

The concerns about how models work are deeper than the statistical challenges of creating or interpreting them. For one thing, all the degrees of freedom we include in our model selection process allow us to construct models which do anything that we want. If we see a parole model which includes "likes_hiphop" as an explanatory variable we ought to ask ourselves who decided that should be there and whether there was an agenda at play beyond "producing the best model possible."

These concerns about everything being correlated actually warrant much more careful understanding about the political ramifications of how and what we choose to model and based on which variables, because they tell us that in almost any non-trivial case a model is at least partly necessarily a political object almost certainly consciously or subconsciously decorated with some conception of how the world is or ought to be explained.
by 0points | 2025-08-22 10:15:18+00:00
> Have you considered that it is simply singers-performers who like to sing and would like to earn a bit of money from it, but don’t have many original songs if their own?

Or, maybe you start to pay attention?

They are selling their songs cheaper for TV, radio or ads.

> Even pretending they were, if you compare between artists specialising in covers and big tech trying to expropriate IP

They're literally working for spotify.
by defrost | 2025-08-22 10:15:40+00:00
It's always preferable on HN to provide a hard link when quoting figures.

For example when I searched for the same information just now I found links to both newspaper reports and a current UK audit that state*:

Home Office says Labour inherited asylum system in chaos with applicants stuck in backlog. Accommodation for asylum seekers is expected to cost more than £15bn, three times the amount the Home Office originally estimated, according to the latest figures. The Conservative government signed contracts in 2019 that were due to pay £4.5bn of taxpayers’ money to three companies over a decade. However, a report by the National Audit Office, the government spending watchdog, says that number is now estimated to be £15.3bn over the 10-year period.

Which suggests the housing cost has blown out by a factor of three to be a whopping £1.5bn per year. Somewhat less than the figure you gave without reference up thread.

Still, it's not all that bad, the new UK government is claiming that:

A Home Office spokesperson said: “As this report shows we inherited an asylum system in chaos with tens of thousands stuck in a backlog, claims not being processed and disastrous contracts that were wasting millions in taxpayer money. “We’ve taken immediate action to fix it – increasing asylum decision making by 52% and removing 24,000 people with no right to be here, meaning there are now fewer asylum hotels open than since the election. By restoring grip on the system and speeding up decision making we will end the use of hotels and are forecast to save the taxpayer £4bn by the end of 2026.”

Bringing the annual cost down in the four to five years remaining.

> but I think that level of impact assessment is going a bit too far. I doubt any other project has ever had to take those into account.

Well, you'd be wrong on that point, it's common for economists to look at the knock effects of money moving through through an economy, there's even several terms for different aspects of that, eg: multiplier effect **.

(I recall that one from high school economics 101 some 45+ years past)

In this instance it's literally a case of UK taxpayer money being paid out to other UK taxpaying companies, mostly large, some small, and being injected back into the UK economy as ?? (more building, more investment, more taxable activity).

* https://www.theguardian.com/world/2025/may/07/uk-asylum-seek...

** https://www.economicshelp.org/blog/1948/economics/the-multip...