MurphyA/hacker-news huggingface dataset:
by tobyhinloopen | 2025-11-17 08:25:50+00:00
We use it like this:

CREATE TRIGGER notify_events_trg AFTER INSERT ON xxx.events FOR EACH ROW EXECUTE PROCEDURE public.notify_events(); CREATE FUNCTION public.notify_events() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN PERFORM pg_notify('events', row_to_json(NEW)::text); RETURN NEW; END; $$;

And then we have a bunch of triggers like this on many tables:

CREATE TRIGGER create_category_event_trg AFTER INSERT OR DELETE OR UPDATE ON public.categories FOR EACH ROW EXECUTE PROCEDURE public.create_category_event(); CREATE FUNCTION public.create_category_event() RETURNS trigger LANGUAGE plpgsql SECURITY DEFINER AS $$ DECLARE category RECORD; payload JSONB; BEGIN category := COALESCE(NEW, OLD); payload := jsonb_build_object('id', category.id); IF NEW IS NULL OR NEW.deleted_at IS NOT NULL THEN payload := jsonb_set(payload, '{deleted}', 'true'); END IF; INSERT INTO xxx.events (channel, inserted_at, payload) VALUES ('category', NOW() AT TIME ZONE 'utc', payload); RETURN NULL; END; $$;

We found no notable performance issues. We have a single LISTEN in another application. We did some stress testing and found that it performs way better than we would ever need
by lurking_swe | 2025-11-17 08:25:58+00:00
technology is integrated into classrooms, and yet, most new high school graduates can only successfully operate a smartphone, a tablet, or a chromebook (lol).

My point is, in regards to education tech is a distraction 95% of the time…and i say this as someone working in tech! Tech makes grading easier. Great. Has instruction improved? Are most kids learning more now? Are most kids _actually_ prepared for a basic office job, if they desire one?

Frankly, going back to basics would benefit all of us. Math is the same as it ever was. Blackboard and paper is all you need. Same with most other classes.

Schools will happily waste thousands on ipads and chrome books that do little for actual education. Yet they are happy to feed crappy lunches to kids because good food is too expensive. Apparently gadgets are more helpful for learning than nutrition? I’m sure Google and Apple are laughing all the way to the bank…at least the teachers and kids get to feel modern.
by shevy-java | 2025-11-17 08:26:14+00:00
I've had various issues installing Void so I succumbed to Manjaro, which works surprisingly well. I have noticed in general that many non-systemd distributions work less well over time for some reason. Slackware is the best example - one release per decade means it is factually dead, but even trying more modern variants simply no longer works as it once used to work. At the same time there is less and less adapted documentation to be found. It seems the non-systemd distributions not only declined in absolute numbers but also in regards to manpower and time investment. MX Linux also lags behind updating versions of numers programs: https://distrowatch.com/table.php?distribution=mx - it has gotten a bit better after libretto, but it still lags behind compared to e. g. Fedora.
by vessenes | 2025-11-17 08:26:41+00:00
I feel old! I never knew this existed; probably because my Unix shell experience was mostly built in the early 90s and zsh was not often used or distributed in large academic installations at the time; I believe ksh cost a licensing fee as well, leaving us plebes hoping for tcsh (ibm usually had this available) or bash (elsewhere), and apparently the * syntax was turned off by default for most of these.

An interesting side note in the blog post is the back and forth over whether to follow symlinks - the accepted answer is currently ‘no’.

Since you can hard link a directory in posix, I wonder why the back and forth and why the consensus. I mean some consensus is helpful in general, but I wonder why this way.
Ask HN: How do early-stage teams scale engineering quickly?
by rayyanabrar76 | 2025-11-17 08:27:04+00:00
I’m Rayyan Abrar, Managing Partner at a small engineering team. I’m curious how founders handle sudden spikes in development work.

- Do you hire contractors, agencies, or full-time engineers? - How do you balance speed vs. code quality? - Any lessons learned or pitfalls to avoid?

I’d love to hear what has worked for you.
by shevy-java | 2025-11-17 08:27:52+00:00
Systemd isn't merely an init system though, so I always find these comparisons unfair.

