Using Java 9 Modularization to Ship Zero-Dependency Native Apps
steveperkins.com
Using Java 9 Modularization to Ship Zero-Dependency Native Apps
1–10 of 117 posts
Re: Using Java 9 Modularization to Ship Zero-Dependency Native Apps
#2For cross-platform desktop GUI apps, I would argue that JavaFX combined with Java 9 modularization is hands-down the best choice available today.
Electron is succeeding in the desktop GUI space because it tears down the barriers to desktop app development. While the author's article is excellent, when it comes to Electron, he (like most engineers) is still missing the point: the choice between Electron and its alternatives doesn't pivot on file size.
Re: Using Java 9 Modularization to Ship Zero-Dependency Native Apps
#3It feels like the tools are almost where they need to be and finally coming together!
Re: Using Java 9 Modularization to Ship Zero-Dependency Native Apps
#4It's been a while since I've used Java to program, has the memory situation changed? or are there any other solutions for lowering the JVM memory usage?
Re: Using Java 9 Modularization to Ship Zero-Dependency Native Apps
#5Nitpick but hello-world in Go :
package main
func main(){
print("Hello World")
}
is < 1MB on most computers (900KB on windows). No need to import the "fmt" package.Re: Using Java 9 Modularization to Ship Zero-Dependency Native Apps
#6I want to use JavaFX to develop cross-platform apps but I feel JVM uses too much memory even for little things. It's been a while since I've used Java to program, has the memory situation changed? or are there any other solutions for lowering the JVM memory usage?
AFAIK Java uses less ram than Python and JavaScript, only common languages that beat it are Golang and C/C++
Re: Using Java 9 Modularization to Ship Zero-Dependency Native Apps
#7> A “Hello World” CLI written in Go compiles to around 2 MB. Nitpick but hello-world in Go : package main func main(){ print("Hello World") } is < 1MB on most computers (900KB on windows). No need to import the "fmt" package.
Re: Using Java 9 Modularization to Ship Zero-Dependency Native Apps
#8I want to use JavaFX to develop cross-platform apps but I feel JVM uses too much memory even for little things. It's been a while since I've used Java to program, has the memory situation changed? or are there any other solutions for lowering the JVM memory usage?
Re: Using Java 9 Modularization to Ship Zero-Dependency Native Apps
#9> A “Hello World” CLI written in Go compiles to around 2 MB. Nitpick but hello-world in Go : package main func main(){ print("Hello World") } is < 1MB on most computers (900KB on windows). No need to import the "fmt" package.
You can get under 200KB in Java easily by using proguard or similar to strip unused code from your dependencies.
Re: Using Java 9 Modularization to Ship Zero-Dependency Native Apps
#10I want to use JavaFX to develop cross-platform apps but I feel JVM uses too much memory even for little things. It's been a while since I've used Java to program, has the memory situation changed? or are there any other solutions for lowering the JVM memory usage?
Java will use as much memory as you give it. Higher heap size is better for performance up to around 32GB. For most Java apps you can limit heap to 256M or less with little consequence. AFAIK Java uses less ram than Python and JavaScript, only common languages that beat it are Golang and C/C++
http://www.jesperdj.com/2015/10/04/project-valhalla-value-ty...