Re: [julia-users] Using ImageView leads to libgobject error

2016-04-09 Thread Colin Beckingham
Thanks. Tk is loaded, not Gtk. Resolved the error in Winston with a Pkg.checkout and build. I did a Pkg.status("Tk") and this responds without error, version Tk 0.3.7 Also did status on Winston, ImageView, Images, Cairo and all respond without error. But still the error, and view() is not

Re: [julia-users] Access to gmp from library?

2016-04-09 Thread Tony Kelman
You called? Also note that libgmp.dll will be in JULIA_HOME on Windows.

[julia-users] Re: Deprecation of `require` and parallel code execution.

2016-04-09 Thread Eduardo Lenz
Hi. Yes, exactly the same with pmap() Silly example: addprocs(3) @everywhere Test(i) println(myid()) end i=1:1000; pmap(Test,i) if you do not use @everywhere, it will not work. On Saturday, April 9, 2016 at 5:14:05 PM UTC-3, Jhan Jar wrote: > > Would it also work for pmap()? I don't

Re: [julia-users] Using ImageView leads to libgobject error

2016-04-09 Thread Tim Holy
Try "using Winston" and then whos(); see if Gtk is loaded (or if it's Tk). --Tim On Saturday, April 09, 2016 11:34:43 AM Colin Beckingham wrote: > I tried Pkg.rm("PyPlot") which put PyPlot in the additional packages group, > but the error persists. If there is something else I should do, by all

[julia-users] Re: Deprecation of `require` and parallel code execution.

2016-04-09 Thread 'Jhan Jar' via julia-users
Would it also work for pmap()? I don't have any @parallel loops. On Sunday, April 10, 2016 at 12:39:25 AM UTC+5, Eduardo Lenz wrote: > > Hi. > > Use include("file.jl") and add @everywhere in front of the definition of > every function to be used inside the @parallel loop. > > []´s > > On

[julia-users] Re: Deprecation of `require` and parallel code execution.

2016-04-09 Thread Eduardo Lenz
Hi. Use include("file.jl") and add @everywhere in front of the definition of every function to be used inside the @parallel loop. []´s On Saturday, April 9, 2016 at 12:02:02 PM UTC-3, Jhan Jar wrote: > > Hi, > > In Julia 0.3.5, the following loaded the data and code/functions on all >

[julia-users] Re: JuliaCon 2016: Keynote speakers

2016-04-09 Thread Eric Davies
Holy s**t! I'm very excited! On Friday, 8 April 2016 20:43:09 UTC-5, Andreas Noack wrote: > > JuliaCon 2016 > June 21 - 25, 2016 > Massachusetts Institute of Technology, Cambridge, Massachusetts, USA. > http://juliacon.org/ > > On behalf of the JuliaCon 2016 committee, I am happy to announce the

Re: [julia-users] Using ImageView leads to libgobject error

2016-04-09 Thread Colin Beckingham
I tried Pkg.rm("PyPlot") which put PyPlot in the additional packages group, but the error persists. If there is something else I should do, by all means give a hint. I thought I found an older note which referred to ImageView and Gtk, which is why I mentioned it. Running through the require

Re: [julia-users] Using ImageView leads to libgobject error

2016-04-09 Thread Tim Holy
Not sure what's happening. Is it possible there's a conflict with PyPlot? When I grep the source of ImageView, I don't find any mention of gtk. --Tim On Saturday, April 09, 2016 10:06:52 AM Colin Beckingham wrote: > Pkg.status() > 31 required packages: > - BinDeps 0.3.21+

[julia-users] [ANN] VulkanCore

2016-04-09 Thread Simon Danisch
Valentin and I are proud to announce a Julia wrapper for the Vulkan API : VulkanCore.jl Vulkan can be called the successor of OpenGL, but it's a lot closer to the hardware, which is why

Re: [julia-users] Using ImageView leads to libgobject error

2016-04-09 Thread Colin Beckingham
Pkg.status() 31 required packages: - BinDeps 0.3.21+master - Cairo 0.2.31 - Clustering0.5.0 - ColorTypes0.2.2 - DSP 0.0.11 - DataArrays0.2.20 -

Re: [julia-users] Using ImageView leads to libgobject error

2016-04-09 Thread Tim Holy
I can't replicate this, whether with the tagged version of ImageView (Pkg.free("ImageView")) nor with master. What does Pkg.status() say? --Tim On Saturday, April 09, 2016 07:49:44 AM Colin Beckingham wrote: > Using openSUSE Leap 42.1 > I can add the package ImageView and even checkout the

Re: [julia-users] Fast multiprecision integers?

2016-04-09 Thread Laurent Bartholdi
Thanks! Performance, however, would drop too much (Julia will not fit FastInts into registers), and memory is more an issue than time. On Saturday, 9 April 2016 17:49:07 UTC+2, Erik Schnetter wrote: > > Laurent > > You can use a construct such as > > ```Julia > immutable FastInt >

Re: [julia-users] Access to gmp from library?

2016-04-09 Thread Laurent Bartholdi
Thanks! In fact, I see now that the latest github version already does this. (And my email to the list was triggered by a discussion with the Nemo people.) Issue closed. On Saturday, 9 April 2016 18:16:18 UTC+2, Isaiah wrote: > > 1) It seems that Julia includes libgmp.{so,dylib} but not gmp.h,

Re: [julia-users] Access to gmp from library?

2016-04-09 Thread Isaiah Norton
> > 1) It seems that Julia includes libgmp.{so,dylib} but not gmp.h, which is > necessary for the C library's compilation There was some prior discussion about this, for a similar reason [1], but I think they eventually decided to use MPIR. I don't know of a reason this shouldn't be done, and

Re: [julia-users] Fast multiprecision integers?

2016-04-09 Thread Erik Schnetter
Laurent You can use a construct such as ```Julia immutable FastInt isbig::Bool small::Int big::BigInt FastInt(x::Int) = new(false, x) FastInt(x::BigInt) = new(true, 0, x) end getbig(x::FastInt) = x.isbig ? x.big : BigInt(x.small) function add(x::FastInt, y::FastInt) if

Re: [julia-users] Re: custom ctags for Julia

2016-04-09 Thread El suisse
Cool!!!, thanks for sharing your experience :D 2016-04-09 3:02 GMT-03:00 Christof Stocker : > To be blunt I never really bothered to investigate the "right way" to use > ctags. I simply looked for a way that works for my use case. That being > said, I can tell you how

[julia-users] Deprecation of `require` and parallel code execution.

2016-04-09 Thread 'Jhan Jar' via julia-users
Hi, In Julia 0.3.5, the following loaded the data and code/functions on all workers: addprocs(3) require("data_loading_script.jl") require("functions.jl") Now, Julia 0.4.5 warns about deprecation of require and suggests switching to 'using' or 'import'. What is the equivalent in Julia 0.4.5

[julia-users] Using ImageView leads to libgobject error

2016-04-09 Thread Colin Beckingham
Using openSUSE Leap 42.1 I can add the package ImageView and even checkout the latest master and build. Then on "using ImageView" the error UndefVarError: _jl_libgobject not defined pops out. I guess this has something to do with my graphic backend, but not sure what the next step is. I have

Re: [julia-users] Fast multiprecision integers?

2016-04-09 Thread Yichao Yu
On Sat, Apr 9, 2016 at 8:07 AM, Laurent Bartholdi wrote: > Thanks for the explanations. Am I correct in understanding that objects are > garbage-collected when they're only pointed to, and this causes the problem? > This kills my naive idea of using pointers to

[julia-users] Access to gmp from library?

2016-04-09 Thread Laurent Bartholdi
Dear all, My package contains a C library that requires gmp. It would be very nice to be able to use Julia's gmp, so as not to install a duplicate copy of gmp as by package's library's dependency. However, 1) It seems that Julia includes libgmp.{so,dylib} but not gmp.h, which is necessary for

Re: [julia-users] Fast multiprecision integers?

2016-04-09 Thread Laurent Bartholdi
Thanks for the explanations. Am I correct in understanding that objects are garbage-collected when they're only pointed to, and this causes the problem? This kills my naive idea of using pointers to BigInts as a 64-bit datatype compatible with ints, and is suggested by the following experiment:

Re: [julia-users] Maximum variable name length

2016-04-09 Thread Mauro
524247 julia> s= symbol(randstring(524247)); julia> s= symbol(randstring(524248)); ERROR: ArgumentError: Symbol length exceeds maximum length in symbol(::ASCIIString) at ./expr.jl:8 in eval(::Module, ::Any) at ./boot.jl:243 On Sat, 2016-04-09 at 10:52, nael...@ic.ufal.br wrote: > Hello, > >

[julia-users] Maximum variable name length

2016-04-09 Thread naelson
Hello, Is there a maximum length for variable names in Julia? I searched for that in the docummentation and here in the group, but I didn't find an answer. Thanks

Re: [julia-users] Opinion on Plots.jl -- exclamation marks

2016-04-09 Thread Patrick Kofod Mogensen
+1 for ! On Saturday, April 9, 2016 at 8:09:23 AM UTC+2, Christof Stocker wrote: > > I also prefer the ! so I know it modifies an existing plot. If I don't use > a ! then I expect to create a new one > > On 2016-04-09 02:52, Daniel Carrera wrote: > > Ok. Thanks for the explanation. > > Cheers,

Re: [julia-users] Is there a way to convert function name to a string?

2016-04-09 Thread K leo
Thanks. I have an array for functions like funcArray=[FuncA, FuncB, FuncC], and as I run them through a loop, I want to be able to tell which function is running. So perhaps just simply string(FuncA) would serve my need. On Saturday, April 9, 2016 at 12:01:34 PM UTC+5:30, Tamas Papp wrote: >

Re: [julia-users] Is there a way to convert function name to a string?

2016-04-09 Thread Tamas Papp
julia> functionname(f)=string(f.env.name) functionname (generic function with 1 method) julia> foo(x)=1 foo (generic function with 1 method) julia> functionname(foo) "foo" But be aware that this may change and is unlikely to be a good solution unless you really, really know what you are doing.

Re: [julia-users] Opinion on Plots.jl -- exclamation marks

2016-04-09 Thread Christof Stocker
I also prefer the ! so I know it modifies an existing plot. If I don't use a ! then I expect to create a new one On 2016-04-09 02:52, Daniel Carrera wrote: Ok. Thanks for the explanation. Cheers, Daniel. On 9 April 2016 at 02:30, Tom Breloff >

Re: [julia-users] Re: custom ctags for Julia

2016-04-09 Thread Christof Stocker
To be blunt I never really bothered to investigate the "right way" to use ctags. I simply looked for a way that works for my use case. That being said, I can tell you how I use ctags. Some page somewhere (I found it again, see the end of my post) suggested to use the .git directory of a