MurphyA/hacker-news huggingface dataset:
Show HN: Common FP – A New JavaScript Utility Lib
by waphil | 2025-09-09 13:46:58+00:00
## Who is this for?

1) Devs looking for utilities that treat data types generically. For example, `mapValues` takes an array, object, Map or Set and returns a new instance.

2) Devs interested in functional utilities without the jargon. Utilities are named in plain English, there's no currying, and its source is kept simple.

## Other features

- An in-browser playground: https://common-fp.org/try-it

- Supports TypeScript

- 100% test coverage with types tested as well.

- For every utility, I try to explain why it's useful along with a code example.

## A personal note

- I built this as a personal endeavor. I wasn't trying to solve a problem the community expressed, so I understand if people find it odd or unnecessary. Finishing a project is difficult, and I'm mostly happy just to have done that and present what I consider to be a polished product.

## Link to source

- https://github.com/common-fp/common-fp/tree/dev/pkg/common-f...

Thanks for taking a look. ~Phil

* This is a repost since the first time was over a US holiday. Original post here: https://news.ycombinator.com/item?id=45084163
by pen2l | 2025-09-09 13:47:23+00:00
Reddit is one of the most potent places where opinion-shaping has been happening. I've been getting ads for Reddit everywhere recently (even thought I've been a reddit user for about 20 years).

r/worldnews is pretty tightly controlled, it's a default subreddit meaning 50+ million people see the posts submitted in this subreddit, and most critically, the ensuing conversation in comments which goes only in one direction. Frankly I'm impressed this all was pulled off so seamlessly.
by tdeck | 2025-09-09 13:47:47+00:00
> Some of the time (maybe 10% IME), the person complaining knows how to fix a problem,

Knowing how to fix the problem shouldn't be a hard prerequisite to raising an issue. I've seen situations where everyone on the team is aware of a problem, but the only people with authority to solve it are sitting around waiting for it to work itself out without their intervention.

Of course the natural thought is "raising an issue constructively isn't complaining", but there's a kind of viewpoint bias on both sides of this. Sometimes people who are too wedded to some idea or way of doing things view any criticism at all in a reflexively negative light, just as some people tend to air grievances as a hobby without a constructive outcome in mind.
by benchloftbrunch | 2025-09-09 13:48:29+00:00
As long as you're OK with self signed certificates or PGP keys, I'd be on board with this.

I really, really dislike the idea of using TLS certificates as we know them for this purpose, because the certificate authority system is too centralized, hierarchical, and bureaucratic, tightly coupled to the DNS.

That system is great for the centralized, hierarchical, bureaucratic enterprises who designed it in the 90s, but would be a pain in the ass for a solo developer, especially with the upcoming change to 45 day lifetimes.
by Lord-Jobo | 2025-09-09 13:48:29+00:00
I had a two phone lifestyle as well for different reasons: I needed car play but don't like iOS, and also needed to know Android and iOS quite well for my job.

One iPhone that was wifi only, had my entire music library local, used for car play and a few exclusive apps.

One android with a sim that had my communication apps, social media, and some custom tinkering stuff that doesn't exist on iOS.