They should focus on one simple and good alternative to the startup-functionality for non-systemd infected systems though. Void has one advantage: they have many clever people, a bit like how Arch used to be before they succumbed to systemd (today's arch is different from when Judd was in charge).
by landr0id | 2025-11-17 08:28:38+00:00
For this file in particular I'm unsure.

common.lin is a separate file which I believe is supposed to contain data common to all levels _before_ the level is loaded.

There's a single exported object that all levels of the game have called `MyLevel`. The game attempts to load this and it triggers a load of the level data and all its unique dependencies. The common.lin file is a snapshot of everything read before this export. AFAIK this is deterministic so it should be the exact same across all maps but I've not tested all levels.

When loading a level, the training level for instance contains two distinct parts. Part 1 of the map loads 0_0_2_Training.lin, and the second part loads 0_0_3_Training.lin. These parts are completely independent -- loading the second part does not require loading the first. It does a complete re-launch of the game using the Xbox's XLaunchNewImage API, so all prior memory I think should be evicted but maybe there's some flag I'm unaware of. That is to say, I'm fairly confident they are mutually exclusive.

So basically the game launches, looks In the "Training" map folder for common.lin, opens a HANDLE, then looks for whichever section it's loading, grabs a HANDLE, then starts reading common.lin and <map_part>.lin.

There's multiple parts, but only one common.lin in each map folder. So no matter what it's not going to be laid out in a contiguous disc region for common.lin leading into <map_part>.lin. Part 1 may be right after common.lin, but if you're loading any other part you'll have to make a seek.

I don't know enough about optical media seek times to say if semi-near locality is noticeably better for the worst case than the files being on complete opposite sector ranges of the disc.
by piva00 | 2025-11-17 08:28:52+00:00
There's also a difference in Thiel: an intensely heretic view of Christianity, he touts himself as a Christian while trying to make it his work of stopping the Anti-Christ (which in Christian theology is impossible since you'd be stopping the Apocalypse).

Peter Thiel is an interesting character mostly due to how bizarre he can be, a billionaire who is entranced in Christian mythology, afraid of death, using his power in capital to try to mold the world to his fractured mind. In a parallel world where he isn't rich he would be the town crazy spouting about the Anti-Christ at main square in some German village.
by stavros | 2025-11-17 08:29:49+00:00
The difference between the two is whether ChatGPT believes it's being accurate when it's saying those things, and we can't know what it believes, (or whether it can believe things at all).

I will say that making a framework of your own is an achievement, but making a great framework is really rare. I don't know what your framework is like, so I can't say.
by lerno | 2025-11-17 08:30:09+00:00
Over 25 years ago I was doing ny final thesis on string theory for my Masters degree. The more I read, the more I went ”this could not possibly be right”. I ended up taking a break to work to get perspective on things and decide whether I wanted to continue pursuing a career in theoretical physics. I never went back. And given that in this field, things have been stagnant for those 25 years, it seems my impressions were quite on the mark.

