Re: [julia-users] IBM Power port

2016-08-18 Thread Viral Shah
I have uploaded Julia-0.5 on Power8 binaries here. These are built with the latest openblas (that passes all julia tests) and hence there is no need to use ATLAS. https://drive.google.com/open?id=0B0rXlkvSbIfhVWpZb2hqclBIVms Would be great if people can try this out. -viral > On Aug 19,

Re: [julia-users] IBM Power port

2016-08-18 Thread Viral Shah
I am getting successful builds on the OSU Power8 machine. Once openblas has a new release, I suspect we can provide pre-packaged power8 binaries. I am building on CentOS 7 and this is what lscpu says: Architecture: ppc64le Byte Order:Little Endian CPU(s):

Re: [julia-users] IBM Power port

2016-08-18 Thread Viral Shah
It is hard to say what is happening there. Trying it out. OpenBLAS develop branch is now passing on Power and hence Atlas should no longer be required. Note that you need the latest (3.10.4?) ATLAS, but in any case, this should not affect the build. -viral > On Aug 18, 2016, at 7:03 PM,

[julia-users] Changing juliabox font size on iOS

2016-08-18 Thread David Gleich
Hey all, I'd like to use Juliabox to do some real-time demos from an iPad Pro running over the HDMI connection. One the issues is that the font size in juliabox is too small in the context. The zooming on the iPad scales things like a picture, but doesn't reflow the layout in light of the

Re: [julia-users] Julia 0.5.0-rc2 allocates 6x as much as and runs 4x slower than Julia 0.4.6

2016-08-18 Thread Jeff Bezanson
Hi Evan, A minimal reproducing example isn't necessary; it's great to have any example, and yours is pretty minimal already. It's always worth opening an issue for these things. The one critical bit I'd like is to know exactly what you ran so I can just copy and paste something and see the

[julia-users] Julia 0.5.0-rc2 allocates 6x as much as and runs 4x slower than Julia 0.4.6

2016-08-18 Thread Evan Fields
Unfortunately I haven't been able to find a minimal reproducing example, so first the relevant snippet then the whole function. I have some code which contains the following inner loop: for after in 1:(length(path) - 1) # can't insert after end of path counter += 1 c = inscost(k, after) if c <

Re: [julia-users] Re: Problem with ZMQ and Ijulia

2016-08-18 Thread Tracy Wadleigh
Just got bit by this myself. It should be fixed with the next RC. See https://github.com/JuliaLang/ZMQ.jl/issues/114 On Thu, Aug 18, 2016 at 10:13 AM Ján Adamčák wrote: > julia> versioninfo() > Julia Version 0.5.0-rc2+0 > Commit 0350e57 (2016-08-12 11:25 UTC) > Platform

[julia-users] Re: Broken PyPlot... need to revert to a previous version asap.

2016-08-18 Thread Patrick Kofod Mogensen
At Github :) https://github.com/stevengj/PyCall.jl/issues/new for PyCall or https://github.com/stevengj/PyPlot.jl/issues/new for PyPlot On Thursday, August 18, 2016 at 9:42:49 PM UTC+2, Ferran Mazzanti wrote: > > Yes of course... how do I do that? > Thanks, > Ferran. > > On Thursday, August

Re: [julia-users] Re: IJulia kernel dies repeatedly with 0.5.0-rc2

2016-08-18 Thread Tracy Wadleigh
Just saw the (closed) issue on ZMQ.jl, that it should be fixed in the next RC. On Thu, Aug 18, 2016 at 12:54 PM Tracy Wadleigh wrote: > I'm having the same issue with the build of ZMQ. I ran the deps/build.jl > script directly and got a slightly more informative

Re: [julia-users] Re: IJulia kernel dies repeatedly with 0.5.0-rc2

2016-08-18 Thread Tracy Wadleigh
I'm having the same issue with the build of ZMQ. I ran the deps/build.jl script directly and got a slightly more informative stacktrace: ERROR: LoadError: Provider BinDeps.PackageManager failed to satisfy dependency zmq in satisfy!(::BinDeps.LibraryDependency, ::Array{DataType,1}) at

[julia-users] Re: Broken PyPlot... need to revert to a previous version asap.

2016-08-18 Thread Ferran Mazzanti
Yes of course... how do I do that? Thanks, Ferran. On Thursday, August 18, 2016 at 8:29:08 PM UTC+2, Steven G. Johnson wrote: > > Please file an issue if the latest version of PyCall (or PyPlot) is > failing for you. >

[julia-users] I can print in colors using print_with_color(:red,"Hello\n"); in Julia Console, but it does not work in Atom Console.

2016-08-18 Thread Arantes
I can print in colors using print_with_color(:red,"Hello\n") in REPL Julia Console, but this doesn´t work in Atom Console. How can I fix it on Atom/Juno? Thanks, D. S. Arantes

