MurphyA/hacker-news huggingface dataset:
by matutetandil | 2026-03-09 14:35:14+00:00
You're right that the core idea is the same — field resolvers in graphql-js already give you lazy resolution per field. LazyQL doesn't reinvent that mechanism; it sits on top of it.

The difference is developer experience:

With plain field resolvers, you'd write something like:

// Scattered across your resolver map
MyTypeName: {
status: (parent) => db.getOrderStatus(parent.id),
customer_email: (parent) => db.getCustomerEmail(parent.id),
shipping_address: (parent) => db.getShippingAddress(parent.id),
// ...15 more fields
}

With LazyQL, everything lives in a single class with shared state:

@LazyQL(OrderDTO)
class Order {
constructor(private id: number, private db: Database) {}

getStatus() { return this.db.getOrderStatus(this.id); }

getGrandTotal() {
return this.getOrderDetails().grand_total;
}

getCurrencyCode() {
return this.getOrderDetails().currency_code;
}

@Shared()
getOrderDetails() {
// Called by two getters, but executes only once
return this.db.getFullOrder(this.id);
}
}

The main wins: @Shared() caching across getters, startup validation (missing a getter = immediate error, not a silent null at runtime), and keeping all the logic for a type in one place instead of scattered field resolvers.

So it's not doing something fundamentally different — it's a pattern for organizing it better.
by Lerc | 2026-03-09 14:35:24+00:00
>I think it has more to do with LLM's being statistical models than human creativity lacking in the input. The creativity and millions of voices and tones may be there, but since these models tend to go for the most likely next words, polishing this away becomes a feature.

I have always thought this is a rather misguided view as to what LLMs do and indeed what statistical models are. When people describe something as 'just statistics' I feel like they have a rather high-school-ish view of what statistics represents and are transferring this simplistic view to what is going on inside a LLM. Notably they do not find the most probable next word. They find the probability of every word that could come next. That is a far richer signal than most imagine.

And ultimately it's like saying that human brains are just chemical bonds changing and sometimes triggering electrical pulses that causes some more chemicals to change. Complex arrangements of simple mechanisms can produce human thought. Pointing at any simple internal mechanism of an entity without taking into account the structural complexity would force you to assume that both AI and Humans are incapable of creativity.

Transformers are essentially multi-layer perceptron with a mechanism attached to transfer information to where it is needed.
by PeterWhittaker | 2026-03-09 14:35:53+00:00
Interesting article, but it compares apples to a fruit stand: The approach could be improved by comparing Capsicum to using seccomp in the same way.

Sometime ago I wrote a library for a customer that did exactly that: Open a number of resources, e.g., stdin, stdout, stderr, a pipe or two, a socket or two, make the seccomp calls necessary to restrict the use of read/write/etc. to the associated file descriptors, then lock out all other system calls - which includes seccomp-related calls.

Basically, the library took a very Capsicum-like approach of whitelisting specific actions then sealing itself against further changes.

This is a LOT of work, of course, and the available APIs don't make it particularly easy or elegant, but it is definitely doable. I chose this approach because the docker whitelist approach was far too open ended and "uncurated", if you will, for the use-case we were targeting.

In this particular case, I was aided by the fact the library was written to support the very specific use-case of filters running in containers using FIFOs for IPC, logging, and reporting: Every filter saw exactly the same interfaces to the world, so it was relatively easier to lock things down.

Having said that, I wish Linux had a Capsicum-equivalent call, or, even better for the approach I took, a friendlier way to whitelist specific calls.
by renhanxue | 2026-03-09 14:36:05+00:00
For Sweden, the coal plants were exclusively for cogeneration (district heating with electricity as a byproduct) and only used as peaker plants in winter. Some of them still exist but have been converted to burn biofuels instead, mostly woodchips and other byproducts from the forestry industry.

For most practical purposes, Swedish electricity generation has been basically fossile free since the 1980's.
by kordlessagain | 2026-03-09 14:36:19+00:00
First off, what does your taper schedule look like for your meds? Are you planning on going off them or are you planning on staying on them? If you are staying on them, how long are you going to stay on them?

