Re: [julia-users] High memory consumption with loops

2016-08-25 Thread vavasis
I don't have any suggestions about the performance, but I do have a code correctness suggestion. It appears from your code snippet that you are using dictionaries called "effectiveness" and "resource_fines", and that the keys to these dictionaries are a mutable type. This can lead to subtle

Re: [julia-users] Is the master algorithm on the roadmap?

2016-08-25 Thread Kevin Liu
Tim Holy, I am watching your keynote speech at JuliaCon 2016 where you mention the best optimization is not doing the computation at all. Domingos talks about that in his book, where an efficient kind of learning is by analogy, with no model at all, and how numerous scientific discoveries

Re: [julia-users] Differential Equations Package

2016-08-25 Thread Chris Rackauckas
This has already been done. As of last night we have JuliaDiffEq where we have moved Sundials and ODE. DifferentialEquations will follow soon, and I am talking with the owner of ODEInterface to see if that should go there as well (and if it should be expanded).

Re: [julia-users] Differential Equations Package

2016-08-25 Thread Christoph Ortner
A separate organisation would be really welcome especially if it means coordination of efforts on the development of DE-related work.

[julia-users] local "_" declared twice

2016-08-25 Thread Christoph Ortner
Is this intended behaviour or a bug? julia> maximum( t for (t,_,_) in zip(x,y,z) ) ERROR: syntax: local "_" declared twice julia> x = rand(3); y = rand(3); z = rand(3); julia> for (t, _, _) in zip(x, y, z) println(t) end 0.5059694701992228 0.6291609082858327

[julia-users] TK dependency woes

2016-08-25 Thread Lewis Levin
It is a bit beyond me to debug what follows. My Python build works fine. PyPlot within Julia works fine. I suspect the problem is with the ImageView package. objc[34842]: Class TKApplication is implemented in both /Library/Frameworks/Tk.framework/Versions/8.5/Tk and /usr/lib/libtk.dylib.

Re: [julia-users] Invalid history file (~/.julia_history) format

2016-08-25 Thread Andy Dobson
Ah, OK. Seems odd. On Thursday, August 25, 2016 at 3:37:37 PM UTC+1, Kristoffer Carlsson wrote: > > On my work laptop and the school computers Julia always likes to put its > stuff in Z: which is the network drive. It means that students that try to > use Julia get really bad package

[julia-users] Re: another new 2D plotting library for Julia

2016-08-25 Thread Igor
Thanks Henri! I will install julia 0.5 rc3 and use it for my internal testing. Before I worked on version 4 >

[julia-users] Re: ArrayFire.jl - GPU Programming in Julia

2016-08-25 Thread Deniz Yuret
Thanks for this great package Ranjan. I'd like to contribute to the development -- in particular integration with CUDNN, CUSPARSE, etc. under the JuliaGPU ecosystem, if others have not started doing so already. With CUDNN, for example, I wrapped the low level library code to use CudaArrays,

Re: [julia-users] Invalid history file (~/.julia_history) format

