Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Dutch governments builds alternative for Microsoft based on NixOS (dawo.community)
    343comments
  2. Platform-Independent SIMD in Go (go.dev)
    21comments
  3. Git-bug: Distributed, offline-first bug tracker embedded in Git (github.com/git-bug)
    20comments
  4. Allow Carriers on Planes (jefftk.com)
    1comments
  5. Pentium II at 600Mhz with Voodoo 3 Emulated on 86Box with M6 Mac Mini (nyaa.sh)
    63comments
  6. Ink and Switch Interactive Homepage (inkandswitch.com)
    15comments
  7. Topcoat is pushing the boundary of server applications with Rust (tokio.rs)
    41comments
  8. F-Droid 2.0 (f-droid.org)
    383comments
  9. ASML says it sold 'absolutely nothing' in Europe in 2026 (tomshardware.com)
    14comments
  10. Boards of Casio (ambionix.com)
    8comments
  11. CVE-2025-13032: Entering and Breaking the Avast Antivirus Sandbox Part 2 (safateam.com)
    18comments
  12. Show HN: Make cursed fonts like Times New Bastard (mitpit.com)
    102comments
  13. I'm Tired of Being on the Network (matduggan.com)
    77comments
  14. Amiga Screens: A Primer (datagubbe.se)
    9comments
  15. Nobody Asked for a Crab Chair (newmobility.com)
    27comments
  16. Show HN: Whiteboard (YC W26) – An open-source IDE for thoughtful software design (github.com/devdotfast)
    125comments
  17. The Test (tante.cc)
    5comments
  18. Special Projects (2016) (openai.com)
    27comments
  19. Why is the liver so weirdly regenerative? (dynomight.substack.com)
    239comments
  20. 2DWillNeverDie (2dwillneverdie.com)
    69comments
  21. What About Rails? (jardo.dev)
    84comments
  22. Oracle on the hook to pay data centre investors even if site has no electricity (ft.com)
    82comments
  23. Rails World 2026 Opening Keynote [video] (youtube.com)
    404comments
  24. Show HN: Agentic CUDA Kernel Optimizer (github.com/bertaye)
    4comments
  25. Fearless SIMD v1.0 (linebender.org)
    44comments
  26. Toyota is taking the Corolla electric (electrek.co)
    664comments
  27. My weird new hobby: Wandering around Tokyo on Google Maps (ahmedhossamdev.com)
    165comments
  28. Opus 5.5 is good at explainer videos (launchvideo.io)
    176comments
  29. The Mafia may be keeping fentanyl out of Italy (economist.com)
    172comments
  30. Using LLMs to trace alchemical knowledge and decode 17th century letters (resobscura.substack.com)
    32comments

Topcoat is pushing the boundary of server applications with Rust

59 pointsby 4h agotokio.rs
39 comments
2h agoHN ↗

Look, I don’t know where we are going.

As honest as it is I can't risk using this anywhere near production if this is the attitude.

2h agoHN ↗

Luckily there's a lot of people who write prototype code, toy projects, and other "non-production" code that can experiment with a new project like this

1h agoHN ↗

I'd rather honestly than false confidence, there's something admirable about being this clear for sure

1h agoHN ↗

I have tried it. It feels pretty good to use, but you have to keep in mind that it's very early software. They currently break the API every other week, and it's still missing a lot of fundamental features. I have made a few basic web apps with it, and on v0.8.1 it was still missing a lot of reactivity which meant you had to use Javascript to bridge the gap.

1h agoHN ↗

I used it in the early days, and it seems it's still the same. Thank you.

1h agoHN ↗

