MurphyA/hacker-news huggingface dataset:
by catenate | 2025-06-21 02:31:03+00:00
I've been using a little literate-programming shell script for years, for various personal and professional projects. I find it makes a huge difference in my ability to hand off a code file to another developer, because I tend to document justifications and explanations for why the code is the way it is, where it came from, what else was tried, alternatives and variants, and how to understand aspects of it that are not obvious from the code.

My script doesn't try to shuffle code around, which has the advantage that if you are familiar with the general structure of the code, the documentation follows the same structure. (This may not be the best order to explain the theory of the program, as is noted in several introductions to literate programming).

Instead of code blocks, my little shell script has a per-line approach, where each code line is preceded by the name of the file to which it is extracted. This approach allows me to name a variant immediately after the filename, so that I can code alternative lines, and decide at the time of extraction which sets of lines to use. This is also useful for extracting multiple very similar files from a single markdown source. This use of variants has been very effective in supporting alternative implementations, since I can quickly switch between them by the list of variants I give the tool to extract.

https://github.com/catenate/sharedo/blob/main/lit.md
by Aachen | 2025-06-21 02:34:50+00:00
> I pay for YouTube premium (which gives me YouTube music too)

I'm curious about a buyer's perspective: would you say this is "tying"? (Seems like an ambiguous word for it but I can see no other translation for koppelverkoop)

https://en.wikipedia.org/wiki/Tying_(commerce)

