News for hackers. Stuff that matters.
Re:Static types in Python by fuzzythinker on Thursday October 13, 2016 @05:46PM (#12704331)
I'll say python isn't any more dynamic than ruby and groovy, and they have fairly stable and usable static compile target release/ports [1]. Python has a few [2] attempts, but none of them is close to stable or really useful.

[1] https://crystal-lang.org/

http://groovy-lang.org/releasenotes/groovy-2.0.html

[2] https://github.com/shedskin/shedskin

https://github.com/codeblazer-io/blazescript

https://github.com/serge-sans-paille/pythran

Re:Static types in Python by ddfisher on Thursday October 13, 2016 @06:10PM (#12704502)
Don't forget Cython [1]! My understanding is that it's quite useable (though it unfortunately uses a different static type system/syntax than mypy).

[1] http://cython.org/

Re:Static types in Python by fuzzythinker on Thursday October 13, 2016 @07:12PM (#12704955)
Didn't forget it, just didn't include it since to me, it's more like a totally different (and not pretty) language that tries to look like python. I should however include Nuitka [1] since it is fairly usable, it's just the generated version isn't much faster than its interpreted python version.

[1] http://nuitka.net/

Re:Static types in Python by int_19h on Friday October 14, 2016 @03:04PM (#12710355)
Why is Cython a totally different language? It's definitely a superset, what with all the custom syntax for type annotations, struct definitions etc. But you can ignore all that, and just stick to the pure Python subset.
Re:Static types in Python by Macha on Thursday October 13, 2016 @07:36PM (#12705091)
Why does the same not apply to Crystal then?
Re:Static types in Python by fuzzythinker on Thursday October 13, 2016 @07:57PM (#12705207)
Guess you can say Crystal is a totally different language as well. It's just to me, Crystal still has the same feel as ruby and Cython doesn't. Again, it's just my opinion, I won't argue if you feel otherwise.
Re:Static types in Python by chrisseaton on Thursday October 13, 2016 @07:16PM (#12704984)
You're arguing that dynamic functionality doesn't stop you being able to statically compile Ruby, giving Crystal as an example - a language which had to drop most of the dynamic functionality of Ruby to achieve better performance.
Re:Static types in Python by vorg on Saturday October 15, 2016 @07:36AM (#12713605)
> groovy, and they have fairly stable and usable static compile target release

Citing some Groovy 2.x Release Notes to prove a claim of "stability" for Groovy is like quoting an advertisement for Parmolux washing powder to prove its "effectiveness" at washing out dirt.

Not many developers bother with Groovy's static compilation annotations. It's used mainly as a scripting language for testing Java classes, gluing together Java programs, as a build DSL in Gradle, and scripting in Grails. When static annotations are used, their use is typically small-scale.