Live data from Hacker News

Show HN: I rewrote my Mac Electron app in Rust

desktopdocs.com

71–80 of 465 posts

Re: Show HN: I rewrote my Mac Electron app in Rust

#71
post #14

I recently went the other way (started a project in Tauri, moved to Electron) because of frustration with rendering differences between the web views employed on different platforms. Have you run into any cross platform UI bugs since you switched? It looks like your UI needs are pretty simple while computation is complex so the extra QA tradeoff would still be worth it for you. I'm just wondering if my experience was…

Do you mean the actual rendering of html/css when you say rendering differences? Or are you referring more to differences in JS support?

Pure html/css rendering. JS support could be addressed trivially in the build system by transpiling anything unsupported by the oldest likely target.

Re: Show HN: I rewrote my Mac Electron app in Rust

#72
post #17
post #3

How do you run CLIP in Rust? I'm still not sure what the best inference stack on Rust is --- I tried onnxruntime bindings in Rust a few years ago and it was rather finicky to work with.

> I'm still not sure what the best inference stack on Rust is I was just looking into this today! The options I've found, but yet to evaluate: - TorchScript + tch = Use `torch.jit.trace` to create a traced model, load with tch/rust-tokenizers - rust-bert + tch = Seems to provide slightly higher-level usage, also use traced model - ONNX Runtime - Convert (via transformers.onnx) .pt model to .onnx encoder and decoder,…

Great resources, thanks. I'll look into the other packages and compare against our onnx runtime setup.

Re: Show HN: I rewrote my Mac Electron app in Rust

#73
post #65

Better do a Google reverse image search before you put fake testimonials on your website: Alex Chen is also known as „Alexander Hipp“ or „Felix Mueller“ Though the concept is interesting - I don‘t like bullshit marketing like „Trusted by Professionals worldwide“ if I can uncover the real deal within seconds

[deleted]

Re: Show HN: I rewrote my Mac Electron app in Rust

#74
post #60
post #44

Earlier quoted context omitted.

No, WebkitGTK is notoriously an issue.

Is WebKitGTK as used by Tauri worse than WebKitGTK used by a web app user's web browser?

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.

Re: Show HN: I rewrote my Mac Electron app in Rust

#75
post #58

Earlier quoted context omitted.

With Electron, it will bundle chrome into the app so you only have to handle that single rendering engine. Tauri uses whatever is the default browser on the system the app is installed on

I know. I'm saying that Tauri doesn't make things more difficult than any normal web app development, it's not like making web apps which work across browsers is a new and scary thing

It's not a new or scary thing, but it's way more expensive (in time or money) than relying on "it looks good on my machine, so it looks good everywhere."

I've worked on large consumer-facing web-apps where we had a dedicated QA team (and/or contracting firm) that runs visual regression testing on multiple platforms and browser versions. As a solo developer, I have no interest in being that team for my hobby project. So the tradeoff with Tauri for me was "accept that I will ship obvious UI bugs" vs "accept that I will ship a bloated binary."

Reading anecdata on forums, it seems like the only people who get up in arms over an extra 200MB are HN readers, and my app isn't really targeted at them.

Re: Show HN: I rewrote my Mac Electron app in Rust

#78
post #75
post #58

Earlier quoted context omitted.

I know. I'm saying that Tauri doesn't make things more difficult than any normal web app development, it's not like making web apps which work across browsers is a new and scary thing

It's not a new or scary thing, but it's way more expensive (in time or money) than relying on "it looks good on my machine, so it looks good everywhere." I've worked on large consumer-facing web-apps where we had a dedicated QA team (and/or contracting firm) that runs visual regression testing on multiple platforms and browser versions. As a solo developer, I have no interest in being that team for my hobby project.…

> Reading anecdata on forums, it seems like the only people who get up in arms over an extra 200MB are HN readers, and my app isn't really targeted at them

I think it's good to be wary of overly sensitive advice that regular users don't care about. But would a regular user realize they have 10 electron apps running and their ram is maxed out all the time?

The argument against Electron isn't just a single bloated binary, but everyone shipping an app that uses way more RAM than necessary.

Re: Show HN: I rewrote my Mac Electron app in Rust

#79
post #53

What was the most surprising thing you saw or learned in this rewrite process?

The move from Electron helped us remove "native libraries" in Node. Previously we were using Xenova transformers to instantiate the models. This forced us to use multiple package.jsons and added a lot of cognitive overhead to our development.

The move to rust freed us up to focus more on feature development than configs and setup. It was surprising because I thought learning rust would set us back much longer, but the trade-off was worth it.

Re: Show HN: I rewrote my Mac Electron app in Rust

#80
Would you please describe your adoption of LLMs in achieving this task in detail? For example, specific tooling at code-completion, web-chat and any other modalities?

Any lessons learned, particularly to leveraging LLMs to complete this transition could give a boost to people contemplating leaving electron behind or even starting a new project with Tauri.

Post reply on HN