Tag Info

New answers tagged

1

Do I lose any optimization opportunity if I choose to compile my language down to Java instead of the JVM bytecode? Opportunity? Sure. Your language knows about its semantics and its limitations. If you have certain features that could be optimized, then you can make those optimizations and output the better bytecode. If you go to Java, Java needs to ...


9

It's the same function name, with the same arguments, but potentially different return types and implementations, because it's polymorphic. That means if it's called in a context expecting an (Int, MyWeirdCustomNumType) return type, it has to evaluate it twice, because the implementation of (+) in Int is completely different from the implementation of (+) ...



Top 50 recent answers are included