MurphyA/hacker-news huggingface dataset:
Show HN: Tokuin – CLI load tester and token estimator for LLM APIs
by oshadha89 | 2025-11-08 09:44:44+00:00
Hi HN! I built Tokuin, a Rust CLI that does two things I kept hacking together for LLM projects:

1. Estimates tokens/costs for prompts across OpenAI/Gemini/Anthropic-style models 2. Runs load tests against real LLM endpoints with progress bars, retries, and (optional) dry runs

It started as a glorified “how many tokens will this cost?” script. Over the last release I added provider selection (--provider {openai|openrouter|anthropic|generic}) plus real Anthropic and “bring-your-own-endpoint” clients so I can stress-test gateways before giving them real traffic.

Try it # install curl -fsSL https://raw.githubusercontent.com/nooscraft/tokuin/main/inst... | bash

# dry-run Anthropic echo "Hello!" | tokuin load-test \ --model claude-3-sonnet \ --provider anthropic \ --runs 5 \ --concurrency 2 \ --dry-run --estimate-cost

# generic endpoint smoke test echo "Ping" | tokuin load-test \ --model lambda-1 \ --provider generic \ --endpoint https://example.com/infer \ --runs 10 --concurrency 2

Repo (MIT/Apache-2.0): https://github.com/nooscraft/tokuin

What’s different 1. Provider-aware CLI: auto-detects from model names but you can force it when needed. 2. Built-in Anthropic client and a generic REST adapter (just point at an endpoint and go). 3. Optional --dry-run yields the same metrics without burning API credits. 4. Auth stays in env vars/flags—no config files or dashboards.

Implementation notes 1. Rust 2021 + tokio, reqwest, indicatif. 2. Load simulator schedules requests, tracks latencies, histograms, and costs. 3. Token estimation uses tiktoken-rs and a simple pricing registry.

Feedback I’m looking for 1. Are the CLI defaults (timeouts, retry curve) sensible for real traffic? 2. Should generic mode accept response extraction hooks so it works with more JSON shapes? 2. Any load-test metrics you’d want before trusting this in CI?

Thanks for trying it out—happy to answer questions or take feature requests.
by BrandoElFollito | 2025-11-08 09:44:45+00:00
I used "supervisor" loosely here - both Watson and Crick were hierarchically above her.

As for "bizarre ranting" - I guess you have never had anything you did credited to somebody else. Good for you (seriously), but in that case please do not comment about the emotions of others.

If you did and think this is fine - well we live in different worlds then.
by phreack | 2025-11-08 09:45:24+00:00
It's like they want people to bypass Windows 11 altogether. I've finally bit the bullet and gone to Linux recently. Certainly dying by 512 cuts and counting, not for the faint of heart, but I'm surprised at how much of my daily usage I've been able to replicate. I'd say 80% of life works, unlike previous attempts.
by ChrisMarshallNY | 2025-11-08 09:46:46+00:00
He was an “interesting” chap.

He spoke at an event hosted by my company, once. He was pissed at Alec Baldwin, and devoted some time to calling him names. We were all looking at each other, going “WTF?”. He was supposed to be talking about using our microscopes, which never came up. It was a lot more like listening to Grandpa complaining about “kids these days,” after getting into the schnapps.

Have a friend that retired from CSH, a few years ago. Watson was a familiar presence, there; even after his Fall From Grace, which came about 20 years late. He used to live like a prince, on campus. Not sure if he was still there, before he went into hospice.

Most folks had a lot of difficulty with him, but he was a money magnet. They put up with his stuff, because he was such a good fundraiser.

