MurphyA/hacker-news huggingface dataset:
Show HN: WireTyped – typed, error-first HTTP client for fetch
by kasperrt | 2025-12-10 13:07:36+00:00
Hi HN! I built WireTyped, a small, universal, fetch-based HTTP client that’s centered on typed endpoints and an error-first return style. Instead of throwing by default, calls return [error, data] so control flow stays explicit and you don’t miss failures during refactors.

I got tired of everything build on requiring try-catches, and promise resolvers, so made a stab at a more error-focused, schema validated fetch client, with errors-as-values inspired by Go.

You define endpoints once with your preferred schema (via Standard Schema-compatible validators), and you get end-to-end TypeScript safety for params, bodies, and responses.
by mytailorisrich | 2025-12-10 13:08:16+00:00
What is the relation between all that and "now that we ourselves have become a resource to extract" in relation to smartphone use and changing socialising habits? This is a very shallow and short-term view. People like scapegoats and shallow reasoning.

Ubiquitous smartphones are a fundamental shift irrespective of the big bad capitalists who are doing nothing new.

Perhaps we could add parenting. If parents let their children hold on to their smartphones 24/7 it's no-one else's fault. In general, at least in my case and my friends', TV was highly "regulated" at home.
by embedding-shape | 2025-12-10 13:08:28+00:00
Then they'll do a quick lookup to confirm if you actually don't have any accounts, and if they find any, they'll reject you because you lied. US agencies already are keeping track of what individuals have what online accounts, so they're asking to confirm, not to learn.

If you truly don't have social media, their search won't show any hits, and there isn't much you can do about it. Just make sure you're actually answering the question truthfully.
by anovikov | 2025-12-10 13:08:30+00:00
Well, it depends on whether we are thinking of making grid fossil-free on current scale of electricity use, or we are planning to replace all energy with electricity including transport, heating (even with heat pumps), etc.

In the former case sure, no problem, and we don't even need all that many batteries, it will even happen by itself, no government coercion needed.

In the latter case, i can't see how it can happen because no new nuclear can be politically built, no new hydro can be physically built, and wind potential is rather limited - increase wind output 2x and you are down to really marginal wind areas where ROI falls, big time. Which leaves solar, and that is a totally different level of variability and amount of lands it will take, skyrockets (if you want to reliably supply all of Germany for all it's final energy consumption with solar alone, having "only" 24-hour battery storage, all of land surface of Germany will not be enough).
by ernst_klim | 2025-12-10 13:08:54+00:00
> Rather than getting stuck in front-end minutiae, the tutorial goes straight to generating working assembly code, from very early on.

I think this is important and for a more sophisticated compiler design I find Ghuloum approach very appealing [1]. I.e. build a very simple subset of the language from top to bottom and then grow the meat gradually.

The really great book following this approach I've discovered recently was [2]. Although I find both C and x86 not the best targets for your first compiler, still a very good book for writing your first compiler.

[1] http://scheme2006.cs.uchicago.edu/11-ghuloum.pdf

[2] https://norasandler.com/2024/08/20/The-Book-Is-Here.html
by imtringued | 2025-12-10 13:09:28+00:00
This is a good point, but I think this only works for D*A, where D=Sigma is a diagonal matrix with learnable parameters. It probably doesn't work for a full singular value decomposition (SVD) UDV^T.

Basically, what if we're not actually "training" the model, but rather the model was randomly initialized and the learning algorithm is just selecting the vectors that happen to point into the right direction? A left multiplication of the form D*A with a diagonal matrix is equivalent to multiplying each row in A with the corresponding diagonal element. Low values mean the vector in question was a lottery blank and unnecessary. High values means that this turns out to be correct vector, yay!

But this trivial explanation doesn't work for the full SVD, because you now have a right multiplication U*D. This means each column gets multiplied against the corresponding diagonal element. Both the column in U and row vector in V^T have to perfectly coincide to make the "selection" theory work, which is unlikely to be true for small models, which happen to work just fine.*
by 1718627440 | 2025-12-10 13:09:30+00:00
> My rationale: if you do set warn->error, then there are 2 ways around it: change the code to eliminate the warning, or pacify the compiler. Note, the measure to set it to error, is to instigate lazy programmers to deal with it. If the lazy person is really lazy, then they will deal with it with a pacifier. You won nothing.

