[julia-users] Finding all the arguments of a function

2016-01-29 Thread 'Antoine Messager' via julia-users
Hi all, I forgot for the n-th time how to prevent a sampling from having two times the same value. While I wrote the previous sentence I remembered, but it is not my issue. I was wondering whether there is an option that would give all the arguments that can be used in a already implemented

[julia-users] Re: Finding all the arguments of a function

2016-01-29 Thread Bart Janssens
On Friday, January 29, 2016 at 12:26:20 PM UTC+1, Antoine Messager wrote: > I forgot for the n-th time how to prevent a sampling from having two times > the same value. While I wrote the previous sentence I remembered, but it is > not my issue. I was wondering whether there is an option that

[julia-users] write julia consolle output in a text file

2016-01-29 Thread Michela Di Lullo
How do I write the julia consolle output in a txt file? Thanks Michela

[julia-users] write julia consolle output in a text file

2016-01-29 Thread Tomas Lycken
For example open("log.txt", "w") do f write(f," Hello, text file!") end or julia your-script.jl > log.txt depending on how you invoke your Julia code and what you mean by "console output". // T

[julia-users] Julia version mismatch

2016-01-29 Thread Sisyphuss
I have this problem: When I type Julia --version it shows that I am in 0.4.2-pre But when I enter the Julia REPL, I am in 0.4.4-pre+24

[julia-users] yet another benchmark with numba and fortran

2016-01-29 Thread Andre Bieler
Someone posted a benchmark for Numba and Fortran https://www.reddit.com/r/Python/comments/431tsm/numba_applied_to_high_intensity_computations_a/ As a Friday afternoon project I ported the Python version to Julia https://github.com/abieler/LJSim.jl (please go to the reddit link above to also

[julia-users] Re: yet another benchmark with numba and fortran

2016-01-29 Thread Andre Bieler
sorry. dont know how that happened... fixed the typo and also added the python file to gerenate the input data On Friday, January 29, 2016 at 6:27:23 PM UTC+1, Kristoffer Carlsson wrote: > > Ok, just a typo, should be boxl2 > > On Friday, January 29, 2016 at 6:26:44 PM UTC+1, Kristoffer Carlsson

[julia-users] Re: yet another benchmark with numba and fortran

2016-01-29 Thread Kristoffer Carlsson
boxl3 is not defined On Friday, January 29, 2016 at 6:19:09 PM UTC+1, Andre Bieler wrote: > > Someone posted a benchmark for Numba and Fortran > > > https://www.reddit.com/r/Python/comments/431tsm/numba_applied_to_high_intensity_computations_a/ > > As a Friday afternoon project I ported the

[julia-users] Re: yet another benchmark with numba and fortran

2016-01-29 Thread Kristoffer Carlsson
Ok, just a typo, should be boxl2 On Friday, January 29, 2016 at 6:26:44 PM UTC+1, Kristoffer Carlsson wrote: > > boxl3 is not defined > > On Friday, January 29, 2016 at 6:19:09 PM UTC+1, Andre Bieler wrote: >> >> Someone posted a benchmark for Numba and Fortran >> >> >>

Re: [julia-users] Julia version mismatch

2016-01-29 Thread Mauro
You have do to a make cleanall and recompile. Happened to me, it's on github somewhere. On Fri, 2016-01-29 at 17:55, Sisyphuss wrote: > I have this problem: > > When I type > Julia --version > > it shows that I am in 0.4.2-pre > > But when I enter the Julia REPL, > I

[julia-users] Has module pre-compilation has been back-ported to Julia 0.3.11?

2016-01-29 Thread mcarrizosa
Looking to precompile modules in Julia 0.3.11. Wanted to know if this is possible and if anyone has successfully completed this. -Michelle

[julia-users] Julia vs Matlab: interpolation and looping

