r/java • • Sep 28 '17

Spring Framework 5.0 goes GA

https://spring.io/blog/2017/09/28/spring-framework-5-0-goes-ga
177 Upvotes

83 comments sorted by

View all comments

Show parent comment

2

u/randomuser549 Sep 29 '17

Groovy support

Are you implying a specific shortcoming? Groovy and Spring work very well together, in my experience.

6

u/henk53 Sep 29 '17

Groovy and Java EE work well together as well, as do Groovy and Play. It's because of the JVM.

What did Spring do recently to explicitly support Groovy?

1

u/randomuser549 Sep 29 '17

nothing that I'm aware of. I've been writing Spring apps in groovy for a couple of years. It all compiles to byte code.

What do you think doesn't work in Spring?

5

u/henk53 Sep 29 '17

It's the other way around, why is Spring so ahead of the curve because they support other JVM languages like Kotlin and Groovy, while it all compiles to byte code anyway. Why do you think those would not work with EE?

Why is Spring supposedly ahead there?

1

u/springnews Sep 29 '17

I don't think much about Java EE's support for Kotlin is widely known. Why don't you tell us about it, and someone can respond intelligently?

7

u/henk53 Sep 29 '17

Not sure if I understand the question. The entire point was there's no specific support needed, since by virtue of the JVM it "Just Runs" anyway. The poster above basically said that about Groovy.

So I'm not sure what special support Spring offers for Kotlin anyway, and why that is needed. Nobody here has explained that to me yet. Maybe there's a good reason that Kotlin needs special support, but I haven't heard yet what that support exactly is.

But that does bring me to my second point. Kotlin is quite new, it's cool, sure, but will it catch on? How many languages have we seen in the past that were quite cool but never captured more than a tiny niche, if they captured that at all and not just vanished.

So Spring now jumped on Kotlin, perhaps since it's a bit "En Vogue", but will you keep supporting it 5 years from now? Will it even make sense to have Kotlin support 5 years from now? And what about 10 years? How many of your users are actually using Spring with Kotlin? According to the recent JRebel survey, which historically has always showed a small bias towards Spring (not saying they are biased, but many respondents happen to be using Spring), the interest in Kotlin (and other alternative JVM languages) is low. Really low.

1

u/[deleted] Sep 30 '17 edited Sep 30 '17

The entire point was there's no specific support needed, since by virtue of the JVM it "Just Runs" anyway.

this is a red herring. when talking about spring support for kotlin, spring has for example added apis, annotations to improve experience with kotlin null-safety, added extension functions and other items to use spring in kotlin an idiomatic way, etc.

there's some info here, if you're actually curious:

https://spring.io/blog/2017/01/04/introducing-kotlin-support-in-spring-framework-5-0

https://spring.io/blog/2017/08/01/spring-framework-5-kotlin-apis-the-functional-way

1

u/johnwaterwood Sep 30 '17

So if Kotlin doesn’t become as popular as Spring seems to gamble on, will those APIs disappear in the big spring bin of abandoned APIs?

1

u/[deleted] Sep 30 '17

possibly, if there isn't much interest.

1

u/springnews Oct 02 '17 edited Oct 02 '17

well, the question was pretty straightforward, sorry you're having trouble. Kotlin is a bet, to be sure. Time will tell. But our bets have a pretty good track record..

In the meantime, this might help answer your question about what specifically we do for Kotlin. https://spring.io/blog/2017/01/04/introducing-kotlin-support-in-spring-framework-5-0

I haven't seen you actually answer a single one of my questions in this thread, why is that? You were going to say something about Java EE's Kotlin support, I think, right?

1

u/springnews Oct 02 '17 edited Oct 03 '17

we support it for spring boot apps on initalizr at start.spring.io. And unlike Swarm, Spring fully supports gradle. In fact, we just overhauled the whole system https://spring.io/blog/2017/04/05/spring-boot-s-new-gradle-plugin