Live data from Hacker News

Kotlin 1.1 Released with JavaScript Support, Coroutines and more

blog.jetbrains.com

11–20 of 89 posts

Re: Kotlin 1.1 Released with JavaScript Support, Coroutines and more

#11

A few weeks ago I wrote the same application four times in four different JVM languages: Java, Groovy, Scala, and Kotlin, with a particular focus on the application using functional techniques and types as well as being reactive. I also included as goals complete test coverage with a preferred test framework from each language and complete build tooling, all within a single Gradle project. The only significant source…

Curious, if you were aiming at writing in a functional programming style, why didn't you try Clojure?

Re: Kotlin 1.1 Released with JavaScript Support, Coroutines and more

#12
Kotlin for me is Java made right. It's not complex, it has awesome interoperability with Java, it uses JDK, not reinventing its own wheels and it has everything I need from modern language.

But it seems that Jetbrains has its own vision for Kotlin being a completely independent language. So while it works for me right now, I'm not sure if it will work in the future. They are going native and it'll bring a lot of changes, for sure. Honestly I would prefer it to stay as Java enhancer, as I'm not interested in Native and I need very little JavaScript interoperability, if any (probably just translating some common code between backend and frontend).

But we will see, I don't want to sound too pessimistic. Kotlin is the best language I've used so far.

Re: Kotlin 1.1 Released with JavaScript Support, Coroutines and more

#13

Kotlin for me is Java made right. It's not complex, it has awesome interoperability with Java, it uses JDK, not reinventing its own wheels and it has everything I need from modern language. But it seems that Jetbrains has its own vision for Kotlin being a completely independent language. So while it works for me right now, I'm not sure if it will work in the future. They are going native and it'll bring a lot of chan…

Even with Kotlin Native in mind, we have no plans to break Kotlin's backwards compatibility guarantees, and we do plan to support the new JVM features such as value types. So if Kotlin works well as a Java enhancer for you today, it will only work better in that role in the future.

Re: Kotlin 1.1 Released with JavaScript Support, Coroutines and more

#14

A few weeks ago I wrote the same application four times in four different JVM languages: Java, Groovy, Scala, and Kotlin, with a particular focus on the application using functional techniques and types as well as being reactive. I also included as goals complete test coverage with a preferred test framework from each language and complete build tooling, all within a single Gradle project. The only significant source…

What functinal techniques did you use? Only higher order functions or did you go all the way to applicatives, monads (maybe even free) etc.?

btw: is the source code available somwhere? Would be interesting to see a comparison between the languages.

Re: Kotlin 1.1 Released with JavaScript Support, Coroutines and more

#15

Kotlin for me is Java made right. It's not complex, it has awesome interoperability with Java, it uses JDK, not reinventing its own wheels and it has everything I need from modern language. But it seems that Jetbrains has its own vision for Kotlin being a completely independent language. So while it works for me right now, I'm not sure if it will work in the future. They are going native and it'll bring a lot of chan…

And the fact that it has a rather small standard library with JVM 6 compatibility means it's very very easy to adopt it into existing Java 6 (Android!) projects.

Re: Kotlin 1.1 Released with JavaScript Support, Coroutines and more

#16

A few weeks ago I wrote the same application four times in four different JVM languages: Java, Groovy, Scala, and Kotlin, with a particular focus on the application using functional techniques and types as well as being reactive. I also included as goals complete test coverage with a preferred test framework from each language and complete build tooling, all within a single Gradle project. The only significant source…

>Kotlin (1.0) works well with everything and is relatively succinct except for Mockito due to everything defaulting to 'final' - but it appears that Kotlin 1.1 fixes this with a compiler plugin.

It's worth pointing out that since Mockito 2.0, you've been able to opt into mocking final classes, making testing Kotlin pretty painless.

https://github.com/mockito/mockito/wiki/What's-new-in-Mockit...

Re: Kotlin 1.1 Released with JavaScript Support, Coroutines and more

#17

A few weeks ago I wrote the same application four times in four different JVM languages: Java, Groovy, Scala, and Kotlin, with a particular focus on the application using functional techniques and types as well as being reactive. I also included as goals complete test coverage with a preferred test framework from each language and complete build tooling, all within a single Gradle project. The only significant source…

Curious, if you were aiming at writing in a functional programming style, why didn't you try Clojure?

If I may jump in, here, for my 2 cents, I've never developed anything commercial with Closure, but I learned it, have played with it and have quite enjoyed it. Having never done any Lisp(-based language) programming before it didn't come... naturally. My guess is that the parent commentator didn't include it for that reason.

Re: Kotlin 1.1 Released with JavaScript Support, Coroutines and more

#18
post #13

Kotlin for me is Java made right. It's not complex, it has awesome interoperability with Java, it uses JDK, not reinventing its own wheels and it has everything I need from modern language. But it seems that Jetbrains has its own vision for Kotlin being a completely independent language. So while it works for me right now, I'm not sure if it will work in the future. They are going native and it'll bring a lot of chan…

Even with Kotlin Native in mind, we have no plans to break Kotlin's backwards compatibility guarantees, and we do plan to support the new JVM features such as value types. So if Kotlin works well as a Java enhancer for you today, it will only work better in that role in the future.

Perhaps the bigger issue here is fragmentation. Here you are, a young language with a lot of promise whose primary appeal is Java interop and whose target market is enterprise Java and already you're dividing your efforts to offer something which your target market will likely have zero interest in. Why not wait until you have real market share in the job market and only then worry about native? Kotlin is a very niche language. That's it's appeal.

Re: Kotlin 1.1 Released with JavaScript Support, Coroutines and more

#19
Kotlin is not just for android apps.

Kotlin is getting first class support on next generation Spring web framework with functional programming support - https://speakerdeck.com/sdeleuze/functional-web-applications...

it's almost done with first class support for vert.x which is a high-performance reactive webframework https://github.com/vert-x3/vertx-kotlin-common

The reactor project (erlang for the jvm?) is building first class support for kotlin https://github.com/reactor

I think its going to be a great year for building backend systems on jvm.

Re: Kotlin 1.1 Released with JavaScript Support, Coroutines and more

#20

I've been very happy writing Kotlin backend code for the last fourteen months or so. Definitely excited. It's an awesome JVM language.

what backend framework are you using ? i have been pretty interested in trying out spring boot 5 or vertx
Post reply on HN