Medicine is for CURING things, not dependency. Dependency comes from taking drugs regularly, not medicine, which is taken until you are cured. So, are these drugs for you or are they medicine?

A Psychiatrist is not a personal councilor. They are there to "treat" your "disease" with meds/drugs. I had one for a hot minute and left after 2 sessions. Get a grief councilor that is the same gender as you. If I could go back I would change that part.

I'll be even more direct here. If you can't handle the pain of correction in your life now, you will surely handle it later on, at the cost of your youth and energy. The likelihood of you falling back in with someone toxic is going to be quite high if you don't get cleaned up and sober. So, make a commitment you will see this "being alone" thing through until you get happy.

An old friend once told me (when we were young) that he felt he needed to be happy alone before he could be happy with someone. I agree with this assertion. If you rely on a relationship, or person, to be happy (or experience happiness through them in the fog of meds) then you've already set yourself up for failure.

Lastly, be accountable. If you can figure out what you did wrong in the last relationship (and that can simply be STAYING with someone toxic) then you're setting yourself up for success.

Accountably is also realizing that the answer is within you. By looking outside of yourself, you avoid the harsh inner truths. Go to church if you don't want to directly address these. Go to the desert if you do.

And by all means, avoid alternate medications until you get off the ones you are on.

Good luck. You'll need grit to get through this, but you will get through it eventually.
by crazygringo | 2026-03-09 14:36:23+00:00
You seem to misunderstand the purpose of documentation.

It's not to be more accurate than the code itself. That would be absurd, and is by definition impossible, of course.

It's to save you time and clarify why's. Hopefully, reading the documentation is about 100x faster than reading the code. And explains what things are for, as opposed to just what they are.
by zozbot234 | 2026-03-09 14:36:29+00:00
> india is too politically risky. people will just steal your shit

India is a huge place and some parts of it are vastly better managed than others.

> latin america no infrastructure (highways, power grid, etc)

The governance problem is quite real in Latin America actually, but I think it may have potential. If some infrastructure gets funded in the process it would have beneficial side effects all around.
by satvikpendem | 2026-03-09 14:36:37+00:00
Yes I should've said, people on HN don't like that they do that, or that it happens at all, but the reality is that it does and especially for people on a forum run by a startup accelerator in particular (with tons of Ask HN questions on how to grow their product via marketing), posting on social media is one of the most effective ways to grow, whether people like it or not.
by ron_woods | 2026-03-09 14:36:53+00:00
Reading through the comments so far I really don't see a way out of this without some real approval process. Late last year I joined the Rands Leadership Slack https://randsinrepose.com/welcome-to-rands-leadership-slack/

This was the first time I encountered a fairly stringent "prove your human" process. It goes something like this:

1. Send email from an valid e-mail account.

2. Include your name, occupation, the briefest of explanations of why you want to join this Slack, how you heard about us, and that you have read and accept our Code of Conduct.

3. Include links to your BlueSky, LinkedIn, Github, X, or Mastodon — any site demonstrating you’re a human.

Now before anyone says these can all be automated by an agent. Yes you are correct, but I also had a e-mail conversation with Rand himself before joining his Slack. I know you can't do this at internet scale, but perhaps that era is over.
by rahimnathwani | 2026-03-09 14:36:59+00:00
"are these sub agents in the workflow"

The idea is that on any 'turn', the AI model should be doing only one of those tasks. That's true whether it's in the main thread (with all the past context) or has just been launched as a subagent.

You can see an example of this pattern here in Anthropic's skills repo: https://github.com/anthropics/skills/tree/main/skills/skill-...
(the repo has four separate skill.md files: a main SKILLS.md and then three others for specialist roles)

Whether they're run as subagents (a separate AI chat session with clean context) is a separate decision, and it depends on whether the coding harness supports that. https://agentskills.io/client-implementation/adding-skills-s...

