Beware the greenfield effect. I don’t want to comment on the technology choices specifically here, but in general the whole “we rewrote our app in X and now it’s better” is essentially a fact of life no matter the tech choices, at least for the first big rewrite. First, you’re going to make better technical choices overall. You know much better where the problems lie. Second, you’re rarely going to want to port over…
Counterpoint: if you rewrite a Rust app, ANY Rust app and turn it into a perfectly rewritten Electron app, it will 100 percent still be shittier, bigger, slower and eat more RAM and CPU.
Show HN: I rewrote my Mac Electron app in Rust
431–440 of 465 posts
Re: Show HN: I rewrote my Mac Electron app in Rust
#432Earlier quoted context omitted.
>monoculture for the win The browser is the actual product. An open source browser engine lowers the barrier of entry of creating new browsers. >Likewise I guess there is no problem that game developers mainly care about Windows, Proton is open source, so no big deal Which is why Valve recommends game developers to target Windows and use Proton for compatibility. Having one platform to target simplifies developers li…
There will be no browsers left, likewise the Year of Desktop Linux will never come, cursed forever to emulate/translate other platforms, ChromeOS and Windows, so that it can have any kind of applications, pretending to be "native".
>pretending to be "native".
The code is native. Just because something uses a library to call platform code it doesn't mean it isn't native. By that logic programs that use qt are not native because they use a cross platform api.
Re: Show HN: I rewrote my Mac Electron app in Rust
#433Re: Show HN: I rewrote my Mac Electron app in Rust
#434Earlier quoted context omitted.
No. But also, nobody(first order approximation) uses Gnome web. I would wager most javascript web apps don't work on that browser anyways due to webkitgtk. The most popular gnome distros all come with firefox installed so even the "just use the default" folks won't be using gnome web.
Gnome Web sucks, it has shitty defaults and a horrid performance. But luakit/vimb can be really fast. Luakit even ran under a netbook. Single page bound, ok,, but not bad from an n270 with 1GB of RAM.
I have one such device and Firefox and Chrome also run on it. They're slow but still usable.
Re: Show HN: I rewrote my Mac Electron app in Rust
#435Earlier quoted context omitted.
End users care that they get a product at all. Which they won't if it's too costly to make. There is a balance that is appropriate for each project. Or else we should all be writing machine code by hand.
Rust has been shown by Google to not be any less productive than other mainstream languages though.
Re: Show HN: I rewrote my Mac Electron app in Rust
#436Earlier quoted context omitted.
I don't know which models you are using, but in my experience they have been way more than fancy autocomplete today. I have had thousand line programs written and refined with just a few prompts. On the analysis and code review side, they have been even more impressive, finding issues and potential impacts of changes and describing the intent behind the code. I implore you to revisit good models like Gemini 2.5 Pro.…
I generally have to maintain the code I write, often by myself; thousands of lines of uninspired slop code is the last thing I need in my life. Friction is the birth place of evolution.
Re: Show HN: I rewrote my Mac Electron app in Rust
#437Earlier quoted context omitted.
Microsoft rewriting typescript tools in Go and getting a 10x speedup? It's wild that they would choose Go for that. And a surprising level of speedup. https://devblogs.microsoft.com/typescript/typescript-native-...
> And a surprising level of speedup. Not surprising at all; I keep pointing out that the language benchmarking game is rarely, if at all, reflective of real-world usage. Any time you point out how slow JS is someone always jumps up with a link to some benchmark showing that it is only 2x slower than Go (or Java, or whatever). The benchmarks game, especially in GC'ed languages, are not at all indicative of real-world…
Perhaps when you write "idiomatic usage" you mean un-optimized.
Re: Show HN: I rewrote my Mac Electron app in Rust
#438Earlier quoted context omitted.
A few months ago, I experimented with Wails and Tauri on Windows. The builds did indeed take unreasonably long with the Rust option and were way faster with Go, no idea why but I ditched Tauri because of that since Wails did more or less the same thing.
Did you manage to publish/ship your WAILS app? What was your biggest hurdle with it?
I'd say that the biggest hurdle for that sort of thing is just the documentation or examples of how to do things online - because Electron is the one everyone seems to use and has the most collective knowledge out there.