Nothing Special   »   [go: up one dir, main page]

Linux Format

Create smaller sized apps with React

You may not be surprised that some developers have criticised Electron (see tutorials LXF256), mostly regarding the memory usage of its final binaries. The initial binary is over 100MB, because a major chunk of code from Chrome is embedded. When you create a small piece of code, this is a horrible waste. With Proton Native the binary is compiled with the bare essentials, making the binary a few kilobytes in size. That’s a very big win for small utilities.

Until now Proton Native hasn’t been in much use with bigger projects. However, it may become popular thanks to the potential for more efficient and smaller binaries compared to Electron. Since it supports Node.js, developers can create pretty much everything that they can with Electron.

Environment and compilers

Under the bonnet, Proton Native uses libgtk3-dev, build-essential, python2 and pkg-config for its compiling, so make sure they are installed.

Now you can compile the package you are about to make. This is a Node.js package that you can install using or . At the time of

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format3 min read
Schim
Back in 2007 or so there was a real trend for indie puzzle-platformers, usually about a sad boy who had to go from the left of the screen to the right for some reason. Although it’s not a 2D platformer, Schim reminds us of that era, when indie games
Linux Format3 min read
Sleeper OS Bee v2
Sleeper OS is a new Linux distribution. So new, in fact, that DistroWatch has yet to add it to its comprehensive online database. In its short lifetime, the OS has gone from being based on Rocky Linux to “embracing an MX Linux base”. MX itself is bas
Linux Format11 min read
Emulate The Classic Psion PDA Range
High school in the ’90s is where we saw our first Psion PDA (personal digital assistant) that we knew was a Psion. A classmate brought in a Psion 3a with a series of solid-state disks (yes, SSDs!) that had games and programs on. We forgot all about a

Related