Re: [julia-users] Benchmarking study: C++ < Fortran < Numba < Julia < Java < Matlab < the rest

2014-06-17 Thread Jesus Villaverde
I run the code on 0.3.0. It did not improve things (in fact, there was a 3-5% deterioration) On Tuesday, June 17, 2014 1:57:47 PM UTC-4, David Anthoff wrote: > > I submitted three pull requests to the original repo that get rid of three > different array allocations in loops and that make thin

Re: [julia-users] Benchmarking study: C++ < Fortran < Numba < Julia < Java < Matlab < the rest

2014-06-17 Thread Jesus Villaverde
We need to make this kind of thing easier to > discover. Eg with > > https://github.com/astrieanna/TypeCheck.jl > > On Jun 17, 2014, at 8:35 AM, Jesus Villaverde > wrote: > > Ah Sorry, over 20 years of coding in Matlab :( > > Yes, you are right, once I

Re: [julia-users] Benchmarking study: C++ < Fortran < Numba < Julia < Java < Matlab < the rest

2014-06-17 Thread Jesus Villaverde
I think so! Matlab is just too slow for many things and a bit old in some dimensions. I often use C++ but for a lot of stuff, it is just to cumbersome. On Tuesday, June 17, 2014 8:50:02 AM UTC-4, Bruno Rodrigues wrote: > > Hi Pr. Villaverde, just wanted to say that it was your paper that made me

Re: [julia-users] Benchmarking study: C++ < Fortran < Numba < Julia < Java < Matlab < the rest

2014-06-17 Thread Jesus Villaverde
t; > --Peter > > > On Monday, June 16, 2014 2:59:31 PM UTC-7, Jesus Villaverde wrote: >> >> Also, defining >> >> mylog(x::Float64) = ccall((:log, "libm"), Float64, (Float64,), x) >> >> made quite a bit of difference for me, from 1.92 to aroun

Re: [julia-users] Benchmarking study: C++ < Fortran < Numba < Julia < Java < Matlab < the rest

2014-06-16 Thread Jesus Villaverde
s me a bit Thanks for the suggestions. On Monday, June 16, 2014 4:56:34 PM UTC-4, Jesus Villaverde wrote: > > Hi > > 1) Yes, we pre-compiled the function. > > 2) As I mentioned before, we tried the code with and without type > declaration, it makes a difference. > > 3) The

Re: [julia-users] Benchmarking study: C++ < Fortran < Numba < Julia < Java < Matlab < the rest

2014-06-16 Thread Jesus Villaverde
Hi 1) Yes, we pre-compiled the function. 2) As I mentioned before, we tried the code with and without type declaration, it makes a difference. 3) The variable names turns out to be quite useful because this code will be eventually nested into a much larger project where it is convenient to ha

Re: [julia-users] Benchmarking study: C++ < Fortran < Numba < Julia < Java < Matlab < the rest

2014-06-16 Thread Jesus Villaverde
Hi I am one of the authors of the paper :) Our first version of the code did not declare types. It was thanks to Florian's suggestion that we started doing it. We discovered, to our surprise, that it reduced execution time by around 25%. I may be mistaken but I do not think there are type-stab