2016-01-29 Thread pokerhontas2k8
Hi, my original problem is a dynammic programming problem in which I need to interpolate the value function on an irregular grid using a cubic spline method. I was translating my MATLAB code into Julia and used the Dierckx package in Julia to do the interpolation (there weren't some many

[julia-users] Re: ANN: Julia "lite" branch available

2016-01-29 Thread Scott Jones
I've updated the branch again (after a tracking down and working around an issue introduced with #13412), had to get that great jb/function PR in! All unit tests pass. On Thursday, January 21, 2016 at 9:02:50 PM UTC-5, Scott Jones wrote: > > This is still a WIP, and can definitely use some more

[julia-users] malloc error?

2016-01-29 Thread Nandana Sengupta
I'm using the Julia package LowRankModels (https://github.com/madeleineudell/LowRankModels.jl/tree/dataframe-ux) and coming across a malloc error when making a single innocuous change to my code. For instance in the following sample code, changing a single parameter (the rank k) from 10 to

[julia-users] malloc error?

2016-01-29 Thread Nandana Sengupta
I'm using the Julia package LowRankModels (https://github.com/madeleineudell/LowRankModels.jl/tree/dataframe-ux) and coming across a malloc error when making a single innocuous change to my code. For instance in the following sample code, changing a single parameter (the rank k) from 10

[julia-users] Re: malloc error?

2016-01-29 Thread Madeleine Udell
A bit more information: the error seems to be occurring in the function `fit!` in algorithms/proxgrad.jl . There's almost no calling of C functions, so very little chance for memory management

[julia-users] Re: yet another benchmark with numba and fortran

2016-01-29 Thread Jutho
Transposing coord (i.e. let the column index correspond to x,y,z and the row index to the different particles) helps a little bit (but not so much). Julia uses column major order, Python is different I believe. How big is the difference with Numba? Op vrijdag 29 januari 2016 21:26:07 UTC+1

Re: [julia-users] Has module pre-compilation has been back-ported to Julia 0.3.11?

2016-01-29 Thread Yichao Yu
On Fri, Jan 29, 2016 at 5:51 PM, wrote: > Looking to precompile modules in Julia 0.3.11. Wanted to know if this is > possible and if anyone has successfully completed this. It is not and won't be. > > -Michelle

Re: [julia-users] Cannot pull with rebase...?

2016-01-29 Thread Joshua Duncan
Have you resolved this problem? I have the same errors as you. Just installed v0.4.3 on Windows 10. Thanks, Josh On Friday, January 15, 2016 at 8:54:42 AM UTC-6, fab...@chalmers.se wrote: > > "Pkg.dir()" give the same "Cannot pull with rebase..." error message. > > Thanks. > > On Wednesday,

Re: [julia-users] Re: ANN: Julia "lite" branch available

2016-01-29 Thread Jeff Bezanson
This is interesting, and a good starting point for refactoring our large Base library. Any fun statistics, e.g. build time and system image size for the minimal version? On Fri, Jan 29, 2016 at 3:00 PM, Scott Jones wrote: > I've updated the branch again (after a

Re: [julia-users] Re: ANN: Julia "lite" branch available

2016-01-29 Thread cdm
intriguing ... Thank You, Scott ! possibly of interest: https://groups.google.com/forum/#!searchin/julia-users/alternate$20lisp/julia-users/am8opcv-5Mc/UdXyususBwAJ enjoy !!!

Re: [julia-users] are tasks threads in 0.4?

2016-01-29 Thread Yichao Yu
On Fri, Jan 29, 2016 at 10:53 PM, andrew cooke wrote: > > i've been away from julia for a while so am not up-to-date on changes, and > am looking at an odd problem. > > i have some code, which is messier and more complex than i would like, which > is called to print a graph of

[julia-users] are tasks threads in 0.4?

2016-01-29 Thread andrew cooke
i've been away from julia for a while so am not up-to-date on changes, and am looking at an odd problem. i have some code, which is messier and more complex than i would like, which is called to print a graph of values. the print code uses tasks. in 0.3 this works, but in 0.4 the program

[julia-users] Re: SharedArray / parallel question

2016-01-29 Thread Christopher Alexander
I tried using @sync @parallel and ended up getting a segmentation fault, so I'm not really sure how to parallelize this loop. This is inside of a larger module, so I'm not sure if something special has to be done (e.g. putting @everywhere somewhere). I've searched this forum and the

[julia-users] Re: Julia vs Matlab: interpolation and looping

2016-01-29 Thread Andrew
Your loop has a ton of unnecessary allocation. You can move xprime=ones(Nalal,Naa) outside the loop. Also, you are converting xprime to a vector at every iteration. You can also do this outside the loop. After the changes, I get julia> include("test2.jl"); WARNING: redefining constant lib

[julia-users] SharedArray / parallel question

2016-01-29 Thread Christopher Alexander
Hello all, I have a question about the proper usage of SharedArray / @parallel. I am trying to use it in a particular part of my code, but I am not getting the expected results (instead I am getting an array of zeros each time). Here are the two functions that are involved: function

[julia-users] Re: yet another benchmark with numba and fortran

2016-01-29 Thread STAR0SS
A significant part of the time is spent in computing the norms (r_sq = rx*rx + ry*ry + rz*rz) and the absolute value (abs(rz) > boxl2), I don't know if there's more efficient ways to compute those.

[julia-users] unix timestamp to DateTime & divexact errors

2016-01-29 Thread Michael Landis
Is there a language convention for converting/comparing unix timestamps (e.g. file modify dates) and DateTimes? When I do: fs = stat( "X.csv" ); ms = now() - fs.mtime; typeof(ms) --> Base.Dates.Millisecond, even though now() is a DateTime # you would think that creating a DateTime, would make

[julia-users] Re: unix timestamp to DateTime & divexact errors

2016-01-29 Thread Michael Landis
# Even after dt = trunc(dt,Second); I am still seeing divexact errors... On Friday, January 29, 2016 at 12:44:35 PM UTC-8, Michael Landis wrote: > > Is there a language convention for converting/comparing unix timestamps > (e.g. file modify dates) and DateTimes? > > When I do: > fs = stat(