MurphyA/hacker-news huggingface dataset:
Show HN: I built a full-stack Fin Serv Rust app with Opus
by jvcor13 | 2025-12-01 14:53:13+00:00
Hi HN! I wanted to share a small experiment I ran: I tried to see if I could build and deploy a full-stack Rust app from a single prompt using Claude Opus 4.5 and Shuttle.

I asked Claude to build a personal finance tracker with Axum + SQLx, write the migrations, generate the frontend, and deploy it. I expected it to fall apart somewhere… but it actually produced a clean, working Rust app that compiled, migrated, and shipped.

This was the prompt: Build a Personal Finance Tracker web application with the following requirements:

*Backend (Rust + Axum + SQLx):*

- Use Rust with the Axum web framework - Use SQLx for database operations with PostgreSQL - Use SQLx compile-time checked query macros (query!, query_as!, etc.) throughout - no raw queries - Database is running on localhost:5432 - Create proper database migrations using `sqlx migrate add` commands - Implement migrations to create necessary tables (transactions, categories, budgets, etc.) - Run migrations automatically or provide clear instructions - Before deployment, run `cargo sqlx prepare` to generate query metadata for offline compilation - Create RESTful API endpoints for: - Adding/editing/deleting transactions - Categorizing transactions - Getting spending summaries by category/time period - Budget management

*Frontend (HTML/CSS/JS):*

- Create a modern, clean, and slick UI using vanilla HTML, CSS, and JavaScript - Make it responsive and mobile-friendly - Include data visualizations (charts for spending by category, trends over time) - Use a nice color scheme and contemporary design patterns - Place all frontend assets in a `dist/` directory

*Deployment:*

- Deploy to Shuttle - Configure the Shuttle.toml to include frontend assets - Use the Shuttle MCP server to handle the deployment - You can also use the Shuttle MCP server to search Shuttle documentation if needed

*Features to implement:*

- Transaction management (add, edit, delete income/expenses) - Automatic and manual categorization - Budget setting and tracking - Spending insights with charts (pie charts, bar charts, line graphs) - Date range filtering - Summary statistics (total spent, by category, monthly trends)

Build this as a complete, production-ready application with proper error handling, validation, and a polished user experience.

Why I tried this: • I wanted to know if AI can handle real Rust workflows, not just snippets • Boilerplate in Rust apps (migrations, routing, setup) is still tedious • I was curious where the model would break - syntax, crates, SQL, build steps, deploys

It ended up building the whole thing with surprisingly few corrections. It left me wondering: how many side-projects could we ship if this becomes normal? And what does “writing software” look like when the prompt is the starting point?

If you want all the details like what broke, what worked, and the final build it’s all in the blog above. Would love feedback from other devs trying similar things.
by hmokiguess | 2025-12-01 14:53:18+00:00
If I stopped and looked at how many redundant apps I have right now that’d be wild. For messaging alone, I’m on iMessage, Messenger, Telegram, Signal, WhatsApp, Slack, Discord, IRC, many in-app DM secondary tier feature chats, and perhaps a few other esoteric ones. Can we go back to just IRC please, those were the days for me.
by alexfoo | 2025-12-01 14:53:42+00:00
No, the puzzles are every day from the 1st to the 12th inclusive.

From https://adventofcode.com/2025/about:

" Why did the number of days per event change? It takes a ton of my free time every year to run Advent of Code, and building the puzzles accounts for the majority of that time. After keeping a consistent schedule for ten years(!), I needed a change. The puzzles still start on December 1st so that the day numbers make sense (Day 1 = Dec 1), and puzzles come out every day (ending mid-December). "
by RickJWagner | 2025-12-01 14:53:47+00:00
Hunter Bidens crimes ( which he was convicted of ) had a 17 year sentence associated with them. Yes, that was serious jail time.

You overlooked an important aspect, one that a fair view would reveal.

Hunter Biden was central to all the business deals with foreign interests. He introduced people to Joe Biden, he brought Joe onto phone calls with them, he received and distributed millions of dollars. Hunter Biden had intimate knowledge of all these visibly corrupt dealings with President Joe Biden.