We’re using it to build our web app (https://uncook.xyz) and while it’s a slight departure from my team’s NodeJS background it’s been pretty cool to work with

1h agoHN ↗

I haven't tried to the web app part but I've tried Toasty. The API seemed to be a little simpler and nicer to use than SeaORM for me. Here are a few things I liked in Toasty:

- In SQLite UUIDs are default stored as compact blobs instead of inefficient varchar/text (SeaORM)

- Timestamps were easier via jiff instead of chrono (SeaORM)

- Model structs use the actual name of the $table instead of being named like $tablemodule.(Model|ActiveModel) (SeaORM) they are just $Table. This makes writing libraries a little simpler that need to use entity struct's from two separate modules/crates otherwise you get a name collision on Model/ActiveModel and need to do alias imports.

- There's an API to fetch related data to a query similar to Django ORM. IIRC this is missing from SeaORM

- The query expression language doesn't cover as much of SQL as SeaORM but seems to be enough for most web apps.

- I didn't like how the migration system works. I would skip that part of the library

5m agoHN ↗

Do you have feedback on what you don’t like re: the migration system? It is inspired by drizzle. Is it something we missed or just not a fan of that style entirely?

1h agoHN ↗

Sounds a lot like Liveview in Phoenix.

8m agoHN ↗

Phoenix, HTMX, Data Star are all big sources of inspiration. Both HTMX and Data Star have built in support too.

1h agoHN ↗

Why bother with rust when you can write it in C and ask an LLM to weed out the memory bugs?

1h agoHN ↗

Why bother with asking an LLM to weed out the memory bugs when you can write it in Rust?

1h agoHN ↗

when you can write it in Rust..

Because fuck borrow checker..(and the horrible syntax)

1h agoHN ↗

So actually the answer to your question is that Rust provides excellent guardrails against memory safety issues, and in some cases, for code correctness as well, by allowing more behavior to be encoded in types. One of those guardrails is borrow checker.

Thus, the agent needs to iterate less.

38m agoHN ↗

Thus, the agent needs to iterate less.

I mean, I didn't meant to run the LLM every compile cycle. May be just before a release or something..

1h agoHN ↗

As if C was any better than rust. So much clutter. So hard to grok with all the macros. I'd rather read rust than C.

1h agoHN ↗

I don't get the complaints about the horrible syntax. The syntax is fine... Which is weird cause I only get complains from c/c++ folk, and that set of languages have objectively AWFUL syntax

36m agoHN ↗

It’s subjective. Some folks think lisps are it, others basic. Folks need to accept that we do not need global alignment on what good syntax means.

30m agoHN ↗

Rust's syntax is horrible not because of the braces. But due to the type system information the code has to carry. And the type system, unlike something like Haskell, is not always smart enough to infer the types from the context. Which cause even more noise in the form of type hints!

Add to that the horror of life time annotations, you really have a mess at your hands. I have seen projects litter clone everywhere just to sidestep this mess.

1h agoHN ↗

Why bother with C when you can get an LLM to write it in Rust and not waste tokens on finding memory bugs

1h agoHN ↗

If you go that way, why not write LLVM Intermediate Representation? And if you know your server CPU anyway, why not write machine code?

I personally like Rust for web applications a lot because you can catch many bugs at compile time instead of during tests or runtime.

1h agoHN ↗

Soon we're gonna need a way to catch bugs at prompt time

1h agoHN ↗

If you go that way, why not write LLVM Intermediate Representation? And if you know your server arch anyway, why not write machine code?

Nah, C is good enough for me.

catch many bugs at compile time...

Rust borrow checker is too dumb that you catch many non-bugs as well...I don't like that.

Mmm..LLMs also generates false positives. But at least you can reason with it...

1h agoHN ↗

Reuse is bad / NIHS is good and it's hard to reach token metrics using accepted engineering practices. That leads to the point of having the LLM invent a new specialized job security chip architecture for your IR just to run CRUD app.

1h agoHN ↗

write it in C and ask an LLM to weed out the memory bugs?

because a non-determinist chain of reasoning is not the same as a fully deterministic algorithm. Its the best tool when a deterministic system is not feasable.

33m agoHN ↗

because a non-determinist chain of reasoning is not the same as a fully deterministic algorithm.

It is not. But rust's borrow checker has its costs. It forces awkward implementations. Either suffer the horrible life time syntax, or pay the price of clone everywhere.

If you use C and run LLMs over it once in a while, I think it will get you most of the way.

1h agoHN ↗

Why bother with rust when you can write it in C and ask an LLM to weed out the memory bugs?

Here is a idea, why not combine both? Have the advantage of Rust its build in checks and LLMs independent checks. Now you get both for a even more safe program.

17m agoHN ↗

That is the worst of both worlds. You are paying for rust borrow checked forcing awkward designs, and you are paying for tokens.

1h agoHN ↗

Some absolutely great work, but I don't know why you would come up with a new term for a server component (shard). Why not just use the obvious client/server annotations so you don't have to define a novel term for new users?

53m agoHN ↗

It's interesting to see that they let you mix markup with logic directly in rust, but I have worries about maintainability. I remember the bad old days of PHP where you'd mix markup with logic directly, even when doing OOP with classes and it really made things more difficult long term.

46m agoHN ↗

It’s not a rust thing. Custom markup is usually implemented in rust frameworks using macros. If mixing macros and logic becomes a problem, we can change how the macros are implemented.

37m agoHN ↗

Yes, I saw that's it's via macros, but my point is that it reminded me of some web development practices from a much earlier era, and why we moved towards doing templates and separating app logic from presentation

9m agoHN ↗

The trend has been to move back to this style in general (see most modern JS frameworks). The main point is less about combining code and view, but breaking up the page into many small components and pushing data loading down into where it is needed vs up front.

Doing that enables a bunch of performance tricks like starting to steam the page before data i loaded and concurrently render components.

If you have to split your page into many small components, a separate view file for each becomes tedious.

37m agoHN ↗

I really like the direction Topcoat is going in as a Rails developer. Although it is just a bit itchy to my eyes, it is not acid-level, though.

The things that look great are LiveView and getting rid of boilerplate for client-side reactivity

14m agoHN ↗

Rust is the best general-purpose language for the new world of AI-driven development.

Funny, the Python guys say Python is the best general-purpose language for AI and the Go guys say Go is the best general-purpose language for AI etc etc