[julia-users] Re: IBM Power port

2016-08-18 Thread Geert Janssen
Dear Viral, I am building Julie release-0.5 on a Power8E Ubuntu 14.10 machine. I use the following Make.user after having had trouble compiling OpenBLAS that was pulled in: created Make.user: override USE_SYSTEM_BLAS = 1 override USE_BLAS64 = 0 override LIBBLAS = -L/opt/atlas/lib -ltatlas

[julia-users] Re: Why can Symbol work as a type parameter?

2016-08-18 Thread Steven G. Johnson
As explained in the manual (http://docs.julialang.org/en/latest/manual/types/), type parameters can be types, symbols, bitstypes, or tuples thereof.

[julia-users] Re: Wrapping an array from C

2016-08-18 Thread Steven G. Johnson
On Wednesday, August 17, 2016 at 4:51:43 PM UTC-4, Kiran Pamnany wrote: > > No, I mean when I am passed a type as a function parameter, is there a way > to check if it has been declared as an immutable type? > There doesn't seem to be a built-in function for this (the isimmutable function

[julia-users] Re: Broken PyPlot... need to revert to a previous version asap.

2016-08-18 Thread Steven G. Johnson
Please file an issue if the latest version of PyCall (or PyPlot) is failing for you.

Re: [julia-users] Re: When can the broadcast dot (in 0.5) be used?

2016-08-18 Thread Michael Krabbe Borregaard
That's wonderful news, thanks a lot for this. I know .() is just syntactic sugar, but to me it really feels intuitive and powerful. Thanks again, Michael On Thu, Aug 18, 2016 at 8:27 PM, Steven G. Johnson wrote: > (If you want dot calls to work with your own container

Re: [julia-users] Re: When can the broadcast dot (in 0.5) be used?

2016-08-18 Thread Steven G. Johnson
(If you want dot calls to work with your own container type, then you just need to make broadcast(...) work. e.g. here is some discussion for ApproxFun: https://github.com/ApproxFun/ApproxFun.jl/issues/356)

Re: [julia-users] Re: When can the broadcast dot (in 0.5) be used?

2016-08-18 Thread Steven G. Johnson
On Thursday, August 18, 2016 at 2:22:13 PM UTC-4, Michael Borregaard wrote: > > It'd be nice with a list of the methods a user-defined type would need to > define to be amenable to .() in an Array. > In 0.6, once #16966 is ironed out, then you won't have to anything (as long as you want your

Re: [julia-users] Re: When can the broadcast dot (in 0.5) be used?

2016-08-18 Thread Michael Krabbe Borregaard
It'd be nice with a list of the methods a user-defined type would need to define to be amenable to .() in an Array. On Thu, Aug 18, 2016 at 8:16 PM, Michael Krabbe Borregaard < mkborrega...@gmail.com> wrote: > Thanks! Right now it makes a difference for my understanding just to know > that this

Re: [julia-users] Re: When can the broadcast dot (in 0.5) be used?

2016-08-18 Thread Michael Krabbe Borregaard
Thanks! Right now it makes a difference for my understanding just to know that this is an issue with String, and that .() will otherwise behave like map.

Re: [julia-users] Re: When can the broadcast dot (in 0.5) be used?

2016-08-18 Thread Gabriel Gellner
On Thursday, August 18, 2016 at 10:52:42 AM UTC-7, Michael Borregaard wrote: > > That sounds right. I wonder if this is not a bug? > >From my reading of the all the related issues, it is a known "issue" ;) It looks like a good solution is being ironed out. But I don't think this will be added

Re: [julia-users] Re: When can the broadcast dot (in 0.5) be used?

2016-08-18 Thread Michael Krabbe Borregaard
That sounds right. I wonder if this is not a bug?

[julia-users] Re: When can the broadcast dot (in 0.5) be used?

2016-08-18 Thread Gabriel Gellner
My understanding (which can easily be wrong!) is that this stems from https://github.com/JuliaLang/julia/issues/16966. Namely that size("b") throws a method error, whereas your size(2) gives a null tuple (). So in general broadcast (which is what the .() is sugar for) requires that the element

Re: [julia-users] Re: Problem with ZMQ and Ijulia

2016-08-18 Thread Ján Adamčák
julia> versioninfo() Julia Version 0.5.0-rc2+0 Commit 0350e57 (2016-08-12 11:25 UTC) Platform Info: System: NT (x86_64-w64-mingw32) CPU: Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell) LAPACK: libopenblas64_ LIBM:

[julia-users] Re: Broken PyPlot... need to revert to a previous version asap.

2016-08-18 Thread Ferran Mazzanti
Hi again, thanks all of you for the replies. And specially to Bart, who gave me the precise information. I just did: Pkg.pin("PyCall",v"1.4.0") Pkg.pin("PyPlot",v"2.1.1") Pkg.build("PyPlot") and from there using PyPlot did the trick :) Cheers, Ferran.

[julia-users] Why can Symbol work as a type parameter?

2016-08-18 Thread yousef . k . alhammad
Greetings everyone, So we all know that Symbol is not a bits type. And AFAIK only bits types can be used as type parameter. However, I can still use Symbol as a type parameter in type signatures. Is there a special property of Symbol that allows it to do so? Or is there something I'm missing

[julia-users] Re: When can the broadcast dot (in 0.5) be used?

2016-08-18 Thread Michael Borregaard
Please ignore the erroneous first " in the last code line.

[julia-users] When can the broadcast dot (in 0.5) be used?

2016-08-18 Thread Michael Borregaard
I have a hard time figuring out what functions and types accept the broadcast dot in 0.5. E.g., is(1, 2)# false is.([1, 2], 2) # Bool[false, true] is("a", "b")#false is.("["a","b"], "b")#MethodError: no method matching size(::String) Can anyone give me

Re: [julia-users] Broken PyPlot... need to revert to a previous version asap.

2016-08-18 Thread Bart Janssens
On Thu, Aug 18, 2016 at 10:47 AM Ferran Mazzanti wrote: > Dear all, > > looks like lots of messing around with versions had rendered PyPlot > unusable in 0.4.6 under OSX (at least). > Now I need to do some work that requires its use so I need to have it up > and

Re: [julia-users] How to Manipulate each character in of a string using a for loop in Julia ?

2016-08-18 Thread Páll Haraldsson
On Wednesday, August 17, 2016 at 5:52:47 PM UTC, Rishabh Raghunath wrote: > > I am a beginner in Julia and I am more familiar with the C language.. > > I am actually learning Julia for use in a programming contest and love the > experience so far.. > There are often questions that require you

Re: [julia-users] How to Manipulate each character in of a string using a for loop in Julia ?

2016-08-18 Thread Steven G. Johnson
There are also the nextind and prevind functions for explicit index arithmetic on strings.

Re: [julia-users] How to Manipulate each character in of a string using a for loop in Julia ?

2016-08-18 Thread Steven G. Johnson
On Wednesday, August 17, 2016 at 3:45:44 PM UTC-4, jonatha...@alumni.epfl.ch wrote: > > Last time I checked there was still some functions in Base like findlast that > had such issue. > > Thanks, I filed https://github.com/JuliaLang/julia/issues/18109 (In general, please feel free to file

Re: [julia-users] How to Manipulate each character in of a string using a for loop in Julia ?

2016-08-18 Thread Steven G. Johnson
(You can also do "for c in s" to iterate over the characters; you rarely need to call start/next/done manually.)

Re: [julia-users] What is the equivalent of " return 0; " used in C in Julia during successful completion of program ?

2016-08-18 Thread Tamas Papp
While I am not sure I understand your question, the way you handle exceptions and exit status depends on what you want to do; and this is mostly independent of whether you are using Julia or some other language. In a mature script intended for non-expert users, it would be bad form to show

Re: [julia-users] What is the equivalent of " return 0; " used in C in Julia during successful completion of program ?

2016-08-18 Thread Páll Haraldsson
On Monday, August 15, 2016 at 6:24:02 AM UTC, Tamas Papp wrote: > > You can use exit(0), but the exit code is implicitly 0 anyway when your > Julia script runs without errors. See > http://docs.julialang.org/en/release-0.4/stdlib/base/ Yes, I did check, the default is 1 on exception/error

[julia-users] Re: Broken PyPlot... need to revert to a previous version asap.

2016-08-18 Thread Avik Sengupta
Pkg.pin(packageName, version) should force a package at a particular version. Unfortunately, depending on how package dependencies have been set up, older versions of the package might still be happy to work with newer versions of the dependencies, and that might trigger the bug you are

[julia-users] Re: Broken PyPlot... need to revert to a previous version asap.

2016-08-18 Thread Andreas Lobinger
Hello colleague, On Thursday, August 18, 2016 at 10:47:27 AM UTC+2, Ferran Mazzanti wrote: > > Dear all, > > looks like lots of messing around with versions had rendered PyPlot > unusable in 0.4.6 under OSX (at least). > Now I need to do some work that requires its use so I need to have it up >

[julia-users] Broken PyPlot... need to revert to a previous version asap.

2016-08-18 Thread Ferran Mazzanti
Dear all, looks like lots of messing around with versions had rendered PyPlot unusable in 0.4.6 under OSX (at least). Now I need to do some work that requires its use so I need to have it up and working. Could anybody please let me know if it is possible to revert to a previous working version,