It’s amazing how forgiving we can be, when money is to be made.
by eviks | 2025-11-08 09:47:16+00:00
It's just a fundamental limitation of being boxed, nothing deeper than that: that means you can't fully control spacing, which is crucial in any design. For a simplified example, you can't have a long arrow that is as wide as 2.5 boxes, but instead of 0.5 boxes for spacing only have 0.1 (so a total of 2.6 boxes)
by gethly | 2025-11-08 09:48:29+00:00
Why are people so obsessed with Zig when Odin has been stable, though not yet with official spec, for such a long time and used in real production for years? Is it just syntax preference or does Zig provide something amazing that I am missing? Not that I use any of them, I am not interested in manual memory management and i stick to Go. But I'm curious.
by lossyalgo | 2025-11-08 09:49:05+00:00
I guess you didn't take up my offer to search for how AI is killing traffic. There are numerous studies that repeatedly prove this to be true, this relatively recent article links to a big pile of them[0]. Why would anyone visit a website, if the AI summary is seemingly good enough?

My issue with AI summaries is that they are not even remotely accurate, trustworthy or deterministic. Someone else posted this wonderful evidence[1] in the comments. LLMs are sycophantic and agree with you all the time, even if it means making shit up. Maybe things will improve, but for the last 2 years, I have not seen much progress regarding hallucinations or deterministic i.e. reliable/trustworthy responses. They are still stochastic token guessers with some magic tricks sprinkled on top to make results slightly better than last month's LLMs.

And what happens when people stop creating new websites because they aren't getting any visitors (and by extension ad-revenue)? New info will stop being disseminated. Where will AI summarize data, if there is no new data to summarize? I guess they can just keep rehashing the new AI-generated websites, and it will be one big pile of endlessly recycled AI shit :)

p.s. I don't disagree with you regarding SEO spam, hostile design, cookie popups, etc. There is even a hilariously sad website[2] which points out how annoying websites have become. But using non-deterministic sycophantic AI to "summarize" websites is not the answer, at least not in the current form.

[0] https://www.theregister.com/2025/07/22/google_ai_overviews_s...

[1] https://imgur.com/a/why-llm-based-search-is-scam-lAd3UHn

[2] https://how-i-experience-web-today.com/

edit: grammar
by dns_snek | 2025-11-08 09:50:25+00:00
Agreed, this is probably my biggest ongoing issue with Zig. I really enjoy it overall but this is a really big sticking point.

I find it really amusing that we have a language that has built its brand around "only one obvious way to do things", "reducing the amount one must remember", and passing allocators around so that callers can control the most suitable memory allocation strategy.

And yet in this language we supposedly can't have error payloads because not every error reporting strategy is suitable for every environment due to memory constraints, so we must rely on every library implementing its own, yet slightly unique version of the diagnostic pattern that should really be codified as some sort of a language construct where the caller decides which allocator to use for error payloads (if any).

Instead we must hope that library authors are experienced and curious enough to have gone out of their way to learn this pattern because it isn't mentioned in any official documentation and doesn't have any supporting language constructs and isn't standardized in any way.

There must be an argument against this (rather obvious) observation but I'm not aware of it?
by phil21 | 2025-11-08 09:51:09+00:00
Or just someone in a different phase of their career than a union typically helps out.

Unions absolutely hold back young high performers from advancing rapidly and standing out from the crowd. I was part of a few in my younger years and quickly learned they were a detriment to my earnings due to them favoring seniority and status quo over everything else.

Once you hit a certain level and stop advancing quickly the equation tends to change, and you want to be the one protected from the young whipper snappers willing to outwork you.

It’s a selfish way of thinking perhaps, but jumping from union shops to non-union tripled my wages in the time I’d have made about 40% more the first few years of entering the workforce.

Not all unions need to be structured this way - but they tend to devolve into organizations whose primary focus is protecting the old guard over everything else.

At this point of my life a union would probably be a net win for me, but only because I’d be able to enter a job at a fairly high seniority/pay level. Then vote contracts that give my cohort more benefits than those starting out.

From a game theory standpoint a union would be for the greater good at the expense of the few. If you are part of the few at any given moment of time you’d be going against your interests joining a union shop.

I’ve always thought a “guild” structure would make far more sense in the tech world.
by SideburnsOfDoom | 2025-11-08 09:51:39+00:00
There is this:

