Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm curious to know if Groovy 2.x (with strict/static compiler pragmas, er, annotations) is slow relative to regular Java lang code. I know Grails doesn't use the strict mode stuff, but for hand coded "hot spots", how does Java vs Groovy 2 compare?


> Grails doesn't use the strict mode stuff

No one uses the strict mode stuff except those unwittingly beta testing it for Grails. It was written by one lone programmer and is still buggy.


Hmm. Interesting. I recently incorporated Groovy into an existing legacy (web) app. As the app is still under Java 1.5, I could not get the static/strict stuff to work - it needs 1.6 or better support.

So, there's consensus that this feature is not ready for prime time? (I don't want an answer from people who hate Groovy in general)


> So, there's consensus that this feature is not ready for prime time?

Best wait till Grails trusts the static enough to use it before you do.

> I don't want an answer from people who hate Groovy in general

I love the Groovy Language, but the current PM made some bad decisions after taking over, e.g. removing Poirier's Heredocs, disabling Scala-like catchless try statements, laundering Tkachman's Groovy++ static-typing plugin, stonewalling on Wilson's MOP upgrade, scuttling any attempt to spec the language, the horrible paren-less DSL syntax for multi-arg function calls, removing Closure Lists just before an RC release without any public discussion, how Strachan the founder was knifed over dynamically-scoped closure syntax at Devcon 2, how Java 8 lambda retrofit hasn't even been begun on, instead the PM is wasting time on non-Java compatible traits to Groovy, etc.

I still love the essence of the Groovy Language, tho, that's why I'm rebuilding it atop Clojure.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: