Re: [julia-users] Signal / slot (or publish-subscribe) libraries in Julia

2016-06-03 Thread Penn Taylor
Femto Trader, I came up with a way to get emit to work the way you wanted: https://gist.github.com/penntaylor/a4dd1ed268b2401e54a72705954180c5

[julia-users] Re: parametrized type with inner constructor fails

2016-06-03 Thread Eric Forgy
I've been bitten by this many times and see so many others being bitten. I know the docs explain this as well as I could, but it would be great if someone could come up with some educational magic to improve the docs a bit more. On Saturday, June 4, 2016 at 10:17:16 AM UTC+8, David P. Sanders

[julia-users] Re: parametrized type with inner constructor fails

2016-06-03 Thread David P. Sanders
El viernes, 3 de junio de 2016, 22:06:20 (UTC-4), xdavidliu escribió: > > with > > > type foo > x::Int > foo(x) = x > 0 ? new(x) : new(-x) > end > > > type bar{T<:Integer} > x::T > end > > > type baz{T<:Integer} > x::T > baz(x) = x > 0 ? new(x) : new(-x) > end > > > >

Re: [julia-users] parametrized type with inner constructor fails

2016-06-03 Thread Yichao Yu
On Fri, Jun 3, 2016 at 10:06 PM, xdavidliu wrote: > with > > > type foo > x::Int > foo(x) = x > 0 ? new(x) : new(-x) > end > > > type bar{T<:Integer} > x::T > end > > > type baz{T<:Integer} > x::T > baz(x) = x > 0 ? new(x) : new(-x) > end > > > >

[julia-users] parametrized type with inner constructor fails

2016-06-03 Thread xdavidliu
with type foo x::Int foo(x) = x > 0 ? new(x) : new(-x) end type bar{T<:Integer} x::T end type baz{T<:Integer} x::T baz(x) = x > 0 ? new(x) : new(-x) end "foo(-5).x" gives 5, "bar(-5).x" gives -5, but "baz(-5).x" gives a "MethodError: 'convert' has no method

Re: [julia-users] errors using packages in parallel

2016-06-03 Thread Ethan Anderes
Hi Tim: I just checked and the package versions are the same (v0.1.8). However, the julia versions on my laptop is slightly different from what is on the server (Version 0.4.6-pre+37 vrs Version 0.4.6-pre+36). Is that a problem? Ethan On Friday, June 3, 2016 at 1:48:37 PM UTC-7, Tim Holy

Re: [julia-users] Re: big on the mac with large matrices

2016-06-03 Thread Stefan Karpinski
What BLAS library are you using? I.e. what is the output of versioninfo()? On Fri, Jun 3, 2016 at 5:17 PM, Steven G. Johnson wrote: > > > On Friday, June 3, 2016 at 3:16:17 PM UTC-4, Jeremy Kozdon wrote: >> >> On my mac (and the several other macs I have tried) the

[julia-users] Re: row or col span for subplots, using PyPlot

2016-06-03 Thread jda
doh! thanks

[julia-users] Re: Thanks Julia

2016-06-03 Thread M. Zahirul ALAM
Thanks. Maybe we will continue to look forward to it for a while... I think the idea might have been oversold in the 80's and 90's. There remains a tremendous amount of engineering and scientific challenges. But I think the era of hybrid processor might have started. Please check the following

[julia-users] Re: How to build a range of -Inf to Inf

2016-06-03 Thread Steven G. Johnson
On Thursday, June 2, 2016 at 11:42:32 PM UTC-4, colint...@gmail.com wrote: > > function Base.filter!{T}(x::AbstractVector{T}, r::BasicInterval{T}) > for n = length(x):-1:1 > !in(x[n], r) && deleteat!(x, n) > end > return(x) > end > I'm pretty sure this implementation has

[julia-users] Re: row or col span for subplots, using PyPlot

2016-06-03 Thread Steven G. Johnson
On Friday, June 3, 2016 at 3:58:19 PM UTC-4, jda wrote: > > I am looking for a way for subplots to have column or row span in julia > using PyPlot. In other words, I want to find out how to translate this: > http://matplotlib.org/users/gridspec.html > The exact same syntax works fine for me:

[julia-users] Re: big on the mac with large matrices

2016-06-03 Thread Steven G. Johnson
On Friday, June 3, 2016 at 3:16:17 PM UTC-4, Jeremy Kozdon wrote: > > On my mac (and the several other macs I have tried) the following command > in Julia 0.4.5 > >eig(rand(3000,3000)) > > causes Julia to crash. It seems to run fine on my linux machines and > JuliaBox. Works fine for