> The two cities are 60 kilometers apart, a distance Hull 096 is expected to travel in 90 minutes. Direct current charging stations will be installed at each port, and will draw energy from the two countries’ grids. A full charge is expected to take just 40 minutes.

More details on how this works would also be cool. But would it be that different from one or more scaled up EV fast chargers?

We can assume that the boat won't need a full charge after each 90 minute journey. In other words, "top up" recharging while docked for loading and unloading for the normal period of time will be fine.
by troupo | 2025-11-08 09:52:15+00:00
> Apple uses it everywhere and we never notice it because they are done well.

Done well as in: laggy, non-performant, break OS conventions and you can see elements load with the naked eye?

See App Store as an example: https://grumpy.website/post/0RsaxCu3P or Apple Arcade: https://grumpy.website/618 or...
by jadamson | 2025-11-08 09:52:32+00:00
The only thievery here is yours. Just as we are expected to believe that Ada Lovelace invented programming, Hedy Lamarr invented Wi-Fi, and Margaret Hamilton wrote the software for the Apollo missions all by her lonesome, we must believe this, too. None of it is true, and when this is pointed out, the response is frothing accusations of misogyny that you've so aptly demonstrated.

Well, froth away. Watson and Crick discovered the structure of DNA and appropriately credited Dr. R. E. Franklin (not "Rosy") in their paper.
Show HN: I built desktop app for keeping track of your PC gaming sessions
by sentinelsignal | 2025-11-08 09:55:46+00:00
Hi everyone! I've been working hard to deliver my application to Steam and now it is released!

Its purpose is to help you better manage your gaming sessions. It can automatically detect when you run your games, track the gaming time, let you set weekly gaming goals, a gaming session limit and send you visual and audio notification when you are close to your gaming limit. You can also flexibly extend your gaming session up to a degree while you are in game to ensure that you can finish up your current session as you needed.

Currently it only works for Steam games. I would be happy to hear your questions, comments and feedback.
by BrandoElFollito | 2025-11-08 09:56:47+00:00
It is sad to see that whenever gender comes into play, emotions are high.

It does not matter that she was a woman - should they have stolen from a man (which here is also the case) they would have been thieves as well.

Do not put completely useless gender craziness in this. We are talking about one scientist using dirty methods to hide another scientist.
by teecha | 2025-11-08 09:56:58+00:00
been so tempted to try one but concerned about long term updates and viability

if it runs android 13, how long will it get updates for? how long until the apps you're using won't be updated?

i'd like my ebook reader to last years without issue

my oasis from 2020 still does all the things i need it to though i'd like to get a good reason to leave the kindle ecosystem but still want to have access to all the books i've purchased to read on eink

i kind of also wonder if other companies, i.e. kobo, will jump into this form factor given the popularity of boox
by acadapter | 2025-11-08 09:59:49+00:00
This is sad though. I'd rather see that ethics gets upgraded so some problems can be fixed.

For example, about 8% of men get excluded from certain professions such as being a train driver, due to color blindness. And society doesn't seem to care enough to switch to colorblind-friendly signaling.

With gene editing, this problem could be repaired in the other end, so that men will have the same chance as women to get perfect vision.
by nandomrumber | 2025-11-08 10:00:06+00:00
Yeah, it’s not like it makes no difference.

Ya just have to remember that it’s table scraps compared to the 100% plus increases in electricity prices we’ve already been subject to.

And this is in a country that has the same volumetric gas exports as Qatar, which provides it citizens free healthcare, free education including university and vocational training, and electricity at 3.2 US cents per kWh.

What do we get? None of that. We get citizens living in tents. In a resource rich country.

And you people think our governments are capable of making wise decisions about long term energy policy. Check your ideologies.

When was governments picking winners ever a good idea?

When has that ever worked out well.

When was other people choosing what to do with other people’s money an ideal we should vote for more of?
by uecker | 2025-11-08 10:00:16+00:00
As someone who still thinks one should write C (so as a completely uncool person), what I like about Zig is that it is no-nonsense language that just makes everything work as it is supposed to be without unnecessary complications, D is similar, except that it fell into the trap of adding to many features.

