pulsar-edit / pulsar

A Community-led Hyper-Hackable Text Editor
https://pulsar-edit.dev
Other
3.32k stars 139 forks source link

Consider moving the editor to Tauri #241

Closed widersky closed 1 year ago

widersky commented 1 year ago

Have you checked for existing feature requests?

Summary

Electron, which powers Atom / Pulsar and VSCode is, as we know, the entire browser "underneath". Niesie is a problem behind it - applications built in Electron are very resource-intensive. Tauri is the answer to this problem and I think you should consider transferring the project to this very engine.

The project is mature and allows you to build much lighter applications using web technologies.

Enter your response below:

Lighter and more efficient working environment.

Any alternatives?

Stay with Electron. VSCode doesn't refer to similar requests at all, which means the authors don't even consider it. Switching to Tauri would certainly become a big advantage compared to Pulsar vs VSCode.

Other examples:

No response

Spiker985 commented 1 year ago

We have had this discussion in Discord a few times already, which basically boils down to this. image

This may not be our stance forever, but it is our current stance

Daeraxa commented 1 year ago

It also seems somehow, wrong, to do it. Atom created Electron so it seems somehow sacrilegious to even consider it. Probably just me being melodramatic but still.

CanadaHonk commented 1 year ago

The only big advantages Tauri would really bring are smaller build sizes, and press/hype.

KaKi87 commented 1 year ago

smaller build sizes

Not only that, but smaller resource consumption in general (storage indeed, but also CPU & RAM).

CanadaHonk commented 1 year ago

Barely, if you perform your own benchmarks (on Windows at least).

KaKi87 commented 1 year ago

It's really different from an end user's point of view, who runs multiple web-based desktop applications simultaneously.

CanadaHonk commented 1 year ago

As someone who has made and tested apps in Electron, Tauri, and others, Tauri has no significant resource consumption decrease on Windows at least. Yes, minorly less memory usage (~10MB for most apps) and CPU usage, but nothing noticeable to the end user.

Schr3da commented 1 year ago

Hi, I think it is a great idea to get rid of electron and use tauri. The bundle size gets smaller and performance critical code can be easily written in rust which is also easy to do cross compiling. If the community would like to consider the move I'm happy to support and develop.

Regards Schr3da

mauricioszabo commented 1 year ago

Pulsar is the continuation of Atom, so it relies heavily on node integration on the renderer. Tauri does not support this, and as of now there's no alternative that supports node on the renderer process.

We will offer any help and support for anyone that wants to do it, even on our official discord server, but it's not the focus of the Pulsar project, and probably will never be - it will essentially be a full rewrite, a different editor.