4 ms·
This is awesome to know, I'm using Dart these days(java like language) that has a much smaller runtime(helloworld is 6MB), any one tried it with swing for GUI a
by synergy20 4y ago
This is awesome to know, I'm using Dart these days(java like language) that has a much smaller runtime(helloworld is 6MB), any one tried it with swing for GUI and see how large the final size is about.
- mike_hearn 4y agoMinimal Swing app is about 27mb compressed, 28mb with FlatLaf. That's for Windows. A bit smaller if you drop ECC and accessibility support. That 6mb is just for Dart right? I thought a minimal Flutter app is about the same size as a minimal Swing app.
- synergy20 4y agothanks,yes it is dart only size,need measure flutter size vs swing as a single exe
- mike_hearn 4y agoA couple of years ago I did some experiments to see how small you could make HotSpot and still have something usable. I got it down to a 7mb download but that required some tricks: - .tar.zstd - A custom build of HotSpot that compiled out some optional features. - It was just java.base, no swing You can get smaller if you do DCE / tree shaking more aggressively, or use a custom JVM designed for size. The smallest I've seen was Avian which can produce GUI apps that are 1mb standalone binaries. It's abandoned unfortunately.
- brabel 4y agoI also use Dart to create native binaries! Just because it's so easy. I have a real CLI app that does quite a lot of stuff, and it's less than 8MB. And runs really fast! At least around as fast as a Java native app compiled with native-image (GraalVM), but I hate native-image because it takes MINUTES to compile and sometimes does not behave exactly like the JVM-version (Dart doesn't even need to compile, you can run from source, and when you want to compile to binary it still takes just a few seconds).
- synergy20 4y agoin some way, Dart is a better and easier Java, I hope Google will change Dart from a client-optimized language to a general-purpose language working at both client and server. It works for server now, but still it's client-optimized. Anyways, I really like Dart a lot.