So, no, I do not really see anything fundamentally new either. But to me this is the appealing part. Syntax is ok (at least compared to Rust or C++).

Having said this, I am still skeptical about comptime for various reasons.
by hgomersall | 2025-11-08 10:00:29+00:00
It seems clear he understood it was a tricky problem, and writing at the time many of the potential problems were not apparent:

"Nevertheless, it is necessary to remember that a planned economy is not yet socialism. A planned economy as such may be accompanied by the complete enslavement of the individual. The achievement of socialism requires the solution of some extremely difficult socio-political problems: how is it possible, in view of the far-reaching centralization of political and economic power, to prevent bureaucracy from becoming all-powerful and overweening? How can the rights of the individual be protected and therewith a democratic counterweight to the power of bureaucracy be assured?"
by sunshine-o | 2025-11-08 10:00:35+00:00
Interesting.

It targets of course servers/hypervisors but I am wondering if at some point you could just use it as a "desktop hypervisor" since it has SPICE.

I have used a "host" Fedora Silverblue like that with only virt-viewer before. I would just work in 2 or 3 graphical VMs and the performance were decent.

Now you would need to have all the right drivers installed in the IncusOS and I am not sure it is possible.
by peter_d_sherman | 2025-11-08 10:01:05+00:00
Maybe the question to ask is:

"Can advanced beings evolve beyond the need for civilization?"

Future Star Trek episode:

The crew arrives at what appears to be a completely lifeless planet, and sees the empty buildings of a futuristic city...

Crew member: "These warlike people must have annihilated themselves... nuclear war with advanced energy devices that penetrate buildings with high energy radiation, that leave the buildings but destroy all life..."

Beings in light bodies (who suddenly appear out of nowhere!): "No, it's totally cool -- all of us are still alive! We simply evolved beyond the need for civilization!"

Dumbfounded crew member (whose sociologic theory about civilizational collapse is now proven utterly and completely wrong!): "Oh..."

:-)
by vladvasiliu | 2025-11-08 10:01:45+00:00
> On some level, my employer uses emails as the primary key for customer accounts, the baseline identifier which all information is filed under. It's quite ridiculous.

I've lost track of the number of places that use the e-mail as an unchangeable identifier. Bonus points for my company liking to change domain names for sport, which just confuses support.

And even big tech companies, who should know better, do this. Like the big blue CDN that's in the middle of half the web's traffic. Who also, for some reason, can't be arsed to send e-mails reliably if you need to change your account.
by gond | 2025-11-08 10:02:54+00:00
I cannot recommend NTLite enough.

If it has to be Windows, just remove all the shit of Win11 yourself, set it to unattended installation with a local account, remove the hardware requirements barrier while you are at it, remove the games, controller add-ons, virus scanner and whatever else you would like to (the windows store?) and create your own LTSC.

This isn’t a solution to the problem and missing the point of the whole argument. But if it has to be Windows, I would recommend to try it.

1] ntlite.com
by tacker2000 | 2025-11-08 10:04:16+00:00
Yes the keyboard layouts we have nowadays are actually suboptimal for touch typing, but nobody has ever managed to change them on a global scale.

So why would one change the keyboard layouts just because somebody needs an arrow for programming? This is such a niche use case that it will never happen.

Also many programmers will not want to use the unicode arrow instead of ->, thats a personal choice and nothing else.

It would also be fatal to retrofit old languages like this since it would just create confusion for little benefit.
by miki123211 | 2025-11-08 10:06:38+00:00
This is where Rust's "if it compiles, it's probably correct" philosophy may come in handy.

"Shifting bugs left" is even more important for LLMs than it is for humans. There are certain tests LLMs can't run, so if we can detect bugs at compile time and run the LLM in a loop until things compile, that's a significant benefit.
by Tuna-Fish | 2025-11-08 10:06:51+00:00
x86 is not nearly as bad as 68k, more by lucky accident than design. As it was a stop-gap project designed to hastily extend an earlier design to 16 bit and 20-bit addressing while the proper cpu of the future (iAPX432) needed a few extra months to bake, the designers didn't have enough time to properly fubar the core of the instruction set. This made x86 assembly much less nice to write than the nearly fully orthogonal 68k, but also made it much easier to make the subset of it that was in actual use faster later.

