Re: [julia-users] Winston scatter plot

2014-03-06 Thread Roger Herikstad
Hi, I tried to modify the scatter plot code in Winston to make use of the push_group/pop_group code, but for some reason I couldn't get it to work. Instead, I ended combining the advice from Andreas Lobinger above with the fix already used in the curve(..) function to break up long paths. It gi

Re: [julia-users] Winston scatter plot

2014-03-06 Thread Andreas Lobinger
Hello colleague, hopefully we do not have a race condition here, yesterday in the late afternoon i ussed a PR for Cairo.jl and i included the push/pop there ( https://github.com/JuliaLang/Cairo.jl/pull/65) The test_speed.jl does some rendering of dots in different methods, however on my box ddo

[julia-users] Re: arbitrary precision FFT?

2014-03-06 Thread John Travers
Well, that was exactly my plan - but it is nice to have someone with serious FFT expertise to back it up. I didn't know about the arbitrary precision FFT in fftw3. Very much looking forward to the Julia FFT framework! On Thursday, March 6, 2014 2:51:39 AM UTC+1, Steven G. Johnson wrote: > > It's

[julia-users] Re: ANN: Konthe Convenience functions for OpenGL plotting

2014-03-06 Thread Fabian Gans
Sorry for the broken link and thanks for correcting, so this should hopefully work: http://htmlpreview.github.io/?https://github.com/meggart/Konthe/blob/master/examples/KontheExamples.html Regarding three.js, which functionality did you have in mind? I think it would be possible to generate Jav

Re: [julia-users] Problem with Distributions - sampling a multinomial distribution

2014-03-06 Thread Ivar Nesje
The output from versioninfo(true) will probably be useful for anyone to try to help debug this issue. kl. 17:22:07 UTC+1 onsdag 5. mars 2014 skrev John Myles White følgende: > > Are you using a binary or a source install? I’ve had a few issues with the > changed libRmath library name when workin

[julia-users] Re: Homebrew building issue?

2014-03-06 Thread Ivar Nesje
It seems like this is a issue with Homebrew.jl, and it is probably best if you open the issue there. I get errors form http://archive.org/download/julialang//cctools_bundle.tar.gz and http://archive.org/download/julialang/cctools_bundle.tar.gz also, so this seems to be a issue of broken links.

[julia-users] Re: Homebrew building issue?

2014-03-06 Thread Ivar Nesje
Link to homebrew.jl: https://github.com/JuliaLang/Homebrew.jl/issues kl. 12:12:51 UTC+1 torsdag 6. mars 2014 skrev Ivar Nesje følgende: > > It seems like this is a issue with Homebrew.jl, and it is probably best if > you open the issue there. > > I get errors form > http://archive.org/download/j

Re: [julia-users] Winston scatter plot

2014-03-06 Thread Roger Herikstad
Hi, On Thursday, March 6, 2014 5:01:58 PM UTC+8, Andreas Lobinger wrote: > > Hello colleague, > > hopefully we do not have a race condition here, yesterday in the late > afternoon i ussed a PR for Cairo.jl and i included the push/pop there ( > https://github.com/JuliaLang/Cairo.jl/pull/65) > T

Re: [julia-users] Re: norm() strangeness

2014-03-06 Thread Alan Edelman
>> Remember that not all 2-dimensional arrays represent linear operators. That's another can of worms. For that matter, not all linear operators are represented by 2-dimensional arrays. Sorting this out is a topic for another day. For now, I think if your A is really A[:] in your mind (i.e. i

Re: [julia-users] Re: [TESTERS NEEDED] Julia packages for openSUSE 13.1

2014-03-06 Thread Ronan Chagas
Well, I have absolutely no idea. It just started to work after an update (maybe after a submodule update). I'll try to do weekly builds to verify if I will see this problem again. Thanks, Ronan 2014-03-05 21:01 GMT-03:00 andrew cooke : > > so what was the problem (was it you with the qemu issue?)

[julia-users] Clang.jl build errors

2014-03-06 Thread Sven Mesecke
I'm trying to install Clang.jl to ultimately create wrappers for HTSlib, but I'm already failing at building Clang.jl with the following error message: julia> Pkg.build("Clang") INFO: Building Clang g++ wrapclang.cpp -fPIC -c -o wrapclang.cpp.o -I "/home/mesecke/devel/julia//usr/include" -g

[julia-users] Optional submodules in different files

2014-03-06 Thread Carlos Becker
I am working on a module and I wanted to separate the 'raw' processing part from the visualization-related functions. I thought of having a base module (eg MyBaseMod) and then a submodule (MyBaseMod.Viz) for visualization. Since some MyBaseMod.Viz needs PyPlot, I want to be able to use MyBaseMod

[julia-users] Re: Clang.jl build errors

2014-03-06 Thread Ivar Nesje
Looks similar to https://github.com/ihnorton/Clang.jl/issues/65 Ivar kl. 12:47:26 UTC+1 torsdag 6. mars 2014 skrev Sven Mesecke følgende: > > I'm trying to install Clang.jl to ultimately create wrappers for HTSlib, > but I'm already failing at building Clang.jl with the following error > messag

[julia-users] Re: running for loops in parallel

2014-03-06 Thread Billou Bielour
Matlab's parfor will probably work on the case above, I don't know exactly how they do it, but it's pretty smart usually. x2 = []; n = 10; parfor i = 1:n x2 = [x2, i]; end x2 I have to say the Julia doc is not super clear, it says: "Notice that the reduction operator can be omitted if it is

Re: [julia-users] Optional submodules in different files

2014-03-06 Thread Tim Holy
With Images, I was asked to make visualization an entirely separate package (now ImageView). The two are tightly-coupled, but it does give users flexibility to do image processing on a headless server without paying the price of loading graphics. YMMV. --Tim On Thursday, March 06, 2014 05:06:2

Re: [julia-users] Re: Clang.jl build errors

2014-03-06 Thread Isaiah Norton
Please try Pkg.update() thanks, Isaiah On Thu, Mar 6, 2014 at 8:13 AM, Ivar Nesje wrote: > Looks similar to https://github.com/ihnorton/Clang.jl/issues/65 > > Ivar > > kl. 12:47:26 UTC+1 torsdag 6. mars 2014 skrev Sven Mesecke følgende: > >> I'm trying to install Clang.jl to ultimately create

Re: [julia-users] Winston scatter plot

2014-03-06 Thread Tim Holy
Probable candidate: search old threads on Cairo/Winston being slow. See the fix here: https://github.com/nolta/Winston.jl/blob/master/src/renderer.jl#L238- L244 You might need to do something similar. --Tim On Thursday, March 06, 2014 03:17:35 AM Roger Herikstad wrote: > Hi, > > On Thursday,

[julia-users] Re: Optional submodules in different files

2014-03-06 Thread Toivo Henningsson
You can write the sub-module code in a separate file, and then include() it in the main source file. That's how do e.g. in Debug.jl . That said, Tim's option might be better in this case. On Thursday, 6 March 2014 14:06:22 UTC+1, Carlo

Re: [julia-users] Re: Optional submodules in different files

2014-03-06 Thread Carlos Becker
Thanks Tim, I should've thought of Images and ImageView, since I use them everyday ;) Toivo's idea is great to organize code better, but I think I will stick to the two-module option, so that PyPlot is not necessary if I only want to use the main module. Thanks.

Re: [julia-users] Re: Clang.jl build errors

2014-03-06 Thread Sven Mesecke
Wow, now building it works just fine. Thanks a lot, Sven On 06.03.2014 15:07, Isaiah Norton wrote: Please try Pkg.update() thanks, Isaiah On Thu, Mar 6, 2014 at 8:13 AM, Ivar Nesje > wrote: Looks similar to https://github.com/ihnorton/Clang.jl/issues/65 I

[julia-users] (new user) errors installing Image package

2014-03-06 Thread Nathaniel Virgo
Hi all I’m completely new to Julia. For my first piece of code (a simple reaction-diffusion simulation) I need to repeatedly convolve a 2D array with a small (3x3) kernel. From a bit of googling I determined that non-FFT convolution is implemented in Images.imfilter, but I’m having trouble i

Re: [julia-users] (new user) errors installing Image package

2014-03-06 Thread Isaiah Norton
https://github.com/JuliaLang/Homebrew.jl/issues/38 On Thu, Mar 6, 2014 at 1:49 AM, Nathaniel Virgo wrote: > Hi all > > I'm completely new to Julia. For my first piece of code (a simple > reaction-diffusion simulation) I need to repeatedly convolve a 2D array > with a small (3x3) kernel. From a b

Re: [julia-users] (new user) errors installing Image package

2014-03-06 Thread Tim Holy
As Isaiah pointed out, Homebrew seems to be having some trouble. But the good news is that you shouldn't technically need it for the function you're hoping to use---the only need for Homebrew is to install ImageMagick, and the only thing we use ImageMagick for is reading/writing image file forma

[julia-users] Restrict `in` for a Set to keys with the same type?

2014-03-06 Thread David P. Sanders
Hi, I was recently bitten by this: julia> s = Set(3, 4, 5) Set{Int64}({5, 4,3}) julia> (1, 1) in s false I.e., I had changed the type stored in a Set from a pair to an integer, and had a strange bug for several days, which I finally traced to this. I would much prefer that `in` give an error i

[julia-users] Re: running for loops in parallel

2014-03-06 Thread Patrick O'Leary
I suspect MATLAB is classifying x2 as a reduction variable. However, the documentation notes: "The classification rules for variables, including reduction variables, are purely syntactic. They cannot determine whether the f you have supplied is truly associative or not. Associativity is assumed

[julia-users] Re: running for loops in parallel

2014-03-06 Thread Billou Bielour
Yes, I took the example from matlab's doc, in the Reduction Assignments section. Actually it also works in Julia: v = @parallel (vcat) for i=1:10 myid() end 10-element Array{Int64,1}: 3 3 3 3 3 2 2 2 2 2 It seems you can even do nested loops: v = @parallel (vcat) for i=1:10 @parallel

Re: [julia-users] Problem with Distributions - sampling a multinomial distribution

2014-03-06 Thread James W
Hi John I am using the binary v0.3.0-prerelease for Mac, so pretty up to date. JW On Wednesday, March 5, 2014 5:22:07 PM UTC+1, John Myles White wrote: > > Are you using a binary or a source install? I’ve had a few issues with the > changed libRmath library name when working with older binar

Re: [julia-users] Winston scatter plot

2014-03-06 Thread Andreas Lobinger
I have discarded the PR, again i failed to do a correct rebase (note to myself: learn git, really!) For the questions of Roger about the 2*22 (in the PR): you are right, that's wrong and actually painting a cc*2 x 2*22 group was slow, i have changed this. For Tim's reminder about looking at spe

Re: [julia-users] Restrict `in` for a Set to keys with the same type?

2014-03-06 Thread Stefan Karpinski
I agree that this is problematic. Our Dicts and hashing in general have some rather large issues at the moment, which is why I'm working on the state of numeric hashing right now. This is an area that we'll get straightened out in 0.4. On Thu, Mar 6, 2014 at 10:25 AM, David P. Sanders wrote: > H

Re: [julia-users] Problem with Distributions - sampling a multinomial distribution

2014-03-06 Thread John Myles White
Hi James, Because the prerelease binaries change every day, it’s kind of hard to make statements about what will work when using them. When I next have time, I’ll try to test them out with the Distributions package. (I’m on vacation for the next four days, so it may take a while.) — John On

Re: [julia-users] Pass mutable structs to C for working with Markdown?

2014-03-06 Thread John Myles White
Thanks, Isaiah and Jameson. I need to think about this a bit more, since I was able to get examples like Buf working, but failed to get calls to sd_markdown_new to work. I’ll ponder your examples a bit more and then report back. — John On Mar 5, 2014, at 10:53 PM, Isaiah Norton wrote: > To

Re: [julia-users] (new user) errors installing Image package

2014-03-06 Thread Isaiah Norton
The Homebrew issue is now fixed. On Thu, Mar 6, 2014 at 10:12 AM, Tim Holy wrote: > As Isaiah pointed out, Homebrew seems to be having some trouble. But the > good > news is that you shouldn't technically need it for the function you're > hoping > to use---the only need for Homebrew is to insta

Re: [julia-users] Re: Homebrew building issue?

2014-03-06 Thread Isaiah Norton
This is now fixed. On Thu, Mar 6, 2014 at 6:13 AM, Ivar Nesje wrote: > Link to homebrew.jl: https://github.com/JuliaLang/Homebrew.jl/issues > > kl. 12:12:51 UTC+1 torsdag 6. mars 2014 skrev Ivar Nesje følgende: > >> It seems like this is a issue with Homebrew.jl, and it is probably best >> if y

Re: [julia-users] Advice about git repository layout.

2014-03-06 Thread Isaiah Norton
You should have a look at how the Portuguese translation is set up: https://github.com/andrioni/julia-doc-pt_br (seems like it started from a copy of the julia/doc subdirectory) On Wed, Mar 5, 2014 at 9:40 AM, Ismael VC wrote: > Hello everyone! > > I'm just at some steps from actually starting

[julia-users] Re: Passing generic functions is slow? (Kernel Density Estimation)

2014-03-06 Thread Antonio Linero
Thanks Simon! WRT using a package, I'm feeling things out before implementing something research related that won't be covered in a package. Performance is especially critical since I don't have the time/expertise to implement an FFT version of what I intend to do.

Re: [julia-users] Preferred way of slicing an array into DArray

2014-03-06 Thread Daniel H
> > Thanks Amit, It works perfectly :)

Re: [julia-users] Winston scatter plot

2014-03-06 Thread Roger Herikstad
Andreas, That's really thorough work and quite impressive results! I guess I'm still a bit curious why ddots4 takes so much longer than the other methods, but in any case, clearly ddots5 is the winner. Looking forward to testing out this code on my usage cases. On Fri, Mar 7, 2014 at 3:11 AM, Andr

[julia-users] Possibly Cute Hack

2014-03-06 Thread andrew cooke
...possibly offensive to some. i wanted a nice syntax for people to define polynomials. the code below lets you write things like 2X^2 + 3X + 1 X+1 and packages the coefficients into a nice format for a constructor (an array of (coeff, power)). this kind of thing is common in haskell where

Re: [julia-users] Possibly Cute Hack

2014-03-06 Thread Jameson Nash
Alternatively and without any need for trickery: julia> using Polynomial julia> x=Poly([1,0],:x) Poly(x) julia> 2x^2 + 1 Poly(2x^2 + 1) On Thu, Mar 6, 2014 at 8:53 PM, andrew cooke wrote: > ...possibly offensive to some. > > i wanted a nice syntax for people to define polynomials. the code

Re: [julia-users] Possibly Cute Hack

2014-03-06 Thread andrew cooke
ha! damn. of course. ah well... On Thursday, 6 March 2014 23:04:27 UTC-3, Jameson wrote: > > Alternatively and without any need for trickery: > > julia> using Polynomial > > julia> x=Poly([1,0],:x) > Poly(x) > > julia> 2x^2 + 1 > Poly(2x^2 + 1) > > > On Thu, Mar 6, 2014 at 8:53 PM, andrew cook

[julia-users] Bug in ranges?

2014-03-06 Thread Stephen Voinea
I noticed the following strangeness: julia> r = 0.6:0.3:1.2 0.6:0.3:1.2 julia> r.step 3.0 julia> r.start 6.0 julia> r = 0.6:0.3:1.4 0.6:0.3:1.2 julia> r.start 0.6 julia> r.step 0.3 Am I missing something? julia> versioninfo() Julia Version 0.3.0-prerelease+1829 Commit 037a469* (2014-03-04 1

Re: [julia-users] Bug in ranges?

2014-03-06 Thread Jameson Nash
`r.step` is not defined to be anything meaningful to the user. It is a data field and all data fields are considered to be private details in Julia. You can access them if you want, but they typically aren't part of the API and may change at the whim of the implementer. You are probably looking for

Re: [julia-users] Bug in ranges?

2014-03-06 Thread Stephen Voinea
Got it. Thanks for the fast, clear reply. On Thursday, March 6, 2014 11:12:39 PM UTC-5, Jameson wrote: > > `r.step` is not defined to be anything meaningful to the user. It is a > data field and all data fields are considered to be private details in > Julia. You can access them if you want, but

Re: [julia-users] Bug in ranges?

2014-03-06 Thread Ivar Nesje
Julia has made a very strange attempt to make floating point ranges work more like real ranges. The implementation is somewhat complicated, but the result seems to be very nice. The old behaviour was much more confusing: julia> v=.1:.1:.30.1:0.1:0.2 If you want the details you can see https:

[julia-users] Heads up on a hopefully harmless "Warning: redefining constant CPU_CORES"

2014-03-06 Thread Tony Kelman
It looks like the Windows binaries for 0.3.0-prerelease were updated today. Awesome, thanks for that! Starting up any of the 8 latest REPL's (32 or 64 bit, basic or readline, debug or not), before the Julia splash I see "Warning: redefining constant CPU_CORES." Hopefully this is harmless? It ma