Hacker News new | ask | show | jobs
by viraptor 1240 days ago
I'm not complaining about Tauri/Electron usage normally, I'm happy using vscode and a few other app using this tech, but... Why? This app uses a few buttons and text fields. It can be done using literally any available toolkit. Or even with imgui-rust if you want matching look.
2 comments

> This app uses a few buttons and text fields

Well it's not finished yet :)

The reasons for choosing Tauri:

- With new projects I try to learn something new but not everything all at once. This helps to not get overwhelmed and ship something in a reasonable timeframe.

- I'm comfortable with HTML, CS, JS and I wanted to learn Rust which Tauri uses.

- I figured the UI is going to change a lot in the early days and I wanted to be able to iterate on it quickly, so choosing something I know already for the UI made sense to me.

- If the project gets bigger, I can move to a JS framework easily enough and will have access to all the ecosystem it provides.

- I thought it would be easier to attract contributors with a web framework UI and Rust.

- While I want it to be as lightweight as possible, it is not going to be run on low spec machines so I feel like the tech stack is fit for purpose.

I'm glad you used it, even if to some your application doesn't need it, it's good for the toolkit and I personally like how it looks.

Additionally, I think that your project might be useful to people and the only reason it exists is because you invested your own time on it so if using tauri was something that motivated you or gave you any type of satisfaction then I'm happy for you.

Thank you!

Appreciate your kind comment!
Actually, I think many apps don't even require Tauri, Electron etc. They can use localhost:unique port and open the ui in browser when we click from tray?
This is exactly what Tauri does: unlike Electron it relies on the system web engine.
Do it uses extra memory? In browser I can open ui in multiple tabs. But, I suspect tauri creates another browser window with different process which consume similar memory that we see in electron.