News for hackers. Stuff that matters.
Re:Kotlin and linear programming by blt on Thursday January 25, 2018 @09:33PM (#16236612)
I use Python for machine learning, but I wish I could use a friendly, modern, statically-typed language like Kotlin, Swift, etc. instead. Dynamically typed languages feel scary beyond around 1000 lines of code.
Re:Kotlin and linear programming by XorNot on Thursday January 25, 2018 @10:43PM (#16236889)
Python 3.6's optional types are pretty great. Block out your solution first then start constraining it where you need to.
Re:Kotlin and linear programming by icebraining on Friday January 26, 2018 @04:49AM (#16238008)
+1, I recently wrote some data extraction and processing code using pandas and mypy, and it was pretty great. And progress is happening to add types to numpy and pandas themselves.
Re:Kotlin and linear programming by riku_iki on Friday January 26, 2018 @12:17PM (#16240896)
You still have many not type annotated libraries in ecosystem, and poor support of refactoring/navigation in IDEs.
Re:Kotlin and linear programming by terminalcommand on Friday January 26, 2018 @02:47AM (#16237598)
The downside is that static typing makes your programs much more rigid. Even if you program to interfaces, apply open-closed principle etc. After a while you start fighting the type system.

That's why I like dynamic typing. Coupled with Python's type annotations for hard cases and good documentation, dynamic typing allows you to go further by reducing cognitive load.