First of all, every single Electron application you download bundles most of Chromium, and every application you run is executing a good chunk of that code. Even if you’ve got the real chrome open, each electron app runs its own, extra copy of the whole VM. You can think of Slack as a small javascript program running inside another operating system VM (chrome), that you have to run in order to essentially chat on IRC. That’s why the desktop version of Slack takes up over 200MB of hard drive space: most of Chrome is bundled in there.Įvery Electron app you run is more or less a full instance of Chrome. As blogger Joseph Gentle This is bundled along with the platform-specific instructions in order to ensure that everything behaves exactly as developers expect on all systems. How is this possible? In part because every Electron app bundles a complete web browser: Chromium, Even better for developers: everything can be built using Javascript, HTML, and CSS-technologies anyone who codes for the web are very familiar with.Įlectron Apps Come With Pretty Much All of Chromium This means developers can write the code for things like notifications once and expect it to work natively on every operating system. This means anyone who wants to write an application for all three desktop operating systems (or even two of them) needs to re-write a lot of their code when porting from one to another.Įlectron “solves” this by offering a single platform that works on all three major desktop operating systems. Accessing the file system works differently in Windows than it does in Linux, for example, and notifications work differently on macOS than in Windows. Desktop applications are hard to make, especially if you want them to be cross-platform.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |