| ▲ | lenerdenator 2 hours ago | |||||||||||||||||||||||||
Electron's more-or-less just Chrome without... erm... chrome, so it makes sense that it's bloated and uses too much RAM. Even well-constructed and efficient JavaScript executed through it will do so on top of a bunch of stuff your application might not even need. One thing that I really hope we see out of the LLM revolution: a return to native applications. You could argue that Electron cross-platform apps made sense when you had to pay a team to maintain two or three (at least) native clients; you can't make that argument anymore when the marginal cost of a line of code is $0.00. | ||||||||||||||||||||||||||
| ▲ | floydnoel 2 hours ago | parent | next [-] | |||||||||||||||||||||||||
What I don’t understand is, why not just use a platform native webview? Mac has it at least, I think Windows does as well. You'd think it would be the same amount of work (roughly) but use a lot less memory. I guess developers really prioritize velocity or ease over everything. Or maybe it's business pressure or directives? | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
| ▲ | jauntywundrkind an hour ago | parent | prev [-] | |||||||||||||||||||||||||
Chrome is pretty efficient, as far as per page costs go! If your architecture isn't trash! The sin is this ridiculous era of every program shipping its own runtime. I'm headed for real down votes, but this is the same lazy culture that's taken over everywhere: go and rust both ship these huge statically compiled binaries. When you are a company, you're only running a handful of different workloads/apps on any given box, so the statically compiled price doesn't bite you. But as users, going back to dynamically linking and making the incremental cost of loading an app not also have to carry the entire world with it is such an obvious return, and one that alas seems to not be in progress at all. The agentic age is, I hope, going to question a lot of old assumptions & needs about what we want to run. Having lots of small resident little user agencies, compiled small scripts that are attributed to a user, is something I believe will happen, but I'm less convinced we'll recognize the face of it as it happens, that the tales will be told. Tools like agent-substrate, ax, scion, are this interesting mix between agents, serverless, and kubernetes. I find it fascinating. (For hire on this.) https://github.com/agent-substrate/substrate | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||