To me it seems like trying to undermine the market for music streaming (which is currently somewhat healthy with a handful of competing services worldwide where you can get access to most artists' work) by abusing the monopoly on videos that people often want a subscription on. The parent corp has so much cash to spare, giving away music for nearly free is worth it to make it extremely difficult to compete in this other market. From an individual's point of view, you're a thief of your own wallet if you don't get this two in one deal (assuming you want both). I'm not sure how to feel about people who buy this
by Noumenon72 | 2025-06-21 02:35:35+00:00
> Option 2 - Hand it off to DevOps. The other option is to have data science produce prototypes that can be on Notebooks and then have a devops team whose job is to refactor those into an application that runs in production. This process makes things less fragile, but it is slow and very expensive.

I've never understood why this is so hard. Every time data science gives me a notebook it feels like I have been handed a function that says `doFeature()` and should just have to put it behind an endpoint called /do_feature, but it always takes forever and I'm never even able to articulate why. It feels like I am clueless at reading code but just this one particular kind of code.
by skissane | 2025-06-21 02:35:51+00:00
> I think there is some inherent tension btwn being "rational" about things and trying to reason about things from first principle..

Consider ethical pluralism – by which I mean, there is enormous disagreement among humans as to what is ethical, we can't even agree on what the first principles are. Sure, we all agree on a lot of non-controversial applications – e.g. killing children for sport is gravely evil – but even when we agree on the conclusion, we won't agree on the premises.

Is it any different for theoretical rationality? I don't think so. I think we have the same situation of rational pluralism – sure, we can agree on a lot of non-controversial applications, but we lack agreement on what the first principles are. And when you disagree on the principles, you tend to reach completely opposite conclusions in edge cases.

But at least, with ethical pluralism, a preference utilitarian or a Kantian or a natural law theorist is very open about what their ethical first principles are, and how they differ from those of others. By contrast, the "rationalists" seem to present there as being only one possible rationality, their own.
by Workaccount2 | 2025-06-21 02:37:28+00:00
Just want to point out, adding on to OP, that creators on youtube get 55% of revenue.

I get that Google has infinite money and infinite evil. But how convenient you also get to skip out on paying the majority expense, which goes to the creator...

And yes virtuous commentor, I know you are one of the 1.5% that convert to a patreon supporter. Now ask everyone else why they get to eat for free (while endlessly complaining that the restaurant sucks).
by vel0city | 2025-06-21 02:38:23+00:00
> isn't a normal cell in an EV battery is like a AA size?

No. Some companies use tons of cylindrical cells that are larger AAs (like 18mmx65mm, 21mmx80mm, or 46mmx80mm). But even then at 46mm in diameter it's a good bit bigger than a AA.

But lots of manufacturers use prismatic or pouch like batteries. They're large and rectangular. Like these batteries on this BYD, they're called "blades". Most other major manufacturers use prismatic cells.
by atomicnumber3 | 2025-06-21 02:42:33+00:00
Yeah, I'm with you on this one. I pay for YT premium family, and it's basically the only subscription in 2025 that feels worth it to me. My wife watches YouTube instead of cable TV, so it's already a cheap cable bill. But you also get YouTube music! Which I'll admit is a slightly janky music app since it also kind of sits on top of YouTube videos that it decides are mostly music. But their actual music selection is good if you kinda know how to navigate the UI to the "real" music.
by zdragnar | 2025-06-21 02:42:33+00:00
There's a very simple answer.

You want to watch some content. The content provider offers you two options: pay and get no ads, or watch for free and also sit through some ads.

You are not obligated to watch ads. You are opting to watch them in exchange for the free content, then skipping out on a commitment you volunteered for while still taking the free content.

The "unethical contact" argument is bullshit, because you made a choice but didn't live up to it. Instead of either paying or not watching, you watched anyway.
by pixelpoet | 2025-06-21 02:44:12+00:00
> GLSL is fine.

How would you use shared/local memory in GLSL? What if you want to implement Kahan summation, is that possible? How's the out-of-core and multi-GPU support in GLSL?

> People don't understand

Careful pointing that finger, 4 fingers might point back... Shadertoy isn't some obscure thing no one has heard of, some of us are in the demoscene since over 20 years :)
by lubujackson | 2025-06-21 02:44:23+00:00
Miyazaki reportedly hated the ending and didn't want to have such a tidy solution, but needed material because he was greenlit for a movie and Nausicaa was all he had.

The other 3 books from the manga go into much more depth politically and spiritually, with a lot more philosophy about ecology and even what it means to be human.
by MontyCarloHall | 2025-06-21 02:45:58+00:00
These are all great examples of the advantages of array programming syntax versus imperative scalar programming syntax, but do not IMO demonstrate the advantage of terse array programming syntax.

For example, the NumPy equivalents of your examples are not materially longer than their APL/J equivalents, but are easily readable even by people unfamiliar with NumPy:

> the average of a vector x; or the average of each column in a 2D matrix x

x.mean(0)

or, to use your example verbatim,

x.sum(0)/x.shape[0]

> flattens a recursive list

x.ravel()

> name indexed by grading of ages

name[age.argsort()]

Though for this application, you’d probably be using a dataframe library like Pandas, in which case this would be

df.sort_values(“age”)[“name”]
by thaumasiotes | 2025-06-21 02:46:15+00:00
> Sheaths also sheath swords.

So? Sharing an extremely general trait with many things including swords isn't an analogy to swords. Is wine analogized to aggression because guns have barrels?

Besides scabbards, the other prominent use of vagina in Latin was to refer to the husk of grain. Do you conclude that an analogy is being drawn between sex and nourishment? Sex and worthlessness?

Wouldn't that conflict with the idea that the use of the word vagina is an analogy to aggression? How can the same fact be evidence both for and against that idea?

> Relatedly, the slang (or 'real') word for penis is/was weapon in old English.

Why do you think this is related?
by chaboud | 2025-06-21 02:47:37+00:00
I’m going to guess that they meant Directed Acyclic Graphs or DAGs, which is a useful way to represent data dependencies and transformations, allowing formulation for GPU, CPU, NNA, DSP, FPGA, etc.

If the macrostructure of the operations can be represented appropriately, automatic platform-specific optimization is more approachable.
by plandis | 2025-06-21 02:48:49+00:00
How far are you driving in a typical day?

If it’s less than like 100 miles (161km) I think that the vast majority of EV batteries are going to get you where you want to go, even with 25% reductions due to cold weather. FWIW, the American average is around 36 miles/day.

There is a semi famous YouTuber named Hank Green that lives in Montana and daily drives an EV. He occasionally makes videos about his experience.
by teruakohatu | 2025-06-21 02:49:37+00:00
> Here are two verses of a poem (song) in Mandarin Chinese:

> …

> I removed two lines. Where did that happen?

If you read the paper you will see they provide the original as well as the version missing information.

I did mention this in my comment too.

I am quite sure I could find your two missing lines if you provide me the full poem.

Given that you are a prolific commenter on HN, I am sure a LLM could be fine tuned to detect missing text from your comments without additional information. For example …

> WinForms is still around. There have been further tec lly just a big tire fire and about the best you can do is to ignore all of them and develop in WinForms.

It’s probably possible to detect missing information from “tec” until “lly”. But to know what is between is not possible for a human either, beyond plausible guesses.
by travisgriggs | 2025-06-21 02:50:09+00:00
I’m torn on “is this the future”.

I worked all day on a Phoenix app we’re developing for ag irrigation analysis. Of late, my “let’s see what $20/mo gets you” is Zed with its genetic offerings.

It actually writes very little Elixir code for me. Sometimes, I let it have a go, but mostly I end up rewriting that stuff. Elixir is fun, and using the programming model as intended is enlightening.

What I do direct it to write a lot is a huge amount of the HEEX stuff for me. With an eventual pass over and clean it up for me. I have not memorized all of the nuances of CSS and html. I do not want to. And writing it has got to be the worst syntactic experience in the history of programming. It’s like someone said people lisp was cool; rather than just gobs of nested parentheses, let’s double, nay triple, no quadruple down on that. We’ll bracket all our statements/elements with a PAIR of hard to type characters, and for funsies, we’ll make them out different words in there. And then when it came to years of how to express lists of things, it’s like someone said “gimme a little bit of ini, case insensitivity, etc”. And every year, we’ll publish new spec of new stuff that preserves the old while adding the new. I digress…

I view agentic coding as an indictment on how bad programming has gotten. I’m not saying there wouldn’t be value, but a huge amount of the appeal, is that web tech is like legalese filled with what are probably hidden bugs that are swallowed by browsers in a variety of u predictable ways. What a surprise that we’ve given up and decided the key tools do the probabilistic right thing. It’s not like we had a better chance of being any more correctly precise on our own anyway.
by paxys | 2025-06-21 02:50:58+00:00
Looks cool, but it's weird to constantly make comparisons to Grammarly (in the post title, description section of the site, benchmarks) when this is clearly a rule-based spellcheck and very different from what Grammarly offers.

Instead tell me how it compares to the built-in spellcheck in my browser/IDE/word processor/OS.
by Velorivox | 2025-06-21 02:51:20+00:00
That is the user's choice. If a user comes to a bookshop wherein they are allowed to read the books for free but only in the store, they have little right to argue that they should be allowed to take the books home like paying customers because the store's lighting is not to their liking and they want to read in 6000K. They are free to picket outside and claim that the store is ruining people's eyesight, but no one sane will take them seriously.

Furthermore, the appropriate solution to this "problem" would be to stop letting people read anything for free.
by psadri | 2025-06-21 02:52:11+00:00
I don't disagree that code is far more efficient than inference. But what are those apps? A lot of apps are fetching some data, massaging it, rendering UI to let the user view / update data. Could the AI do some of that "work" for you, so that you don't need those dashboards / buttons / forms in the first place? Maybe you have an agent that does a db query (instead of a human viewing a dashboard) and takes some action (instead of the human clicking a button).
by vel0city | 2025-06-21 02:52:44+00:00
Montana is colder than Norway in the winter. Norway gets a lot of warming from the coasts. There's not much coastline in Montana. It gets hit pretty hard by polar winds without the mediation of the oceans.

Turns out there's more to climate than just latitude. Lots of the US is colder than Western Europe on average despite mostly being far further South. NYC is colder than London in the winter even though it's coastal and a much lower latitude.
by usernamed7 | 2025-06-21 02:53:25+00:00
ads are awful on a good day. YOUTUBE ads are 5x worse.

I'm not going to sit there, waste my time, watching the same ads for the 5th time that has no relevance to me. Adblockers make youtube tolerable. If there were no adblockers i genuinely would be unable to use it.

Has nothing to do with a sense of entitlement, they are ads for things I would never purchase. so whats the point then? Why is it OK for people to pay to waste my time just because they paid to? What gives them the right to force me to watch that? Hard no. It's my browser, and I'll do as i damn well please.

I WOULD pay for youtube if it was a good product. But it's not. I'm not going to opine on all the reasons it's not. if/when they make it good i'll pay. That's a them problem.

but there is NO WAY i am going to start accepting ads back into my life. I'll just stop watching youtube.
by BestDev | 2025-06-21 02:53:54+00:00
Hey HN,

I've released a new open-source project that's gaining real momentum in the security compliance space:

https://github.com/TristanGNS/wazuh-cjis-rules

It’s a modular ruleset for aligning [Wazuh](https://wazuh.com) (open-source SIEM) with the FBI’s CJIS Security Policy — with mappings to NIST 800-53 baked in. Built for public sector security teams, analysts, and any org handling CJIS-regulated data.

In less than 48 hours: - 349 clones, 178 unique cloners - 822+ repo views, 101 unique visitors - Interest from multiple orgs including use for CMMC control scanning - Community engagement on LinkedIn and GitHub already kicking off

What’s included so far: - Rule creation for CJIS Areas 1–6 (in progress) - Modular, Git-managed XML rules - Inline control mappings + assumptions - Project roadmap and contributor-friendly structure

Up next: - Compliance dashboards - Trigger validation in Wazuh test environment - SCA policies + reporting scripts

This is a build-in-public project — I’m keeping it transparent, open to feedback, and focused on real-world use. If CJIS, NIST, or Wazuh is in your world, I’d love input or collaboration.

GitHub: https://github.com/TristanGNS/wazuh-cjis-rules

Thanks for reading!
by colechristensen | 2025-06-21 02:55:01+00:00
One of the best parts of SMAC was the game manual that came with the physical copy, sometimes I wonder if it's still hiding in a junk box somewhere in my parent's house. It wasn't only the expected kinds of controls documentation but mixed with game lore was real science.

>If Alpha Centauri inspires a few young scientists and astronauts; if it convinces a few more citizens to write to their congressmen and work to rejuvenate our space program, humanity’s space program, that will surely be its greatest and most lasting accomplishment.

I'm thinking given the comments here it succeeded.

https://oldgamesdownload.com/wp-content/uploads/Sid_Meiers_A...
Show HN: Money Keeper – A Small Expense Tracker for iPhone, iPad, and Mac
by SmallAppProject | 2025-06-21 02:56:50+00:00
Hello HN!

As apps grow increasingly complex, I started to question whether only feature-packed apps are truly helpful. That led to what I call the *Small App Project*—a philosophy of building small, focused tools that do just what you need, and nothing more.

Money Keeper is one of the apps I created as part of the Small App Project. It’s a small expense tracker built for clarity and efficiency.

---

What it does:

- Fixed Expenses. Easy to Grasp at a Glance. - Payday Calendar. Customize Your Start Day. - Monthly Summary. Expense Visualization. - Customizable Categories. - No Ads. No Data Collection. - Regular Updates Based on User Feedback. - Seamless Sync Across iPhone, iPad, and Mac.

You can download Money Keeper here: https://apps.apple.com/app/id6514279917

---

[Tech] Mac Catalyst

Money Keeper is built using a single codebase that runs across iPhone, iPad, and Mac—thanks to Apple's *Mac Catalyst* technology.

Mac Catalyst is a framework provided by Apple that allows iPad apps to run on macOS with minimal changes. By leveraging this, I was able to bring Money Keeper to the Mac with much less overhead, both in terms of time and complexity.

My biggest concern when launching a Mac Catalyst app was *stability*. Was it reliable enough for real users in production environments? I first tested the waters with my other app, Scheduler, which has now been running on the Mac for over six months. The result? It’s been solid. I gained enough confidence in Catalyst to use it again for Money Keeper.

The second challenge was *feature limitations*. Mac Catalyst apps don’t have full access to AppKit or certain macOS-native capabilities. Thankfully, most of those gaps weren’t critical, and I found ways to either work around them or plan a native Mac alternative if ever needed.

As a solo indie developer, time is everything. Mac Catalyst has been an incredibly helpful tool that enables me to build cross-platform apps efficiently. I’m especially excited about the improvements in macOS Sequoia (macOS 15), which further enhance support for iPad-style SwiftUI views on the Mac.

If you're an iOS developer interested in expanding to macOS, I highly recommend giving Mac Catalyst a try.

---

I'm a solo indie developer. If you have any feedback or run into issues, feel free to leave a comment here or use the in-app “Send Feedback” button. I'll do my best to respond.

---

Small App Project

The Small App Project is a personal mission to create tools that are intentionally simple—focused only on what truly matters.

I began to wonder: Are only complex, feature-rich apps truly valuable? Could a simpler, more focused tool actually be more helpful?

Money Keeper was born from this line of thinking. It’s designed to be straightforward and efficient, offering just the core features needed to manage personal expenses—nothing more, nothing less.

I believe small apps can provide big value. If you prefer clarity over complexity, I hope this app is useful to you.

You can check it out here: https://apps.apple.com/app/id6514279917
by usernamed7 | 2025-06-21 02:56:59+00:00
this is ridiculous.

The provider is welcome to serve ads, and i am welcome to not watch them. When there are Ads on TV and I get up to go to the kitchen, am i skipping out on a commitment? Am I now a freeloader? Should the TV have a camera to make sure I watch all the ads like a good little boy?

People have been fastforwarding/skipping ads for decades. this is nothing new.
by leptons | 2025-06-21 03:04:00+00:00
This is why I won't use these "AI" tools, because they obfuscate the bullshit. Since I have to check what it said anyway, it's easier if I just do a search and see where the info is coming from, and I can tell good from bad sources really easily. Putting an LLM in front off it is like polishing a turd - garbage in, garbage out.
by coppsilgold | 2025-06-21 03:04:05+00:00
I imagine you can do it by AI-transcribing the podcast while preserving timestamp metadata for each symbol. Use LLM to identify undesirable segments (ask it to output json or something) and then cut them out from the audio with ffmpeg.

Then you would need to set up a server that would do all this and serve as a 'mirror' to your podcasts without the ads.
by EasyMark | 2025-06-21 03:05:03+00:00
As Trump's (terrible) border policies show, the wall was never necessary; only iron fisted and merciless policing was needed to essentially close off the border. I said it for years that policy and tech were all that were needed to control it, along with well needed revised and improved immigration policies. Looks like only the former was instituted, so now we're doomed to stagnancy and decline
by Quarrelsome | 2025-06-21 03:06:26+00:00
and it is! What I think is particularly good about the media from this game is that many opposing views are represented and each of them are steelman, as opposed to strawman representations. I'm not the religious sort but when Sister Miriam states:

> ... you are trampling on the garden of an angry God and he awaits you just beyond the last theorem!

I get chills.
by cpgxiii | 2025-06-21 03:06:37+00:00
Sometimes, even if you know you're starting with somewhat suboptimal performance, the ability to use CPU code you've already written and tested on the GPU is very valuable.

Many years ago (approx 2011-2012) my own introduction to CUDA came by way of a neat .NET library Cudafy that allowed you to annotate certain methods in your C# code for GPU execution. Obviously the subset of C# that could be supported was quite small, but it was "the same" code you could use elsewhere, so you could test (slowly) the nominal correctness of your code on CPU first. Even now the GPU tooling/debugging is not as good, and back then it was way worse, so being able to debug/test nearly identical code on CPU first was a big help. Of course sometimes the abstraction broke down and you ended up having to look at the generated CUDA source, but that was pretty rare.
by thaumasiotes | 2025-06-21 03:07:08+00:00
...did you read my comment? The first - and really only - thing I say is that the original isn't necessary. Then there's an example. You shouldn't have trouble identifying where lines have been removed from the Chinese poem.

The fact that the original was provided doesn't demonstrate that it's necessary to the task. You can identify missing text without needing to know what was there.

> Given that you are a prolific commenter on HN, I am sure a LLM could be fine tuned to detect missing text from your comments without additional information.

Same thing. Why would you need to do tuning on text authored by me? You can easily detect missing text of that style by the fact that the sentence you have fails to be English. You can do the same thing in text for which you have no prior experience of the author.

> I am quite sure I could find your two missing lines if you provide me the full poem.

But hey, if you insist:

轻轻贴近你的耳朵

사랑해요

情话永远不嫌太多对你说

一全听你的

二给你好的

数到三永远爱你一个

四不会犯错

五不会啰嗦

每天为你打 call, cook 也不错

轻轻贴近你的耳朵

사랑해요

情话永远不嫌太多对你说

打开你的爱情手册

就在此刻

为你唱的专属情歌要记得

说你想说的

做你想做的

别怕失败因为你有我

陪你看日落

陪你等雨过

陪你一起唱完我们爱的歌

轻轻贴近你的耳朵

사랑해요

情话永远不嫌太多对你说

打开你的爱情手册

就在此刻

为你唱的专属情歌要记得

我轻轻靠近你的耳朵

说爱你不嫌太多

如果相遇的几率亿万分之一那么多

请相信我的真真真心比宇宙还辽阔

我会牵着你的手知道你全部接受

打开你的爱情手册

就在此刻

这首专属情歌 请记得