Re: [julia-users] poor performance of threads

2016-03-04 Thread pevnak
Dear Sam, the output of the benchmark is following 105.290122 seconds (31.43 k allocations: 1.442 MB, 0.00% gc time) 107.445101 seconds (1.37 M allocations: 251.368 MB, 0.12% gc time) Tomas

[julia-users] Re: [ANN] MathGL graphics library wrapper

2016-03-04 Thread lewis . hein
Oooh. Now that should not be happening. The mimetypes.jl file is definitely part of the package on my end As for the error with missing Splines.jl, I didn't realize that that was still a dependency. I will post the Splines.jl package as soon as I can, probably later today. I will also try t

Re: [julia-users] Re: [ANN] MathGL graphics library wrapper

2016-03-04 Thread lewis . hein
OK, I apologize for the problems. The reason for the error on "using Splines" is that I also am working on a splines package that I need and added some plotting features to plot my splines. So, you can either delete that line and any functions that take a Spline as an argument (There aren't man

[julia-users] Re: [ANN] MathGL graphics library wrapper

2016-03-04 Thread Christoph Ortner
Further down the source file, there is an include include("mimetypes.jl") but there is no file mimetypes.jl anywhere. Is it possible that the repository is incomplete? C

[julia-users] Re: [ANN] MathGL graphics library wrapper

2016-03-04 Thread Christoph Ortner
Would be nice to post installation istrunctions on the MathGL.jl README. It took me a while to realise that MathGL can just be installed via home-brew. brew install homebrew/science/mathgl Anyhow, there is still the problem with the error message. What is "Splines"?

Re: [julia-users] poor performance of threads

2016-03-04 Thread Sam Kaplan
Hello, Perhaps it might help the discussion to try running one of the Julia threading performance benchmark codes on your MacBook Air. For example: https://github.com/JuliaLang/julia/blob/master/test/perf/threads/laplace3d/laplace3d.jl Presumably that code is type-stable and compute-bound sinc

Re: [julia-users] Re: [ANN] MathGL graphics library wrapper

2016-03-04 Thread Christoph Ortner
looks really nice, but I just spent 30 minutes trying to install MathML. This is when I lose interest. Sorry. Any chance to have MathML.jl install MathML automatically? Christoph

Re: [julia-users] Re: [ANN] MathGL graphics library wrapper

2016-03-04 Thread Chris
Oh right, sorry, that's the error message I get as well. The one in my original reply was from trying to do `Pkg.add("Splines")` On Fri, Mar 4, 2016 at 1:51 PM Christoph Ortner wrote: > Actually in my case I get the error message > > julia> using MathGL > ERROR: LoadError: ArgumentError: Splines

[julia-users] Re: [ANN] MathGL graphics library wrapper

2016-03-04 Thread Christoph Ortner
Actually in my case I get the error message julia> using MathGL ERROR: LoadError: ArgumentError: Splines not found in path

[julia-users] Re: [ANN] MathGL graphics library wrapper

2016-03-04 Thread Christoph Ortner
I get the same - I assumed one needs to install MathGL first. Have you tried this? C On Friday, 4 March 2016 18:44:09 UTC, Chris wrote: > > Thanks, I haven't heard of MathGL before, and it looks interesting. When I > try to use your module, I get "ERROR: unknown package Splines", from the > "us

[julia-users] Re: [ANN] MathGL graphics library wrapper

2016-03-04 Thread Chris
Thanks, I haven't heard of MathGL before, and it looks interesting. When I try to use your module, I get "ERROR: unknown package Splines", from the "using Splines" line. There doesn't appear to be a Splines.jl registered in METADATA. On Friday, March 4, 2016 at 1:30:00 PM UTC-5, Lewis Hein wrot

[julia-users] [ANN] MathGL graphics library wrapper

2016-03-04 Thread Lewis Hein
Hi all MathGL is a really nice plotting library that I have been using extensively for the past year. When I took the plunge recently and switched my research codebase over to julia, I wanted MathGL to follow it, especially as there are some things such as animations, windowing toolkit widgets, an

[julia-users] Re: How to upload file and also specify data options with Requests.jl?

2016-03-04 Thread Tyler Nappy
Hi, I would check out the Requests.jl library . The following code POSTs a file to the OCR Document API and reads the response: Pkg.add("Requests") using Requests import Requests: get, post, put, delete, options filenamne = "/path/to/file" *response =

Re: [julia-users] Julia programs in pipes

2016-03-04 Thread Stefan Karpinski
Just read from STDIN and write to STDOUT and this should work as in any other language. You may need to call `flush(STDOUT)` sometimes since output is buffered – depends on what kind of buffering you need. On Fri, Mar 4, 2016 at 12:05 PM, Ben Ward wrote: > Hi, > > I'm wondering how easy it is to

[julia-users] Re: Incomplete parametric types

2016-03-04 Thread Christopher Alexander
Ah, yep. I figured I might have to at least know the type ahead of time. This should work though, thanks!! Chris On Friday, March 4, 2016 at 12:26:49 PM UTC-5, John Myles White wrote: > > Is this what you want? > > > julia> abstract ABC > > > julia> type A <: ABC end > > > julia> type B <: ABC

[julia-users] Re: Incomplete parametric types

2016-03-04 Thread John Myles White
Is this what you want? julia> abstract ABC julia> type A <: ABC end julia> type B <: ABC end julia> julia> type TestType{T <:ABC} a::Float64 b::T TestType(a::Float64) = new(a) end julia> myT = TestType{A}(4.0)

[julia-users] Incomplete parametric types

2016-03-04 Thread Christopher Alexander
Hi all, Is there anyway to do something like the following? abstract ABC type A <: ABC end type B <: ABC end type TestType{T <:ABC} a::Float64 b::T TestType(a::Float64) = new(a) end myT = TestType(4.0) myT.b = A() I am wondering if you can incompletely initia

[julia-users] Julia programs in pipes

2016-03-04 Thread Ben Ward
Hi, I'm wondering how easy it is to make a Julia script that can be part of a shell pipeline `cat file > julia myscript.jl > output.txt`? When reading the documentation, I get the impression most io is designed to be done all at once. I know how to loop over a file handle or stream, and I thin

Re: [julia-users] ERROR: LoadError: syntax: incomplete: premature end of input

2016-03-04 Thread Stefan Karpinski
That would do it :-) On Thursday, March 3, 2016, Fei Ma wrote: > Many thanks for the reply. I re-checked my code. It seems like that I have > left out a ")". > > > > On Friday, 4 March 2016 02:37:58 UTC+11, Stefan Karpinski wrote: >> >> It means what entered in new.jl isn't a complete Julia expr

