MurphyA/hacker-news huggingface dataset:
Show HN: KubernetesJS – Fully-Typed, Zero-Dependency Client for Kubernetes
by pyramation | 2025-06-24 17:12:52+00:00
I built KubernetesJS because I was frustrated with the state of Kubernetes tooling for TypeScript developers. Most existing clients, like kubernetes-client, were last updated five years ago and rely on generating clients at runtime from Swagger specs. That approach works, but it lacks strong typing, good auto-complete, and tends to feel brittle in larger projects.

KubernetesJS also uses the Kubernetes Swagger schema, but instead of generating clients at runtime, it generates fully-typed static TypeScript code at build time. That means you get excellent TypeScript support, predictable APIs, and no runtime dependencies. It works in both Node.js and browser environments, and you can install it with npm install kubernetesjs.

By default, the generated client is over 15,000 lines of code—that’s because it’s fully comprehensive, covering the entire Kubernetes API surface with rich TypeScript types. The tradeoff is verbosity, but in exchange you get clarity, safety, and first-class DX. If you prefer something leaner, you can generate a custom client and cherry-pick only the capabilities you want to expose using our schema-sdk module you can see it's use in the KubernetesJS monorepo. This is useful for building a smaller surface area or tailoring the API to a specific use case.

My broader goal is to move past Helm and YAML templating. Just like JSX replaced traditional templating in frontend development, I think Kubernetes needs a shift toward programmatic infrastructure—code that’s more composable, testable, and easier to reason about.

As a bonus, we also publish a React client with hooks powered by TanStack Query. This gives frontend developers a way to build dynamic apps and dashboards directly on top of Kubernetes. You can install that with npm install @kubernetesjs/react.

Still early, but it’s ready to use, and I’d love your feedback :)

Main package: https://www.npmjs.com/package/kubernetesjs React hooks: https://www.npmjs.com/package/@kubernetesjs/react GitHub: https://github.com/hyperweb-io/kubernetesjs
by monegator | 2025-06-24 17:13:33+00:00
I'm proficient with many MCU families.

Microchip tooling: download, double click, install, just works. Zero need for any framework, good bare metal support. a C project is an actual C project. Granted, if you use that MCC piece of shit you're in for a bad time, but going bare metal require zero effort, a single include file if you need to access peripherals, and you actually have documentation to do so.

ST tooling: sort of almost just works, more effort but you can still go bare metal with relative ease.

Current nordic: it's actually a zephir project, thousands of files to generate and compile. No options to go bare metal. (used to be possible with the older SDK, or so they tell me. Too bad i can't seem to be able to let a project compile with the old SDK, or set up the IDE for intellisense with the new SDK, but i haven't had enough time yet.)

Bonus: Espressif. At least their VSCode integration really just works. The peripherals are frustrating and severely bugged though and there can be supply chain issues, and that's the reason i'm looking at nordic for some BLE-enabled project, because the ESP32 parts won't cut it for this or that reason (usually the basic yet still bugged peripherals).

But i'm willing to put up with microchip's BLE modules again (i evaluated them several times over the years, always a disaster. But not the newer based on PIC32MZ, and the price have come down to be reasonable.) if the only option with nordic is the zephir monstruosity.
by deathanatos | 2025-06-24 17:13:36+00:00
As a counterpoint, one of the most useful customizations I've made to my prompt is to emit the exit status of the prior command. Knowing that something failed is a useful signal, esp. when sometimes the thing failing just fails to emit any output that indicates that it failed.

I only emit it if the prior command fails, too, so it doesn't clutter things the 90% of the time things are working.

» true » false (last command returned 1.) »

I also translate signals, so I get "last command exited on SIGSEGV", or so.

It's also useful the other way: when a program emits and error and exits with "success".
by rich_sasha | 2025-06-24 17:13:43+00:00
I'm back to Windows for a new $job. It's truly awful in so many ways, Linux is a joy by comparison for daily driving, with Mac a close-ish second.

