frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Farewell Rust

https://yieldcode.blog/post/farewell-rust/
37•skwee357•1h ago

Comments

PowerElectronix•44m ago
You can always upgrade your pc to something made in the last decade, too...
Night_Thastus•21m ago
Long compiles are always going to be more friction. No project stays small and quick to compile forever. Get better hardware, and then one day the project is large enough that you're back with long compile times.
mrbluecoat•41m ago
Better title: "Farewell, Rust for Web"
aaroninsf•36m ago
This is oddly timed in as much as one of the big success stories I've heard from a friend is their new practice of having Claude Code develop in Rust, than translate that to WebAssembly.

That seems much more like the future than embracing Node... <emoji here>

Wintamute•27m ago
If you’re making a web app your fancy rust wasm module still has to interface with the dom, so you can’t escape that. Claude might offer you some fake simplicity on that front for awhile, but skeptical that’s it fully scalable
bryanlarsen•36m ago
Rust for Web is awesome for adding control interfaces etc to other programs who have a different primary purpose.

And even then I do it by serving JSON API's and not by serving HTML.

cyberax•35m ago
Well, yep. People underappreciate the Typescript/JS ecosystem.

Typescript is pretty type-safe, and it's perfectly integrated with hot code reload, debuggers, and all the usual tools. Adding transpilation in that flow only creates friction.

That's also why things like Blazor are going nowhere. C# is nicer than Typescript, but the additional friction of WASM roundtrips just eats all the advantage.

throw-the-towel•22m ago
IDK, I still miss Rust's strictness and exhaustive enum matching.
Paul-E•30m ago
I want to address this one point:

> Similar thing can be said about writing SQL. I was really happy with using sqlx, which is a crate for compile-time checked SQL queries. By relying on macros in Rust, sqlx would execute the query against a real database instance in order to make sure that your query is valid, and the mappings are correct. However, writing dynamic queries with sqlx is a PITA, as you can’t build a dynamic string and make sure it’s checked during compilation, so you have to resort to using non-checked SQL queries. And honestly, with kysely in Node.js, I can get a similar result, without the need to have a connection to the DB, while having ergonomic query builder to build dynamic queries, without the overhead of compilation time.

I've used sqlx, and its alright, but I've found things much easier after switching to sea-orm. Sea-orm has a wonderful query builder that makes it feel like you are writing SQL. Whereas with sqlx you end up writing Rust that generates SQL strings, ie re-inventing query builders.

You also get type checking; define your table schema as a struct, and sea-orm knows what types your columns are. No active connection required. This approach lets you use Rust types for fields, eg Email from the email crate or Url from the url crate, which lets you constrain fields even further than what is easy to do at the DB layer.

ORMs tend to get a bad reputation for how some ORMs implement the active record pattern. For example, you might forget something is an active record and write something like "len(posts)" in sqlalchemy and suddenly you are counting records by pulling them from the DB in one by one. I haven't had this issue with sea-orm, because it is very clear about what is an active record and what is not, and it is very clear when you are making a request out to the DB. For me, it turns out 90% of the value of an ORM is the query builder.

cogman10•17m ago
sqlx doesn't build queries, or at least it minimally builds them. Which I think is the thing the OP is complaining about.

And, IMO, making dynamic queries harder is preferable. Dynamic queries are inherently unsafe. Sometimes necessary, however you have to start considering things like sql injection attacks with dynamic queries.

This isn't to poo poo sea-orm. I'm just saying that sqlx's design choice to make dynamic queries hard is a logical choice from a safety standpoint.

fuddle•28m ago
The TS/React ecosystem is so mature, it's hard for Rust to compete with it. My optimal stack is currently: Rust on the backend, Typescript/React for web with OpenAPI for shared types.
ChadNauseam•13m ago
Running rust in wasm works really well. I feel like I'm the world's biggest cheerleader for it, but I was just amazed at how well it works. The one annoying thing is using web APIs through rust - you can do it with web-sys and js-sys, but it's rarely as ergonomic as it is in javascript. I usually end up writing wrapper libraries that make it easy, sometimes even easier than javascript (e.g. in rust I can use weblocks with RAII)
resonious•4m ago
It does work well logically but performance is pretty bad. I had a nontrivial Rust project running on Cloudflare Workers, and CPU time very often clocked 10-60ms per request. This is >50x what the equivalent JS worker probably would've clocked. And in that environment you pay for CPU time...
resonious•6m ago
I'm doing this now and it's mostly great but the openapi generators are not good. At least the Typescript ones produce confusing function signatures and invalid type syntax in some cases.
robviren•13m ago
I find the dependency creep for both rust and node unfortunate. Almost anything I add explodes the deps and makes me sweat for maintenance, vulnerabilities, etc. I also feel perpetually behind, which I think is basically frontend default mode. Go does the one thing I wish Rust had more of which is a pretty darn great standard library with total backwards compatibility promises. There are awkward things with Go, but man, not needing to feel paranoid and how much can be built with so little feels good. But I totally understand just getting crap done and taking off the tin foil. Depends on what you prioritize. Solo devs don't have the luxury.
ngrilly•8m ago
Same. That’s why Go is such a great tool.
tasn•6m ago
These are two sides of the same coin. Go has its quirks because they put things in the standard library so they can't iterate (in breaking manners), while Rust can iterate and perfect ideas much faster as it's driven by the ecosystem.

The Most Important Design Guideline?

https://www.aristeia.com/Papers/IEEE_Software_JulAug_2004_revised.htm
1•lr0•1m ago•0 comments

Sanders and Newsom become adversaries over push to tax California billionaires

https://apnews.com/article/california-billionaires-bernie-sanders-gavin-newsom-democrats-87a1e54f...
1•donsupreme•2m ago•0 comments

Googling on Brazil about "Gemini said" shows unrevised content from Gemini

2•yrds96•3m ago•0 comments

Mohammed El-Erian on prominent private credit fund halting redemptions

https://twitter.com/elerianm/status/2024432428052365443
1•cs702•5m ago•0 comments

Python Developers Survey 2026

https://surveys.jetbrains.com/s3/python-developers-survey-2026
2•kurinikku•6m ago•0 comments

Highly stable Cu₄₅ superatom could transform carbon recycling

https://phys.org/news/2026-01-highly-stable-cu-superatom-carbon.html
1•PaulHoule•6m ago•0 comments

Show HN: Chat with your Okta tenant directly from Slack (Open-source AI agent)

1•danFctr•7m ago•0 comments

SpaceX's Starbase city is getting its own court

https://techcrunch.com/2026/02/19/spacexs-starbase-city-is-getting-its-own-court/
1•geox•7m ago•0 comments

ChatGPT ads are appearing on the first prompt, not after conversations

https://searchengineland.com/chatgpt-ads-spotted-and-they-are-quite-aggressive-469651
2•speckx•7m ago•0 comments

Show HN: OctoFlow – A GPU-native programming language

2•mr_octopus•8m ago•0 comments

QwenDirStat

https://tkanarsky.com/qwendirstat
1•tkanarsky•8m ago•1 comments

Reproducing autonomous Super Mario play with a genetic algorithm (open source)

https://github.com/testflows/Examples/tree/v2.0/SuperMario
1•vfinix•8m ago•0 comments

Prompt Injection Is a LangSec Problem: Unsolvable in the General Case

https://jhugman.com/posts/prompt-injection-langsec/
1•ashemaj•8m ago•0 comments

Research Revival Fund

https://researchrevival.org/about
1•eamag•8m ago•0 comments

Prompt Caching 201

https://developers.openai.com/cookbook/examples/prompt_caching_201/
1•gmays•9m ago•0 comments

OpenAI Codex PSA on Malicious Config Files

https://www.promptarmor.com/resources/openai-codex-psa-on-malicious-config-files
1•takira•10m ago•0 comments

Insurer to Pay Millions for Errors That Made Mental Health Care Harder to Access

https://www.propublica.org/article/emblem-health-ghost-network-settlement-mental-health
3•cdrnsf•12m ago•0 comments

Integrated crypto portfolio tracking, comparisons, simulations

https://blockviz.xyz/portfolio/compare
1•blockviz•14m ago•0 comments

Kevros – Governance-as-a-service API for AI agents

https://github.com/ndl-systems/kevros-governance-sdk
1•kevros_ai_chain•15m ago•0 comments

An AWKward Modem

https://seriot.ch/software/awkward_modem.html
2•beefburger•16m ago•0 comments

Blue Owl Capital stopping withdrawals has El-Erian making Bear Stearns parallels

https://www.marketwatch.com/story/fund-that-has-frozen-withdrawals-since-november-now-says-itll-n...
1•zerosizedweasle•16m ago•2 comments

Ask HN: Do subagents stop making sense at some point?

1•nemath•19m ago•2 comments

Age-verification software powers the surveillance web

https://www.therage.co/persona-age-verification/
2•delichon•20m ago•0 comments

Show HN: Messaging without accounts – continuity-authenticated instead

1•nick0clark•21m ago•0 comments

Show HN: Mithril fork with Signals, state, store and SSR

1•jvanveen•21m ago•0 comments

US builds website that will allow Europeans to view blocked content

https://www.theguardian.com/technology/2026/feb/19/us-builds-website-that-will-allow-europeans-to...
2•n1b0m•22m ago•1 comments

Implementing a secure sandbox for local agents

https://cursor.com/blog/agent-sandboxing
1•ecz•23m ago•0 comments

Show HN: Glucose monitoring data analysis tool

https://github.com/daedalus/glucose_monitoring
1•dclavijo•26m ago•0 comments

Show HN: ClawShield – Open-source firewall for agent-to-agent AI communication

https://github.com/DEFNOISE-AI/ClawShield
1•Joe_DNAI•26m ago•0 comments

Core French 5/6 A

https://classroom.google.com/c/ODAzNDY3NjUyMzUx
1•iiipoi•26m ago•0 comments