> You won nothing.

No, you won that you can distinguish between intended and not intended warnings. Specifying in the code, which warnings are expected makes all warnings that the compiler outputs something you want to get fixed. When you do not do that, than it is easy to miss a new warning or that the warning changed. So you essentially say that you should not distinguish between intended and non-intended warnings?

Having no warnings is a worthwhile goal, but often not possible, since you want to be warned for some things, so you need that warning level, but you don't want to be warned about that in a specific line.
by weebull | 2025-12-10 13:09:47+00:00
I personally feel the Zig is a much better fit to the kernel. It's C interoperability is far better than Rust's, it has a lower barrier to entry for existing C devs and it doesn't have the constraints the Rust does. All whilst still bringing a lot of the advantages.

...to the extent I could see it pushing Rust out of the kernel in the long run. Rust feels like a sledgehammer to me where the kernel is concerned.

It's problem right now is that it's not stable enough. Language changes still happen, so it's the wrong time to try.
by Cthulhu_ | 2025-12-10 13:09:51+00:00
It's a neat picture of US vs China's mindset and societies - vertical integration is individualism (we'll do it alone) and exceptionalism (we are better than other companies at foundrying / machining). Versus central planning where things like manufacturing are part of a national plan.

Both have their place, but China is winning and has been for years now. They took over worldwide manufacturing because they were cheaper at it, first due to lower wages, but now due to their supply chains, resources, etc.
by lawn | 2025-12-10 13:10:08+00:00
> who advocate for, aid, or support designated foreign terrorists and other threats to national security; or who perpetrate unlawful anti-Semitic harassment or violence

The regime will simple classify pro-LBQT, anti-MAGA, and anti-Trump comments as "threats to national security" or as supporting terrorism.

Also funny how anti-Semitic harassment is emphasized, while other forms such as anti-black or anti-Latino harassment is not.
by BLKNSLVR | 2025-12-10 13:10:22+00:00
I had a second phone line installed at my parents house so I could have dialup Internet of my own, so I grew up on the Internet through the twilight of the 'golden years'. My parents had no idea what was going on, I was the only one in the household that knew anything much about computers and the Internet.

rotten.com was an interesting education.

I had a good upbringing and generally attentive parents on the whole, though, so I was already a well balanced young human.
by iszomer | 2025-12-10 13:10:53+00:00
I "trade" my content in kind -- garbage in, garbage out style -- combining my short form renders on my commute with songs I think will match the rhythm then publish as a music video.

And I'm not chasing clicks, likes, nor monetization on that platform; I was fortunate to ignore FB's SSO with IG as I deleted that account a decade or longer ago.
by jgalt212 | 2025-12-10 13:10:58+00:00
Aiden is perhaps misinformed. From a Bing search performed just now.

> Yes, I am familiar with the "pelican riding a bicycle" SVG generation test. It is a benchmark for evaluating the ability of AI models, particularly large language models (LLMs) and multi-modal systems, to generate original, high-quality SVG vector graphics based on a deliberately unusual and complex prompt. The benchmark was popularized by Simon Willison, who selected the prompt because:
by Maxion | 2025-12-10 13:11:12+00:00
Am I the only one who feels like this is the output of an LLM?

A poorly written comment by a human wastes time. A vibe comment by an LLM wastes both time and electricity that only shows up when global warming reaches 3c.

The question isn't if the comment is valuable or not. It's whether it is ethical or not to waste peoples time with AI slop.

This is chatGPTs pattern.
Ask HN: How can I learn smartphone repair online?
by rishikeshs | 2025-12-10 13:11:52+00:00
Context:

I prefer smaller phones and currently use an iPhone 13 Mini which I plan on using for another 3 years. Sadly the battery keeps on dying and I'm on my second battery. I prefer repairing myself since most of the local shops provide lower quality batteries and I'm a bit paranoid of leaving phone there. My screen is also broken and also the back glass. I'm thinking of ordering few replacement parts from Aliexpress and was wondering if there are any good resources to learn other than phone specific guides on ifixit.
by tim333 | 2025-12-10 13:11:58+00:00
It might be that modern readers have other things they can read/do with their time. In pre internet times it wasn't so much the case - you'd buy a mag or book and then read it but now there are many alternatives a click away.

Pros and cons but often in the old days it was spun out to fill some volume the the printing press was set for like 400 pages in a book. I did Great Expectations at school which had about ten chapters with the main story and then about 60 chapters of irrelevant stuff because Dickens was paid weekly by the chapter.
by mothballed | 2025-12-10 13:12:43+00:00
Sure but they'll make your day extremely unpleasant before deporting you or if a USC letting you in.

A few things that's happened to me as a citizen after invoking right to remain silent to CBP

1) Told I could not enter the country. Held up for 3-24 hours in holding areas. Officials come in and claim they will revoke my passport under "national security"-esque grounds. Lots of bluffing and huffing and puffing. Diesel therapy of being made to go back and forth to interrogating officers and then constantly prodded to be deprived of sleep. After a few shift rotations no one is left that know why you were being fucked with so you then [hopefully] get let go.

