[julia-users] Re: some Python / Julia comparisons

2014-09-22 Thread Mohammed El-Beltagy
Sorry, just realized the my last modifications were logically incorrect. Having the newpath variable is essential. On Monday, September 22, 2014 12:09:34 PM UTC+3, Mohammed El-Beltagy wrote: Examining your Viterbi Julia implementation, I noticed that you expand that path by newpath[y] = (

[julia-users] Re: some Python / Julia comparisons

2014-09-21 Thread Jason Merrill
I got curious, and ended up implementing this myself: https://gist.github.com/jwmerrill/ff422bf00593e006c1a4 On my laptop, your Viterbi benchmark runs in 6.9s, and this new implementation runs in 0.5s, so it's something like 14x faster. If you wanted to push on performance any more, I'd

[julia-users] Re: some Python / Julia comparisons

2014-09-21 Thread Jason Trenouth
On Sunday, 21 September 2014 19:23:20 UTC+1, Jason Merrill wrote: I got curious, and ended up implementing this myself: Hi Jason, Thanks for this and your previous comment. I might play about with this some more myself, e.g. back translate to Python to compare again. Note that the

[julia-users] Re: some Python / Julia comparisons

2014-09-21 Thread Jason Trenouth
On Saturday, 20 September 2014 18:45:31 UTC+1, stone...@gmail.com wrote: Hi Jason, Could it be possible for you to create a Julia program to compare it with the famous Jake Vanderplas post ? http://jakevdp.github.io/blog/2013/06/15/numba-vs-cython-take-2/ Under which type of problem

[julia-users] Re: some Python / Julia comparisons

2014-09-21 Thread Jason Merrill
On Sunday, September 21, 2014 12:21:37 PM UTC-7, Jason Trenouth wrote: On Sunday, 21 September 2014 19:23:20 UTC+1, Jason Merrill wrote: I got curious, and ended up implementing this myself: I was trying to see how little I could change the code to speed things up while showing off some

[julia-users] Re: some Python / Julia comparisons

2014-09-21 Thread Jason Merrill
On Saturday, September 20, 2014 10:45:31 AM UTC-7, stone...@gmail.com wrote: Hi Jason, Could it be possible for you to create a Julia program to compare it with the famous Jake Vanderplas post ? http://jakevdp.github.io/blog/2013/06/15/numba-vs-cython-take-2/ Under which type of problem

[julia-users] Re: some Python / Julia comparisons

2014-09-21 Thread Hans W Borchers
Python w/ numba and Julia are comparable in speed for the tests I did. This is not surprising as numba utilizes LLVM as well. For the above example and on my Unix computer, the timings are 15 ms for Python+numba and 20 ms for Julia. If one gets the data as 1000x3 matrix, should one really

Re: [julia-users] Re: some Python / Julia comparisons

2014-09-21 Thread Tim Holy
On Sunday, September 21, 2014 03:02:38 PM Hans W Borchers wrote: If one gets the data as 1000x3 matrix, should one really first transpose the matrix and then apply a distance function on 3x1000? I don't think so. It depends on the coming algorithm. 1000 points is not very much; the whole

[julia-users] Re: some Python / Julia comparisons

2014-09-20 Thread stonebig34
Hi Jason, Could it be possible for you to create a Julia program to compare it with the famous Jake Vanderplas post ? http://jakevdp.github.io/blog/2013/06/15/numba-vs-cython-take-2/ Under which type of problem Julia fly much higher or easily than cython/pypy/numba ? (much = x3 in my mind) Le

[julia-users] Re: some Python / Julia comparisons

2014-09-20 Thread Jason Merrill
One thing that's really nice about Julia is that it's often straightforward to transliterate python code (or matlab code) in a fairly literal way and end up with working code that has similar, or sometimes better performance. But another nice thing about Julia is that it allows you to fairly