I do not understand why the size of a very simple compiled program is around 8Mb. This does not include the JVM I assume?
Here is a simple Ballerina program
import ballerina/io;
type Score [string, int, int];
public type Person object {
int age = 0;
public function allowedToDrink() returns boolean {
return self.age > 17;
}
};
public function main() {
io:println("Hello, World");
Score result = ["a", 10, 10];
}
which is 316 bytes. When I compile this program the produced jar is around 8Mb.
My questions are?
- What can I expect if I add new modules? Will the size grow dramatically?
- What does this jar include? Does it include all the standard modules?
BTW I do like the idea of an integration language. Let's hope that more people are willing to pick up Ballerina. It's always a good idea to learn a new language now and then, especially languages with novelties.