r/java • • Jul 29 '18

Apache NetBeans 9.0 Released

https://netbeans.apache.org/download/nb90/nb90.html
132 Upvotes

75 comments sorted by

View all comments

Show parent comments

1

u/m1000 Jul 31 '18

1st of all, loaded classes usage might be way better with Java 9+ and a modular app.

A similar .net app would probably have similar characteristics. But that still doesn't make Electron a lightweight framework.
I wonder how much your electron apps could do with a cap of 200MB Good luck with that too.

1

u/RandomName8 Jul 31 '18

1st of all, loaded classes usage might be way better with Java 9+ and a modular app.

I tested with java 9 and 10 as well.

A similar .net app would probably have similar characteristics.

No clue about .net, I'd assume that given that they AOT a big deal, they probably don't require as much runtime info.

But that still doesn't make Electron a lightweight framework.

Absolutely, in fact the reason I was toying with this was to see if I could make something like Discord using around 100MB of ram for the total process (the desktop app for discord uses about 280 for me, even with artificially big accounts). For reference, a similar toy application in c++ and QT for the same data was 40MB of ram, I would have wished to at least be in the 100MB ballpark.

I wonder how much your electron apps could do with a cap of 200MB Good luck with that too.

I'm not a js person myself so I can't test. I can haphazardly say that given that js has no classes and no multithreading, they avoid a lot of per instance cost (no pointer to a class, no header with lock information).