MurphyA/hacker-news huggingface dataset:
by xhunmon | 2025-06-18 09:25:47+00:00
In the previous articles, we have mastered the basic usage of the Navigation component and multi-page management with Tabs. This article will further guide you to encapsulate the Navigation routing framework, making it suitable for more complex project structures, supporting dynamic module loading, page parameter passing, callbacks, and other advanced features to improve maintainability and scalability.

1. Core Ideas for Routing Encapsulation As your project grows, the number of pages and modules will increase. To facilitate management and decoupling, it is recommended to encapsulate routing logic in a unified way. The core ideas are as follows:

Use a RouterInfo class to describe each page's module name, page name, and whether it requires NavDestination. Use RouterPage to centrally manage all page information for easy lookup and maintenance. Use RouterNav to implement page registration, dynamic import, navigation, parameter passing, callbacks, and more. Support dynamic import for on-demand module loading and better performance.
by ghosty141 | 2025-06-18 09:26:07+00:00
> No one thinks of software size primarily in the context of their disk space.

This is wrong. The reason why many old tools are so small was because you had far less space. If you have a 20tb harddrive you wouldn't care about whether ls took up 1kb or 2mb, on a 1gb harddrive it matters/ed much more.

Optimization takes time, I'm sure if OP wanted he could shrink the binary size by quite a lot but doing so has its costs and nowadays its rarely worth paying that since nobody even notices wether a program is 2kb or 2mb. It doesn't matter anymore in the age of 1TB bootdrives.
by aa-jv | 2025-06-18 09:27:51+00:00
I wonder if anyone has ever given any druthers to porting PC-Write to linux ..

https://en.wikipedia.org/wiki/PC-Write

I must have written a million lines of code with PC-Write in the 80's .. seems kind of odd to me that it has just disappeared into oblivion, given that its an extremely powerful editor.

Huh, the source is out there somewhere .. might be a fun Lazarus/Free Pascal project one of these days ..
by eska | 2025-06-18 09:27:56+00:00
> “While I appreciate PostgreSQL every day, am I the only one who thinks this is a rather bad idea?” – top HackerNews comment on our launch (link)

I know it's popular to bash the HackerNews hivemind, and often it's honestly deserved, but this line is in bad taste. The comment was not only polite and professional, it was also right. They had to introduce a columnar storage format (hypertables) to make it work. That is exactly what the comment and the follow-up cocmment suggest.
by JdeBP | 2025-06-18 09:28:00+00:00
The consumers of the Native API are things like the original POSIX subsystem, the Interix POSIX subsystems, the OS/2 subsystem, the fourth POSIX subsystem used in WSLv1, NTVDMs, and of course the Win32 subsystem. Some of these were frozen long ago. The still live ones do not necessarily change in lockstep.

That said, for those particular API functions there is an interesting history that is, rather, about mitigating security holes:

* https://www.tiraniddo.dev/2020/05/silent-exploit-mitigations...
by miki123211 | 2025-06-18 09:29:53+00:00
This is not allowed as far as I know, at least on iOS.

iOS apps aren't allowed to run arbitrary code that hasn't been signed by Apple. What goes in the AppStore is what runs on your device, and apps are physically incapable of writing data to executable memory. Safari / the built-in Javascript interpreter (and I guess third-party browsers in the EU) are notable exceptions here, as they need JIT.

Sure, Apple could develop special infrastructure to push fake updates to a predesignated list of targets, but at that point, you don't even need collaboration from Meta, and open source apps like Signal are just as vulnerable.

If Apple was willing to go that way, they wouldn't even need to bother with app updates. Ultimately, your messaging history has to be stored on your device in a way that your device can decrypt, and Apple could just steal that info.

I can't speak to what the situation is like on Android, but I presume similar mechanisms exist.
by danielscrubs | 2025-06-18 09:29:58+00:00
We still don’t know what good code is. It is all contextual, and we can never decide what that context should be. We are influenced by what is hip today. Right now is static typing using Rust, tomorrow it might be energy usage with assembly, after that it might be Python for productiveness, after that C# for maintenance.

We can never decide, we just like learning, and there is little real, impactful research into programming as a business.

In two decades we will still collectively say ”we are learning so much”, ignoring that fact.
by strken | 2025-06-18 09:30:05+00:00
I'm confused. If I'm allowed to mock what I don't own, but only if it has a good API that's well-adapted to my use case, then "don't mock what you don't own" must have nothing to do with ownership.

It sounds like it's more about wrapping awkward APIs instead of calling them directly. Yes, this is good advice! But it only tangentially has anything to do with mocking.
by molf | 2025-06-18 09:30:19+00:00
I’m not sure this is good advice. I prefer to test as much of the stack as possible. The most common mistake I see these days is people testing too much in isolation, which leads to a false sense of safety.

If you care about being alerted when your dependencies break, writing only the kind of tests described in the article is risky. You’ve removed those dependencies from your test suite. If a minor library update changes `.json()` to `.parse(format="json")`, and you assumed they followed semver but they didn’t: you’ll find out after deployment.

Ah, but you use static typing? Great! That’ll catch some API changes. But if you discover an API changed without warning (because you thought nobody would ever do that) you’re on your own again. I suggest using a nice HTTP recording/replay library for your tests so you can adapt easily (without making live HTTP calls in your tests, which would be way too flaky, even if feasible).

I stopped worrying long ago about what is or isn’t “real” unit testing. I test as much of the software stack as I can. If a test covers too many abstraction layers at once, I split it into lower- and higher-level cases. These days, I prefer fewer “poorly” factored tests that cover many real layers of the code over countless razor-thin unit tests that only check whether a loop was implemented correctly. While risking that the whole system doesn’t work together. Because by the time you get to write your system/integration/whatever tests, you’re already exhausted from writing and refactoring all those near-pointless micro-tests.
by nkrisc | 2025-06-18 09:30:30+00:00
Because the comment they were replying to said:

> People have no idea how much cars benefited the lower and created the middle class.

Many lower class and even middle class jobs involve physical labor (or even just standing all day). Then they replied, essentially, that they didn’t need cars, they could bike.

So I assumed they also had a job involving physical labor as opposed to their comment being totally out of touch. Biking is a lot more palatable when you have a cushy office job (maybe even with a shower).
by hamstergene | 2025-06-18 09:31:06+00:00
It would be great if every complex or volatile third-party library came with its own mock and an abstract interface to which they both conform. Including pieces of language’s standard library itself.

It makes so much more sense this way:

- users don’t have to duplicate effort of writing more or less same mock/stub of the same library

- mock is forced to be up to date, because the library’s maintainers probably pay more attention to their release notes than you do

- no one knows the best choice of mocking approach/DSL than the library’s authors

- the adoption of inversion of control / dependency injection and comprehensive testing could be so much wider if writing a test didn’t require first solving an extra problem if how to mock something with complicated API and if it worth solving in the first place
by latexr | 2025-06-18 09:31:16+00:00
Comparing a screen to a whole smartphone and a concept demo to full mass marketed successful products is quite disingenuous. You can do better. Either we argue in good faith or the conversation isn’t worth having.

The original point, and what Apple is known for, is precisely that they often don’t invent all the parts but put them together in a way that makes sense for and the general public wants to buy. Which also allows competitors to rise. Nitpicking every single component will always lead to “none of them invented transistors, or electricity”.

https://www.youtube.com/watch?v=K9huNI5sBd8

Denying Apple’s influence to certain classes of products is like denying Google’s influence to the internet, or Microsoft’s influence to offices. It’s nonsensical. I am not interested in flame wars or arguing with others about their biases for or against specific trillion dollar corporations.
by sebstefan | 2025-06-18 09:31:19+00:00
They're not hypotheticals. Google is big. It happens every day.

It's reasonable for Google to have automated systems for this, reasonable to deny service arbitrarily, and they should not obligated to provide customer support. They're a bad service in a competitive market for the cloud. So don't use their services.

The point being that, assholes or not, while you shouldn't be entitled to their service, you should be entitled to your data, and deleting it arbitrarily should be considered infringing on that.
by Alex-Programs | 2025-06-18 09:31:44+00:00
I've ended up doing a lot of research into LLM translation, because my language learning tool (https://nuenki.app) uses it a lot.

