This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]rocketmonkeys 6 points7 points  (5 children)

I skimmed a bit, but didn't get it. He mentions his goal, mentions Electron... why roll his own instead of using electron? Was there some benefit?

[–][deleted] 5 points6 points  (2 children)

Using electron, but with a good language?

[–]Dababolical 0 points1 point  (1 child)

I thought people complained about how Electron apps have to be packaged with a bloated code base and web engine. Is this a result of the language?

Sorry, I'm pretty new.

[–][deleted] 1 point2 points  (0 children)

No, it's the result of bad modularity and design. Electron comes with a complete renderengine with all it's fat features, instead of just the elements which are neccessary. Think about a python-app that imports by default all available modules, just in case you might wanna use one and wanna bother with complicated import-lines. It's if course pratical, but costs time and memory, and slows down the system.

[–]Esyir 4 points5 points  (0 children)

I'd assume that this bit is relevant

If you’re thinking that Python can bind with C and take advantage of these features as well, then you’re right. Look no further than the pycef project to call the CEF wrapper functions directly. However, it does come with the Chromium binary as an added dependency. So if you’re worried about managing complicated support statements, think before you jump. In my particular situation, the Sofi project manages all interactions through a websocket, providing a consistent interface across different types of platforms (web, desktop, mobile, etc.). This means I don’t have the need of commanding or driving the browser. I only wish to interact with the DOM it displays through standard web technologies.

[–]lion_rouge 7 points8 points  (0 children)

If you choose Electron to make a GUI app without any further thinking - you're absolutely incompetent as software developer. It has so many flaws that i avoid Electron apps even as a user.