[julia-users] Re: Help with pipes

2016-03-12 Thread elextr
Can't test ATM, but argument one IOBuffer(ps_string) ? On Sunday, 13 March 2016 09:52:52 UTC+10, J Luis wrote: > > Hi, > > I need to reproduce a similar behavior of this on command line. > > cat barco.eps | gswin64c -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=bbox - > %%BoundingBox: 0 0 71 64 >

[julia-users] Re: Help with pipes

2016-03-12 Thread J Luis
Thanks but doesn't work either a = IOBuffer(); print(a, P.ps); julia> run(pipeline(a, `gswin64c -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=bbox -`)) ERROR: MethodError: `uvtype` has no method matching uvtype(::Base. AbstractIOBuffer{Array{UInt8,1}}) in _jl_spawn at process.jl:253 domingo, 13 de

[julia-users] Help with pipes

2016-03-12 Thread J Luis
Hi, I need to reproduce a similar behavior of this on command line. cat barco.eps | gswin64c -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=bbox - %%BoundingBox: 0 0 71 64 %%HiResBoundingBox: 0.00 0.00 70.865998 63.305998 What it does is to send the contents of a PostScript file (ascii file)

[julia-users] Re: what name would you give to the functional 'complement' of trunc()?

2016-03-12 Thread Dan
trunc_to_inf and add an alias trunc_to_zero for regular trunc ?? On Saturday, March 12, 2016 at 1:49:41 PM UTC+2, Jeffrey Sarnoff wrote: > > x = trunc(fp) yields fp rounded towards zero to the closest integer valued > float. > What name would you give to the complementary function, rounding away

[julia-users] Re: what name would you give to the functional 'complement' of trunc()?

2016-03-12 Thread Tomas Lycken
I think stretch was a pretty good suggestion, actually. trunc as in “truncate” makes sense for taking 3.14 -> 3 and -2.718 -> -2; you quite literally truncate the decimal representation of the number by chopping off the decimals. I could imagine the opposite, 3.14 -> 4 and -2.718 -> -3, as

Re: [julia-users] Re: Mmap allocation question

2016-03-12 Thread Tom Short
Is that code in a function? (It should be.) Also, one of your variable names changed to `counter1s`. Suspect a type instability. On Mar 12, 2016 4:12 AM, "Tim Loderhose" wrote: > I tried around with that a bit, but then it gets much worse: From ~1s to > ~6s, allocation as

Re: [julia-users] Re: Mmap allocation question

2016-03-12 Thread Dan
It's better to have code which actually runs in the post. In any case, the allocations at the `for` lines is suspicious - the for should basically only allocate a counter. Are there any global variables? Is `counter1` or `counter2` or `dims` global? Globals are always a good source of confusion

Re: [julia-users] Re: Mmap allocation question

2016-03-12 Thread Tim Loderhose
Cool, Ill try that out later! I was wondering about that, but obviously I wasn't able to default dims::Array{Int64,1} = 0. How do I make sure it returns a definite type? I know that it should always be an Array{UInt64,1}. I added the code of mdhcounters to the gist. Thanks for the input! On

[julia-users] Re: what name would you give to the functional 'complement' of trunc()?

2016-03-12 Thread Jeffrey Sarnoff
thank you On Saturday, March 12, 2016 at 8:15:38 AM UTC-5, Tomas Lycken wrote: > > I think stretch was a pretty good suggestion, actually. > > trunc as in “truncate” makes sense for taking 3.14 -> 3 and -2.718 -> -2; > you quite literally truncate the decimal representation of the number by >

Re: [julia-users] Re: Mmap allocation question

2016-03-12 Thread Dan
Yep, `peCounters`, `paCounters` and `dims` are not type-stable. They are one type by their default values and then assigned another. Perhaps rename the default parameters, and copy them to `peCounters`, `paCounters` and `dims` only if they are set to something other than `0`. Also,

Re: [julia-users] Status of Graphs.jl ?

