groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Owen Rubel <>
Subject Re: chdir() implementation requested in groovy, just like jruby
Date Sun, 05 Jul 2015 20:58:45 GMT
Well... The only thing really competing with JRuby is Ruby.

Groovy isn't a bridge for another language which is why it's approx 4x
faster than JRuby.

It's purpose isn't to mock every other language but to implement convention
over config concepts, provide a scripting language for Java,  simplified

The chdir() function really really depends on env, framework and alot of
variables that need to be set by a developer creating a required config
over convention functionality. You CAN automate it but you lose speed when
running over simplicity.

I think thats why it won't be implemented IMHO.

Owen Rubel

On Sun, Jul 5, 2015 at 11:26 AM, Zaxebo Yaxebo <> wrote:

> jvm has no chdir() function to change current working directory.
> As groovy positions itself as competitor to jruby and other scripting
> language, and jruby implements chdir() using JNR (not using JNI)
> jython also implements chdir() on its own, but its implementation has some
> limtation. And jruby's implementation of chdir() function is best and
> stable.
> I have filed an enhancement request of adding a chdir() function to groovy
> using JNA or JNR.
> I have given sample code to achieve this using JNA.
> please give your feedback at
> for this enhancement feature request.
> zaxebo1

View raw message