Having so many things required to make it work, that we could not verify always rubbed me the wrong way, as was the ability to always be able to add just one more patch to make it outlive each experimental or theoretical setback.
by ploxiln | 2025-11-17 08:31:25+00:00
For many years (20+?) Vietnam has had huge import tariffs on US/German/etc cars. It varies by origin country and engine displacement, but it's around 75% to 175%. Some trade agreements with other Asian countries result in much more reasonable tariffs for Asian brands, but some rich Vietnamese people have bought BMW or Merc with 150%+ tariff/tax. (I found it a bit mind-blowing.) So, it's pretty obvious why Asian made EVs are expected to "explode" in popularity over there. (I'm pretty sure the trend is already well underway, I know a retired guy there who replaced a Merc with a hybrid Mitsubishi (?) last year.)
by 317070 | 2025-11-17 08:33:24+00:00
In Figure 13, there are some Western countries listed for how much children can roam, and Ireland is indeed near the bottom.

But the Netherlands, Nordics and Germany are still very much on the other side of the spectrum in these studies.

See for instance the books "The Happiest Kids in the World", "Achtung Baby" and "There is No Such Thing as Bad Weather" about raising children in the Netherlands, Berlin and Sweden respectively.

Those places are very much not like the USA yet. Though as the article points out, they are definitely going in that direction.
by shevy-java | 2025-11-17 08:33:49+00:00
Well - the systems presented here are about the init part, not anything else. Systemd includes more functionality than merely init-stuff, so any comparison here was always biased and unfair. If you compare 5_000 lines of code to 500_000 lines of code, the comparison won't work. Systemd assembled numerous things (weed-collection via systemd-homie, for the home setup and I think you can also accidentally delete your home directory, with the systemd devs claiming this is a feature). None of those "features" listed is what I consider needed or necessary. All daemon-startup I already did via ruby as wrapper over the underlying system. For a campus site with many computers, systemd simplified managing them. I don't really see the same benefit for people who know more about computer systems at home - all the complexity is a trade-off with regard to having to learn, understand and apply what systemd brings to the table.

"It's deeply entrenched in every major distro that it's impossible to administer a linux system without it"

That's a non-sequitur, aka an after-the-fact claim made. Not every distribution transitioned into forcing systemd onto everyone - granted, the majority did, but you can find distributions that did not surrender user's rights here, be it devuan, slackware, void, gentoo (https://wiki.gentoo.org/wiki/Gentoo_without_systemd). But admittedly it takes more effort than going into systemd. Note that many of the statements made there such as "hardening options", is just buzzword promo for systemd. It just means nothing. What should "hardening" even mean? Also, it is perfectly fine to use linux on a non-systemd system. People used to do this for decades before systemd infected the linux world. It's a smaller crowd though compared to systemd-using systems and users indeed nowadays.
by hnarn | 2025-11-17 08:34:35+00:00
> they know that if other languages that address one of the main rust claims without all the cruft gains popularity they lose the chance of being permanently embdedded in places like the kernel

First of all, I'm really opposed to saying "the kernel". I am sure you're talking about the Linux kernel, but there are other kernels (BSD, Windows etc.) that are certainly big enough to not call it "the" kernel, and that may also have their own completely separate "rust-stories".

Secondly, I think the logic behind this makes no sense, primarily because Rust at this point is 10 years old from stable and almost 20 years old from initial release; the adoption into the Linux kernel wasn't exactly rushed. Even if it was, why would Rust adoption in the Linux kernel exclude adoption of another language as well, or a switch to another, if it's better? The fact that Rust was accepted at all to begin with aside from C disproves the assumption, because clearly that kernel is open for "better" languages.

The _simplest_ explanation to why Rust has succeeded is that it's solves actual problems, not that "zealots" are lobbying for it to ensure they "have a job".
by makeitdouble | 2025-11-17 08:35:21+00:00
I end up using it a lot.

I'm always fascinated at the threshold where people will decide something just won't happen ("useless") because it's not comfortable enough.

I'm more in the camp of pushing the limits as far as technically possible if it means I'm neither walking around with a 13" screen at all time nor need to be home to be able to look at two things at the same time.

So I'll be fine with readjusting a bit the window to input text if it means I can do the thing now instead of 6 hours later. At least I don't want Google to kill the feature just because it requires working around some quirks.
by shevy-java | 2025-11-17 08:36:01+00:00
Good. Now please someone replace Google's search engine.

I am always annoyed using it, how bad it is these days. Then I try the alternatives such as Duck Duck Go and they manage to be even worse.

Qwant is semi-ok but it also omits tons of things that Google Search finds (and also is slower, for some weird reason).

Google's UI nerf is also annoying - so much useless stuff. In the past I could disable that via ublock origin but Google killed that for chrome.

We need to do something against this Evil that Google brought into this world.
by pjmlp | 2025-11-17 08:36:17+00:00
Lucky user,

https://bbs.archlinux.org/viewtopic.php?id=298021

https://www.dell.com/community/en/conversations/linux-genera...

https://www.linux.org/threads/screen-issues-with-the-later-d...

https://medium.com/@AlexMichelOrg/like-linux-then-dont-buy-d...

Plenty more out there.
by wjnc | 2025-11-17 08:36:44+00:00
We agree.

Two bits floating in my mind: I'm in management (different sector, totally different scale) and deciding to move forward against a market as a market leader is a really scary decision. We did and changed our proposition against a trend in the market. The market mostly followed our lead. Thats what we hoped for, but sure couldn't count on at the time of the decision. So we had to make sure to have all stakeholders involved in the risk - What if most of our customers just left? Then suppose you are in management for Apple. The stakes are massive. How would you communicate this shift?

The other one is: You should take the strength of your opposition into account when making bold moves. Android / Google / the brands fabricating the products I would say (no need for the old debate) are market followers. They are good at following and produce more technical diverse products, minus the margins. If you do not expect your opposition to make the bold move first, but do expect them to follow your bold move, I would argue you should be less likely to play bold moves unless you know they cannot follow you. So game theory I think also favors the status quo for Apple.
by capter | 2025-11-17 08:36:58+00:00
Thanks for the suggestion! I wasn’t aware of NextGen Tools — I’ll definitely take a look.

Right now I’m mainly collecting early feedback on the stability loop (risk/jitter/dissonance) and on whether SAFE/WARN/BREAK modes make sense under real inputs.

If the tool proves useful, launching it there could be a great next step. Happy to hear your thoughts.
by stinkbeetle | 2025-11-17 08:37:38+00:00
We're talking about two different things. OP was not talking about ARM ISA, but Apple silicon. Mobile switched to Apple silicon under Jobs with iPhone 4 https://en.wikipedia.org/wiki/Apple_silicon. Apple designed cores were added later, also under Jobs. Apple silicon, Apple cores => Jobs.

Moving laptops to ARM ISA with Apple cores can be credited to Cook, but it was not a big move or a risky step like standing up their own CPU design team was. From the release of Swift and onwards, all the punters were speculating about when (not if) it would happen, and you could really plot a performance line for Apple vs Intel/AMD CPUs and make a pretty educated guess when it would happen.

And yes, the powerpc and x86 switches gave them a lot of experience doing the ARM switch, with fast emulation, fat binaries, etc., and others like IBM had implemented TSO modes in weakly ordered CPUs and others like Transmeta had special instructions for x86 flags emulation. It wasn't really a huge technical gamble beyond what Cook inherited to move to ARM.
by shevy-java | 2025-11-17 08:37:43+00:00
Alright but why do we not have more search engines that are actually good?

I'd love to cut myself off from Google, including Google Search, but any alternatives manage to be even worse. Consistently so. It's as if Google won the war by being just permanently slightly better - while everyone is actually really crap. That wasn't the case, say, 10 years ago or so.
by quails8mydog | 2025-11-17 08:38:02+00:00
I think this is exactly it. It's easy to see that there's a chance to improve things while ignoring the ways it could make things worse when they won't affect you. Should you quit the job you don't like? "Of course" the friend will say. But then you might just end up with a job you hate more that pays less, or even no job. Whether the outside perspective is helpful probably depends on how much your own perception deviates from reality. Though people do have a tendency to prefer the status quo until things change, so maybe you should always prefer the "change" option when you aren't sure.
by p_l | 2025-11-17 08:38:02+00:00
It is still a major non-trivial difference between implementing USB-A header (super trivial, just wire up the lines) and implementing USB-C - needs additional TCPC with enough ports, located nearby enough, plus flash rom, plus possibly an extra interfacing chip per each port. And that's if you only want reasonable USB-C that does just USB with maybe a bit of Power Delivery (but not too much). And then you need to ensure firmware handles it right (and that's not including bugs like Intel "firmware quality" leading to broken flash roms on entire product lines with thunderbolt controllers).

There's a reason why USB-C ports on laptops are often very... "clustered", let's say. Makes it reasonably easy to route signals if you're routing just what's essentially USB+DP or USB4, and I2C, and put 2 port capable TCPC and necessary switching and support circuitry near the port.
by p0w3n3d | 2025-11-17 08:38:09+00:00
You mean the new diablo 2 right? I doubt the original Diablo 2 grinding was money-earning focused. I mean the old games (as they appeared to me) were focused on "do it, sell it, make people fall in love with it while we prepare the new game". The new games are more like "make people hooked on it, while we prepare another DLC" - I've never played the new Diablo 2 so I am asking. However I used to grind Diablo 1 (and still do it sometimes with devilutionx) and while I am grinding they do not earn anything, so I feel that it's only to my guilty pleasure...
by tgma | 2025-11-17 08:39:49+00:00
Oh wait… “public service” that destabilizes countries and then you come in and preach such things about human rights when one of the root causes were in fact your nice public service. Just look up how BBC supported the Mullahs against the Shah in Iran in 79.

Re Saudi Arabia “journalist” you do realize he was from a famous intelligence community family. Hardly a simple “journalist.” On balance what MBS has done in terms of freedom and modernization of his country should be appreciated not put down simplistically. Statecraft is not always clean.

The world isn’t that simple as presented to western audiences.
by amne | 2025-11-17 08:39:53+00:00
Chess:

- infinite treadmill: theoretically you can play all possible moves but not in a lifetime.

- variable rewards: sometimes you stumble upon (or try) a tactic that works.

- can't pause or save: except when you maybe play against a computer which is not the point of the game

- grinding: you need to play the same openings many many times to encounter all the responses that will let you know if your "build" is worthy

- competition: nothing to add
by antirez | 2025-11-17 08:40:02+00:00
Related: Redis has a keyspace notification doing something similar that is not very well known, but when it is needed, it is really needed. We are thinking of extending this mechanism in new ways. Similarly I have seen setups where the notifications arriving from Postgres/MySQL are used in order to materialize (and keep updated) a cached view in Redis. To me, it is interesting how certain teams relay on these kind of mechanisms provided by database systems, and other teams like to do things in the client side to have full control, even in the face of having to reimplement some logic.
by wkat4242 | 2025-11-17 08:40:18+00:00
I wonder how well that conversation detection works. Does it really help in a loud environment?

As a neurodivergent person I lack the innate human skill to filter voices out of a cacaphony of noise so loud bars etc are hell. There also the "talking with earphones in is rude" but that's an issue that can just be explained.

Needing root to enable it is a major deal-breaker though :( and moving to an iPhone is impossible for me. Too much stuff that's not supported.
by mhh__ | 2025-11-17 08:40:46+00:00
Read "Advanced portfolio management" by Paleologo (ironically it's actually the introductory one of his two books), or "Active portfolio management" for a more thorough, older, longer book on the topic.

Markowitz isn't really used at all, but Markowitz-like reasoning is used extremely heavily in finance, by which I basically mean factor modelling of various kinds - effectively the result of taking mean-variance as a concept and using some fairly aggressive dimensionality reduction to cope with the problems of financial data, and the fact that one has proprietary views about things ("alpha" and so on)
by freak42 | 2025-11-17 08:41:04+00:00
What are your custom instructions. When I drop your first message into 'my' ChatGPT 5.1, the first paragraph returned is:

"Short answer: yes, the idea and overall feature are solid and “cool” for a platform – environment-aware static bundling + filtering + preloading is a real capability, not fluff. The implementation is workable but has a few concrete problems and some messy spots. (...)"
by Gravityloss | 2025-11-17 08:41:16+00:00
One thing is also ability to have clearer start and end and boundaries, or some sort of mental boxing for the case at hand.

If you're visiting someone else, you arrive, and you leave. The helping them clean part has at least some sort of boundaries. Even if you don't finish, you have helped them along.

When you're at home, even if you start, if you leave it halfway, it will be your problem after you stop. And tomorrow still and so on. So it feels more daunting.
Interested in Collaborating with Non-Technical Founders on Startup Ideas
by rayyanabrar76 | 2025-11-17 08:42:13+00:00
Hi HN,

I’m a developer who loves building products from scratch. I’m looking to team up with non-technical founders who have interesting ideas and want to turn them into real products - MVPs, prototypes, or full-stack apps.

If you have a project you’re excited about, let’s chat and see what we can build together!
by close04 | 2025-11-17 08:45:21+00:00
The MacBook Air is a legit MacBook and not that much heftier than the iPad. With how powerful and efficient M chips are, they could work out just fine for a lot of people despite the more constrained thermals.

They're not doing it today because current Apple leadership doesn't have the same incisiveness as the one back when they were sacrificing their most successful product on the iPhone altar so the competition can't. And to be fair, Apple has a much stronger position with a wider moat then they did back then. So they can afford to give more time to the competition to compete.