Anyone using Kotlin to compile to javscript in a large app care to share some experiences?
Kotlin 1.0.5 is here
51–60 of 111 posts
Re: Kotlin 1.0.5 is here
#52I'm torn on this. On one hand, Kotlin is great. It's not Scala but it gives you a whole lot while maintaining the ability to very easily swap in for Java. On the other hand, it's controlled by Jetbrains—the company that now offers a "yearly license" of many of its compilers at the same price point it once sold them for, after which time they forcibly downgrade the software their users have paid for. It's not illegal…
Re: Kotlin 1.0.5 is here
#53Is there anybody switching from Scala to Kotlin?
I can't imagine anyone who has used Scala for long would switch to Kotlin. Kotlin is 'Java++'. Scala is a fully featured functional language. Kotlin is missing all of the most powerful Scala features. No type classes, monadic comprehension, higher kinded types, adhoc polymoprhism. :(
Re: Kotlin 1.0.5 is here
#54Earlier quoted context omitted.
I make it a point never to use a for loop in JS. It's sometimes tricky but often leads to cleaner code.
What's unclean about for loops?
Re: Kotlin 1.0.5 is here
#55Great language, greater IDE.
Re: Kotlin 1.0.5 is here
#56Re: Kotlin 1.0.5 is here
#57I have became a 100% Kotlin convert. Every single project I work on now is using Kotlin. I have also found that if you are using LibGDX Java game framework, it's very trivial to convert it to Kotlin. I have been doing that pretty extensively and it has been very pleasant. Feel free to check my GH for some examples. Most notably, the Bayesian Classifier. Also be sure to check out the Kotlin slack room. It is filled wi…
On the topic of using the JVM to make games, do you find yourself using the trick of not allocating any new objects (wither from Java or Kotlin) within the game loop? I've heard of that trick, and am considering using it because GC pauses are the main reason I'm considering avoiding the JVM for games.
I have found myself in this boat many times. I have coded games in Purebasic, TI-83/89 Basic, Z80, C/C++, Java, Kotlin, Javascript, Haskell, Swift, etc. If you are an indie/hobby developer, don't worry about the language too much. Just do it in what's comfortable and enjoy the process. That alone will increase the odds of you completing the game by 50% (random number).
Re: Kotlin 1.0.5 is here
#58Earlier quoted context omitted.
Er, you're eschewing Kotlin despite it's being open source because of your perception that it's controlled by a corporate entity, but in the same post you want it supported in another open source product (VS Code) backed by another corporate entity (Microsoft)?
>" Er... " VS Code is miles ahead of Jetbrains offerings and has no yearly subscription fee. MS was indeed one of my least favorite companies half a lifetime ago, but they've changed business models and are now pursuing a growth strategy (particularly wrt services) and have abandoned the fight to capture consumer surplus at all costs.
How so? It's very busy adding features JB IDEs had 10 years ago (CSS autocompletion in HTML, wow), it's not aiming to be a lightweight IDE at all, and it's written in JS. It will collapse under its own weight in a couple of years. Sure, today it might be at a stage where they have sort of enough functionality to appear competent while being sort of snappy, but at this rate it's only gonna get worse. It's a new player on a market that doesn't see new players very often, it's interesting to watch, but miles ahead?
Re: Kotlin 1.0.5 is here
#59The tooling is still a bit rough around the edge compared to the base Android one, mostly because the android tools team really does an awesome job.
It is still useable though, and the language is so much better than java that it is a breeze to use.
The only downside is that you have to interface it with java code, which brings a couple of issues.