I built something kinda similar, and made it open source. It picks the top x models based on my research, translates with them, then has a final judge model critique, compare, and synthesise a combined best translation. You can try it at https://nuenki.app/translator if you're interested, and my data is at https://nuenki.app/blog
by gf000 | 2025-06-18 09:32:29+00:00
This is just malicious, ignorant and plain falss towards the Wayland developers (which is by the way a very diverse group), whom are by all chance waay more experienced than you are.

Also, fails to take into account that X has plenty of objective design failures, which is to be expected given GPUs didn't exist at the time of its invention.
by Alex-Programs | 2025-06-18 09:33:58+00:00
I made a tool which translates sentences as you browse, for immersion[0]. I solved this by giving the model a code (specifically, "483") to return in any refusal. Then, if I detect that in the output, I fail over to another model+provider.

I also have a few heuristics (e.g. "I can't translate" in many different languages) to detect if it deviates from that.

It works pretty well.

[0] https://nuenki.app
by riobard | 2025-06-18 09:34:06+00:00
> The reason Windows doesn't have fragmentation is because it's a closed-source operating system with internet enabled functionality that is centrally controlled by Microsoft with an iron fist.

Sure, being closed-source prevents fragmentation from the start coz there's nothing to fork from, but it's not a requisite. There are many open source projects with less degree of fragmentation with major marketshare winners that the ecosystem can target for, and you can mostly recommend people to use without too much thinking, e.g. browsers and web servers.
by rdm_blackhole | 2025-06-18 09:34:17+00:00
> If there is ever any moral justification for going to war - that's it. It's defensive. That's arguably the only justification for going to war.

Russia considers that Ukraine being part of NATO is an existential threat to it's territorial safety. Therefore it has invaded Ukraine. Was that justified then? After all this was a defensive move that was meant to keep a buffer between Russia and NATO.

If all you need to do to justify a war is to have a defensive moral justification and because we agree that the best defense is offense, then ergo war is peace.
by badoodle | 2025-06-18 09:36:23+00:00
Cool cool, but hasn't this been achived by multiple projects many many times before?

I'd say that cost is a significant factor for doing this, and if you can leverage the usage of those fancy kubernetes GPU-cluster providers it'd come out even cheaper. Sure, it wouldn't be as "sophisticated", but it'd perform more or less identical and cost far far less.

All the above used cloud-providers are expensive, if compared to something like vast.ai or runpod.

Check this out; https://github.com/selkies-project/selkies
by rsynnott | 2025-06-18 09:36:32+00:00
The Tesla approach was kind of magical thinking; put enough data into the magic box, and eventually a perfect driver will pop out. In some ways it's similar to the "just make a big enough LLM and it will be GAI" thing (a model which has pretty much fallen out of favour even with the most relentlessly optimistic LLM vendors in favour of so-called reasoning models).

In reality, just shovelling data into a box is not sufficient.
by furyg3 | 2025-06-18 09:37:24+00:00
Regarding the discussion of ger/yurt districts in cities, it's also important not to underestimate the cultural significance of the nomadic lifestyle and yurt culture.

Changing climate (desertification) and economic conditions have meant that a lot of people have given up their nomadic lifestyle and moved to cities or their outskirts (mostly Ulaanbaatar). They often are reluctant to do so, it's a big step, and they often hope it is a temporary one.

They set up their yurts not only because of housing shortages, but many are also hesitant to move into apartments or other permanent structures as it's seen as the last step in giving up this nomadic lifestyle. Often they are setting up their yurts next to permanent structures, either because they are living in the 'yard' of relatives or to expand their residences and stay connected to their culture.

You can see examples of this in the first images.
by raffael_de | 2025-06-18 09:38:03+00:00
But is this a real problem? As far as I can tell there are two types of hyped up tourist spots:

1. Has been for a long time already (Eiffel Tower, Times Square, Khaoson Road, ...)