2) Dogs constantly come in, none of them alert. Eventually they get tired of finding nothing and write up a fraudulent affadavit for a warrant claiming one alerted anyway. Strip searched, hands cuffed and feet chained, imprisoned in a holding cell with people you can't speak the language of, diesel therapy again in prisoner van driven all over the state. Taken to two different private hospitals where CBP officers claim there is drugs up my ass. Cursed and touched without consent by private hospital staff (oh you can complain to the board as I did, lol, the state board just claims since CBP told them to their license isn't in jeopardy). Hospital staff rack up bills, which are sent to me privately and go to collections. Medical records state nothing was found but they "Think I'm packing drugs" anyway despite absolutely no medical evidence.

Have fun!
by dangus | 2025-12-10 13:12:49+00:00
I hate to say it, but none of this matters. This product is going to fail anyway.

It’s a niche within a niche within a niche. It’s designed to do solve a problem that only one person has.

You have to:

- want to make voice memos (how many people do that?)

- find your watch insufficient for that purpose

- find your phone insufficient for that purpose

- be willing to wear a ring on a specific finger (this isn’t practical on most of your fingers because it’s hard to press the button)

- commit to custom sized jewelry
by albert_e | 2025-12-10 13:12:52+00:00
I feel there may still be a way solve it using existing hardware -- rather than go build entirely new hardware for it.

Some low effort ideas I cna think of -- a wake word instead of button press; a flick of the wrist; or maybe press the watch to your chin; There must a few more elegant solutions possible if smarter people put their minds to it.
by cyanydeez | 2025-12-10 13:13:07+00:00
Yes, when NVIDIA gives assets to a third party in return for a stake in the company, and then that company uses those assets to secure loans, and those loans are predicated on the value of that asset, thats a single asset being claimed by multiple parties who will all write in their books the value of that asset.

Its generating the facade of activity, the same.

You are right theres no public ledger for the wash trading, but the fact that the underlying real physical asset is NVIDIAs product, lends the same intentional activity: to leverage apparent markeet activity to inflate the value of assets.
by voidUpdate | 2025-12-10 13:13:16+00:00
What is classed as a social media? I expect they'd want to view by personal instagram, but what about my old business Xitter account that I can't even get into because something went wonky with the 2fa? What about my github? My HN account? Do they want to see my discord history? How will they find my accounts anyway? Not all of them are under the same account name, real name or email address
by dns_snek | 2025-12-10 13:13:23+00:00
> We reliably see people saying "obviously" the Mossad or the NSA are snooping but they haven't shown any evidence that there's tampering

Why would they use the one approach that leaves a verifiable trace? That'd be foolish.

- They can intercept everything in the comfort of Cloudflare's datacenters

- They can "politely" ask Cloudflare, AWS, Google cloud, etc. to send them a copy of the private keys for certificates that have already been issued