And he faced 17 years in prison. A drug addict with a history of indiscretions, yet central in all these shady dealings.

Of course he never saw jail for the crimes he was convicted of. Joe Biden pardoned his business partner. His weak link business partner.

Did that thought ever cross your mind? You throw fits about things you can’t prove about Trump, but find ways to justify and diminish anything bad about ‘your side’. Your brain is playing tricks on you.

All of what I have written is provably true. Yet you will find ways to ignore, justify, diminish.

It’s not uncommon, many people do it. For either side.
by NaomiLehman | 2025-12-01 14:54:02+00:00
et al. should refer to people, not things

"It comes down to stating that you don't care whether contributors happen to be left- or right-handed: well, duh, of course you don't care and it would be silly to insist on having 'equal handedness representation' as a policy for a project."

that's how DEI works in X11?
by zcw100 | 2025-12-01 14:54:12+00:00
That will never happen. We've got employers making employees sign ridiculous Non-compete, non-disclosure, non-disparagement, agreements. Do you really think this will ever happen? We've collectively decided that corporations are people and people have freedom of speech. We've spent years doing the H1B dance. (I'm not anti-immigration. I'd love to simply give them citizenship. I've met some amazing people on H1Bs. The system is exploitive to US workers AND the H1B recipients). Face it, as someone who is actually doing the work of IT, you lost a long time ago.
by falcor84 | 2025-12-01 14:54:17+00:00
The big difference that an Open Source license gives me is that regardless of the tool I use to make the edits, if I rewrite the bytes of the Linux kernel, I can freely release my version with the same license, but if I rewrite the bytes of Super Mario Odyssey and try to release the modified version, I'll soon be having a very fun time at the bankruptcy court.
by soulofmischief | 2025-12-01 14:54:21+00:00
You're just describing panpsychism, which itself is the subject of much critique due to its nonfalsifiability and lack of predictive power. Not to mention it ignores every lesson we've learned in cognition thus far.

A thermometer encoding "memory" of a temperature is completely different than a thermometer on a digital circuit, or a thermometer attached to a fully-developed mammalian brain. Only the latter of this set for sure has the required circuitry to produce qualia, at least as far as I can personally measure without invoking solipsism.

It's also very silly to proclaim that philosophy of mind is not applicable to increasingly complex thinking machines. That sounds like a failure to consider the bodies of work behind both philosophy of mind and machine cognition. Again, "AI" is ill-defined and your consistent usage of that phrase instead of something more precises suggests you still have a long journey ahead of you for "understanding AI".
by jwr | 2025-12-01 14:54:25+00:00
> Why this particular stand?

First, any stand is better than whataboutism and just sitting there doing nothing.

Second, this stand results from my thoughts. It is my stand. There are many like it, but this one is mine.

Third, in the history of the modern world there were very few black&white situations where there was one side which was clearly the aggressor. This is one of them.
by Aperocky | 2025-12-01 14:54:35+00:00
If AGI can be controlled by corporation or governments, that's not very intelligent of it is it?

You have a clear idea of what AGI would look like, and don't want that. I think you don't and none of us do, it will surprise us just like internet and smartphone would to someone, even if very technically inclined, 50 years ago.
by vrighter | 2025-12-01 14:54:37+00:00
It is mindblowing to me that so many people think that just ripping out functionality and completely eliminating certain legitimate usecases is "progress".

And that having fucktons of incompatible compositors because wayland, by design, does not want to standardize things they decided would be harmful to myself if I needed them is also a good path forward.

Meanwhile the very real problem of "developers can't write an application that targets wayland, is brushed under the carpet, and then the entire house it's in is also buried in sand. Devs can target gnome, kde or whatever. But they'd have to support them separately. And there are certain devs who explicitly say they will not be implementing wayland support because of these issues. But at least we have solved XEyes's security issues!
by DonHopkins | 2025-12-01 14:55:03+00:00
Some people maintain that JavaScript is evil too, and make a big deal out of telling everyone they avoid it on moral grounds as often as they can work it into the conversation, as if they were vegans who wanted everyone to know that and respect them for it.

So is it rational for a web design company to take a moral stance that they won't use JavaScript?

