Live data from Hacker News

Tauri: An Electron alternative written in Rust

tauri.studio

421–430 of 438 posts

Re: Tauri: An Electron alternative written in Rust

#421

Earlier quoted context omitted.

I worked in a job where people developed very similar Qt and Electron apps, in both cases it was a one person effort and the development took about the same time.

Would you be able to mention these apps? I would like to take a look.

Not really, they were apps made for museum exhibitions, not apps that you can download

Re: Tauri: An Electron alternative written in Rust

#422
post #83

Earlier quoted context omitted.

It's weird to want all the benefits of web development without it's unfortunate quirks in my opinion. If desktop developers don't want to deal with them, which I think is reasonable, they have loads of other tools they can use to build desktop apps (and give the users a better experience most likely).

It's not weird - every developer wants to 'just code' their features/business logic without having to deal with the pain points of the tech. They choose web tech for their app because the opportunity cost of learning a desktop-native language is the time that could be spent bootstrapping an electron app and getting the product out the door earlier.

how (if) important is using as minimal resources on the user's system? (if) Everyone agrees electron is bloated, is it (still) fair to prioritize developer "comfort zone" over actual specs?

Re: Tauri: An Electron alternative written in Rust

#423

Earlier quoted context omitted.

Yes. Why not? HTML/CSS great (from the development POV) for UI, and I can always write the performance critical code in C and linked them to the electron HTML/CSS frontend.

Presumably, if copying some data between JavaScript and native code in a slightly roundabout way was an issue, you wouldn't run things through web technology in the first place…

If you pass data with ArrayBuffer it's non-copying, so even large data is fine.

Re: Tauri: An Electron alternative written in Rust

#424
post #16
post #6

Each Electron application seems to think it's the only one running in a computer. It's the only way, I imagine, they think it's acceptable the amount of resources they need to run.

As a developer shipping executables to MacOS, Windows, and Linux today this is the only assumption I can make. I cannot assume that dependencies exist or are the correct version, I can't assume the user knows that package managers exist or that the dependencies shipped by the package managers are correct, I can't assume anything exists on PATH or LD_LIBRARY_PATH, and I can't even assume that libc or libc++ on a syste…

The problem is that every app developer is starting to believe the same thing, so we just end up with more and more bloat. Computer hardware has never been more powerful but because of bloated apps actual performance feels -- to this user -- the same as it was in 2010.

Re: Tauri: An Electron alternative written in Rust

#426
post #415
post #277

Earlier quoted context omitted.

100 MB / app is significant, especially on laptops. Slack used to use so much memory on Linux that I couldn't afford to run the desktop app and ran it inside a Firefox tab for years... seems to have gotten better somehow.

I doubt there would be many GUI apps that eat less than 100 MB — if only that would be the maximum.

Of course, but saving 100 MB in 5 apps would probably let you leave a few extra tabs open...or run emacs.

Re: Tauri: An Electron alternative written in Rust

#427
post #419
post #399

Earlier quoted context omitted.

I wish the dart language was more common than typescript. but this is very hard.

What do you like about Dartlang? Every time I've looked at it it's seemed like a rather uninspired language, almost like a slightly more dynamic Java (and an older Java too). I've never used it for anything production though.

I think that's one of the draws so the language honestly. Familiar, structured, and easy to pick up if you already know a c syntax language.

Re: Tauri: An Electron alternative written in Rust

#428

Earlier quoted context omitted.

An entire generation is being raised on Chromebooks. I wish Boot2Gecko and Firefox OS weren’t a bit ahead of themselves and had better ugh marketing.

Entire generation where? Let's say I saw exatly 1 guy with a chromebook through my life, and likely chromebooks weren't even officially sold in my country. And still Chrome is the most popular browser here.

Chromebooks outsold Macs in 2020 and schools all over the US are pushing Chromebooks on students because they're affordable and accessible to most people.

https://www.geekwire.com/2021/chromebooks-outsold-macs-world...

Re: Tauri: An Electron alternative written in Rust

#429

Reading all these comments about WebView compatibility issues makes me wonder why not just do Progressive Web Apps"? For the server the OS doesn't matter, and for the browser compatibility issues just deal with them like any web-app would. What is wrong with separate client and server?

Isn’t there a lot more work to do around local IO and permissions with PWAs?

Not sure but why would there be? A server is a server whether it runs in the same machine or somewhere else.

But for development purposes yes there is the complication of having to acquire and install a certificate to your server which your browser will trust without questions. So yes, that is (at least) one factor making PWA development more cumbersome than it should be.

Re: Tauri: An Electron alternative written in Rust

#430

Earlier quoted context omitted.

> Instead of writing platform specific apps You've answered your own question as to why people write then. > What value does electron add to the user? It adds a lot of value to Linux and to a lesser extent Mac users: before a electron a lot of apps didn't have a version for these platform at all.

> It adds a lot of value to Linux and to a lesser extent Mac users: before a electron a lot of apps didn't have a version for these platform at all What value does _this_ add over a web app? I've been an exclusive Linux user since college so I'm aware of the disadvantages of app/service unavailability (I remember the dark days of running Netflix in a windows VM that I barely had enough RAM to run...). But what's the…

I'm on Ubuntu and use the Slack app, which never causes any freezes or anything of the like. The advantages is that i know where it is ( in my taskbar and launcher) compared to it being one of my 500 open tabs, and the taskbar icon shows if i have unread notifications or messages. Furthermore, i can use it with multiple workspaces at the same time.
Post reply on HN