68k designers were not being dumb when they designed it. At that time pretty much the entire industry was deep in the weeds of "closing the semantic gap", or making CPUs directly run the operations that would be encoded in high-level languages. All CPUs designed to this paradigm were doomed, and how doomed they ended up being depended mainly on how well they managed to implement it.

IBM's 801 and Patterson's RISC would blow it all up in the early 80's.
by pjmlp | 2025-11-08 10:06:53+00:00
Nope, that is a English grammar construct that is a shortcut for "and" and "or", as any good English grammar book will explain.

Indeed you see those for Java/Scala and Objective-C/Swift in technical books and job adverts.

Any search on the careers sites, or documentation, on companies that have seats at ISO, sell/develop C and C++ compilers, have such C/C++ references in a couple of places.

Do you need any example?
Show HN: CoLit – A Collaborative Literature Platform
by pujan19 | 2025-11-08 10:07:04+00:00
Hi HN,

We’ve been building CoLit, a platform for collaborative, community-driven writing. The idea came from a simple problem: me and my friends wanted to write fanfiction together, but no existing platform really worked. We ended up juggling Wattpad, Google Docs, Discord threads, and random notes just to piece a story together. Nothing felt built for actually co-writing.

CoLit tries to solve that by making collaborative writing feel natural. You can start a project (story, fanfic, script, anything), and others can add contributions, vote on the next direction, remix stories, or help refine sections. It’s meant to feel like a shared creative space rather than a solo publishing tool. (Solo writing is also available - others can comment on solo projects but can't suggest or vote.)

Right now, the MVP supports:

Creating community and solo projects

Community projects with cycles (Projects run in daily cycles where users submit and vote on suggestions. The top-voted idea becomes the next part, and the author can edit it before adding it.)

Proper markdown editor with reading mode

Custom or auto-generated cover images

We know it’s early, but we’d love feedback on:

Whether the collaborative flow makes sense

What feels confusing or missing

What would make you want to co-write with others

Any UI or performance issues

This started as a fun side project between friends, and it’s grown into something we think more people might find useful. Happy to hear your thoughts, ideas, or critiques.

Link: https://www.colit.app
by nickf | 2025-11-08 10:07:43+00:00
Azure Key Vault - even in the ‘premium’ HSM flavour can’t actually prove the HSM exists or is used, which doesn’t satisfy the requirements the CA has. In theory, it shouldn’t work - but some CAs choose to ignore the letter and the spirit of the rules. Even Azure’s $2400a month managed HSM isn’t acceptable, as they don’t run them in FIPS mode.
by erlend_sh | 2025-11-08 10:08:11+00:00
I use Voyager, a client for Lemmy, on a daily basis and it’s my favorite mobile (iPad) app. Voyager is the spiritual successor to the Apollo client for Reddit.

https://github.com/aeharding/voyager

The app uses Ionic’s Capacitor, which to my rudimentary understanding is the webview-based upgrade of Cordova. I’ve had far fewer issues with this app than the likes of Bluesky (react native) and Discord (I think also react native but not sure).

The webview approach seems to be the only way for a one-person team to feasible provide a cross-platform app with an app-store presence. Another promising alternative to Capacitor is Tauri Mobile which does essentially the same thing, but mobile doesn’t seem to be a high priority for them.
by cubefox | 2025-11-08 10:08:24+00:00
> HTMX is neither a meme nor is it anti-javascript, it is literally written in js.

Java is written in C++, but it is clearly "anti-C++" for any reasonable interpretation of the term. (Java historically replaced C++ as the most popular language, as far as I remember.)

More importantly, HTMX could have had native support without requiring an implementation in JavaScript.