Is there a market for that, with enough clients who want their JavaScript-free work?

Are there really enough companies that morally hate JavaScript enough to hire them, at the expense of their web site's usability and functionality, and their own users who aren't as laser focused on performatively not using JavaScript and letting everyone know about it as they are?
by Someone | 2025-12-01 14:55:30+00:00
> If you decode the instruction, it makes sense to use XOR:

> - mov ax, 0 - needs 4 bytes (66 b8 00 00) - xor ax,ax - needs 3 bytes (66 31 c0)

Except, apparently, on the pentium Pro, according to this comment: https://randomascii.wordpress.com/2012/12/29/the-surprising-..., which says:

“But there was at least one out-of-order design that did not recognize xor reg, reg as a special case: the Pentium Pro. The Intel Optimization manuals for the Pentium Pro recommended “mov” to zero a register.”
by terminalshort | 2025-12-01 14:55:45+00:00
> There's people who want a government, want to do good, want governance.

It makes absolutely no difference what people want to do if they are not effective at it. I just look at the evidence here and the government is much more dysfunctional in Democrat run areas. Here's a Democrat voting economist admitting it: https://www.noahpinion.blog/p/blue-states-dont-build-red-sta...

How can you blame the problem on republicans if it is worse where they have the least control? The current governance problems in the US are 100% a self-own.
by jwr | 2025-12-01 14:56:17+00:00
I am amused by my (unpopular and downvoted by now) comment by the scourge of "whataboutism" sparked a discussion, where comments begin with "how about" :-)

That is exactly my point! Saying "but what about" is akin to saying "you shouldn't do anything, because there is another unrelated $thing happening elsewhere". I refuse to follow this line of thinking.
by davorak | 2025-12-01 14:56:34+00:00
It's hard to explain to a non technical user. Something like "We tried to delete the message, but some of the people who received your message might still have a copy." Does not sound great and is going to be hard for a non technical user to understand and hard to implement in a way that a non technical user will find satisfying.

So if I was a dev on matrix/element and this feature came across my plate I would have to weigh it against features that I know can be implemented in a way which make technical and non technical people feel satisfied and better about the application.
by Aurornis | 2025-12-01 14:56:46+00:00
> It’s truly depressing to have to accept that the only way to make a living in a field is to compromise your principles.

Of course. If you want the world to go back to how it was before, you’re going to be very depressed in any business.

That’s why I said your only real options are going with the market or finding a different line of work. Technically there’s a third option where you stay put and watch bank accounts decline until you’re forced to choose one of the first two options, but it’s never as satisfying in retrospect as you imagined that small act of protest would have been.
by Jordan-117 | 2025-12-01 14:56:55+00:00
The ACA had its most effective cost-control mechanisms stripped by its political opponents. Sen. Lieberman (a turncoat Dem who had campaigned for John McCain) forced the removal of the public option, which would have helped hold prices down through competition. The Supreme Court struck the requirement for states to participate in Medicaid expansion, which limited the benefits for millions in a swath of conservative states. And Republicans in Congress removed the individual mandate, which enabled healthy people to go without coverage, raising prices for everyone else.
by Ajedi32 | 2025-12-01 14:57:08+00:00
That seems like a good idea in the sense that it's better than separate apps for everything, but it's also probably the wrong level of abstraction. For example: what happens if you try to create a group chat containing an RCS user, a WhatsApp user, and a Telegram user? Ideally it would just work, but I don't see how that's possible without support for such a thing at a deeper level than just the UI layer.
by SpikedCola | 2025-12-01 14:57:26+00:00
Not sure why, but the text doesn't appear in Chrome 109: https://imgur.com/a/QyIdfax

If I disable "font-family: Atkinson" it comes back, so guessing it's font related. I do see the two .woff files load in the Network tab. Interestingly, when I preview either font file, I see the sample of the font (AaBbCc etc.) in a flash for just milliseconds, and then it disappears and I see nothing.
by AJ007 | 2025-12-01 14:57:38+00:00
I don't know what's wrong with XMPP other than the network effect collapsed when the GMail chat thing was killed, while the mobile client options were poor for a very long time.