I'm still trying to figure out the subagent delegation stuff.
by Dannymetconan | 2026-03-09 14:37:13+00:00
| more and more cost-of-living protests

They must have been real quiet. Most the protests are related to how expensive it has become to rent / buy in this country.

Ireland has encouraged and allowed a huge number of data centers to be setup here and been very slow to implement legislation for other green forms of energy generation. We don't need dirty forms of energy production here like coal and peat just to make energy cheap. Relying on Oil and Gas leaves us hugely at the whims of the international markets.

| now importing most of our energy

14.0% of its electricity in 2024 according to https://www.seai.ie/data-and-insights/seai-statistics/key-pu...
by khy34 | 2026-03-09 14:37:16+00:00
You’re operating in a micro perspective.

Managers of firms care about impact of financials. They don’t care about the metrics you are measuring / gaming. Ultimately all ‘progress’ has to show in the cash flows.

Are you taking more cost reduction projects and more revenue-generating projects? Are you actually delivering? Are customers perceiving you to be as trusted as before? Etc. are the only things that matter. ‘Show me the money’.

To me this is akin to the discussion re. Scrum, agile etc. Who cares? Show me the money.
by epogrebnyak | 2026-03-09 14:37:20+00:00
I just released an update to a command line utility that inspects PATH environment variable. It's in Python, switched to uv from poetry, added new color scheme with rich and made some change to the logic how symlinks are processed.

https://github.com/epogrebnyak/justpath

Also wrote a small clone in Rust, just to try the language:
https://github.com/epogrebnyak/justpath.rs

So far Python is easier for me, but I transferred some code organisation ideas from Rust to Python.

Extra benefit of Rust is that you can get a runnable binary, in Python, well there is a lot you are installing even for a simple utility.

Someone made a PR on brew installer for the Python utility, but it seems fully claude code and I'm not sure it is the best way to package brew.
by netbioserror | 2026-03-09 14:37:24+00:00
Side-by-side, it's incredibly clear that the newest version is total UX garbage. Monochrome icons were a complete mistake, in basically all cases everywhere. A mix of the Lion color, shape/texture, and spacing, plus the Catalina sidebar, would be the best.

I really REALLY love the Lion icons. Colorful but subdued with only mild saturation, distinctive shapes, strong line borders with very slight halo, and mild gradients to make them pop.
by subzel0 | 2026-03-09 14:37:44+00:00
I’m working on uvmap.ai
A browser tool for editing 3D model textures directly from the model view instead of bouncing between a UV map, an image editor, and an AI tool. You load a glTF, click the part you want to change, it uses SAM3 to mask that region, then sends it to Nano Banana and puts the result back onto the texture. Still early, but the goal is to make texture iteration much less tedious.

Soon here: https://github.com/RefactorHQ/UVMapAI
by moooo99 | 2026-03-09 14:37:45+00:00
As other comments already point out, chinese coal power plants do not always operate under full load. They also decomission older more polluting ones.

Setting that aside, China has also dramatically pushed the electrification of their transportation sector like no one else. Considering BEVs and other electric modes of transport require less primary energy than fossil fuel equivalents, this checks out.
by Imustaskforhelp | 2026-03-09 14:38:02+00:00
> Batteries are cheaper and faster to make in large quantities.

Yes I agree but their extraction at scale is still very C02 Expensive.

> No economy on the planet needs 24/7 peak power production. The times humans work correspond nicely with the times the sun is out.

With Nuclear energy, let's face it. If you have a nuclear plant running, the input is just some uranium which we have plenty of. Thereotically we have no problem with running at peak power production.

You are also forgetting that Sun can be blocked during times of rains and Wind is unpredictable as well.

