News for hackers. Stuff that matters.
Re:Navigating the Postmodern Python World by banachtarski on Thursday July 11, 2013 @02:08PM (#6027860)
This might seem very petty, but I avoid python just because of the dichotomy between Python 2 and Python 3. For me, there are plenty of other scripting languages at my disposal, and for things like numpy, or twisted, I have better alternatives too.
Re:Navigating the Postmodern Python World by dbecker on Thursday July 11, 2013 @02:42PM (#6028198)
How does the dichotomy between Python 2 and 3 affect your productivity or coding experience?

I'm using 2.7, and I can't recall the existence of 3 ever causing a problem.

Re:Navigating the Postmodern Python World by wahnfrieden on Thursday July 11, 2013 @04:20PM (#6028920)
2.7 is a dead language that won't receive new features. That's mostly irrelevant if you're not investing in the long, long term with your projects. Just a tradeoff to consider, since it could mean one day it'll be worth it to migrate to Python 3, depending on the sort of project you're working on. Yes, it's ok to be using a "frozen" language for many cases.
Re:Navigating the Postmodern Python World by dagw on Thursday July 11, 2013 @02:10PM (#6027892)
Honest question. Outside of matlab and octave (both of which fall down in a bunch of other obvious areas), what scripting language offers anything close to an alternative to numpy/scipy?
Re:Navigating the Postmodern Python World by mwexler on Thursday July 11, 2013 @02:44PM (#6028221)
I will throw out R just because it should be thrown out... there, out there, I mean.

I know, it's a terrible language, but it is a great collection of capabilities. Quintessential example of love/hate.

Re:Navigating the Postmodern Python World by jnbiche on Thursday July 11, 2013 @02:45PM (#6028232)
He mentions one: Julia. It's still young, so not as many libraries available. But it's a very fast language designed for scientific computing.
Re:Navigating the Postmodern Python World by draegtun on Thursday July 11, 2013 @02:37PM (#6028149)
PDL (Perl Data Language) offers a great alternative - http://pdl.perl.org
Re:Navigating the Postmodern Python World by banachtarski on Thursday July 11, 2013 @05:29PM (#6029351)
I use R, Mathematica, Haskell, Julia, or my own CAS that I built.
Re:Navigating the Postmodern Python World by bjz_ on Thursday July 11, 2013 @05:50PM (#6029475)
What do you think of Mathematica? I've been toying with the idea of using it for sketching out ideas related to my computer graphics work, but it's a big investment. :/
Re:Navigating the Postmodern Python World by banachtarski on Thursday July 11, 2013 @08:10PM (#6030106)
I found it's utility primarily is dynamically controlled visualizations, for example, when I wanted to see how residues were distributed in the C^2 plane for a certain class of complex functions.

I'm not certain what sort of graphics work you are considering, but if it involves a lot of nonlinearity or higher level functions, it may be a good fit.

Re:Navigating the Postmodern Python World by taheris on Thursday July 11, 2013 @02:40PM (#6028185)
Julia is targeting the scientific computing community, and I'd love to see it succeed as it is a very well thought out language.

The language is in active development, although it is still early days with library support currently lacking (namely, a good plotting library).

Re:Navigating the Postmodern Python World by ngoldbaum on Thursday July 11, 2013 @03:13PM (#6028443)
Although there's a very sophisticated set of bindings that makes it almost trivial to call Julia code from python and vice verse, making it possible to use matplotlib instead of waiting for a solution written in Julia. Take a look at this [1] (skip to the ten minute mark for the PyCall stuff) presentation from this year's scipy conference.

[1] http://www.youtube.com/watch?v=Eb8CMuNKdJ0

Re:Navigating the Postmodern Python World by taheris on Thursday July 11, 2013 @03:49PM (#6028690)
Thanks, I wasn't aware of the PyCall library. This provides an incredible amount of interoperability between the two languages.
Re:Navigating the Postmodern Python World by gohrt on Thursday July 11, 2013 @02:13PM (#6027920)
That's bizarre. 2 and 3 are different languages, that conveniently are very similar.

Do you avoid Ruby and Perl because each other exist?

Avoid JS because jQuery and mootools both exist?

Re:Navigating the Postmodern Python World by lightcatcher on Thursday July 11, 2013 @02:39PM (#6028176)
Except modify the scenario such that jQuery announced a few years ago that will not be adding any more features and only doing sporadic bug fix releases, and they suggest moving all development to mootools. However, almost all code is written for jQuery and its not trivial to port libraries and applications from jQuery to mootools.

tl;dr: I don't think the Python2/3 : jQuery/mootools analogy is that fitting.

On the other hand, I still happily use Python(2) for some things, but that is primarily because of familiarity and awesome tools like what was mentioned in the article (namely Theano and pandas). Once the Rust language becomes more stable, I hope to move most of my development to that.

Re:Navigating the Postmodern Python World by banachtarski on Thursday July 11, 2013 @05:43PM (#6029434)
Both Ruby and Perl are in active development. Both jQuery and mootools are in active development. Python 2 is not in active development and most of the useful python libraries are not ported to python 3.

Your analogy breaks on a number of levels.

Re:Navigating the Postmodern Python World by takluyver on Friday July 12, 2013 @08:27AM (#6032197)
> most of the useful python libraries are not ported to python 3.

Obviously this depends on what libraries are useful to you, but of the common libraries that people talk about, most of them do support Python 3. Numpy, matplotlib, Django & PyQt, for example, all do.

Re:Navigating the Postmodern Python World by banachtarski on Saturday July 13, 2013 @10:47PM (#6039699)
Agreed, I should have cited my examples more carefully. A better example of an active Python 2 project is Ansible. There are others when I looked into Python several months ago but I can't remember them all of the top of my head.
Re:Navigating the Postmodern Python World by Buttons840 on Thursday July 11, 2013 @06:47PM (#6029790)
The libraries that haven't been ported to Python 3 are probably not in active development, so would you really be using those libraries anyway?

And I believe Python 2.7 still receives security updates when needed.

Re:Navigating the Postmodern Python World by untothebreach on Thursday July 11, 2013 @02:35PM (#6028132)
I agree with your comment about 2 and 3 being different languages, but to be fair, Ruby and Perl don't share one set of libraries/extensions that may work on both, yet may work on only one. I don't find the jQuery/Mootools comparison relevant because neither of them are (or even claim to be) languages of their own.
Re:Navigating the Postmodern Python World by thetrb on Thursday July 11, 2013 @02:36PM (#6028137)
I don't think Ruby and Perl are a good comparison to Python 2 and 3. Perl 5 and Perl 6 would be a better comparison.
Re:Navigating the Postmodern Python World by coldtea on Friday July 12, 2013 @05:06AM (#6031677)
The existence of Ruby didn't make Perl go into "freeze" or vice versa.

But Python 2.x IS frozen at 2.7 because of 3.