- They either have a backdoor, or have the capability to add a backdoor in the hardware that generates those keys in the first place, should more convenient forms of access fail.
by Zigurd | 2025-12-10 13:13:27+00:00
Think of everyone. Unless your roboots are weak as a kitten, they are a danger to humans if allowed to be close. Robots that are sold for real money to do real work don't walk around and are strong enough to crush a human like a bug. Or if they're built for dexterity, their hands aren't human-like. Zero surgical robots have human-like hands, and for very good reasons.

Can all the extremely smart people developing humanoid robots be wrong? Wrong question: can all of the investors in those companies be wrong? Hell to the yes.
by codemonkey-zeta | 2025-12-10 13:13:27+00:00
Except it wasn't $12B to farmers. Farmers have been squeezed by monopolies on both the supplier (seed, equipment, etc) side AND the buyer side (there is often only a single buyer of grain in an area, for example) to the point that most large scale American farms are struggling to make any profit, and service their sizeable debts. The $12B will immediately be transferred to these monopolies, it will not go to farmers.
by jsheard | 2025-12-10 13:13:32+00:00
> Also funny how anti-Semitic harassment is emphasized, while other forms such as anti-black or anti-Latino harassment is not.

That's because they're using "perpetuating antisemitism" as code for "being mean to Israel". It's not really about fighting discrimination, that's just a cover framing which sells better than mandatory allegence to a foreign state.
by vga42 | 2025-12-10 13:13:59+00:00
Vibe coding benefits from hard limits relatively more than human coding. So in that sense, we should be coding in Rust (where raw performance is needed), Idris 2 or Haskell, and specifying with formal methods.

Perhaps the programming languages of the future will be designed with AI in mind: to properly put guardrails on it.

Could also be that the models just accelerate to the future so fast that they'll simply stop making mistakes. Then we'll be coding in Assembler, because why waste CPU time for anything else?
by pjmlp | 2025-12-10 13:13:59+00:00
You mean as in "having fun"?

"Although we entertained occasional thoughts about implementing one of the major languages of the time like Fortran, PL/I, or Algol 68, such a project seemed hopelessly large for our resources: much simpler and smaller tools were called for. All these languages influenced our work, but it was more fun to do things on our own."

-- https://www.nokia.com/bell-labs/about/dennis-m-ritchie/chist...

People arguing for UNIX/C, also tend to forget the decade of systems languages that predates them, starting with JOVIAL in 1958.

They also forget that after coming up with UNIX/C, they went on to create Plan 9, which was supposed to use Alef, abandoned its designed, later acknowledege lack of GC as an key issue, created Inferno and Limbo, finalizing with contributions to Go's original design.

"Alef appeared in the first and second editions of Plan 9, but was abandoned during development of the third edition.[1][2] Rob Pike later explained Alef's demise by pointing to its lack of automatic memory management, despite Pike's and other people's urging Winterbottom to add garbage collection to the language;[3] also, in a February 2000 slideshow, Pike noted: "…although Alef was a fruitful language, it proved too difficult to maintain a variant language across multiple architectures, so we took what we learned from it and built the thread library for C."[4]"

-- https://en.wikipedia.org/wiki/Alef_(programming_language)

UNIX and C creators moved on, apparently those that whorship them haven't got the history lesson up to date.
Ask HN: Outstanding packets calculation in Go-Back-N ARQ when ACK lost?
by shivajikobardan | 2025-12-10 13:14:04+00:00
https://imgur.com/a/ENjOgBG

Assume window size=3.

Assume ACK#3(i.e. for the packet#2) is lost.

Now how many outstanding packets can transmitter send?

I mean, can it send pkt#3,pkt#4,pkt#5? What determines it?
by wongarsu | 2025-12-10 13:15:01+00:00
Those cover Russia's motivation, which is indeed strong. You can add that Putin wants the glorious Soviet Empire days back, and that without additional buffer zones Russia is very vulnerable to land invasion (in Summer). Russia has plenty of reasons to conquer much of Europe

But I don't see Russia's capability to do so. Their kleptocracy has impoverished the country and has repeatedly lead leadership (including Putin) to overestimate their own capabilities. Male population faces attrition from war and alcoholism. Leadership has a habit of dying in mysterious accidents or falling out of windows, reducing the amount of experienced leaders available and discouraging anyone with a brain from rising up too far. And they are barely able to advance in Ukraine.