2016-03-12 Thread Mridul Seth
Hi James, I started a conversation regarding the same on the gitter channel https://gitter.im/JuliaGraphs/LightGraphs.jl with Seth Bromberger Thanks :) Mridul On Saturday, 12 March 2016 06:51:24 UTC+5:30, James Fairbanks wrote: > > Hi Mridul, > > JuliaGraphs is a Github organization for

[julia-users] Re: Mmap allocation question

2016-03-12 Thread Tim Loderhose
I tried around with that a bit, but then it gets much worse: From ~1s to ~6s, allocation as shown: 153710487 mat = Array{Complex64}(dims...) 4722450 file = Mmap.mmap(filename, Array{Complex64,2}, (dims[2],length(counter1))) 9568 for i = 1:dims[2] 4000

[julia-users] what name would you give to the functional 'complement' of trunc()?

2016-03-12 Thread Jeffrey Sarnoff
x = trunc(fp) yields fp rounded towards zero to the closest integer valued float. What name would you give to the complementary function, rounding away from zero to the closest integer valued float? stretch(fp) = signbit(fp) ? floor(fp) : ceil(fp) # abs(trunc(fp) - stretch(fp)) is 0.0 when

Re: [julia-users] Re: Status of Plots.jl?

2016-03-12 Thread jonathan . bieler
GR seems pretty good, can it uses Gtk to display plots ?

[julia-users] Error with PyPlot

2016-03-12 Thread Xavier Gandibleux
Dear all, I encounter a problem only under ubuntu (it is fine under OSX) with PyPlot. I extracted some commands hereafter to reproduce the error. nb: 1) the Python Matplotlib library is installed and works fine (tested). 2) Pkg.add("PyPlot") is imported and ready (as reported hereafter). When I

Re: [julia-users] Error with PyPlot

2016-03-12 Thread Tom Breloff
I think you have an outdated package. Color.jl is deprecated in favor of Colors.jl. Try Pkg.update() On Friday, March 11, 2016, Xavier Gandibleux < xavier.gandibl...@univ-nantes.fr> wrote: > Dear all, > > I encounter a problem only under ubuntu (it is fine under OSX) with PyPlot. > I extracted

[julia-users] GSoC Matrix and Fast Bignums

2016-03-12 Thread Juan Lopez
Hello everyone, I am looking into GSoC this year and I really like your Matrix functions and Fast Bignums projects. My background is in computer science, I'm in my 3rd year in Universitat Politècnica de Catalunya and I've worked with MATLAB and Octave before. I have also taken several

[julia-users] Re: GSoC Matrix and Fast Bignums

2016-03-12 Thread Jeffrey Sarnoff
Hello Juan, I have some experience with Julia's BigNums and have experimented with faster fixed precision (128 bits) floating point type implementations (and don't know about Julia's Matrix work, and am not involved with GSoC). For a small first place, I suggest something that will increase

Re: [julia-users] My test is not failing properly

2016-03-12 Thread Milan Bouchet-Valat
Le samedi 12 mars 2016 à 12:30 -0800, Douglas Bates a écrit : > I have been adding more tests to the MixedModels package and > encountered a peculiar situation where, AFAICS, a test should produce > one type of failure and it doesn't.  It fails at a later point but I > can't see how it gets there.

[julia-users] My test is not failing properly

2016-03-12 Thread Douglas Bates
I have been adding more tests to the MixedModels package and encountered a peculiar situation where, AFAICS, a test should produce one type of failure and it doesn't. It fails at a later point but I can't see how it gets there. To reproduce, check out a copy of the MixedModels master branch.

[julia-users] Re: error while loading shared libraries: libjulia.so

2016-03-12 Thread Jeffrey Sarnoff
Try using a prebuilt installation for your operating system: http://julialang.org/downloads/ On Wednesday, March 9, 2016 at 7:38:34 PM UTC-5, Manu Jain wrote: > > My julia code compile successfully. But when I try to run the excecutable > it shows - "error while loading shared libraries: