3 ms·
I would most certainly be willing to leave electron for a python GUI framework just for the memory savings alone; I don't think the speed is the only issue. Plu
by triclops200 2y ago
I would most certainly be willing to leave electron for a python GUI framework just for the memory savings alone; I don't think the speed is the only issue. Plus, python can be fast enough if you just use it a a glue for libraries that are written more efficently. Don't get me wrong, I dislike python a lot, but, it's not electron/js.
Electron has the niceties that it does with being able to render so much via browser universalism, but, having that much of it around when your app doesn't need all of it is the problem with it fundamentally.
The best time I've had writing GUIs personally has actually been in SDL via wrapper languages like common lisp, but, I like being able to roll my own systems. It definitely takes more setup for the results I want for reasonable production apps that need less weird edge cases in their UIs
- fire_lake 2y agoGUI programming is not like array programming where you can easily send large computations out to a native library.
- triclops200 2y agoGUI programming is an abstractive display layer, it most certainly can (and should) be designed around deferring larger tasks for UI responsiveness reasons, anyways
- mixmastamyk 2y agoIt's not CPU-bound either. I made snappy GUIs in Python twenty years ago.
- IshKebab 2y agoTell that to the Cura devs.
- The_Colonel 2y ago> Plus, python can be fast enough if you just use it a a glue for libraries that are written more efficently. Yeah, Python can be fast enough if you don't use Python much. I don't see the point unless you're already heavily invested into Python.
- triclops200 2y ago> already heavily invested in Python Yep, as the most frequently used language in general, but also as one of the only major options for a few subfields of the computational sciences at this point, I think that happens a lot. > yeah, python can be fast enough if you don't use Python much Yup, exactly what I'm saying. Turns out that's how many many larger projects in Python operate because we're apparently deciding as an engineering society that python is one of the universal glue languages (much to my personal chagrin)