Re: Wow, Python much faster than MatLab




MatLab: 14 msec
Python: 2 msec

For times this small, I wonder if timing comparisons are valid. I do
NOT think SciPy is in general an order of magnitude faster than Matlab
for the task typically performed with Matlab.
The algorithm is meant for real-time analysis,
where these kind of differences counts a lot.
I'm also a typical "surface programmer"
(don't need/want to know what's going inside),
just want to get my analysis done,
and the fact that Python has much more functions available,
means I've to write far less explicit or implicit for loops,
and thus I expect it to "look" faster for me always.

After taking the first difficult steps into Python,
all kind of small problems as you already know,
it nows seems a piece of cake to convert from MatLab to Python.
(the final programs of MatLab and Python can almost only be
distinguished by the comment character ;-)

Especially I like:
- more relaxed behavior of exceeded the upper limit of a (1-dimensional)
array

Could you explain what this means? In general, I don't want a
programming language to be "relaxed" about exceeding array bounds.

Well, I've to admit, that wasn't a very tactic remark, "noise" is still
an unwanted issue in software.
But in the meanwhile I've reading further and I should replace that by
some other great things:
- the very efficient way, comment is turned into help information
- the (at first sight) very easy, but yet quit powerfull OOPs implemetation.

cheers,
Stef Mientki
.



Relevant Pages

  • Of money and mouths
    ... He emailed me a Python ... Matlab is a package produced by Mathworks. ... I'm not sure how to interface Lisp with a process ... Now the Scheme ...
    (comp.lang.python)
  • Of money and mouths
    ... He emailed me a Python ... Matlab is a package produced by Mathworks. ... I'm not sure how to interface Lisp with a process ... Now the Scheme ...
    (comp.lang.lisp)
  • Re: About alternatives to Matlab
    ... Python to interface with data acquisition hardware really result in ... I am very familiar with Matlab, Labview, and Python, ... Matlab and Python sucks equally much when it comes to ...
    (comp.lang.python)
  • ANN: matplotlib-0.40 python plots with matlab syntax
    ... matplotlib is a pure python 2D plotting library with a matlab syntax ... in one enhanced function 'errorbar'. ...
    (comp.lang.python)
  • Re: I think Python is a OO and lite version of matlab
    ... If you have used Matlab, ... Matlab is a tool for scientists and engineers. ... I think you are looking at Python from the scientist perspective. ... I will not go deep into the programmer perspective. ...
    (comp.lang.python)