News for hackers. Stuff that matters.
Re:Static types in Python by protomikron on Thursday October 13, 2016 @05:01PM (#12703985)
It is a common misconception that typing makes stuff more complicated and inconvenient. Some type systems are quiet bad (not powerful enough, so they do more harm than good), but that does not mean that the idea of typing itself is bad, but their implementation is. In my opinion Python kicks ass, because of world-class libraries for nearly anything, and not because it's dynamic (a broad term, I would say it's strongly typed) und you do not have to declare types (which can often be inferred).

You listed 4 specific languages, but the following things are each inconvenient in them:

  - C: it's inconvenient to implement a quick prototype
  - Ocaml: it's inconvenient that the stdlib is so small
  - Go: it's inconvenient for scientific/numerical code
  - TypeScript: it's inconvenient to run server-side
Obviously you can do everything in any language (Turing, blabla), but the question is, how much effort (time) does it cost.

Python rocks in all of them (edit: the big exception being frontend webdev), in particular for quick prototyping. I think mypy is an exceptional and fine contribution to the eco-system and I really appreciate their effort.

Re:Static types in Python by llekn on Thursday October 13, 2016 @05:47PM (#12704338)
Being in the middle of a struggle with Javascript tooling (Javascript, ES5 v/s ES6, typescript, webpack v/s System.js, shims, pollyfils, npm downloading the internet, etc, etc) I can't but imagine that there should be a better way.

How much I would like Webassembly to be ready to open the gates to other languages on the frontend land. Anyone here has more information about webassembly / python on the browser? I would love to know what is the current state of the art of running python on the browser and contribute to make the dream come true.

I have on my radar Brython [0], py.js [1](seems to be abandoned) and pypy.js [2]

[0] http://www.brython.info/ [1] http://pyjs.org/ [2] http://pypyjs.org/

Re:Static types in Python by aumerle on Friday October 14, 2016 @12:28AM (#12706139)
Re:Static types in Python by DanRosenwasser on Friday October 14, 2016 @03:46AM (#12706645)
Why exactly is TypeScript inconvenient on the server-side?