2016-08-25 Thread Andy Dobson
It's "M:" and "\\" I don't know why that would be the case - this is an old network drive that I never use. (I also didn't know how to look that up!) On Thursday, August 25, 2016 at 1:58:34 PM UTC+1, Tony Kelman wrote: > > Looks like this is resolved now, but just for completeness, what are

Re: [julia-users] Invalid history file (~/.julia_history) format

2016-08-25 Thread Kristoffer Carlsson
On my work laptop and the school computers Julia always likes to put its stuff in Z: which is the network drive. It means that students that try to use Julia get really bad package experience because it is super slow to run Pkg stuff on the network drive.

Re: [julia-users] Invalid history file (~/.julia_history) format

2016-08-25 Thread Kristoffer Carlsson
I already made a PR for it. Sorry for stealing it.

Re: [julia-users] Invalid history file (~/.julia_history) format

2016-08-25 Thread Stefan Karpinski
I opened an issue to include the path of the .julia_history file in this error: https://github.com/JuliaLang/julia/issues/18223. If anyone is looking for a pretty easy way to get started contributing to Julia (make a PR, get feedback, etc.) this is a nice easy intro issue :) On Thu, Aug 25, 2016

Re: [julia-users] Re: Tab completion for sub-modules names

2016-08-25 Thread Stefan Karpinski
That's right. This has nothing to do with Fruit being a submodule and everything about it being a binding in Food that's not exported and therefore not part of Food's externally facing interface. On Thu, Aug 25, 2016 at 3:03 AM, Yichao Yu wrote: > > > On Thu, Aug 25, 2016 at

[julia-users] Re: another new 2D plotting library for Julia

2016-08-25 Thread Henri Girard
and the last one QTSMain::runQT() start [/home/pi/julia/usr/bin/] WARNING: bytestring(p::Union{Ptr{Int8},Ptr{UInt8}}) is deprecated, use unsafe_string(p) instead. Le jeudi 25 août 2016 12:01:30 UTC+2, Igor a écrit : > > Hello! > I made another 2D plotting library for Julia. Please try to test

Re: [julia-users] Performant methods for enclosing parameters?

2016-08-25 Thread Yichao Yu
On Thu, Aug 25, 2016 at 5:19 PM, Chris Rackauckas wrote: > Oh it's that same issue? Thanks for pointing it out. That means every one > of my performance problems are due to the same issue... that's both a good > thing and a bad thing I guess. So would your suggestion just be

[julia-users] Re: another new 2D plotting library for Julia

2016-08-25 Thread Henri Girard
You got it perfect :) Workd like a charm ... Just some deprecating warning... (I use julia 0.5 rc3 console for testing and ijulia for better reading ) I change @unix with @static is_unix() Base.ASCIIString is deprecated, use String instead (I haven't found it yet) Thanks a lot for sharing :)

[julia-users] Re: another new 2D plotting library for Julia

2016-08-25 Thread Igor
Henry, I'll try to add this. Best regards, Igor четверг, 25 августа 2016 г., 14:04:28 UTC+3 пользователь Henri Girard написал: > > Hi, > I tried compiling it on ubuntu xenial 16.04, following your description, > it works fine. I would like to have it being able to install in >

[julia-users] Re: Avoiding duplicate code when defining concrete subtypes of an abstract type

2016-08-25 Thread Ralph Smith
If you don't need the flexible interrelations provided by J. Sarnoff's approach, you might use metaprogramming like this: abstract Cash function _validate(p::Cash) p.b >= 100 && throw(ArgumentError("Too much...")) (p.b < 0 || p.a < 0) && throw(ArgumentError("Cannot have negative

Re: [julia-users] Invalid history file (~/.julia_history) format

2016-08-25 Thread Tony Kelman
Looks like this is resolved now, but just for completeness, what are ENV["HOMEDRIVE"] and ENV["HOMEPATH"] on your system? On Thursday, August 25, 2016 at 4:17:59 AM UTC-7, Andy Dobson wrote: > > Ah - no - I've got it! Now it works! Thank you all very much, especially > Kristoffer! > > > > On

Re: [julia-users] Proposed solution for writing Enums

2016-08-25 Thread Stefan Karpinski
They're still fairly informal: - https://github.com/JuliaLang/julia/issues/12139 - https://github.com/JuliaLang/julia/issues/14052 - https://github.com/JuliaLang/julia/issues/16878 - https://github.com/JuliaLang/julia/issues/17115 Basically an extended issue proposing a design to

Re: [julia-users] Recursive/Circular parametric types

2016-08-25 Thread Tim Holy
That seems likely to work, though obviously some operations will not be inferrable. You might be just as happy with type PhylogenyNode kind::Symbol # :clade, etc. from::PhyologenyEdge to::Vector{PhylogenyEdge} confidence::Float64 end type PhylogenyEdge kind::Symbol #

[julia-users] Re: another new 2D plotting library for Julia

2016-08-25 Thread Henri Girard
Only figure 5and 6 are working correctly, other windows show only graphic coordonnees Regards Henri julia> using qwtwplot julia> qwtwStart() # start 'qwtwc' library julia> # draw thin blue 'sinus': tMax = 10. 10.0 julia> t = Array(linspace(0.,tMax, 1)); julia> n = length(t) 1

Re: [julia-users] Re: another new 2D plotting library for Julia

2016-08-25 Thread Michele Zaffalon
Did you notice that Igor said Windows 7 x64 only for the moment? On Thu, Aug 25, 2016 at 1:27 PM, Henri Girard wrote: > That's what I got in julia, I put the so lib in /usr/lib/ > The linux app qwtw is working properly. > > > > julia> using qwtwplot > ERROR: LoadError:

[julia-users] Re: another new 2D plotting library for Julia

2016-08-25 Thread Henri Girard
That's what I got in julia, I put the so lib in /usr/lib/ The linux app qwtw is working properly. julia> using qwtwplot ERROR: LoadError: KeyError: key "ALLUSERSPROFILE" not found in access_env(::Base.##339#340, ::String) at ./env.jl:45 in getindex(::Base.EnvHash, ::String) at ./env.jl:73 in

Re: [julia-users] Invalid history file (~/.julia_history) format

2016-08-25 Thread Andy Dobson
Ah - no - I've got it! Now it works! Thank you all very much, especially Kristoffer! On Thursday, August 25, 2016 at 12:13:09 PM UTC+1, Andy Dobson wrote: > > It doesn't seem to. I've tried searching for %.julia_history% to get at > hidden files - is there some other trick to find it? > > >

Re: [julia-users] Invalid history file (~/.julia_history) format

2016-08-25 Thread Andy Dobson
It doesn't seem to. I've tried searching for %.julia_history% to get at hidden files - is there some other trick to find it? On Thursday, August 25, 2016 at 11:56:22 AM UTC+1, Kristoffer Carlsson wrote: > > Does that file exist? If so, removing it should fix your problems. > > On Thursday,

[julia-users] Re: another new 2D plotting library for Julia

2016-08-25 Thread Henri Girard
Hi, I tried compiling it on ubuntu xenial 16.04, following your description, it works fine. I would like to have it being able to install in -DCMAKE_INSTALL_PREFIX=/usr but it says that manually variables are not used. Could you add it ? In between I will link it in /usr/bin if necessary Thanks

Re: [julia-users] Invalid history file (~/.julia_history) format

2016-08-25 Thread Kristoffer Carlsson
Does that file exist? If so, removing it should fix your problems. On Thursday, August 25, 2016 at 12:54:31 PM UTC+2, Andy Dobson wrote: > > It says: > > "M:\\.julia_history" > > (This is not where the program files are written/held - they are on the > C-drive, and all outputs are written to a

Re: [julia-users] Invalid history file (~/.julia_history) format

2016-08-25 Thread Andy Dobson
It says: "M:\\.julia_history" (This is not where the program files are written/held - they are on the C-drive, and all outputs are written to a separate networked drive). On Wednesday, August 24, 2016 at 6:05:27 PM UTC+1, Kristoffer Carlsson wrote: > > What does it say when you run > >

Re: [julia-users] Recursive/Circular parametric types

2016-08-25 Thread Ben Ward
Hi Tim, That's a shame, I was hoping that doing the above would let me create several different concrete PhylogenyNode and PhylogenyEdge types, that can be used together. I guess since this is an abuse I have to pair one concrete PhylogenyEdge type with one concrete PhylogenyNode type? I

[julia-users] another new 2D plotting library for Julia

2016-08-25 Thread Igor
Hello! I made another 2D plotting library for Julia. Please try to test it if you have some free time. Current version works only for Windows7 x64, but I'm planning to make everything work for Fedora Linux also. It is located here: https://github.com/ig-or/qwtwplot you'll have to read its

Re: [julia-users] Performant methods for enclosing parameters?

2016-08-25 Thread Chris Rackauckas
Oh it's that same issue? Thanks for pointing it out. That means every one of my performance problems are due to the same issue... that's both a good thing and a bad thing I guess. So would your suggestion just be to move forward doing things like this, knowing that this issue will get fixed? If

Re: [julia-users] Performant methods for enclosing parameters?

2016-08-25 Thread Yichao Yu
On Thu, Aug 25, 2016 at 4:12 PM, Chris Rackauckas wrote: > It seems like a closure on a non bitstype still has issues, or is there > something wrong with doing this? > > immutable Params > α::Float64 > end > > function test() > h = (t,u,du,p) -> @inbounds begin >

Re: [julia-users] Re: 0.5.0 rc3 error

2016-08-25 Thread Henri Girard
Yes... No cmake, no libssl-dev... Thanks. It's done now :) Henri Le 24/08/2016 à 21:14, Uwe Fechner a écrit : If you want to see the real error, do not use parallel make. Just type "make" instead of "make -j4". My guess: You don't have libssl-dev installed. On Wednesday, August 24, 2016 at

[julia-users] Re: making a sparse matrix with structural zeros?

2016-08-25 Thread Tony Kelman
A bit. Sparse matrices with stored zeros were mostly an "I know what I'm doing" feature until recently. If you're familiar with the CSC data structure you can also call the low-level SparseMatrixCSC constructor directly: julia> SparseMatrixCSC(1, 1, [1,2], [1], [0]) 1x1 sparse matrix with 1

Re: [julia-users] Performant methods for enclosing parameters?

2016-08-25 Thread Chris Rackauckas
It seems like a closure on a non bitstype still has issues, or is there something wrong with doing this? immutable Params α::Float64 end function test() h = (t,u,du,p) -> @inbounds begin du[1] = 1.01u[1] du[2] = p.α*u[2] end h2 = (t,u,du) -> @inbounds begin du[1] = 1.01u[1]

[julia-users] Re: making a sparse matrix with structural zeros?

2016-08-25 Thread Gabriel Goh
thats a bit of a hack, tho. Guess I can just target Julia 0.5 and ignore this. On Thursday, August 25, 2016 at 12:01:03 AM UTC-7, Tony Kelman wrote: > > Try > > julia> flagval = -123456789 > -123456789 > > julia> A = sparse([1],[1],flagval) > 1×1 sparse matrix with 1 Int64 nonzero entries: >

Re: [julia-users] Differential Equations Package

2016-08-25 Thread Viral Shah
Perhaps JuliaMath is a good place for now. That is what I am going to suggest. On Thursday, August 25, 2016 at 12:45:54 PM UTC+5:30, Viral Shah wrote: > > That's right. Perhaps we need a JuliaDiffEq organization to collect > various ODE, PDE, FEM related packages. > > -viral > > On Friday, June

Re: [julia-users] Differential Equations Package

2016-08-25 Thread Viral Shah
That's right. Perhaps we need a JuliaDiffEq organization to collect various ODE, PDE, FEM related packages. -viral On Friday, June 10, 2016 at 11:31:04 PM UTC+5:30, Mauro wrote: > > On Fri, 2016-06-10 at 17:13, Chris Rackauckas wrote: > ... > > Thanks for helping me get

Re: [julia-users] Re: Tab completion for sub-modules names

2016-08-25 Thread Yichao Yu
On Thu, Aug 25, 2016 at 2:50 PM, Tony Kelman wrote: > What version of Julia are you on? My memory might be hazy but there's a > chance this has been implemented recently on master? If not, then this does > sound like it would be useful to implement. > I believe imported and

Re: [julia-users] Clone git repo from dropbox

2016-08-25 Thread Mauro
Whilst people do it successfully, it's probably a bad idea to have a git repo on Dropbox (corruption could occur if it gets modified from several machines). You'd have to clone it from the file system though: Pkg.clone("/path/to/drobox-folder/repo"). Cloning over https means that there needs to

[julia-users] Re: making a sparse matrix with structural zeros?

2016-08-25 Thread Tony Kelman
Try julia> flagval = -123456789 -123456789 julia> A = sparse([1],[1],flagval) 1×1 sparse matrix with 1 Int64 nonzero entries: [1, 1] = -123456789 julia> A.nzval[A.nzval .== flagval] = 0 0 julia> A 1×1 sparse matrix with 1 Int64 nonzero entries: [1, 1] = 0 On Wednesday,

[julia-users] Re: Tab completion for sub-modules names

2016-08-25 Thread Tony Kelman
What version of Julia are you on? My memory might be hazy but there's a chance this has been implemented recently on master? If not, then this does sound like it would be useful to implement. On Wednesday, August 24, 2016 at 4:49:50 PM UTC-7, Miguel Goncalves wrote: > > In the Julia REPL if I

[julia-users] making a sparse matrix with structural zeros?

2016-08-25 Thread Gabriel Goh
Say I want a 1x1 matrix with some structural zeros. Julia 0.4.* gives julia> sparse([1],[1], 0) 1x1 sparse matrix with 0 Int64 entries: while Julia 0.5 does julia> sparse([1],[1],0) 1×1 sparse matrix with 1 Int64 nonzero entries: [1, 1] = 0 the latter behavior is what I prefer, is

Re: [julia-users] High memory consumption with loops

2016-08-25 Thread Venil Noronha
I've also tried to @profile, however, julia libraries seem to be executed the most. Venil On Wednesday, August 24, 2016 at 11:16:53 PM UTC-7, Venil Noronha wrote: > > I've just been able to @time the loop so far to see allocations at > iteration level. I haven't yet tried @code_warntype; I'll

Re: [julia-users] High memory consumption with loops

2016-08-25 Thread Venil Noronha
I've just been able to @time the loop so far to see allocations at iteration level. I haven't yet tried @code_warntype; I'll probably do that next and see if I can get somewhere. Thanks, Venil On Wednesday, August 24, 2016 at 5:37:17 PM UTC-7, Tim Holy wrote: > > What have you tried so far?