[julia-users] Build failing with: `libopenspecfun.so.0': File exists

2014-07-10 Thread Pontus Stenetorp
Everyone, I read the GitHub activity as well as julia-dev and build Julia on a daily basis, but I have not seen any mention of this error. Since it dodged the standard `make cleanall`, I thought I should share the simple, rather obvious, fix just in case someone tries to search for the issue. Ap

Re: [julia-users] ApproxFun v0.0.1 with ODE solving

2014-07-10 Thread Sheehan Olver
Hi Stephane, It's a problem of accurate initial guess. I got a good initial guess by doing a homotopy down from phi=1000.The solution should be IFun{Float64,Interval{Float64}}([17.0558,-9.62248e-7,2.40562e-7,-5.76944e-14,4.82252e-15],Interval{Float64}(3.514457e-7,7.

[julia-users] Re: efficient iterative updating for dataframe subsets

2014-07-10 Thread Blake Johnson
The Devectorize package should help you here in keeping your code clean while getting explicit-loop-like performance. On Wednesday, July 9, 2014 4:05:23 PM UTC-4, Steven G. Johnson wrote: > > > > On Wednesday, July 9, 2014 1:59:46 PM UTC-4, Steve Bellan wrote: >> >> Hi Josh, thanks for the respon

[julia-users] Re: How to go from user to developer?

2014-07-10 Thread Sam L
In terms of optimization, I think "Julia-style psuedocode" is a good way to start, keeping in mind the performance tips . I reread that every once in a while, finding I've forgotten some useful info. Don't bother trying to make ev

Re: [julia-users] early termination of @parallel for code

2014-07-10 Thread Thomas Covert
By the way, I think MATLAB does something like this by default in the parfor infrastructure, so I was kind of surprised @parallel didn't. On Thursday, July 10, 2014 4:18:56 PM UTC-5, Jutho wrote: > > Using random permutations of your original parameter set is a clever idea. > It never even occur

[julia-users] How to go from user to developer?

2014-07-10 Thread Ted Fujimoto
Hi all, Can anyone recommend any references on how to create a Julia package like a seasoned Julia developer? Based on my conversations with some of the Julia experts, the process seems a bit more involved than just writing out Julia-style pseudocode. Are there general rules of thumb on how to

Re: [julia-users] early termination of @parallel for code

2014-07-10 Thread Jutho Haegeman
Using random permutations of your original parameter set is a clever idea. It never even occurred to me when I was trying to find a workaround :-). On 10 Jul 2014, at 23:03, Thomas Covert wrote: > Jutho, I was also worried about this. For that reason, “doset” is a random > permutation of the

Re: [julia-users] early termination of @parallel for code

2014-07-10 Thread Thomas Covert
Jutho, I was also worried about this. For that reason, “doset” is a random permutation of the range 1:nCols, where nCols is the number of columns in “fnmasks" and “dsmasks”. I did this because the workload on the “early” columns is much smaller than the workload on the “later” columns (the fun

[julia-users] Re: efficient iterative updating for dataframe subsets

2014-07-10 Thread gael . mcdon
If you want to gain more performances, first identify hot spots by profiling your code. This is fairly easy in Julia: http://julia.readthedocs.org/en/latest/stdlib/profile/ Making your code less readable to gain a 0.01% speed increase in your whole program doesn't worth the pain. Once bottlene

Re: [julia-users] Support for Julia in Eclipse (LiClipse)

2014-07-10 Thread 'Stéphane Laurent' via julia-users
Thank you. I have successfully modified the julia.liclipse file. It works now. S Le lundi 30 juin 2014 02:16:26 UTC+2, Fabio Zadrozny a écrit : > > > On Sunday, June 29, 2014 12:14:59 PM UTC-3, Stéphane Laurent wrote: >> >> I have just installed Eclipse and LiClipse, but now I don't see what to

Re: [julia-users] Re: erroneous cholfact behavior in conjunction with addprocs()

2014-07-10 Thread Viral Shah
That is right. In parallel mode, having each process call multiple threads can lead to an adverse slowdown, if number of processes * no. of threads/process is higher than the number of available cores. -viral On Thursday, July 10, 2014 5:20:51 AM UTC-7, Thomas Covert wrote: > > Thanks for the u

Re: [julia-users] Re: Composite type with dependent fields (using Base.setindex!)

2014-07-10 Thread Mauro
Tim beat me to it... This can be implemented in current Julia. The consent among most adults is that type fields are private and consequently one uses functions to 'query' an instance of the type. In your case is should look something like: type DiscreteRv{T <: Real} q::Vector{T} Q::Vec

Re: [julia-users] Re: Composite type with dependent fields (using Base.setindex!)

2014-07-10 Thread Spencer Lyon
Thanks for the interesting suggestion. I will have to experiment with that. FWIW, this is the python code I am trying to “replicate”: class DiscreteRV(object): """ Generates an array of draws from a discrete random variable with vector of probabilities given by q. """ d

Re: [julia-users] Re: Composite type with dependent fields (using Base.setindex!)

2014-07-10 Thread Tim Holy
If you're in the consenting-adults camp, overloading setindex! would be fine. Modulo bounds, error-checking, etc, it's as simple as function setindex!(rv::DiscreteRv, val, indx) rv.q[indx] = val for j = indx:length(rv.Q) rv.Q[j] = rv.Q[j-1]+rv.q[j] end rv end If you want

[julia-users] Re: Need help on Sublime-IJulia install on Windows, Julia 0.3.0-prerelease

2014-07-10 Thread G. Patrick Mauroy
Got it to work by going through the full install process with today's Windows build. My mistake was to believe I had the latest core Julia when running a package update! Glad it was something that simple. Sorry for the false alarm. On Tuesday, July 8, 2014 3:07:52 PM UTC-4, G. Patrick Mauroy w

[julia-users] Re: ANN: Processing.jl

2014-07-10 Thread Robert Ennis
A temporary stop-gap has been applied. It will check if the window exists, before every call to animate(). If it doesn't exist, it gives an error message and asks for the user to quit the animation loop, if there is one. This keeps the segfaults from occurring, but I would ultimately like a way

Re: [julia-users] New Julia tutorial from SciPy now online

2014-07-10 Thread Stefan Karpinski
This should absolutely be linked to from the home page – it's a really great starting point for learning Julia. On Thu, Jul 10, 2014 at 9:12 AM, Jake Bolewski wrote: > Congrats David that tutorial went really well. Perhaps now that we are > going to be collecting a large number of videos about

[julia-users] Re: Composite type with dependent fields (using Base.setindex!)

2014-07-10 Thread Spencer Lyon
So I read through issue 1974 . It seems like what I am trying to do is not possible before that gets implemented. Is that correct? On Thursday, July 10, 2014 1:15:14 AM UTC-4, Spencer Lyon wrote: I have a very simple composite type: > > type Dis

Re: [julia-users] New Julia tutorial from SciPy now online

2014-07-10 Thread Jake Bolewski
Congrats David that tutorial went really well. Perhaps now that we are going to be collecting a large number of videos about Julia these can be linked from the home page so they are bit easier to find? -Jake On Thursday, July 10, 2014 11:13:34 AM UTC-4, John Myles White wrote: > > This is a r

[julia-users] Re: ANN: Processing.jl

2014-07-10 Thread Robert Ennis
That's been bugging me, too, especially with rapid testing things during development. I think I can get to it tonight. Best, Rob On Thursday, July 10, 2014 10:48:04 AM UTC+2, Job van der Zwan wrote: > > Works now, great! Seems to "hang" when closing the window though. Will > investigate and ope

Re: [julia-users] Re: Contributing an external package

2014-07-10 Thread John Myles White
I'd use a package like Distributions.jl as your example rather than SGD.jl, which is really, really rough around the edges. -- John On Jul 10, 2014, at 8:32 AM, Eric Chiang wrote: > Yeah I have. > > Beyond just the actual technical requirements, I was wondering more generally > about best p

[julia-users] Re: Contributing an external package

2014-07-10 Thread Eric Chiang
Yeah I have. Beyond just the actual technical requirements, I was wondering more generally about best practices and "quality standards". At this point, I'm just copying the style of one of John Myles White's packages (https://github.com/johnmyleswhite/SGD.jl). Eric On Tuesday, July 8, 2014 2:

Re: [julia-users] New Julia tutorial from SciPy now online

2014-07-10 Thread John Myles White
This is a really great tutorial. -- John On Jul 10, 2014, at 5:54 AM, David P. Sanders wrote: > Many thanks to all those who suffered my inane questions and helped this to > take shape, in particular: > > - Jeff, who persuaded me to try out Julia > - Alonso & Luis, who convinced me that it w

Re: [julia-users] weird behaviour dynamic function declarations

2014-07-10 Thread John Myles White
I think you're hitting this issue: https://github.com/JuliaLang/julia/issues/265 -- John On Jul 10, 2014, at 1:31 AM, Johannes Degn wrote: > > > Im not sure if this is a bug or if I am a bug. Maybe someone can explain this > to me: > > I am running julia Version 0.3.0-prerelease+3649 on li

Re: [julia-users] Ti parameter in SparseMatricCSC

2014-07-10 Thread Mauro
It's the type of the index variables. So, potentially useful to save some space by using Uint32 or Uint16 for them. Of course that reduces the maximal size of the matrix. There is an "example" in test/sparse.jl: S1290 = SparseMatrixCSC(3, 3, Uint8[1,1,1,1], Uint8[], Int64[]) I think you have to

[julia-users] weird behaviour dynamic function declarations

2014-07-10 Thread Johannes Degn
Im not sure if this is a bug or if I am a bug. Maybe someone can explain this to me: I am running julia Version 0.3.0-prerelease+3649 on linux. I was working on some code and testing it while running a repl. Simplified I did something like the following: function a() b() end function b()

[julia-users] Re: Using a julia module inside function

2014-07-10 Thread Peter Simon
Added your useful answer to the FAQ in PR 7553 --Peter On Wednesday, July 9, 2014 8:13:55 AM UTC-7, Steven G. Johnson wrote: > > No, you are not allowed to have a "using" statement inside a function. > > If you want to import a module but only use i

Re: [julia-users] New Julia tutorial from SciPy now online

2014-07-10 Thread David P. Sanders
Many thanks to all those who suffered my inane questions and helped this to take shape, in particular: - Jeff, who persuaded me to try out Julia - Alonso & Luis, who convinced me that it was worth pursuing - The JuliaCon organizers, speakers, and participants - Leah for a couple of discussions ab

[julia-users] Ti parameter in SparseMatricCSC

2014-07-10 Thread Simon Byrne
Out of curiosity, what is the purpose of the Ti parameter in SparseMatrixCSC type? I managed to track down this old commit: https://github.com/JuliaLang/julia/commit/a0961e5df69da9f736ac8cb54a1186433fa6c1ba which suggests it was introduced in order to conserve space for small matrices, but now i

Re: [julia-users] Re: erroneous cholfact behavior in conjunction with addprocs()

2014-07-10 Thread Thomas Covert
Thanks for the update. Just out of curiosity, why does Julia call a single threaded LAPACK routine when in parallel processing mode? Is it the case that its impossible to have several processes calling multi-threaded LAPACK routines, or just that its less efficient than having several processe

Re: [julia-users] Re: ANN: Gumbo.jl (HTML parsing library)

2014-07-10 Thread Yuuki Soho
I'm using it yes, but I'm not sure it can do what I want. Basically when I am on page, say "http://host.com/section1/section2/"; and I get relative links like "../section3" or "//section4" then I have some dirty code to reconstruct the full urls. I mean it works alright, but it looks a bit britt

Re: [julia-users] ApproxFun v0.0.1 with ODE solving

2014-07-10 Thread 'Stéphane Laurent' via julia-users
Hello Sheehan, I get a failure with the following example, do you have an idea about the why ?: *# solves u" = phi²*sinh(u)-2u'/(x+gamma) , u'(a)=-xi, u'(R)=0* *a= 3.514457e-07* *R= 7.60773e-07* *x=Fun(identity, Interval(a,R))* *d=x.domain* *B=neumann(d)* *D=diff(d)* *# Solves Lu + g(u) == 0*

[julia-users] Re: ANN: Processing.jl

2014-07-10 Thread Job van der Zwan
Works now, great! Seems to "hang" when closing the window though. Will investigate and open an issue if it's consistent. On Wednesday, 9 July 2014 20:13:14 UTC+2, Robert Ennis wrote: > > Fixed, and the demo now includes a basic example of mouse interaction. If > you have any further trouble, fee

[julia-users] Re: Using a julia module inside function

2014-07-10 Thread Tony Fong
Added to Lint.jl

Re: [julia-users] Re: erroneous cholfact behavior in conjunction with addprocs()

2014-07-10 Thread Andreas Noack
I think the problem is in the single threaded version of dpotri in OpenBLAS. When you add processes to Julia, OpenBLAS is called singled threaded and therefore you see the problem when using addprocs. I could reproduce the error by calling blas_set_num_threads(1). I have filed an issues at the Juli

[julia-users] Re: early termination of @parallel for code

2014-07-10 Thread Jutho
Having played a little bit with parameter sweeps like these a while ago, I was also troubled by the best way to do this. Note that @parallel for will immediately partition your parameter set (in your case: doset ) and assign different partitions to different processors. This means that, if the