News for hackers. Stuff that matters.
Re:Why haven't cash-strapped American schools embraced open ... by fixxer on Wednesday June 05, 2013 @01:58AM (#5823961)
How awesome if would be if Windows dominance was limited to K-12... I want to live in that world.

I'm in University and I still find myself explaining to "cyberinfrastructure" developers that their "novel idea" is really just cron + shell + GUI, of which the first two have been around since the 70's (and their "novel" GUI sucks). Combine that with the legion of Matlab programmers cranked out by engineering departments (Python? you mean this is free?!), and I think schools primarily succeed at creating more consumers of technology, rather than the producers they purport.

Re:Why haven't cash-strapped American schools embraced open ... by mc-lovin on Wednesday June 05, 2013 @09:59PM (#5829922)
Python and Matlab are not interchangeable.

Matlab is unique in its expressiveness for numerical and matrix computation, and value semantics.

Value semantics matter a lot because they result in functional programming without even having to think about it, while copy-on-write means that you can pass big objects into pure functions and they never get copied if you don't modify them.

e.g. in Matlab, the following function is pure (and never makes a copy of big_matrix)

  function y = my_pure_function(x, big_matrix)
  x = x + big_matrix(i, j);
  y = x ^ 2;
  end
Re:Why haven't cash-strapped American schools embraced open ... by fixxer on Thursday June 06, 2013 @01:13AM (#5830577)
> Python and Matlab are not interchangeable.

Matlab and Python are perfectly interchangeable for the overwhelming majority of undergrads and graduate students. Claiming that they are not interchangeable based on the difference between pass-by-reference and copy-on-write is just silly.

You're ignoring the typical use case for an engineering student: general math & plotting. In Python, that is easily accomplished with NumPy, SciPy, and Matplotlib. These are all free.

Kudos on knowing how these languages work and understanding some low-level design specifications, but negative kudos for not understanding the education system and the immense fiscal burden it places on students for books & software. Sure, many schools provide a free license... here is a little tidbit of information for you: ain't nothing free.

Re:Why haven't cash-strapped American schools embraced open ... by mc-lovin on Thursday June 06, 2013 @02:14AM (#5830778)
> Claiming that they are not interchangeable based on the difference between pass-by-reference and copy-on-write is just silly.

Actually I gave one more reason.

Re:Why haven't cash-strapped American schools embraced open ... by fixxer on Thursday June 06, 2013 @05:26PM (#5835271)
> Matlab is unique in its expressiveness for numerical and matrix computation

It really isn't. http://wiki.scipy.org/NumPy_for_Matlab_Users

Re:Why haven't cash-strapped American schools embraced open ... by mc-lovin on Thursday June 06, 2013 @05:45PM (#5835357)
it is.

I read that link already, in fact used it as a reference when I did convert from Matlab to python. I converted back when I realized that in spite of the apparent syntactic similarities, matlab is still very different to scipy.

In matlab, everything is a matrix. The only "gotchas" when it comes to types, is that

  f = X(X > 0)
and

  f = X(double(X > 0))
give different answers because logical indexing requires actual logical type. Apart from this, you will almost never have to do type conversions in matlab.

Python arrays are not scipy matrices or arrays. And a scipy 1 x n array is not a matrix.

All these little things add up to more time spent thinking about programming and less about mathematics.

Don't think of me as some biased matlab fanatic.

I am a grad student, and I found the appeal of python as strong as those who advocate it as a substitute for matlab. The difference is that when it came down to doing my actual work, I just couldn't do it as easily in python. I am the student whose interests you claim to be advocating, and I'm explaining why I, and so many others, make the choice of matlab.

Re:Why haven't cash-strapped American schools embraced open ... by fixxer on Friday June 07, 2013 @12:53AM (#5837306)
Oh well... easy for me, hard for you. Best of luck! :)