frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Benefits of Fullstack Rust

https://github.com/ibaryshnikov/fullstack-rust-iced
1•rekireki•1mo ago

Comments

rekireki•1mo ago
Let's discuss the benefits of writing fullstack Rust, as well as crossplatform development for Desktop and web targets. What are pros and cons of this approach? I've been using Rust in the browser since early days and noticed a number of interesting points.

Shared code and data structures: one of the key benefits for me personally is that you don't need to document you api with tools like swagger. Define the shared data structures in a module, import it on the client and server sides, and you are good to go. In addition, thanks to serde it's easy to switch between different serialization formats. Want to switch from JSON to MessagePack? Define encode/decode function in the shared module and use them from both client and server. Now changing the format takes a few lines of code.

One language: you can switch between writing client and server without a lot of effort. Of course, WebAssembly adds technical overhead. But I would argue that it's less than using two different languages. Still, there's a need to write platform dependent code at times, and it requires the familiarity with the target platform.

One package manager: when you use a language it's not only about the syntax, but also the ecosystem. And crates.io provides solutions for many common problems already. It saves a lot of time if you have only one package ecosystem to explore. As far as it has the packages you need, of course.

A bit more about WebAssembly: it was created when people wanted to build desktop applications for the browser. And now it's just a nice and convenient benefit when you make a desktop app, but you have an option to build it for the web too.

Binary size: the example application has .wasm file of 4.4Mb when compiled in release mode and optimized with wasm-opt from binaryen.

Font loading: when you use canvas to render your app in the browser, there's a need to load the fonts and it can easily add another 10Mb to the downloading data depeding on the fonts used.

In the end, I'd like to thank all the people who are working on the tools and ecosystem. It's possible only because of your hard work!

What do you think about fullstack and crossplatform development in Rust?

Achieving Ultra-Fast AI Chat Widgets

https://www.cjroth.com/blog/2026-02-06-chat-widgets
1•thoughtfulchris•45s ago•0 comments

Show HN: Runtime Fence – Kill switch for AI agents

https://github.com/RunTimeAdmin/ai-agent-killswitch
1•ccie14019•3m ago•1 comments

Researchers surprised by the brain benefits of cannabis usage in adults over 40

https://nypost.com/2026/02/07/health/cannabis-may-benefit-aging-brains-study-finds/
1•SirLJ•5m ago•0 comments

Peter Thiel warns the Antichrist, apocalypse linked to the 'end of modernity'

https://fortune.com/2026/02/04/peter-thiel-antichrist-greta-thunberg-end-of-modernity-billionaires/
1•randycupertino•5m ago•1 comments

USS Preble Used Helios Laser to Zap Four Drones in Expanding Testing

https://www.twz.com/sea/uss-preble-used-helios-laser-to-zap-four-drones-in-expanding-testing
2•breve•11m ago•0 comments

Show HN: Animated beach scene, made with CSS

https://ahmed-machine.github.io/beach-scene/
1•ahmedoo•11m ago•0 comments

An update on unredacting select Epstein files – DBC12.pdf liberated

https://neosmart.net/blog/efta00400459-has-been-cracked-dbc12-pdf-liberated/
1•ks2048•11m ago•0 comments

Was going to share my work

1•hiddenarchitect•15m ago•0 comments

Pitchfork: A devilishly good process manager for developers

https://pitchfork.jdx.dev/
1•ahamez•15m ago•0 comments

You Are Here

https://brooker.co.za/blog/2026/02/07/you-are-here.html
3•mltvc•19m ago•0 comments

Why social apps need to become proactive, not reactive

https://www.heyflare.app/blog/from-reactive-to-proactive-how-ai-agents-will-reshape-social-apps
1•JoanMDuarte•20m ago•1 comments

How patient are AI scrapers, anyway? – Random Thoughts

https://lars.ingebrigtsen.no/2026/02/07/how-patient-are-ai-scrapers-anyway/
1•samtrack2019•20m ago•0 comments

Vouch: A contributor trust management system

https://github.com/mitchellh/vouch
2•SchwKatze•20m ago•0 comments

I built a terminal monitoring app and custom firmware for a clock with Claude

https://duggan.ie/posts/i-built-a-terminal-monitoring-app-and-custom-firmware-for-a-desktop-clock...
1•duggan•21m ago•0 comments

Tiny C Compiler

https://bellard.org/tcc/
1•guerrilla•23m ago•0 comments

Y Combinator Founder Organizes 'March for Billionaires'

https://mlq.ai/news/ai-startup-founder-organizes-march-for-billionaires-protest-against-californi...
1•hidden80•23m ago•2 comments

Ask HN: Need feedback on the idea I'm working on

1•Yogender78•24m ago•0 comments

OpenClaw Addresses Security Risks

https://thebiggish.com/news/openclaw-s-security-flaws-expose-enterprise-risk-22-of-deployments-un...
2•vedantnair•24m ago•0 comments

Apple finalizes Gemini / Siri deal

https://www.engadget.com/ai/apple-reportedly-plans-to-reveal-its-gemini-powered-siri-in-february-...
1•vedantnair•25m ago•0 comments

Italy Railways Sabotaged

https://www.bbc.co.uk/news/articles/czr4rx04xjpo
4•vedantnair•25m ago•0 comments

Emacs-tramp-RPC: high-performance TRAMP back end using MsgPack-RPC

https://github.com/ArthurHeymans/emacs-tramp-rpc
1•fanf2•27m ago•0 comments

Nintendo Wii Themed Portfolio

https://akiraux.vercel.app/
2•s4074433•31m ago•2 comments

"There must be something like the opposite of suicide "

https://post.substack.com/p/there-must-be-something-like-the
1•rbanffy•33m ago•0 comments

Ask HN: Why doesn't Netflix add a “Theater Mode” that recreates the worst parts?

2•amichail•34m ago•0 comments

Show HN: Engineering Perception with Combinatorial Memetics

1•alan_sass•40m ago•2 comments

Show HN: Steam Daily – A Wordle-like daily puzzle game for Steam fans

https://steamdaily.xyz
1•itshellboy•42m ago•0 comments

The Anthropic Hive Mind

https://steve-yegge.medium.com/the-anthropic-hive-mind-d01f768f3d7b
1•spenvo•42m ago•0 comments

Just Started Using AmpCode

https://intelligenttools.co/blog/ampcode-multi-agent-production
1•BojanTomic•43m ago•0 comments

LLM as an Engineer vs. a Founder?

1•dm03514•44m ago•0 comments

Crosstalk inside cells helps pathogens evade drugs, study finds

https://phys.org/news/2026-01-crosstalk-cells-pathogens-evade-drugs.html
2•PaulHoule•45m ago•0 comments