[julia-users] Is HPTCDL workshop happening this year?

2016-06-03 Thread Jong Wook Kim
I'm wondering if HPTCDL(High Performance Technical Computing in Dynamic Languages) workshop is being planned this year. I could only find the proceedings of the first workshop (2014), and only a call for papers for the 2015 workshop. Does anyone know the details of the HPTCDL workshop in 2015

Re: [julia-users] errors using packages in parallel

2016-06-03 Thread Tim Holy
Do you have different versions of the package installed on the different machines? --Tim On Friday, June 3, 2016 8:56:39 AM CDT Ethan Anderes wrote: > I still get an error (see below). Even if it did work, it would still be > strange that one would need a different syntax when the workers are

[julia-users] ANN: PkgSearch - a REPL utility for package discovery

2016-06-03 Thread Adrian Salceanu
Hi, I have released PkgSearch, a small REPL utility for package discovery. Package discovery seemed to be a recurring issue, with many related questions - and I can still remember how difficult was for me too, when I started. So it might be a useful tool. I've been using it for a few days

[julia-users] hash highlighting for atom or julia-vim

2016-06-03 Thread Ritchie Lee
I've been using LightTable for developing Julia and I really enjoy the June Night theme (https://github.com/JuliaIDE/June-LT) with its hash highlighting and font/colors. I am considering switching to Atom and/or julia-vim, but can't seem to recreate the hash highlighting feature. Am I

Re: [julia-users] Uniform syntax

2016-06-03 Thread Stefan Karpinski
In Julia 0.5, [1, 2, 3] and [1; 2; 3] do not mean the same thing – the former does array construction while the latter does array concatenation. These happen to produce the same result for scalars. When the elements are collections, however, they do not: julia> [1:3, 4:6, 7:9] 3-element

Re: [julia-users] Uniform syntax

2016-06-03 Thread Mauro
On Fri, 2016-06-03 at 21:23, Siyi Deng wrote: > I am neutral about 1 and 2. But I like suggestion 3. Note, suggestion 3 is currently valid syntax which is unlikely to go away: julia> (a, b, c) = [1,2,3] 3-element Array{Int64,1}: 1 2 3 julia> a 1 There is a reason

[julia-users] row or col span for subplots, using PyPlot

2016-06-03 Thread jda
Hi, I am looking for a way for subplots to have column or row span in julia using PyPlot. In other words, I want to find out how to translate this: http://matplotlib.org/users/gridspec.html into julia language. I tried some naive things such as subplot(311,rowspan=2) or subplot(3,1,[1:2]).

Re: [julia-users] Signal / slot (or publish-subscribe) libraries in Julia

2016-06-03 Thread Penn Taylor
I commented on https://github.com/JuliaLang/Reactive.jl/issues/99 with some information about slots not being executed twice unless there's a delay. The disconnect problem is a type error on your first parameter. I think you meant to have this: function disconnect(signal::Reactive.Signal,

[julia-users] Uniform syntax

2016-06-03 Thread Siyi Deng
I am neutral about 1 and 2. But I like suggestion 3.

[julia-users] big on the mac with large matrices

2016-06-03 Thread Jeremy Edward Kozdon
On my mac (and the several other macs I have tried) the following command in Julia 0.4.5 eig(rand(3000,3000)) causes Julia to crash. It seems to run fine on my linux machines and JuliaBox. Anyone run into this and know of a work around? Julia 0.5.0 on the mac seems not to have this issue.

[julia-users] Re: How to build a range of -Inf to Inf

2016-06-03 Thread DNF
Your in-method is a bit odd: Base.in{T}(x::T, r::BasicInterval{T}) = (r.start <= x <= r.stop) ? true : false Why don't you just write Base.in{T}(x::T, r::BasicInterval{T}) = (r.start <= x <= r.stop) ? The extra stuff is redundant.

Re: [julia-users] How to launch a Julia cluster under Torque scheduler

2016-06-03 Thread Erik Schnetter
David One way to go would be to use the MPI package, and to use mpirun to start the Julia processes. In this way, all processes are started automatically, and you do not need to run addprocs. The example "06-cman-transport.jl" in the MPI package shows how to use this setup. -erik On Fri, Jun 3,

[julia-users] How to launch a Julia cluster under Torque scheduler

