News for hackers. Stuff that matters.
Re:Rise of Kotlin: A Programming Language for the Next Gener... by KirinDave on Thursday July 05, 2018 @11:32AM (#17464048)
It's pretty sad that F# is sitting on the sidelines wondering what it did wrong to not get these accolades. I guess, "Being unable to enter a mobile ecosystem that's being held on a very old language runtime," is perhaps not the most desirable outcome for Android but dang if it hasn't worked out well for Kotlin's press.

People are going TO Kotlin as opposed to the usually Ocaml/F#/Haskell/Idris/Agda world of the community trying to bring people in.

Re:Rise of Kotlin: A Programming Language for the Next Gener... by olavk on Thursday July 05, 2018 @11:39AM (#17464105)
Kotlin is competing against Java, while F# is competing against C#.

F# is a great language, but so is C#. MS has done a really great job evolving C# away from a Java clone. C# keeps adding features inspired by functional languages, narrowing the gap to F#. Of course this makes it easier to switch, but on the other hand it also makes it less interesting.

Re:Rise of Kotlin: A Programming Language for the Next Gener... by bunderbunder on Thursday July 05, 2018 @12:13PM (#17464383)
There's an argument to be made that F#'s place in the .NET ecosystem is to be a feature sandbox for C#.

When F# first dropped, I was instantly in love. It was just so much nicer than C#, which was already nice. But, in the intervening years, C# has been adding new features at such a steady clip that it's hard for me to have such strong feelings anymore. Stylistically I like to have algebraic types and pattern matching, but from a practical perspective I think the two languages probably offer about the same level of productivity.

Re:Rise of Kotlin: A Programming Language for the Next Gener... by jayd16 on Thursday July 05, 2018 @12:26PM (#17464541)
Kotlin has its merits but the only real reason it is where it is is because its JetBrains' language.

Kotlin has been treated as a first class citizen in the official Android IDE and one of the major Java IDEs in a way that no other language but Java itself is.

Re:Rise of Kotlin: A Programming Language for the Next Gener... by phillipcarter on Thursday July 05, 2018 @12:25PM (#17464531)
> People are going TO Kotlin as opposed to the usually Ocaml/F#/Haskell/Idris/Agda world of the community trying to bring people in.

The familiarity of C-style syntax and object orientation immediately places Kotlin above ML-style programming languages from the standpoint of adoption. It's a bit unfortunate that this is the case, but selling Android developers on a better C-style OO language than Java is a lot easier than selling them on something different.

Re:Rise of Kotlin: A Programming Language for the Next Gener... by slowmovintarget on Thursday July 05, 2018 @12:12PM (#17464377)
I'll see your F# and raise you one Clojure.
Re:Rise of Kotlin: A Programming Language for the Next Gener... by KirinDave on Thursday July 05, 2018 @01:38PM (#17465175)
I was around when the Clojure community seemed to make a conscious decision to not chase Android, so it's precisely their decision to miss that train.

But I think Clojure isn't in a terrible spot right now. It gets a modest amount of use. More than I think many people imagined it possibly could have.

Re:Rise of Kotlin: A Programming Language for the Next Gener... by slowmovintarget on Thursday July 05, 2018 @06:03PM (#17467254)
I sincerely hope Datomic Ions[1] take off, they are an amazing way to run Clojure code.

[1] https://www.youtube.com/watch?v=TbthtdBw93w

Re:Rise of Kotlin: A Programming Language for the Next Gener... by yogthos on Thursday July 05, 2018 @11:31PM (#17468655)
Clojure approach to mobile development is to piggy back on React Native. Using [re-natal](https://github.com/drapanjanas/re-natal) is pretty smooth nowadays, and you get some really nice benefits such as hot code loading, and being able to use re-frame for the UI.

React Native works well enough for a lot of apps out there, and makes it relatively easy to write cross-platform apps. So, it's a pretty good platform to build on in my opinion.

Re:Rise of Kotlin: A Programming Language for the Next Gener... by KirinDave on Friday July 06, 2018 @05:40PM (#17475352)
I dunno. I've yet to meet a shop that isn't tactically retreating from it within a year of shipping.
Re:Rise of Kotlin: A Programming Language for the Next Gener... by yogthos on Friday July 06, 2018 @11:09PM (#17476741)
I've seen about as many companies talking about being happy with it as those retreating from it. Personally, I haven't seen any issues with it that I would consider to be show stoppers.
Re:Rise of Kotlin: A Programming Language for the Next Gener... by pjmlp on Thursday July 05, 2018 @03:19PM (#17465999)
F# isn't owned by the .NET team, which then focus on VB.NET and C#, and anything that improves F# just happens to be a "nice to have".

They haven't yet bothered to make .NET Native understand the MSIL bytecodes required by F#, for example.

Re:Rise of Kotlin: A Programming Language for the Next Gener... by jbattle on Thursday July 05, 2018 @12:14PM (#17464398)
Coming from Java - learning Kotlin is borderline trivial. I think having the huge audience of Java (+Android) (+IntelliJ) developers to draw from was a huge advantage for Kotlin.
Re:Rise of Kotlin: A Programming Language for the Next Gener... by withoutclass on Thursday July 05, 2018 @11:48AM (#17464189)
Why are you throwing out all kinds of FP languages when Kotlin is not one?
Re:Rise of Kotlin: A Programming Language for the Next Gener... by KirinDave on Thursday July 05, 2018 @01:54PM (#17465310)
Kotlin's "not FP" in the way Scala is "not FP" and Swift is "not FP." It's pretty FP, in my experience. Just not strictly. :)
Re:Rise of Kotlin: A Programming Language for the Next Gener... by withoutclass on Thursday July 05, 2018 @03:26PM (#17466058)
Notice how none of the langs you point out are not mentioned though. Comparing an FP-light to classical FP languages is not equivalent.
Re:Rise of Kotlin: A Programming Language for the Next Gener... by edem on Thursday July 05, 2018 @12:42PM (#17464709)
Try Arrow.
Re:Rise of Kotlin: A Programming Language for the Next Gener... by withoutclass on Thursday July 05, 2018 @03:22PM (#17466018)
I already use arrow :)
Re:Rise of Kotlin: A Programming Language for the Next Gener... by systems on Thursday July 05, 2018 @11:43AM (#17464140)
from where do you get that F# is sitting on the sidelines?

i see more books and open source projects for F# than kotlin, which for a while made me skeptical about the truth of kotlin popularity

Re:Rise of Kotlin: A Programming Language for the Next Gener... by KirinDave on Thursday July 05, 2018 @11:45AM (#17464173)
I talk to a lot of Android folks. Most have already made the switch, and consider the growth of the language "explosive". That Google is opting in there only makes it better.

F# has been around a long time and while it's experiencing modest growth and I think it has a positive track, I've certainly never seen it hyped and on the tip of every tongue the way Kotlin now is within the Android space.

Re:Rise of Kotlin: A Programming Language for the Next Gener... by AnimalMuppet on Thursday July 05, 2018 @01:42PM (#17465207)
I think it is completely unrealistic to expect F# to gain traction in Android. Google would never support it, and I don't think the platform is open enough for others to make it happen.
Re:Rise of Kotlin: A Programming Language for the Next Gener... by systems on Thursday July 05, 2018 @11:56AM (#17464249)
well, sure, if what you mainly work on is android, then it make sense that kotlin is getting hyped

that being said, for an outsider (i mainly do BI and DB stuff), it seem like xamarin (C# and F#), flutter (Dart), react native (reasonml) .. might seem like the options to investigate first nowadays

i think outside of android development, kotlin .. is not hyped at all

Re:Rise of Kotlin: A Programming Language for the Next Gener... by KirinDave on Thursday July 05, 2018 @12:31PM (#17464584)
Sure, but Android is one of the top 3 most deployed application environments in the world. It's a pretty big and important market.
Re:Rise of Kotlin: A Programming Language for the Next Gener... by pjmlp on Thursday July 05, 2018 @03:23PM (#17466033)
Try to write a UWP or WPF application in F#, use EF designers with F#, follow up on Visual Studio changes related to F#.

Heck even PowerShell now has a WinForms designer.

Re:Rise of Kotlin: A Programming Language for the Next Gener... by systems on Thursday July 05, 2018 @04:29PM (#17466548)
I think, this might be because F# is community driven, and there is little interest in pushing API that is not portable to Linux

F# was always linux friendly, long before .net core

Re:Rise of Kotlin: A Programming Language for the Next Gener... by edem on Thursday July 05, 2018 @12:43PM (#17464717)
Maybe but F# has been around for much longer. It failed already to become mainstream.