I did this for about two years. The main takeaways: -I 100% could have just had the iPhone with a sim for communication apps and been fine. The social media was just annoying enough to swap to that I never felt that draw and barely used it on 2phones. -even though I despise how little customization iOS lets you do, without social media or game apps, the only actual pain point with it was the nightmare of managing notifications/alert/vibration/screen wake settings* -god it made me miss small phones so much. The android was a pixel 4a, the last real phone with real hardware that released at the actual ideal size for my hands(that has an unlocked bootloader, I really can't do the Samsung hellOS experience again).

Now Im on a pixel 8 only, with Glider for this site and no other social media or games. It's fine. Phones too big, car doesn't have AAuto, and Google is trying to rot the foundation of android, but for now it's fine and better than the two phone experience because it's less juggling.
by delichon | 2025-09-09 13:48:43+00:00
Knowing how, why, when, and about what you are being manipulated unfortunately does little to prevent it. Knowing that encourages people to do the same to others in self defense.

I'd love to be wrong. If you can find evidence that learning the techniques provides some immunity from them, I'd be happy to see it.

I'm well aware of how I'm being manipulated with regard to the murder in Charlotte, yet it still presses my buttons. The same is true when a beautiful women asks me for anything. Self awareness has little effect on primal motives.
Show HN: Dochia – Automating repetitive microservices API testing
by ludovicianul | 2025-09-09 13:48:45+00:00
I’ve been working on an open-source CLI tool called Dochia for a while now.

The reason for building it: in microservices architectures, testing is repetitive: every service exposes APIs, and much of the testing process will share a similar set of test cases: negative inputs, boundary cases, encoding quirks, invisible characters. I wanted a tool that could automate this shared layer of testing instead of doing it manually across dozens of services.

So what Dochia does: reads your OpenAPI spec; generates thousands of smart, edge-case payloads automatically and produces detailed reports with reproducible cases.

I've been use it for any microservice I've built as to establish a foundation in place.

Github: https://github.com/dochia-dev/dochia-cli and website: https://dochia.dev

It's open-source, and I'd love your feedback. Contributions, issues, and edge-case stories are very welcome.
by mtlynch | 2025-09-09 13:48:49+00:00
>How do I write an unit test for an application that has an embedded Visual Basic script support with dozens of scripts that are thousands of lines long? The book does not answer this question at all because the author assumed I have the luxury of working with Java or an another language that supports the object-oriented paradigm and can be endlessly extended with no limitations whatsoever.

Why does the idea of identifying seams not apply to Visual Basic Script?

I've never worked with Visual Basic Script, but I don't see why Feathers' strategy wouldn't apply.

I agree that modernizing legacy code is easier in languages like Java, but I don't think it's strictly necessary. I've used Feathers' techniques for testing C code.
by Malix_off | 2025-09-09 13:49:25+00:00
The obvious benefit to me are the automations, I have directly experienced these time benefits

I read you think these automations lead to more harm than good so are a net negative, and I understand that point of view

However, I think this is not a tautology

I think dependency hells and bad dependencies absolutely happen indeed, but are conditioned to badly managed programming projects

And I do not want to suffer from the dumbing down of stripping out package managers
by venusenvy47 | 2025-09-09 13:49:49+00:00
I've been using Netbird on my home network and on my daughter's laptop to provide remote support while she has been at college. This year she moved into an apartment, which has its own cable modem and router/network that I set up. I haven't figured out how I will configure a "zero-trust" architecture that will allow me to act as remote support for her remote network. I'm not the best at networking and I'm afraid of connecting the networks in a manner that I don't expect. I'd be interested to hear if anyone can suggest how to configure this arrangement. I've always had her leave the Netbird client on her laptop turned off unless she is specifically asking for help. I plan to do something similar, where I would have her remote network normally disconnected from whatever VPN bridge network I set up.
by jerf | 2025-09-09 13:49:51+00:00
I doubt it. Local math programs tried to jam those things down sooner, but it doesn't do much good and may do harm. While I understand Piaget is not necessarily the last word in human development, using his terminology, real mathematical education can't really proceed until the formal operational stage is attained. Prior to that all you can really expect is extremely concrete things (in the aptly-named concrete operational stage) like arithmetic. Only single-digit percentages can handle simply moving that stuff earlier into the curriculum. The local conversation on that is distorted by HN having a lot of those single-digit percentages in question, but it's not the normal case.

While I didn't lay it out in my curriculum discussion, I also extremely, extremely strongly support using computers to provide personalized curricula to students designed to probe them for when they are ready to start more advanced math, leading to the complete destruction of the unbelievable awful cohort system in use today, and giving those single-digit percentages the ability to proceed onwards at their own pace, however much faster or slower it may be than anyone else's. But if my curriculum is goring a sacred cow, this idea is goring an entire herd of them at once. The field of education's resistance to computerization has been incredibly effective, to their personal benefit but to all our children's detriment.
by elpocko | 2025-09-09 13:49:56+00:00
It's not reasonable because it makes no sense. "If they allow self-harm videos, before you know it they'll allow ALL videos.", there you go.

The slippery slope argument is warranted because it's true: the law was about pornography, then it was extended to include non-pornographic content, and we can be sure more stuff will be banned in the future, as it always happens with these laws.
by DiggyJohnson | 2025-09-09 13:50:04+00:00
Funniest thing I've heard a kid say all month. My colleague's 7 year old daughter to him:

D: "Dad why does everyone honk at mom when she drive's us to school?"

F: "Because she drives too slow sometimes."

D: "Why doesn't she speed up?"

F: "I don't know. She's always been like that."

D: "I tried saying people are waiting for us to go [referring to a pretty benign yield right-on-red near their house]."

F: "How'd that go?"

D: "She didn't listen!"

I don't know why but it was absolutely hysterical to me. Kids are precious.
by WalterBright | 2025-09-09 13:50:07+00:00
D is the result of lack of interest by the C++ committee, and I had little interest in spending literally years trying to get useful things adopted into C++.

Ironically, over the years, C++ has adopted many features popularized by D.

(like contracts!)

C++ should adopt a few more D features, like https://www.digitalmars.com/articles/C-biggest-mistake.html, compile time expression evaluation (C++ did it wrong), forward references, and modules that work. C++ should also deprecate the preprocessor, a stone-age kludge that has long been obsolete.
by ehnto | 2025-09-09 13:50:26+00:00
> For instance, he sees a lot of people who think developers are pushing things down people's throats, are making games bad or annoying on purpose just so that users get frustrated, etc.

There are studios that churn out crap games to capture the casual games market, which is not the gaming industry that an avid gamer would be familiar with.

Watch a kid with a tablet navigate the mobile/casual game market, you will feel sick. They flick between two dozen games in an hour, 90% of each game is locked behind microtransactions, and they get about a minute or two before the unskippable ad shows up.

The ad is for another lootbox/microtransaction fueled game, or actual gambling sometimes, and it's only another couple of minutes before an ad shows up in that game too. Rinse and repeat.

Kids are having their reward circuits absolutely fried, and it is not game enthusiasts making these games, it's just regular old capitalist companies who are trying to squeeze an opportunity.

It is every bit the exploitive, uncreative industry your friend thinks it is, but I do believe it is not the same as the games industry. It's like the difference between a board game and a slot machine.
by cjfd | 2025-09-09 13:51:23+00:00
"Benefit the US". Nonsense. Trade barriers hurt both sides. And if the US wants to lower its trade deficit and/or bring back manufacturing some things that actually make economic sense are: stop being the reserve currency of the world, raise your interest rates, and start running a government surplus instead of deficit. Ah... you notice that all of these things are the opposite of what the idiot in charge of the US is actually doing. Well, the shortened summary of the whole thing is that the US is the very curious case of a superpower attempting to become a third world country. So who is actually winning here? Well, if the rest of the world decides to start doing some more free trade, the one losing is at the least very clear.

You know, trump is all about optics. If you have no idea what is actually going on it may well look like the mascot is the most important person on the field. Trump has made it its life purpose to be a mascot. In the meantime the collapse is brewing in the back.
by lotsofpulp | 2025-09-09 13:51:25+00:00
I thought that too, and then Toyota wanted $15 per month for remote start and made it seem like they were doing me a favor when I went to buy a car, so I ended up with a Tesla. Ended up not missing Carplay, and it cost $20k less for a car that seats 5 adults and 2 kids.
by firasd | 2025-09-09 13:51:28+00:00
Interesting!

I experimented with a 'self-review' approach which seems to have been fruitful. E.g.: I said Lelu from The Fifth Element has long hair. GPT 4o in chat mode agreed. The GPT 4o in self-review mode disagreed (reviewer was right). The reviewer basically looks over the convo and appends a note

Link: https://x.com/firasd/status/1933967537798087102
by RDaneel0livaw | 2025-09-09 13:51:34+00:00
I'll echo how good V Rising is. I don't even like this entire genre (base building grindy survival), but I had a blast in this game. I eventually gave up when managing my castle became too much of an annoying chore (omg I have to tear everything down and rebuild it all AGAIN because now I don't have enough space in the required room to place this new crafting bench or whatever ... OMG PLEASE NO) but the world exploration and combat and bosses was always super fun. I also loved how they allowed the player to scale the difficulty however they wanted. I wound up turning my game into "baby" mode by cranking the boss difficulty down just because I didn't want to keep replaying the bosses in my limited time. Had a blast!
by benterix | 2025-09-09 13:51:38+00:00
You are right, I can't prove the validity of "users are finding utility from the Metaverse". I somewhat can argue that the device itself is indeed useful though:

https://patentpc.com/blog/vr-headset-sales-stats-whos-leadin...

20 millions is not nothing, it means that at least some people find these useful, and I can understand why, even though personally I wouldn't touch it.

Also, I believe VR had similarly distorted expectations as LLMs, with the whole Meta rebranding, Apple VR etc., all it being a flop from the point of view of investors (and, in the case of Apple VR, a good portion of users):

https://nypost.com/2024/11/12/tech/apples-vision-pro-flop-co...
by disgruntledphd2 | 2025-09-09 13:51:43+00:00
> I wonder how long the myth of AI firms losing money on inference will persist. Feels like the majority of the evidence points to good margins on that side

If they're not losing money on inference, then why do they need to keep raising absurd amounts of money? Like, if inference is profitable and they're still losing lots and lots of money, then training must be absurdly expensive, which means that basically they invest in quickly depreciating capital assets (the models) so not a good business.

I think Anthropic is an interesting case study here, as most of their volume is API and they don't have a very generous free tier (unlike OpenAI).
by vixen99 | 2025-09-09 13:52:19+00:00
Agreed!Two things here: 1. Totally deficient regulatory framework and 2. The argument for those on the Right or Left is - do those running the company bear the consequences of their actions? Do public servants? Almost never. We need water, power, roads etc., So define the goals for these and get people to run them (public or private) who will bear consequences for a F.U. Politicians almost never face the consequences of their decisions. If there was at least some linkage the future might be different. That is a fundamental problem with bureaucracy as well.

As a far distant example: Tony Blair sails into opulent old age as a 'respected statesman' having lied about weapons of mass destruction incurring the deaths of 150K - 1 million.
by qcnguy | 2025-09-09 13:52:35+00:00
Government bonds are only low risk in economic theory. In real world practice lending to left wing countries can be high risk as they like to accumulate too much debt and then default. That's why the UK government is paying 5.8% on its bonds at the moment despite being able to print its own money, which is the same average interest rate paid by Thames Water. Lending to Thames is not seen as riskier than lending to the state, despite that Thames faces huge regulatory constraints like price controls and the British government can literally force people to give it all their money.

> private companies draw down new debt on promise of future cash inflows from consumers

This is what governments do too.
Show HN: Sphinx – the Jupyter-native AI copilot for data scientists
by _jab | 2025-09-09 13:52:59+00:00
Hey HN community!

Over the past year, AI copilots like Cursor and Windsurf have fueled a dramatic shift in software engineering workflows. And yet, many technical users in adjacent fields like data science and analytics have been unable to reap the rewards of this revolution.

It turns out that the existing tools are a poor match for analytical workloads. Beyond that Cursor and similar tools have very poor support for Jupyter notebooks, data science is a fundamentally different discipline from software engineering and we believe it requires a correspondingly different tool.

We're excited to announce the launch of Sphinx to fill this gap. Sphinx is a data-native AI copilot for Jupyter notebooks. Unlike existing copilots, Sphinx understands that data science often requires an experimental, exploratory approach.

Some highlights of Sphinx's capabilities: - A fully agentic loop, able to break tasks into discrete steps and implement them cell-by-cell - Able to create and read charts and graphs to guide its next steps - Fluent in working with common data connectors, like Snowflake, Databricks, and databases - Full MCP integration, and large outputs can even be processed programmatically as data directly in the notebook

To make it as easy as possible to use, Sphinx operates on ordinary Jupyter notebooks and is available as a simple VSCode extension with a generous free tier.

Excited to hear what you all think!
by torginus | 2025-09-09 13:53:07+00:00
> And baseload is hardly ever qualified with even a ballpark estimate in GW or GWH of capacity needed.

If we close all the steel mills and ship off manufacturing to China, then yes, we won't have baseload, and we can be happy that we saved the planet using solar!

> Renewables can't meet the base energy needs. That assertion is not something everyone agrees with. And baseload is hardly ever qualified with even a ballpark estimate in GW or GWH of capacity needed. So, it's a fairly hollow and meaningless term.

> And the reality is that for every 100GW added to grids world wide, about 80% or more is renewable.

Do you have solar at home? Because I do, I have 10kW of panels on my roof. I just checked my stats and in December I approximately made about 15% o peak capacity. And even that isn't the whole picture, as there were chunks days where I basically made nothing and even the batteries couldn't pull me through it. And I have no idea how you're calculating this 100GW. If you count adding 2000 500W panels as adding 1MW, then even on the Caribbean your calculation is going to be incredibly generous.

> Nuclear is only small portion of the remaining capacity

As for nuclear, it was made way too expensive because the economy and money became fake, divorced from real value, and pearl-clutchers and concern trolls made it too expensive. But even in the 70s-80s when things were actually built in Europe, it was clear that Gen IV (of which SMRs are an example) was the future of nuclear, its just nobody bothered to build it because it was easier to ship off manufacturing into the 3rd world.

>Besides, data centers are a great example of something that can easily scale up and down its energy consumption.

Yeah when you buy millions of dollars of HW, the 'we'll need to run it at 15% capacity in December and during night, not at all' sounds like a sound return on investment. Way to cheerlead to get another industry shipped off from the continent.

> SMRs won't have fixed anything until there are lots of them.

SMRs are not small, they are scalable, and can be made in similar capacity to existing coal and gas plants. Once they reach EOL, they'd be a perfect slot-in zero emissions replacement. But since nuclear is the devil's work, I guess we'll get to keep burning gas for another half a century.
by echelon | 2025-09-09 13:53:10+00:00
I have no idea what this game is, and I'm pretty insulated from gaming news, culture, etc.

The amount that this name, franchise, or whatever it is has been showing up on my feed is absurd. Reddit, YouTube, Google news, Hacker News. It's everywhere.

What the heck is Silksong and why is it saturating the attention sphere? It's on my feed more than Trump and Ukraine and geopolitics and the latest AI fundraises.

How did it manage to do this? What's the formula? Or is there simply a lull in the cycle?
by giancarlostoro | 2025-09-09 13:53:12+00:00
It doesn't just end with AI, but it seems the most blatant. At a bare minimum, he could assign someone to fulfill that vision for AI. Google has their own chips which they scale. Apple doesn't need to rebuild ChatGPT, but they could very much do what Microsoft does with Phi and provide Apple Silicon trained and optimized base models for all their users. It seems they are already doing something for XCode and Swift, but they're just barely scratching the surface.

I remember when the iPhone X became a thing, it was because consumers were extremely underwhelmed by Apple at the time. It's like they kicked it up less than a notch sadly.

If Tim Cook decided to be a little more of a visionary, I would say keep him. I would at least prefer he would delegate someone to do the visionary work, he will eventually need a successor.
by mlinsey | 2025-09-09 13:53:40+00:00
I dunno if ASML is lacking any political favor that Mistral can give them, they are already one of the most critical companies for Europe and the entire western supply chain.

There is a possibility this is a step towards building a full-stack all-EU AI - if AI delivers on the hype, the EU will certainly want to have one they fully control without dependency on either the US or China. But this would mean having an EU-based alternative to both TSMC and NVIDIA as well, and it's hard to see how that happens. It probably looks something like the EU passing its own CHIPS act to open TSMC-run fabs on EU soil, making Nvidia chips that are then allocated to Mistral; there is non-EU IP there but the whole operation can at least take place on EU soil.