Matrix has the appearance of being a drop in replacement for Slack or Discord, but the design decisions seem so compromised that the only explanation is they did manage to establish a (somewhat weak) network effect? It certainly is not a good look for an open source project to be running on Slack or Discord (free/cheap plans rugpulled or to be soon.) Then that leaves IRC, which has a network effect collapsing at a much slower pace.

I never got far enough to try hosting a matrix server, but reading the linked post -- Matrix definitely is not GDPR compliant. The combination of whatever end form of ChatControl the EU gets along with possibly hundreds of other laws across the world and individual US states makes me think the days of a public facing non-profit or small startup running a project like this are over. (Or maybe the future of open source is funding lawyers while the development is all done for pennies by AI?)
by anonymars | 2025-12-01 14:57:39+00:00
WhatsApp is the only chat app I've encountered that refuses to work* if you don't give it access to your contacts. The last thing I want is to give it access to even more chats. Go eat a bag of dicks, Meta. More like "metastatic"

* you can respond to messages but are very limited in what you can initiate (as such they got you as part of someone else's contact list)
by willahmad | 2025-12-01 14:57:49+00:00
I can give you many reasons, but I am afraid my comment will be flagged.

Some of them:

* Israel is losing support across the world, because now it can't control the narrative, before it was able, people thought journalism exist, now we see it doesn't, and we are witnessing 2 different narratives in the media vs social networks

* EU and US politicians took money from relevant lobby entities (or as we should call it: bribe)
by coldpie | 2025-12-01 14:58:42+00:00
Hahahahah

> 81% of executives say metaverse related technologies are inspiring their organization’s vision or long-term strategy

> 90% of executives anticipate an increase in the level of resources their organizations will dedicate to metaverse related technologies in the next 3-5 years

> $1T executives expect 4.2% of their revenues coming from metaverse in the next 3 years—a value of $1 trillion

If ever there was an argument that executives would be more productive members of society if they were flipping burgers, it's this website.
by arthurfirst | 2025-12-01 14:58:50+00:00
I have worked with a lot of code generation systems.

LLMs strike me as mainly useful in the same way. I can get most of the boilerplate and tedium done with LLM tools. Then for core logic esp learning or meta-programming patterns etc. I need to jump in.

Breaking tasks down to bite size, and writing detailed architecture and planning docs for the LLM to work from, is critical to managing increasing complexity and staying within context windows. Also critical is ruthlessly throwing away things that do not fit the vision and not being afraid to throw whole days away (not too often tho!)

For ref I have built stuff that goes way beyond CRUD app with these tools in 1/10th of the time it previously took me or less -- the key though is I already knew how to do and how to validate LLM outputs. I knew exactly what I wanted a priori.

Code generation technically always 'replaced' junior devs and has been around for ages, the results of the generation are just a lot better now., whereas in the past it was mixed bag of benefits/hassles doing code generation regularly, now it works much better and the cost is much less.

I started my career as a developer and the main reasons I became a solutions systems guy were money and that I hated the tedium boilerplate phase of all software development projects over a certain scale. I never stoped coding because I love it -- just not for large enterprise soul destroying software projects.
by csomar | 2025-12-01 14:59:01+00:00
I went with an expensive XPS (their "carbon skin model") with the top config 3 years ago. The touch screen failed in less than a year, the battery become useless in 2 years and I am now in my second charger which is failing. The unit feels tired/old though the performance on what matters (cpu/memory/nvme) is still solid so far. I guess anything not made by Dell is holding on.
by Sharlin | 2025-12-01 14:59:09+00:00
As the author says, a couple of extra bytes still matter, perhaps more than 20ish years ago. There are vast amounts of RAM, sure, but it's glacially slow, and there's only a few tens of kBs of L1 instruction cache.

Never mind the fact that, as the author also mentions, the xor idiom takes essentially zero cycles to execute because nothing actually happens besides assigning a new pre-zeroed physical register to the logical register name early on in the pipeline, after which the instruction is retired.
Show HN: LogCost – map logging cost to specific log lines
by random_round | 2025-12-01 14:59:35+00:00
We kept running into the same pattern with logging costs:

- CloudWatch / GCP Logging / Datadog tell you which log group/index is expensive - But not which specific log statements in your code are responsible So the response is always: - tweak retention / tiers - add filters and sampling …and only much later do you discover it was a couple of DEBUG lines in a hot path, verbose HTTP tracing, or payload dumps in loops. At some point we wanted a simple answer to: > “For the code that’s deployed right now, which log call sites are burning most of the budget?” ——— ### What LogCost does LogCost is a small Python library + CLI that: - wraps the standard logging module (and optionally print) - tracks per‑call‑site metrics: {file, line, level, message_template, count, total_bytes} - applies provider pricing (e.g. GCP/AWS) to estimate cost - periodically exports aggregated stats only (no raw log payloads) - can send Slack notifications with the top N most expensive log lines It’s intended as a snapshot for the current deploy: run it under normal load, see which lines dominate cost, change them, redeploy, repeat. ——— ### How it works (high level) - It wraps logging.Logger._log and records a key per call site using file, line, and level. - Message size is estimated from the formatted string length plus a configurable per‑event overhead, and accumulated per call site. - A background thread periodically flushes aggregates to JSON on disk. - The CLI reads that JSON and prints: - a cost summary (based on current provider pricing), and - a “top cost drivers” table per call site. By design it never stores raw log payloads, only aggregates like: { "file": "src/memory_utils.py", "line": 338, "level": "DEBUG", "message_template": "Processing step: %s", "count": 1200000, "bytes": 630000000, "estimated_cost": 315.0 } That’s partly for privacy, and partly because this is meant to complement your log platform, not replace it. ——— ### Example output A report might say: - Provider: GCP, Currency: USD - Total bytes: 900,000,000,000 - Estimated cost: 450.00 Top cost drivers: - src/memory_utils.py:338 [DEBUG] Processing step: %s → $157.50 - src/api.py:92 [INFO] Request: %s → $73.20 - … Slack notifications are just a formatted version of the same data, on a configurable interval (with an optional early “test” ping so you can verify wiring). ——— ### Scope and status - Python‑only for now (Flask/FastAPI/Django / K8s sidecar examples) - MIT‑licensed, no backend service required - Export format is simple JSON, so it could feed a central aggregator later if needed Repo: https://github.com/ubermorgenland/LogCost I’d be interested in feedback from people who’ve debugged “mysterious” log bills: - Do you already solve this mapping (bill → specific log sites) in a cleaner way? - Is per‑line aggregation actually useful in your setups, or is this overkill compared to just better log group conventions?
by shevy-java | 2025-12-01 14:59:45+00:00
Isn't there one 'd' missing ...

As for gitlab versus github: I understand that gitlab may have more features and thus options, but I can't stand its default UI. Every time I use it I am annoyed compared to the github variant. Perhaps gitlab is nicer to have for teams, but from a user's perspective, I feel gitlab is worse than github (UI-wise primarily).
by zoeysmithe | 2025-12-01 15:00:00+00:00
I mean its a successful commercial project because it doesnt break things, at least not that often. You can run some really old software on windows. Its kind of taken for granted, but this is just not the norm is most industries.

As for baffling, I mean, I type in things like 'grep' everyday which is a goofy word. I'm not even going to go into all the legacy stuff linux presents and how linux, like windows, tries hard not to break userland software.
by renewiltord | 2025-12-01 15:00:30+00:00
No. Up to you to cool. I use an Epyc based system as a home server and you can’t hear it. At a previous employer we built a cluster out of these and just water cooled them. Very easy.

This is a chassis and fan problem not a CPU problem. Some devices do need their own cooling if your case is not a rack mount. E.g. if you have a mellanox chip those run hot unless you cool them specifically. In rackmount use case that happens anyway.
by Workaccount2 | 2025-12-01 15:01:09+00:00
One of the worst or most uncomfortable logical outcomes of

> which we do not currently know how to precisely define, recognize or measure

is that if we don't know if something has qualia (despite externally showing evidence of it), morally you should default to treating it like it does.

Ridiculous to treat a computer like it has emotions, but breaking down the problem into steps, it's incredibly hard to avoid that conclusion. "When in doubt, be nice to the robot".