Re: [julia-users] poor performance of threads

2016-03-04 Thread pevnak
Thank you very much Tim. I am using the profiler and your package ProfileView quite extensively and I know where is my Achille heel in the code, and it is cpu bound. That's why I am so puzzled with threads. I will try to use @code_warntype, never use it before. Best wishes, Tomas

[julia-users] Re: can't get pyjulia to work

2016-03-04 Thread Páll Haraldsson
> I'm not looking to call python libs from julia. I have a large investment > in python code. The obvious (to me) path to try out some julia is to move > a > function or 2 into julia, and be able to call julia from my python main > program. So I would need a working pyjulia to do this.

[julia-users] Re: can't get pyjulia to work

2016-03-04 Thread Neal Becker
Páll Haraldsson wrote: > Since I'm more of a Julia user (or including calling Python) I'm not sure > I can help you too much. I would however find it interesting to know > if/when pyjulia works. If been following commits and see a big pull > request here: > > https://github.com/JuliaLang/pyjulia/

[julia-users] Memory increase in parallel processing when using Julia in Linux (Fedora 23)

2016-03-04 Thread Eduardo Lenz
Hi. I have a question about parallel processing in Linux versus parallel processing in Windows using Julia. I have been using it without issues for some time in both operational systems without any problem. Yesterday, using fedora 23 and Julia 0.4.3-1 (fedora version) and 0.4.3-6 (nalimilan/jul

Re: [julia-users] poor performance of threads

2016-03-04 Thread Tim Holy
The point still holds: if your single-threaded benchmark is not type-stable, you're absolutely, 100% wasting your time. Depending on your CPU, you might get perhaps a 4- to 8-fold improvement by using threads. But you might get a 30-fold speed improvement by making it type-stable. Which would yo

[julia-users] Re: What wrong in (D'*D)/k.-(mean(D,1)'*mean(D,1)) ?

2016-03-04 Thread Dan
The matrix `D` is based on type `Int8` which overflows and wraps (without error) very quickly. The `cov` function automatically converts to a `Float64` but the manual calculation does not. To make the calculations match, try: D = convert(Matrix{Int},D) On Friday, March 4, 2016 at 10:42:02 AM UTC

[julia-users] Re: can't get pyjulia to work

2016-03-04 Thread Páll Haraldsson
Since I'm more of a Julia user (or including calling Python) I'm not sure I can help you too much. I would however find it interesting to know if/when pyjulia works. If been following commits and see a big pull request here: https://github.com/JuliaLang/pyjulia/pull/52 Maybe this is the one, th

[julia-users] Bug in daxpy! ???

2016-03-04 Thread pevnak
Hello all, I was polishing my call and I have found the following definition of daxpy! I was not aware of function axpy!{Ti<:Integer,Tj<:Integer}(α, x::AbstractArray, rx::AbstractArray{Ti}, y::AbstractArray, ry::AbstractArray{Tj}) if length(x) != length(y) throw(DimensionMismatch("x

[julia-users] What wrong in (D'*D)/k.-(mean(D,1)'*mean(D,1)) ?

2016-03-04 Thread paul analyst
Why (D'*D)/k.-(mean(D,1)'*mean(D,1)) compute var = -0.018 if var must be 0.124326 ?** julia> using HDF5, JLD julia> D=load("D_test.jld","D_test"); julia> k,l=size(D) (100,10) julia> cov(D[:,1],D[:,1],corrected=false) 0.12432634086422582 julia> cov(D,corrected=false) 10x10 Array{Fl