With one difference: I'm not scared of software upgrades. The number of times my laptop was semi-bricked by an update, usually graphics driver, which required frantic googling for random commands, GRUB scripts with enormous disclaimers about how mistyping something will brick the laptop for good, discussions about Nouveau and how it's lal Nvidia's fault really... That's bad, always was, never got better for me, and I really don't miss it.
by incomingpain | 2025-06-24 17:14:11+00:00
I was just testing this a bit more.

I grabbed qwen3:4b. Cranked it to the max of 32k tokens.

It's fast to be sure, and im struggling to get it to hallucinate; but it is giving me a ton of 'The provided context does not include specifics'

Resource-wise its like running 12-16B, but faster. But soon as you expand the 12B to like 10k tokens it's clearly better for barely anymore resources.
by bigyabai | 2025-06-24 17:14:18+00:00
GNOME and KDE both have the same touchpad gestures as Windows 10/11, and the monitor extension logic is basically identical too (GNOME even has a Win+P accelerator). Game variety hasn't really been an issue since the Steam Deck came out, with apologies to League of Legends addicts that probably ought to move on with their lives anyways.

Like, I understand that my MRI operator can't just install Linux on their PC. But the majority of people are usually not dependent on Windows-exclusive software, especially in the smartphone era.
by miloignis | 2025-06-24 17:14:24+00:00
Boolean constructs certainly aren't sacred, and we have a million synonyms for both yes and no should the need arise.