If you can work with solar panels only that's really really great. Unfortunately that's not how the world works or how I see it function :(

You are forgetting that markets operate after work and the late night culture and so many other things. You need lights at energy and quite a decent bit. You are also forgetting that if we ever get Electric vehicles then we would need energy during late night as well.

A lot of energy in general is still needed during nights and would we be still burning coal for that?

With all of this, I am not sure why you'd not like Nuclear?
Building a better tool for documenting software architecture
by salzaverde | 2026-03-09 14:38:23+00:00
Having spent extensive time researching options to document software architecture, not finding a satisfying solution to serve my needs, I’ve decided to build something that does.

I want to make it worth the effort by founding this project on solid data, using the jobs-to-be-done framework and outcome driven innovation (ODI) to identify underserved needs in the segment.

I’ve created a ~15 minute survey to establish that foundation:
https://forms.gle/2dtEAad6xirS4Ejy5

The aggregated results will be shared publicly and participants can optionally gain early access to the tooling developed on conclusion of the survey.

Appreciate your input and am looking forward to your thoughts on the topic!
by jaltekruse | 2026-03-09 14:39:13+00:00
Adding new openly licensed learning resources to the Kolibri offline learning platform. It is designed to be deployed in communities that lack consistent access to the public internet. They currently have a significant amount of English language content, but are limited in what they have available in the dozens of other languages they have translated the core software into. I'm trying to bring in new resources and then try to lead an effort to do translations of the best materials I can find to make the platform more useful to more people.

https://community.learningequality.org/t/bringing-new-comput...

Also trying to recruit people to teach tech newbies how to build their own handheld video game consoles. Let me know if you might like to run a class where you live and i'll share my class materials.

https://community.arduboy.com/t/looking-for-instructors-to-t...
by dekleinewolf | 2026-03-09 14:39:31+00:00
Hiya,

I'm 39 and divorced 3 years ago.

For me, my saviour was my 'third place'. I have frequented a spot since I was 18 where I can basically go any evening and there will be friends I know that I can chat with any time I need it. It makes not having a partner so, so much better.

And I also missed talking about the random small things in my day that no one except my partner really cares about. I deal with it by partly suppresing it, but I've also just decided that occasionally whomever comes into my path, be that a coworker or a friend or a family member will have to deal with it :). (Making sure I don't overload specific people to much). But the coworker right next to me at work definitely gets more little details from my private life than he would if I had a partner, and he happily deals with it :).
by adrian_b | 2026-03-09 14:39:32+00:00
CPU ISA is at most a 2x difference for programs that use only the general-purpose registers and operations.

For applications that use vector or matrix operations and which may need some specific features, it is frequent to have a 4x to 10x better performance, or even more than this, when passing from a badly-designed ISA to a well-designed ISA, e.g. from Intel AVX to Intel AVX-512.

Moreover, there are ISAs that are guilty of various blunders, which lower the performance many times. For instance, if an ISA does not have rotation instructions, an application whose performance depends a lot on such operations may run up to 3x slower than on an ISA with rotation instructions

Even greater slow-downs happen on ISAs that lack good means for detecting various errors, e.g. when running on RISC-V a program that must be reliable, so it has to check for integer overflows.
by Verdex | 2026-03-09 14:39:41+00:00
Clearly.

Crazy thing.

Number of times reading the source saved time and clarified why: many.

Number of times reading the documentation saved time and clarified why: never.

Perhaps I've just been unlucky?

EDIT:

The hilarious part to me is that everyone can talk past each other all day (reading the documentation) or we can show each other examples of good/bad documentation or good/bad code (reading the code) and understand immediately.
by PaulHoule | 2026-03-09 14:39:44+00:00
Early production rules engines really sucked, like a lot of the time they didn't have any kind of indexes and full scanned a lot. Good RETE engines with indexes didn't get mainstream by the 1980s but the industry was already losing interest. In a lot of ways

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

is pretty good as is the Jena rules engine but none of these have ways of dealing with uncertainty which are necessary if you're going to be working with language and having to decide which of 10,000 possible parses is right for a sentence. People used to talk as if 10,000 rules was a lot but handling 2 million well-organized rules with Drools is no problem at all today.