2016-06-03 Thread David Parks
I've been reading various discussions on here about launching a Julia cluster. It's hard to tell how current they are, and the documentation is a bit lacking on how to launch clusters under environments such as Torque. I'm using Julia 0.4.5 (e.g. no cookies) The primary approach that is

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

2016-06-03 Thread Kevin Liu
https://github.com/tbreloff/OnlineAI.jl/issues/5 On Friday, June 3, 2016 at 11:17:28 AM UTC-3, Kevin Liu wrote: > > I plan to write Julia for the rest of me life... given it remains > suitable. I am still reading all of Colah's material on nets. I ran > Mocha.jl a couple weeks ago and was very

Re: [julia-users] Re: Using Julia for real time astronomy

2016-06-03 Thread Páll Haraldsson
On Thursday, June 2, 2016 at 7:55:03 AM UTC, John leger wrote: > > Páll: don't worry about the project failing because of YOUU ;) in any > case we wanted to try Julia and see if we could get help/tips from the > community. > Still, feel free to ask me anytime. I just do not want to give bad

Re: [julia-users] errors using packages in parallel

2016-06-03 Thread Ethan Anderes
I still get an error (see below). Even if it did work, it would still be strange that one would need a different syntax when the workers are on my local machine vrs connected to servers with ssh tunnel. julia> addprocs( machines, tunnel=true,

Re: [julia-users] Is Julia slow with large arrays?

2016-06-03 Thread Lutfullah Tomak
I think it is on julia 0.5 but it does not help. Though it produces some simd instructions for moving memory it still uses scalar float instructions for this loop for @simd version (similar for just @inbounds and julia -O on 0.4) movsd (%r15,%r11,8), %xmm0# xmm0 = mem[0],zero movsd

Re: [julia-users] Handling signals/ctrl-c in Julia

2016-06-03 Thread Yichao Yu
On Fri, Jun 3, 2016 at 4:51 AM, Ulf Worsoe wrote: > I am developing Mosek.jl. > > That library works by creating a task object, adding data to it and calling > a solve function. When a user in interactive mode hits ctrl-c, calls to > native functions are terminated, and that

Re: [julia-users] ^ operator cannot compute correctly on "modified" range

2016-06-03 Thread Stefan Karpinski
This problem boils down to this: julia> (-10.0)^2.2 ERROR: DomainError: in nan_dom_err at ./math.jl:134 [inlined] in ^(::Float64, ::Float64) at ./math.jl:293 in eval(::Module, ::Any) at ./boot.jl:225 in macro expansion at ./REPL.jl:92 [inlined] in (::Base.REPL.##1#2{Base.REPL.REPLBackend})()

[julia-users] ^ operator cannot compute correctly on "modified" range

2016-06-03 Thread Steven G. Johnson
bb has negative elements, and if you exponentiate these to a fractional power you get a complex result. To get a complex result, one of the arguments needs to be complex, e.g. try bb.^(2.1+0im) (Automatically switching to a complex result for negative inputs would be type-unstable and kill

Re: [julia-users] Is Julia slow with large arrays?

2016-06-03 Thread Stefan Karpinski
Julia also has an `-O3` option – you could try that. On Fri, Jun 3, 2016 at 10:54 AM, Angel de Vicente < angel.vicente.garr...@gmail.com> wrote: > Lutfullah Tomak writes: > > It may be because ifort uses proper simd instructions. Eriks's > suggestion for @simd > > does not

[julia-users] ^ operator cannot compute correctly on "modified" range

2016-06-03 Thread Technet
Look at this code: x = 0.1:100 m = 10.1 bb = x-m display(typeof(x)) # FloatRange{Float64} display(typeof(bb)) # FloatRange{Float64} # x.^2.1 #correctly done bb.^2.2 # error -> why ? The last line throw this error: LoadError: DomainError: while loading In[13], in expression starting on line 6

[julia-users] Handling signals/ctrl-c in Julia

2016-06-03 Thread Ulf Worsoe
I am developing Mosek.jl. That library works by creating a task object, adding data to it and calling a solve function. When a user in interactive mode hits ctrl-c, calls to native functions are terminated, and that leaves the task object in an inconsistent state, meaning that even calling

Re: [julia-users] Is Julia slow with large arrays?

2016-06-03 Thread Angel de Vicente
Lutfullah Tomak writes: > It may be because ifort uses proper simd instructions. Eriks's suggestion for > @simd > does not use simd instructions in my laptop. I don't see any improvement in Julia by using @simd either. On the other hand, vectorization with the Intel

[julia-users] Re: Thanks Julia

2016-06-03 Thread Eric Forgy
The Abstract looks awesome. All-optical processors is something I've been looking forward to since nearly going to University of Arizona to study the topic back in 1994 :) On Friday, June 3, 2016 at 10:37:54 PM UTC+8, M. Zahirul ALAM wrote: > > I have started using Julia roughly two summers

Re: [julia-users] Is Julia slow with large arrays?

2016-06-03 Thread Lutfullah Tomak
It may be because ifort uses proper simd instructions. Eriks's suggestion for @simd does not use simd instructions in my laptop.

[julia-users] Thanks Julia

2016-06-03 Thread M. Zahirul ALAM
I have started using Julia roughly two summers ago. I have been visiting this forum ever since looking for answers and tips. You guys have been incredible. I have used 80 percent of the of the calculations for the following paper using Julia. Sadly, during the final revision, we had to take

Re: [julia-users] errors using packages in parallel

2016-06-03 Thread Isaiah Norton
Try `@everywhere using Dierckx` On Thu, Jun 2, 2016 at 3:49 PM, Ethan Anderes wrote: > I’m looking for help setting up a parallel job spread across different > servers. I would like to use my laptop as the master node. I’m getting > errors when using packages and I’m not

Re: [julia-users] Re: Private Forks of Julia Repositories

2016-06-03 Thread Chris Rackauckas
I did something like this and it worked. I have private repos for github (student) so I used that. I made a private repo, made a branch in my local git repo, pushed that to the new private repo, used this

Re: [julia-users] Is Julia slow with large arrays?

2016-06-03 Thread Angel de Vicente
Hi, Mosè Giordano writes: > I'm working on a Fortran77 code, but I'd much prefer to translate it > to Julia. However, I've the impression that when working with large > arrays (of the order of tens of thousands elements) Julia is way > slower than the equivalent Fortran

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

2016-06-03 Thread Kevin Liu
I plan to write Julia for the rest of me life... given it remains suitable. I am still reading all of Colah's material on nets. I ran Mocha.jl a couple weeks ago and was very happy to see it work. Thanks for jumping in and telling me about OnlineAI.jl, I will look into it once I am ready. From

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

2016-06-03 Thread Kevin Liu
I plan to write Julia for the rest of me life... given it remains suitable. I am still reading all of Colah's material on nets. I ran Mocha.jl a couple weeks ago and was very happy to see it work. Thanks for jumping in and telling me about OnlineAI.jl, I will look into it once I am ready. From

[julia-users] Re: Arithmetic with TypePar

2016-06-03 Thread Robert DJ
I've been thinking more about your suggestion with Array{Any, D}. The type of the entries (Vector{Float64} in my case) are not inferred. Is there a way to inform Julia that 'Any' is actually Vector{Float64} for all entries. I.e., something like Array{Vector{Float64}, D} ? On Thursday, June 2,

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

2016-06-03 Thread Tom Breloff
Kevin: computers that program themselves is a concept which is much closer to reality than most would believe, but julia-users isn't really the best place for this speculation. If you're actually interested in writing code, I'm happy to discuss in OnlineAI.jl. I was thinking about how we might

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

2016-06-03 Thread Kevin Liu
Correction: Founders: tribe is mainly of Symbolists? On Friday, June 3, 2016 at 10:36:01 AM UTC-3, Kevin Liu wrote: > > If Andrew Ng who cited Gates, and Gates who cited Domingos (who did not > lecture at Google with a TensorFlow question in the end), were unsuccessful > penny traders, Julia

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

2016-06-03 Thread Kevin Liu
If Andrew Ng who cited Gates, and Gates who cited Domingos (who did not lecture at Google with a TensorFlow question in the end), were unsuccessful penny traders, Julia was a language for web design, and the tribes in the video didn't actually solve problems, perhaps this would be a wildly

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

2016-06-03 Thread Kevin Liu
There could be parts missing as Domingos mentions, but induction, backpropagation, genetic programming, probabilistic inference, and SVMs working together-- what's speculative about the improved versions of these? Julia was made for AI. Isn't it time for a consolidated view on how to reach

[julia-users] Re: How to build a range of -Inf to Inf

2016-06-03 Thread colintbowers
Very true. For boring reasons, I actually prefer it that way for my own work (I want errors if the types don't exactly match as it means other parts of my code are doing something unexpected - I like cheap redundant error checks). But I agree that for general use it should work as you suggest.

Re: [julia-users] Re: Private Forks of Julia Repositories

2016-06-03 Thread Curtis Vogt
Maybe Playground.jl will fit your use case. It works similarly to Python's virtualenv which allows having multiple versions of the same package to be installed at the same time. https://github.com/Rory-Finnegan/Playground.jl

[julia-users] Re: How to produce the ≉ symbol?

2016-06-03 Thread jw3126
Thanks, guys it works! On Friday, June 3, 2016 at 12:16:00 PM UTC+2, Avik Sengupta wrote: > > The canonical list of completions is in the latex_symbols.jl file within > the julia source > > https://github.com/JuliaLang/julia/blob/master/base/latex_symbols.jl#L546 > > On Friday, 3 June 2016

[julia-users] Re: How to produce the ≉ symbol?

2016-06-03 Thread Avik Sengupta
The canonical list of completions is in the latex_symbols.jl file within the julia source https://github.com/JuliaLang/julia/blob/master/base/latex_symbols.jl#L546 On Friday, 3 June 2016 10:45:16 UTC+1, Pablo Zubieta wrote: > > Use `\napprox` >

[julia-users] Re: How to produce the ≉ symbol?

2016-06-03 Thread Pablo Zubieta
Use `\napprox`

[julia-users] Re: How to produce the ≉ symbol?

2016-06-03 Thread jw3126
Okay, thanks. I tried `\approx + tab + go 1 back + \not + tab` It gives me the same thing as `\not + tab + \approx + tab` on ubuntu with both atom and jupyter. It gives me something that does look roughly but not exactly like ≉. I think it is two symbols on top of each other, a slash thingy

[julia-users] Re: How to build a range of -Inf to Inf

2016-06-03 Thread Jutho
Looks ok, but I think you could generically have less restricted types in your functions: e.g. 4 in BasicInterval(3.1,4.9) won't work, nor will you be able to construct an interval BasicInterval(3,4.5)

[julia-users] How to produce the ≉ symbol?

2016-06-03 Thread Jutho
(on Mac): what seems to work is to first use \approx + tab to get ≈, and then go back one character and type \not + tab. If you first use \not + tab, and then start typing \approx, the not acts only on the \ . If you write \not\approx + tab, the \not is not being substituted.

[julia-users] Uniform syntax

2016-06-03 Thread Ford Ox
I think this deserves an own topic. *You* should post here syntax that looks like duplicate or you think it could use already existing keyword. (mark with* # identical *or *# replacement*) Rule of thumb - *the less special syntax the better*. # identical # replace ' , ' with ' ; ' in arrays ?

Re: [julia-users] Re: Private Forks of Julia Repositories

2016-06-03 Thread Mauro
On Fri, 2016-06-03 at 08:45, Chris Rackauckas wrote: > I can keep a private local branch, but then it's only on one computer and I > can't develop/test on any other computer (/hpc). You can have several remotes for one repository. So you can have your private branch on a

[julia-users] How to produce the ≉ symbol?

2016-06-03 Thread jw3126
How to produce the ` ≉` character in julia? I tried detexify and it told me `\not\isapprox` but that does not work. More generally if I see some cool UTF-8 character how do I find out its Latex name?

Re: [julia-users] Re: Private Forks of Julia Repositories

2016-06-03 Thread Chris Rackauckas
So if I make a private fork, put it locally in a different folder, add it to the load path in .juliarc.jl, develop privates codes there, setup remotes like in the StackExchange discussion I linked, it seems that would work. However, if I do this there will be two modules in the load path with

Re: [julia-users] Re: Private Forks of Julia Repositories

2016-06-03 Thread Chris Rackauckas
I can keep a private local branch, but then it's only on one computer and I can't develop/test on any other computer (/hpc). On Thursday, June 2, 2016 at 11:18:09 PM UTC-7, Mauro wrote: > > On Fri, 2016-06-03 at 07:58, Chris Rackauckas > wrote: > > I think I will need

Re: [julia-users] Re: Private Forks of Julia Repositories

2016-06-03 Thread Lyndon White
I am doing this right now, via Loadpath. Set the loadpath in your `.juliarc.jl` so that an extra folder (where you are working) is also in your loadpath. Control it with Git, (not the julia package mananger). Everything is fine and normal ,it is just another git repo. I have no interest in

Re: [julia-users] Re: Private Forks of Julia Repositories

2016-06-03 Thread Mauro
On Fri, 2016-06-03 at 07:58, Chris Rackauckas wrote: > I think I will need both versions available, since the majority of the work > is public, while the private work will tend to sit around longer (i.e. > waiting to hear back from reviewers). So I'd want to be able to easily