2. Recent spot because some influencer posted nice photos on Instagram (some cliff, some field of sun flowers, ...)

Never heard of a travel writer actually establishing (single-handedly) a tourist spot.

And why is that? Probably because most people don't read text that is longer than one or two paragraphs.
by danielscrubs | 2025-06-18 09:38:18+00:00
But when everyone started to produce SEO slop, the web died. It’s harder than ever to find truly passionate, single subject blogs from professionals for example.

The AI slop will make it harder for the small guys without marketing budget (some lucky few will still make it though). It will slowly kill the app ecosystem, untill all we reluctantly trust is FANG. The app pricing reflects it.
by panick21_ | 2025-06-18 09:38:31+00:00
I think you are to optimistic, what you say is true in principle, but it will take much longer. Vertical landing isn't really the technical challenge. Many small vehicles have demonstrated this over the years, including before SpaceX.

The challenge with orbital booster reuse is getting them threw the atmosphere intact and ready to land and then be reused quickly. And do that while being optimized enough to carry payload. That is the actual challenge. And that's just the first, then you need to build everything to be able to do this 5-10 times.

Only one other company then SpaceX has achieved getting a booster back at all, and that was by dropping it into an ocean. RocketLab, and they so far as I know have never reflown a complete booster. BlueOrigin has never landed a complete booster. ULA and Arianespace aren't close.

Honda in particular is not a launch competitor and is very unlikely to be one in the future. Japan already has a pet rocket that they support that has low launch rates. Honda isn't just isn't a competitor in the launch sector, and I don't think they are even planning that.

BlueOrigin might emerge as a competitor, but its nothing like Sun (sun was profitable in the first year). BlueOrigin simply has an infinite money glitch, that almost no other company in history had. The amount of money BlueOrigin spent in the last 10 year is actually unbelievable, they at times had the same amount of people as SpaceX, while having near 0 revenue. By any rational evaluation BlueOrigin is completely non-viable as a company, any they are burning billions per year.

RocketLab will likely be a real competitor eventually, but they are pretty clearly positioning themselves at being Nr.2, not aiming for flight rates nearly in SpaceX territory. And they have a lot of technical risk left to clear.

At the moment SpaceX is moving forward faster then anybody else is catching up. Falcon 9/Falcon Heavy still run loops around everybody and nobody will challenge it for another 10 years at least, and that's assuming Falcon 9 operations don't improve.

Starship isn't needed for the launch market, but for their own constellation.
by uncircle | 2025-06-18 09:38:46+00:00
I was wondering how the syscall mechanism works on Windows compared to Linux, and I found this delightful article: https://alice.climent-pommeret.red/posts/a-syscall-journey-i...

EDIT: also, wondering why the above article says SetMenu requires a syscall, which is not mentioned in OP, I found this: http://www.fengyuan.com/article/win32ksyscall.html - looks like many GUI operations on Windows NT/2000 were implemented in kernel. That can't have been very good for performance to constantly context-switch to draw a window, no?
by JimDabell | 2025-06-18 09:40:34+00:00
This actually blocks a lot more than just AI crawlers. You shouldn’t use this without reviewing it in detail so that you understand what you are actually blocking.

For instance, it includes ChatGPT-User. This is not a crawler. This is used when a ChatGPT user pastes a link in and asks ChatGPT about the contents of the page.

One of the entries is facebookexternalhit. When you share a link on Facebook, Threads, WhatsApp, etc., this is the user-agent Meta uses to fetch the OpenGraph metadata to display things like the title and thumbnail.

Skimming through the list, I see a bunch of things like this. Not every non-browser fetch is an AI crawler!
by DocTomoe | 2025-06-18 09:41:26+00:00
Yes, but there are cars. That genie has already escaped its bottle.

And you pay small local stores with higher prices - which leads to more people, even in such small-towns with local butchers and bakers to get into their ride and go to the Lidl or Aldi on the outskirts.

Much like companies will realise LLM-using devs are more efficient by some random metric (do I hear: Story points and feature counts?), and will require LLM use from their employees.
by gf000 | 2025-06-18 09:41:58+00:00
> It does astonish me how Wayland missed obvious killer angles when they decided to reinvent X11. [..] rich native toolkit