I think the problems of knowledge base construction are overstated and that a lack of tools are the problem. Or rather, the Cyc experience shows that rules are not enough, that is, after Lenat died it got out that Cyc didn't just have a big pile of facts and rules and a general reasoning procedure but it had a large database of algorithms to solve specific problems. That is, in principle you can solve anything with an SMT solver but if you actually try it you'll find you can code up a special-purpose algorithm to do common tasks before the SMT solver really gets warmed up.

Part of the production rules puzzle is that there never was a COBOL of business rules rather you got different systems which took different answers to various tricky problems like how to control the order of execution when it matters, how to represent negation, etc.
by notlenin | 2026-03-09 14:39:52+00:00
> One is that when I have something to say about my day, there's nowhere to say it; no one on HN cares whether I fixed up the blinds or cooked pork steaks. I hang out in an IRC chatroom for that, but sometimes nobody's around for hours.

I really recommend keeping a journal to help with this.

I've been living alone for the past decade+, and journaling is a great way to express things that matter to you but others might not care about.

Also, learn to be friends with yourself. Don't be afraid to talk to yourself sometimes, it helps :)
by satvikpendem | 2026-03-09 14:39:54+00:00
Maybe that's a post facto rationalized reason, as I'm sure it did draw in more tributes, but that's like saying folk tales across the world's sole purpose is to have sacrifices when in reality people just like making up and telling stories. It's like saying the apostles of Christ only spread his message to raise money for the Catholic Church, no doubt that was a side effect but it wasn't the "point" by any means, especially early on where there was no church.
by alexggordon | 2026-03-09 14:39:57+00:00
Nothing stopping both from being true. The court judgements[0] aren't faked. It genuinely appears Underwood really was screwed over. That said, it doesn't take much for a CMO to look at the situation and figure out how to market the product from there. Something something lemonade.

Only reason I mention that is that is you're not really faking the grassroots part if you really do have a good origin story--you just got... lucky?

[0] https://cases.justia.com/california/court-of-appeal/2021-b30...
by figmert | 2026-03-09 14:39:57+00:00
> africa is africa

Jeez what a way to dismiss the second largest continent and the second most populous landmass in the world.

I'd argue Africa is the best place to start such a thing. Cheap labour, plenty of renewable energy. The biggest issue it probably has is how little bandwidth it has, and might require additional sea cables.

But "africa is africa" is not a way reason to dismiss the content.
by myvoiceismypass | 2026-03-09 14:40:07+00:00
If the TV show Landman is to believed, its not all rosy for the oil companies when prices go over $100 because it leads to people using less gas:

"Well, you want oil to live above 60 but below 90. And don’t get me wrong, we’re still printing money at 90, but gas gets up over $3.50 a gallon, it starts to pinch. It hits a hundred, every product in America has to readjust its price. $78 a barrel, that’s about perfect. You know, brings enough profit to keep exploring, but it don’t sting as much at the pump."
by 9rx | 2026-03-09 14:40:25+00:00
I am not sure how would you would simulate them. With enums and structs, I suppose?

However, it also has true sum types:

type SumType interface { isSumType() }
type A string
func (A) isSumType()
type B int
func (B) isSumType()

But as you can see the syntax leaves a lot to be desired and may not be all that obvious to those who are hung up thinking in other languages.
by princeholdings | 2026-03-09 14:40:29+00:00
Two things I've been building this year, both trying to solve real problems I care about:

https://talonwatch.com : I kept seeing founders discover their Stripe keys were public or their database was wide open, usually after the damage was done. Built a passive security scanner for vibe-coded apps so that's easier to catch early. Free surface scan, no account needed.

https://thetracejournal.com : A small iOS journal that pairs a song with each entry. Music is tied to memory in a way nothing else is, and I wanted a place to capture that.
by manyaoman | 2026-03-09 14:40:41+00:00
I don't think that's correct according to the newly published video. Correct me if wrong, but I think it shows a Tomahawk hitting nearby the school, and based on the amount of dust it seems that the school was already hit moments earlier. So it still isn't 100% clear if the school was also hit by a Tomahawk or by something else.