There are legitimate concerns that Russia might attack other countries once the Ukraine war concludes. They might even make some initial territorial gains because they are in full war economy while Europe has only scaled up enough to support Ukraine, and has depleted ammunition stockpiles. But I don't see them getting very far
by Yizahi | 2025-12-10 13:15:10+00:00
I would like to point out two fundamental misconceptions towards the end of the article:

1. "AI is a filter. It strips away everything that can be automated, leaving only what requires actual thinking: creativity, collaboration, real-world problem-solving."

At any reasonable school-college level this is false. LLMs are perfectly fine replacing creative and collaborative aspects of work or study at intermediate levels. Yeah, they are unrealiable in results, but the participants don't care. LLMs produce data in shape of creative and collaborative work and that is enough to submit it.

What I mean by this, is when the house of cards will burn down (and it won't, because education is not a purpose of a school), it will also burn down creative training too.

2. Solving real/actual/applied/etc problem at the education facility of any level is nice and all (running business or solving community problems), but some studies just don't afford to be that "real" or "applied". All humanities, most of the harder STEM, etc. In USSR we had a whole separate class of higher-ed facilities, below universities called "technicums", which focused only on the applied knowledge. They were fine, but they definitely didn't fill all the demand.
by gkirira | 2025-12-10 13:15:27+00:00
I’ve been working on a modern development workflow for C++ and just released vix dev, a real dev-mode for native applications. C++ normally requires a manual cycle of: edit → cmake → build → run → repeat vix dev automates this entire loop.

What it does

Watches your project files (CMake + src) Rebuilds automatically on change Restarts the running executable Cleans and filters compiler output

Supports both full CMake apps and single-file C++ scripts

No IDE plugins, no custom compiler. It runs on top of standard Clang/GCC + CMake.

How it works technically

A lightweight filesystem watcher computes a project-wide timestamp

Rebuilds happen in an isolated build-dev/ directory

A filtered compiler output pipeline highlights relevant errors For applications, a fork/restart loop manages the running process For scripts, a fast single-file build pipeline is used instead

The goal is to bring a Bun/Deno/Rust-like development experience to C++ while keeping everything fully native.

Demo

Short demo clips here: https://github.com/vixcpp/vix (README will include videos)

Why this exists

C++ has great compilers but poor “developer experience” around the build/run loop. This tries to close that gap with a simple, portable CLI tool.

Repo

https://github.com/vixcpp/vix

Would love feedback, benchmarking results, and ideas for improving rebuild speed or making the watcher smarter.
by badsectoracula | 2025-12-10 13:15:53+00:00
Nobody cares if they use a license that inconveniences megacorporations. The issue is how they try to present the license.

> start bullying everyone else to change their language

Either words matter or they do not. If words matter, then trying to dilute the term is a bad thing because it tries to weaken something that matters. If words do not matter, then the people who "bully everyone" can be easily ignored. You cannot have these two things at the same time.
by animal531 | 2025-12-10 13:16:17+00:00
Yeah, I played a lot of StarCraft 2. By myself, 2v2 with a really talented friend and 3v3 with two other friends that were total beginners that I could beat 1v2.

At the bottom to upper mid level all you need to win is to figure out the macro game of building construction while also getting enough workers and units. With enough of that no micro is needed, just attack-moving into the enemy is more than enough.

Then at the upper mid level you're going to run into people who often don't build as effectively but they'll micro every unit or they'll be constantly doing raids when you don't expect it, scouting better than you and/or just understanding which units are better vs which so as to counter you.

From that point on it becomes much more of an effort to play the game because then you need to become better in all of those fields, while also becoming faster. But to be honest that point is probably 2/3rd's up the tree of all the people playing.
by mchaver | 2025-12-10 13:16:47+00:00
Two thoughts on solitaire.

1. I don't like how if I already place an Ace and then reveal a 2 that matches it suit, it then automatically moves it over. While mostly trivial, it still takes a way one move from the player and automates it.

2. Would you be willing to expose the value that seeds the game? That way any particular game of solitaire is replayable or sharable with a friend.