Since version 2, Groovy can be compiled statically, offering type inference and performance near that of Java.
从版本2开始，Groovy也可以静态编译，提供类型推论和Java相近的性能。