What does a toolkit have to do with a display server?! Especially in this age and year when pretty much no one writes native UIs anymore? Like, android, which is by far the most popular OS by user count has a huge proportion of web apps - apps are fundamentally driven by network effects, so the tiny user count a new Linux contender could muster up would be a rounding error.
by Gud | 2025-06-18 09:42:33+00:00
Maybe unused by you, but I and many other hackers use those features.

I use FreeBSD and use bhyve to run OpenBSD. I also use FreeBSDs Linuxulator to run Linux software(Spotify, haven’t gotten my games working yet).

Without X forwarding this is no longer a possibility.

It seems to me a large part of the Linux community don’t understand that many of us want to continue living in a world of options.

The commercialisation of Linux has been detrimental to the free software community. It seems to me it’s no longer about hacking, enjoying life, but making money(“professional use”, hehe).

End rant
by sebstefan | 2025-06-18 09:42:38+00:00
Where's the straw man? If you discuss "banning banning accounts", this is one (edge?) case.

>"Why should they be allowed to unilaterally break contracts"

In the case of the user infringing on the terms of service, they're just backing out through the regular exit clause following a breach that was on your end.

Without breach of service, in most legislations contracts with an indefinite duration must have provisions that allow either party to terminate the contract with reasonable notice.

Forcing them to hold onto your stuff for a month until you can figure out another provider or a way to self-host is reasonable notice. Maybe 3 months? A year?

>Why shouldn't we demand a law that prohibits them from wiping our data without a court decision or a signed waiver from the account owner?

Because that would be a burden for anyone willing to launch software that host any kind of user data
by rdm_blackhole | 2025-06-18 09:42:51+00:00
> It was in filling the vacuum that left.

Maybe this was a question that should have been asked before these regimes were toppled but nobody bothered so here we are. Instead the US and it's allies come in with their big boots and try to give people "democracy" without thinking that maybe this is just not the right thing to do at this time. But we know better right?

As if there aren't enough problems in the US and in Europe, we need to keep involving ourselves with conflicts that mostly do not concern us. This is a conflict in the middle east and the countries of this region should be in charge of trying to find a solution to it.
by Sol- | 2025-06-18 09:43:17+00:00
I think money and the promise of resources will convince enough qualified people to join Meta, but I guess it doesn't help their recruiting efforts that Zuck seems to have the most dystopian and anti-human AGI vision of all the company heads.

Of course we have good reasons to be cynical about Sam Altman or Anthropic's Dario Amodei, but at least their public statements and blog posts pretend to envision a positive future where humanity is empowered. They might bring about ruinous disruption that humanity won't recover from while trying to do that, but at least they claim to care.

What is Zuckerberg's vision? AI generated friends for which there is a "demand" (because their social networks pivoted away from connecting humans) and genAI advertising to more easily hack people's reward centers.
Show HN: WFGY – A reasoning engine that repairs LLM logic without retraining
by WFGY | 2025-06-18 09:43:18+00:00
WFGY introduces a PDF-based semantic protocol designed to correct projection collapse, contradiction loops, and ambiguous inference chains in LLMs.

No retraining. No system calls. When parsed, the logic patterns alter reasoning trajectories directly.

Prompt evaluation benchmarks show: ‣ +42.1% reasoning success ‣ +22.4% semantic alignment ‣ 3.6× stability in interpretive tasks

The repo contains formal theory, prompt suites, and reproducible results. Zero dependencies. Fully open-source.

Feedback from those working in alignment, interpretability, and logic-based scaffolding would be especially valuable.
by latexr | 2025-06-18 09:43:52+00:00
It’s curious that you had to specify mobile games. That seems to indicate you understand those are their own class of product (often more slot machine with extra steps than software or game) than what the conversation is about (Steam, thus desktop games).

The App Store—which, by the way, I was thinking of the one on the Mac—was merely an example to represent how companies understand and separate games from other software. I could’ve also made the point of games being seen as entertainment rather than software by pointing out Netflix has movies, TV shows, and games, but not other apps.