News for hackers. Stuff that matters.
Re:Kotlin: A statically-typed language that compiles to JVM ... by jonsterling on Sunday November 10, 2013 @12:50PM (#6707540)
I am pretty tired of statically typed direct-to-JS languages which are wildly unsound. I use TypeScript at work, and I grant it's hugely safer than JavaScript and has saved us from dozens of defects even in the two weeks since I introduced it, but its type system is pretty broken.

A DSL written in a dependently-typed language (such as Idris) would suffice for both the kind of safety and the level of expressivity I require. (Unfortunately, the various JS backends for Haskell, Idris, Agda, etc. are not usable for my purpose, since I need the output to be readable and debuggable).

Anything less than what I have proposed in the previous paragraph is pretty uninteresting to me. It's unfortunate that people are working so hard on Kotlin, when it cannot contribute anything new or interesting, by its very nature.

Re:Kotlin: A statically-typed language that compiles to JVM ... by profquail on Sunday November 10, 2013 @01:23PM (#6707725)
Have you looked at Haxe (http://haxe.org/)? It's supposed to have a decent type system, although I can't say how it compares to TypeScript's since I've used neither of them.

If you need a stronger type system, and you're already using TypeScript, take a look at FunScript (http://funscript.info/); it uses the meta-programming features of F# to do strongly-typed JS (and TypeScript) code generation and interop with existing code.

Re:Kotlin: A statically-typed language that compiles to JVM ... by jonsterling on Sunday November 10, 2013 @04:02PM (#6708431)
Thanks for the links! FunScript looks really neat.
Re:Kotlin: A statically-typed language that compiles to JVM ... by camus2 on Sunday November 10, 2013 @03:20PM (#6708246)
> but its type system is pretty broken.

In order to have a type system that is compatible with javascript , there are things you just cant do. I think Microsoft TS team did an acceptable compromise. TS is not perfect , but the fact that one can still use pure JS in typescript is a huge plus.

Re:Kotlin: A statically-typed language that compiles to JVM ... by jonsterling on Sunday November 10, 2013 @04:03PM (#6708437)
Really, that's quite the problem: the desire for at least one-way compatibility.
Re:Kotlin: A statically-typed language that compiles to JVM ... by michielvoo on Sunday November 10, 2013 @03:46PM (#6708361)
> but its type system is pretty broken

Can you explain this? Thanks!

Re:Kotlin: A statically-typed language that compiles to JVM ... by mortyseinfeld on Sunday November 10, 2013 @02:00PM (#6707886)
It's unfortunate that people are working so hard on Kotlin, when it cannot contribute anything new or interesting, by its very nature.

Maybe you can think outside of yourself for once and consider that your uses cases or personal preferences aren't what the Kotlin devs consider important.

Re:Kotlin: A statically-typed language that compiles to JVM ... by jonsterling on Sunday November 10, 2013 @04:06PM (#6708448)
Yes, my very point is that it is unfortunate that my use cases and personal preferences are not what Kotlin devs consider important. This is not a matter of “Waaaa, they don’t consider me the center of the Universe as I do!”; it's simply the case that my “personal” preferences correspond with reality and safety more closely than do theirs.

A priori, it would be better if they conformed to my expectations; anything less than awareness and deference to the last 40 years in PL research is uninteresting and unhelpful.

Re:Kotlin: A statically-typed language that compiles to JVM ... by mortyseinfeld on Sunday November 10, 2013 @07:34PM (#6709219)
it's simply the case that my “personal” preferences correspond with reality and safety more closely than do theirs.

A priori, it would be better if they conformed to my expectations; anything less than awareness and deference to the last 40 years in PL research is uninteresting and unhelpful.

Amazing. Are you a solipsist or just incapable of perceiving outside of your little bubble? Do you even understand what the Kotlin devs are trying to accomplish? Hint, they're not trying to develop the next dependent type theory implementation on the JVM. They're implementing a language so that Java developers can be a bit more productive than they are now.

Re:Kotlin: A statically-typed language that compiles to JVM ... by jonsterling on Sunday November 10, 2013 @10:52PM (#6709854)
Clearly I am a solipsist, my dear fellow. Case closed.