[julia-users] does quote...end really create a QuoteNode?

2016-08-27 Thread Spencer Russell
the metaprogramming docs say that `quote…end` produces a `QuoteNode`, but when I try: julia> quo = quote x=2 y=3 end quote # none, line 2: x = 2 # none, line 3: y = 3 end julia> noquo = :( x=2; y=3) quote x = 2 y = 3 end and `dump` the

[julia-users] Re: Pkg.update() error, 0.4.6

2016-08-27 Thread Liye zhang
Andreas, thank you so much! It is caused by the firewall. On Saturday, August 27, 2016 at 5:45:21 PM UTC+8, Andreas Lobinger wrote: > > Hello colleague, > > On Saturday, August 27, 2016 at 9:20:32 AM UTC+2, Liye zhang wrote: >> >> Julia and its packages are installed using the network at my

[julia-users] Re: Can someone please update Winston?

2016-08-27 Thread Chris Rackauckas
Plots.jl has different behavior depending on the chosen backend. It defaults to Plotly, which is why it opened in the browser. However, for plots which open in their own window, you can try installing PyPlot, GR, PlotlyJS, etc.: just checkout the backend page:

[julia-users] Re: @inbounds macro scope, and @simd

2016-08-27 Thread Chris Rackauckas
Check out Matt B.'s in-depth answer here: http://stackoverflow.com/questions/38901275/inbounds-propagation-rules-in-julia On Friday, August 26, 2016 at 10:43:08 AM UTC-7, Ben Ward wrote: > > Hi, Just wondering, I have the following doube loop: > > for site in 1:nsites > votes[1] =

[julia-users] Re: Can someone please update Winston?

2016-08-27 Thread K leo
Thanks for the reply. I did try Plots.jl, and it appears all plots go to a browser window. I would still prefer plots have their own private window with sizes under control. Am I missing anything? Pkg.checkout("Winston") doesn't get me anything new. On Saturday, August 27, 2016 at 8:19:45

[julia-users] Re: @inbounds macro scope, and @simd

2016-08-27 Thread Blake Johnson
Yes, if you change the first line to @inbounds for site in 1:nsites Then that will declare everything inside that outer loop as being in bounds. If you'd like to make a more restricted declaration, than you should put it on specific lines inside the loop. On Friday, August 26, 2016 at 1:43:08

[julia-users] Re: Hard time with Compat and 0.5

2016-08-27 Thread Steven G. Johnson
On Friday, August 26, 2016 at 9:15:23 PM UTC-4, J Luis wrote: > > Hi, > So I started trying to port my code to 0.5 using Compat and it seams a > hell is expecting me. > This is one example of what happens when I try to follow the deprecation > suggestions. This > > t =

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

2016-08-27 Thread Douglas Bates
On Friday, August 26, 2016 at 6:08:13 PM UTC-5, Min-Woong Sohn wrote: > > Does anybody know of any plan to support ArrayFire in GLM or MixedModels > any time soon? > Do you have a particular application in mind or is this a general question? For MixedModels I would say that, depending upon the

[julia-users] RFC: Proposing to freeze METADATA for package versions that support Julia 0.3

2016-08-27 Thread Tony Kelman
In the interest of moving nightly PackageEvaluator testing to running against 0.4, 0.5, and 0.6-dev, I'm proposing we freeze METADATA for Julia 0.3. New package versions that support Julia 0.3 would fail the Travis check, by default. We can make case-by-case exceptions if absolutely needed,

[julia-users] making julia REPL completions available to vim

2016-08-27 Thread a. kramer
I was playing around to try and allow vim access to tab-completions and documentation from the julia REPL. I managed to get something that seems to work, so I thought I would share it and see if anyone has comments. This is a hack, and I'm not a julia, vimscript, or 0mq expert, so I'm sure

[julia-users] Re: Syntax to create nested types in Julia

2016-08-27 Thread Cedric St-Jean
Your code looks like a good start. type PhysicalNode{T} ID::Int name::AbstractString x::Float64 y::Float64 inEdges::Vector{T} outEdges::Vector{T} demands::Vector{Any} # ? end type Edge{T} ... end function addInEdge!(pn::PhysicalNode, edge::Edge):

Re: [julia-users] Blob detection and size measurement in Julia?

2016-08-27 Thread Tim Holy
Good catch. Looks like the edge-handling in `findlocalmaxima` needed to be a bit more refined---it was discarding results from the first and last sigma- values supplied by the user. I may have fixed this in https://github.com/timholy/Images.jl/commit/ 7336f35c824b15de9e4d0def8e739bdeb6ed3b3d,

[julia-users] How should I define PhysicalNodes class in Julia differently than I did in Python

2016-08-27 Thread varun7rs
HI, Previously, I had posted a question asking for some clarification regarding the usage of types in Julia to suit the problem at hand. I had used Python's classes for the problem and I would like to know how I can define PhysicalNodes and PhysicalLinks classes in Julia differently than I did

[julia-users] Re: Syntax to create nested types in Julia

2016-08-27 Thread varun7rs
Thanks Jeffrey. So, should I close this post and ask a new question as you suggested? On Saturday, 27 August 2016 11:27:32 UTC+2, Jeffrey Sarnoff wrote: > > In an object-oriented language, an instance of a class is an element of > computation (1 is an instance of the class Integer, and Integer

[julia-users] Re: Pkg.update() error, 0.4.6

2016-08-27 Thread Andreas Lobinger
Hello colleague, On Saturday, August 27, 2016 at 9:20:32 AM UTC+2, Liye zhang wrote: > > Julia and its packages are installed using the network at my home. When I > try to install new package using the network in my company, there are > errors as mentioned above. > > When I update using the

[julia-users] Re: Syntax to create nested types in Julia

2016-08-27 Thread Jeffrey Sarnoff
In an object-oriented language, an instance of a class is an element of computation (1 is an instance of the class Integer, and Integer is a subclass of Number). In a type-guided language, a realization of a type is an element of computation (1 is a realization of type Int, and type Int is a

[julia-users] Re: Pkg.update() error, 0.4.6

2016-08-27 Thread Liye zhang
Julia and its packages are installed using the network at my home. When I try to install new package using the network in my company, there are errors as mentioned above. When I update using the network at home, there is no error. So, is this error caused by the change of the IP, which would

[julia-users] Re: Hard time with Compat and 0.5

2016-08-27 Thread DNF
In the first one you are passing in [X.name...] while in the other one you are passing in X.name. Could you not just write: name = String([X.name...]) On Saturday, August 27, 2016 at 3:29:32 AM UTC+2, J Luis wrote: > > Ok, I figured that one (Really needed a first argument 'Array') > > But

[julia-users] Re: Syntax to create nested types in Julia

2016-08-27 Thread varun7rs
What are the alternatives to using classes in Julia apart from types? Can you please explain how I can define the PhysicalNodes class in Julia the same way like I did in python? On Friday, 26 August 2016 23:16:39 UTC+2, Cedric St-Jean wrote: > > It's not possible in Julia at the moment. There's

[julia-users] Re: Function only causes segfaults inside package...?

2016-08-27 Thread Chris Rackauckas
Hello everyone, I narrowed down the issue to a small example. Check out this repo which causes the segfault in just a few lines. An issue for it has been posted on JuliaLang. On Saturday,