Civilization will certainly not fall apart if language changes again, as it has for the entire history of spoken language - notably, Old English would be unintelligible to most of us now and civilization is working just fine. I just learned looking this up that Early English had a 4-form system consisting of yea/nae/yes/no ( https://en.wikipedia.org/wiki/Yes_and_no#The_Early_English_f... ), which is fascinating, and we appear to be doing just fine without yea and nae nowadays.

Anyway, I'll note that release and drop are near-synonyms if you're talking about a physical object, so their similar use for features etc isn't wild at all, and is well established in culture (drop an album, etc), so I don't think this is nearly as big a change (like yes->no would be) as you think.
by ilc | 2025-06-24 17:14:57+00:00
When the question becomes:

- Lose your career as a computer user.

- Surgery.

- Try funky expensive keyboard with lots of research behind it, and tons of testimonials.

The funky expensive keyboard suddenly looks like the cheap option.

If you don't value your time, or enjoy 3d printing and assembling stuff, kits get shipped every few months, with all the electronics, and access to the files needed to 3d print the board.

I'm typing this on a board I printed. If I valued my time at my hourly rate, the price listed is dirt cheap. But I enjoyed doing it :)
by fredfish | 2025-06-24 17:15:09+00:00
> The current WebAuthn/passkey registration process is practically TOFU at this point which is funny since this by itself negates the entire rationale behind hardware-based phishing resistant authenticators.

This is not an accurate description of the point of Fido phishing resistance. It isn't to make a bank feel happy the user has a hardware key unless you choose attestation. It is to make the user happy that if they click the key they know is hardware on the wrong site then that site can't MITM a site they intend to authenticate to.

(Stopping users from reusing the protocol for security between passwords and real hardware keys is basically just forcing the DRM for SaaS aspect of attestation on people because you can. If you aren't the kind of institution that issued real tokens to account holders then it is none of your business.)
by kube-system | 2025-06-24 17:15:17+00:00
> I would like to see laws allowing extreme low-cost vehicles (equivalent to golf carts, I guess) allowed on designated roads. A special inexpensive insurance proviso for them.

These already exist! You maybe haven't heard about them because they're largely a failure beyond niche applications. They're mostly used for things like hospitality shuttles, facility maintenance, meter maids, etc.

https://en.wikipedia.org/wiki/Low-speed_vehicle

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

The problem is that they don't make sense for most people, e.g:

1. You can't operate them on high speed roads. The US has a lot of high speed roads, particularly in areas that are poorer.

2. They aren't cheaper than a used car. A street legal Cushman or GEM starts at about $16k. A brand new Nissan Versa is only about $1-2k more, is wildly better equipped, and has more accessible financing. Good $10k used cars are available on every street corner in every poor neighborhood with extremely accessible financing.

3. They are weird. It is much more socially acceptable to drive a similarly priced used car.

4. They lack features that used cars have. Many control cost by omitting basic features such as doors and climate control.

5. The places where you can use them (low speed neighborhood roads) are already more likely to be accessible by alternative means of transportation. (busses, bikes, walking)
by mapt | 2025-06-24 17:15:23+00:00
While I'm strongly supportive of survey astronomy in general...

We can already say that we have very high completion of cataloguing near-Earth objects that are anywhere near extinction-event / Chicxulub-sized (~10km), and have a majority of catastrophic / country-killer (~1km), and are digging deeper and deeper into regional / city-killer (~100m) bodies.

What we don't have is comets. Comets on long period orbits just aren't readily detectable with this sort of survey unless they're quite close in to the Sun, and I don't think we have great statistics on frequency vs size, size being something that requires very specific radar cross-checking to establish with any confidence. A long-period comet or hyperbolic body has a potential impact velocity much higher than inner system asteroids, and impact energy scales with impact velocity squared.
by smeeth | 2025-06-24 17:15:30+00:00
The main limitation of tokenization is actually logical operations, including arithmetic. IIRC most of the poor performance of LLMs for math problems can be attributed to some very strange things that happen when you do math with tokens.

I'd like to see a math/logic bench appear for tokenization schemes that captures this. BPB/perplexity is fine, but its not everything.
by pengaru | 2025-06-24 17:15:42+00:00
Amazon is Walmart 2.0. For over a decade shopping at Walmart was frowned upon by many in the US, criticized for enabling the corporate destruction of mom-and-pop retail. It had little effect beyond virtue signaling to your peers.

All the while those same people had Amazon boxes cluttering their homes.

And if you look at the Fortune 500 list, the succession is nearly complete; Amazon is #2 just behind Walmart: https://en.wikipedia.org/wiki/Fortune_500#Overview

The consolidation cycle continues relentlessly - the interesting question is what does Walmart 3.0 look like? Aliexpress?
by jameskilton | 2025-06-24 17:16:03+00:00
Shadows. Everyone I know who's tried FSD learns very quickly that it's a random chance that the car will see an oncoming shadow (big truck, bridge, tree, etc) as a wall and either slam on the brakes or swerve.

If you have reliable depth information, ala LIDAR, you'll be able to know that there's nothing actually there.
by buildxyz | 2025-06-24 17:16:18+00:00
Any speed up that is 2x is definitely worth fixing. Especially since someone has already figured out the issue and performance testing [1] shows that llamacpp* is lagging behind vLLM by 2x. This is a positive for all running LLMs locally using llamacpp.

Even if llamacpp isnt used for batch inference now, this can allow those to finally run llamacpp for batching and on any hardware since vLLM supports only select hardware. Maybe finally we can stop all this gpu api software fragmentation and cuda moat as llamacpp benchmarks have shown Vulkan to be as or more performant than cuda or sycl.

[1] https://miro.medium.com/v2/resize:fit:1400/format:webp/1*lab...
Show HN: DotPlus – offline QR and barcode generator in Rust (GUI and CLI)
by NigDanil | 2025-06-24 17:17:01+00:00
Hi HN,

I built DotPlus — a fully offline QR and barcode generator written in Rust. It supports CSV input, PNG export, QR + multiple barcode types, and works both as a GUI and CLI tool. No internet required.

Use cases: warehouse labeling, logistics, offline automation, shipping stickers, inventory tags.

Built with egui, barcoders, imageproc, and pure std::env CLI parsing.

Free binaries available. Not open-source (yet), but free for personal use.

Would love feedback or ideas for improvements!

GitHub: https://github.com/nigdanil/dotplus Site: https://dot-plus.ru
by voskresenie | 2025-06-24 17:17:10+00:00
>Its sad that can't see why this is utterly bizzare, deluded/no recognition of how reality is, and likely creepy.

This is all just a verbose way of saying 'it makes me feel icky'. Verbalize your issue with it, or keep your feelings to yourself. Lots of things make me feel icky, and I'm quite certain you'd call me mean things for many of them. Difference is, I'm not so self-obsessed as to think my personal disgust should matter to anyone other than me.

>Moreover, at no point did you consider HER in your comment - do you think a 22yr old wants some 38 year old (of any sort) approaching her?

She says, 'sorry, not interested', and moves on. It's not a big deal. Walking up to a person and asking them out doesn't require a person's consent, nor is it some terribly traumatic thing. In certain cases, it can be a minor faux pas, eg if her body language indicated she didn't want him to approach her, but it's still not a big deal so long as when she rejects him, he leaves her alone.

I didn't consider her in my comment because we know literally nothing about her other than her age and sex, and there's no reason to assume from those details alone that she wouldn't be open to going on a date with him. I could imagine it being uncomfortable for her, but that's not something anyone can know in advance (you do realize there are plenty of young women who date significantly older guys, right? it's not the norm, but it's also not exactly rare), and there's nothing so outrageous about asking a woman out that a person needs to avoid it in order to cater to the portion of women who would be uncomfortable with it. I am uncomfortable with lots of interactions I have, but that doesn't mean the other party is doing anything wrong. In fact, I've been uncomfortable being asked out before, by people who I believed should realize I wouldn't be interested in them -- but again, that doesn't mean they did anything wrong. This all has the air of nobility taking offense that a commoner would dare to speak to them.

>And then, tried to help him sort his life out.

Respectfully, a single almost-40 y/o man isn't in a position to help anyone sort their life out, particularly not one who gets upset over a grown man asking out a grown woman.
by olyjohn | 2025-06-24 17:17:12+00:00
Not sure why this is downvoted. The whole premise of this robotaxi shit was started on the fact that your own, personal car, could be used as a taxi when you're not using it.

And also, the same reason people don't use taxis exclusively today is because you have to plan ahead or sit around and wait for a vehicle to come get you. Who is going to want to do that, when your empty driveway could house a car that pays for itself, makes you money, and is available whenever you need it?

I also don't think that taxis will be cheaper just because there is no driver. The savings is never passed down to the customer, never has been, and never will.

People who don't have cars today already manage to get around just fine, mostly due to where they live. This won't really change anything for them.
by ppqqrr | 2025-06-24 17:17:36+00:00
Problem/Truth is that writing toy software is not profitable - that's not to say one must always work on profitable things; what i mean is that it's being kept unprofitable, because in a hyper-saturated monopolized attention economy, every piece of "toy" software that isn't a video game or a plugin to some proprietary app ecosystem is essentially an act of subversion, an attempted "theft" or piracy of what the Company considers its rightful property: the sum of all disposable human attention.
by ayushrodrigues | 2025-06-24 17:17:36+00:00
Thank you! We try and take case of most of these bugs and edge cases. I think the ones that have been most useful are:

1. Race conditions. There are some weird conditions to handle around if a user makes it back to your app post-payment before the webhook, or if they click twice on a purchase button accidentally.

2. Keeping usage reset cycles in sync with billing cycles. We had a bunch of weird cases to solve in February as it's a shorter month.

3. Handling annual plans that have monthly usage billing cycles. Or just handling anything to do with transitioning between annual and yearly billing.

Theo's approach is awesome and a very similar architecture to what we have.
by atoav | 2025-06-24 17:17:47+00:00
Sure go into some desert without them knowing and do your thing there. As soon as tou plan to interact with other people you will have to deal with the fact that societes like to create rules for themselves.

There is a word for people who like to unilaterally break social contracts for their own benefits and it has not a lot of positive connotations.

Note: that I totally get the sentiment of wanting to get away from all these complications especially in technically minded people. But the sooner we realize that this can either be lived political resistance or antisocial/sociopathic exploitation the better. Even in an ideal society individuals will have to be bound to certain rules, otherwise everybody will have to fear everybody else violating their boundaries. And different societies will find different forms of rules with different evaluations of how to do things.

TL;DR: Don't want to deal with the rules of a society? Don't interact with it. You cant have your cake and eat it too.
by cogman10 | 2025-06-24 17:18:11+00:00
> I think impact certainty for a century or more might be physically impossible, because of uncertainty in orbital parameters and chaotic behavior of the whole system.

We already have 10s of years of certainty with the current observations. Most of the uncertainty comes from the interactions of unknown objects. As the mappings of objects increase, our predictions will become much better.

The other thing to consider is that large objects will have much better certainty. A 10km asteroid won't be influenced (much) by colliding with 100 1m asteroids. It will only be impacted if it hits or swings by something like a 1km asteroid.

Rubin should in a pretty short timeframe (a few years) give us an orbital mapping of all the >1km asteroids, which is pretty exciting.
by taeric | 2025-06-24 17:19:02+00:00
I don't think I've seen too much discussion of home dust, all told. Just going on a general view of what else could it be? Yes, dead skin and such makes up a lot. But as we use more and more synthetic fibers, those are spun far thinner than the thinnest plastic sheet. By design. Hard to believe that they don't make up a large portion of the microplastics out there.

Would be delighted to find out I'm wrong on this.
by busterarm | 2025-06-24 17:19:28+00:00
I view a horror story as a situation where I have no recourse. Like a prepaid non-refundable booking. In most hotel booking situations the most that you can lose is a day. If it's truly the hotel's fault they will either comp this or you can easily claw it back via chargeback.

I pretty commonly book week stays in hotels and the only real friction I've found there is that I can't book some places online and have to call to make the reservation. I know how difficult that is for recent generations.

The thing about the long-term bookings that people don't understand is that there's risk on the property side. No-shows for bookings are unfortunately more common than you think and having a room locked out and not making money for multiple days is a major problem. Calling helps and sometimes I do it anyway because they'll give me a better rate than online...
Show HN: The Black Eye Galaxy (M64), 11 hours of exposure from my backyard
by karlperera | 2025-06-24 17:19:43+00:00
The Black Eye Galaxy (M64) is one of the coolest things in the universe, due to its dark dust lane. I captured this beautiful image in 11 hours and explain here how it was captured, and explain why this galaxy is so remarkable.

If you're into astrophotography, I've included many details that you'll find interesting, about the gear and editing process.

There's a lot of beauty in the universe that we can photograph and share, so what's your favorite deep-space subject to photograph or look at, and why is it so interesting to you?
by johnnyanmac | 2025-06-24 17:20:13+00:00
As usual, it's a spectrum. The pettiest example is one of Reddit, where you see some random cat video, and the comments all go "this is fake" or "this is posted by a bot" or "how could you do that, you're torturing the cat!".

1. They may all be true, but yiy gotta pick your battles at this point. If you think all of reddit is bots, what use is there complaining in every post

2. Healthy skepticism is supported by observation and findings. The internet as of late has grown lazy on that overall and people just throw out accusations without explanation. That definitely comes more off as paranoia at best, or bad faith at worst.
by parliament32 | 2025-06-24 17:20:22+00:00
> add "must use attestation with passkeys" to their checklists

We already do. Mostly from the compliance side: I can't call passkeys "phishing-resistant" unless I can lock them down into unexportable passkey providers only. Some more details from a previous comment of mine:

From a corporate compliance perspective, I need to ensure that employee keys are stored in a FIPS-compliant TPM and unexportable. Key loss is not an issue because we have, ya know, an IT department. The only way I can ensure this happens is by whitelisting AAGUIDs and enforcing attestation.

With these factors I can also get out of the MFA hellhole (because I can prove that whitelisted vendor X already performs MFA on-device without me having to manage it: for example, WHFB requires something you have (keys in your TPM) and either something you are (face scan / fingerprint) or something you know (PIN), without me having to store/verify any of those factors or otherwise manage them). Same goes for passkeys stored in MS Authenticator on iOS/Android.