[julia-users] Re: pmap on functions with variable #'s of arguments

2016-06-02 Thread 'Greg Plowman' via julia-users
Of course I meant: Fprime(a) = F(a,b0,c0)

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

2016-06-02 Thread Chris Rackauckas
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 work with the public repository, but basically switch over to a private

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

2016-06-02 Thread Femto Trader
Thanks Penn... Here is my implementation on top of Reactive That I post also https://github.com/JuliaLang/Reactive.jl/issues/99 using Reactive Signal() = Reactive.Signal(Bool, false) typealias Slot Function function emit(signal::Reactive.Signal, args...; kwargs...) push!(signal,

[julia-users] Re: pmap on functions with variable #'s of arguments

2016-06-02 Thread 'Greg Plowman' via julia-users
> > > function Fprime(a; b0 = b, c0 = c) >F(a, b0, c0) # treating b and c above as fixed > end > Where did you define b and c? Did you define on all workers? > > (i) this does not solve my problem when the a_i's are different sizes and > can't be put into one array > Not sure what you

[julia-users] Private Forks of Julia Repositories

2016-06-02 Thread Curtis Vogt
If you don't need to have both versions of the package available at the same time then I would recommend using a single Git repo with multiple remotes. With this setup you can push to your private remote for experiments and later push to the public remote when your ready to share your work.

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

2016-06-02 Thread colintbowers
For those interested, I just hacked together the following implementation of what I was after. I've extended in, filter, and replace to the new type: #Type BasicInterval #My own extremely simple interval type that denotes all elements between start and stop immutable BasicInterval{T}

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

2016-06-02 Thread colintbowers
Thanks for responding. I've posted a response to both you and Tom in response to Tom's post. In short, it sounds like my definition of Range is poor/wrong and I should just implement my own custom type. Cheers and thanks, Colin On Friday, 3 June 2016 12:54:57 UTC+10, Yichao Yu wrote: > > On

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

2016-06-02 Thread colintbowers
Looking at your and Yichao's responses, I think my definition of Range is poor/wrong. I just wanted a type that denoted every element of the same type between the start and stop point (inclusive). So e.g. an input of (0.0, 1.0) would denote the set of every Float64 between 0.0 and 1.0, and (4,

[julia-users] Private Forks of Julia Repositories

2016-06-02 Thread Chris Rackauckas
Hey, I was wondering if anyone has experience creating a private fork of a Julia repository. I would like to implement some research codes via modifying (my own) public repository, keep it private until publication, and then merge it into the main repository. I found a StackOverflow solution

Re: [julia-users] Can we make Julia develop itself?

2016-06-02 Thread Lyndon White
And on that take a look at all the interlanguage operations. I have some old notes, I wrote: Julia is well know for its excellent Foreign Function Interface (FFI). What you might not know is that it is more than C, Fortran and Python. There are many more. In theory we could daisy chain off of

[julia-users] pmap on functions with variable #'s of arguments

2016-06-02 Thread ABB
Hello all - I'd like to apply pmap to a function F I've written, which takes several arguments, only one of which will be varying across pmap. For example: function F(a, b, c) # a silly example a + b + c end I'd like to pmap F over a1, a2, and a3, while keeping b and c the same for

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

2016-06-02 Thread Yichao Yu
On Thu, Jun 2, 2016 at 10:44 PM, wrote: > Hi all, > > Is there any way to build a range that corresponds to the mathematical set > (-Inf, Inf)? I had a look at the source code in range.jl (which is very > readable!) and it doesn't appear that any of the Range types is

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

2016-06-02 Thread Tom Breloff
It seems like you're misusing Range here. Maybe you want to look at ValidatedNumerics or Unums? What's your use-case? On Thursday, June 2, 2016, wrote: > Hi all, > > Is there any way to build a range that corresponds to the mathematical set > (-Inf, Inf)? I had a look at

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

2016-06-02 Thread colintbowers
Hi all, Is there any way to build a range that corresponds to the mathematical set (-Inf, Inf)? I had a look at the source code in range.jl (which is very readable!) and it doesn't appear that any of the Range types is suitable to this task, e.g. StepRange doesn't take Float64 inputs,

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

2016-06-02 Thread Isaiah Norton
This is not a forum for wildly off-topic, speculative discussion. Take this to Reddit, Hacker News, etc. On Thu, Jun 2, 2016 at 10:01 PM, Kevin Liu wrote: > I am wondering how Julia fits in with the unified tribes > >

Re: [julia-users] Can we make Julia develop itself?

2016-06-02 Thread cdm
even sans any terminology barriers, i appreciate the self-referential nature of the question ... given Julia's ties to AI and the fact that it is no foreign concept at StrangeLoop, i say "good on you, Mr. Liu" "The only walls that exist are those you have placed in your mind. And whatever

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

2016-06-02 Thread Kevin Liu
I am wondering how Julia fits in with the unified tribes mashable.com/2016/06/01/bill-gates-ai-code-conference/#8VmBFjIiYOqJ https://www.youtube.com/watch?v=B8J4uefCQMc

Re: [julia-users] Can we make Julia develop itself?

2016-06-02 Thread Kevin Liu
Got it. Thanks. On Thursday, June 2, 2016 at 8:24:54 PM UTC-3, Isaiah wrote: > > I'm going to assume that there is a terminology barrier here... > > My interpretation of the question is: can we directly translate programs > from other languages? > > This is called source to source translation or

Re: [julia-users] Can we make Julia develop itself?

2016-06-02 Thread Isaiah Norton
I'm going to assume that there is a terminology barrier here... My interpretation of the question is: can we directly translate programs from other languages? This is called source to source translation or compilation ( https://en.m.wikipedia.org/wiki/Source-to-source_compiler), and the answer

Re: [julia-users] Can we make Julia develop itself?

2016-06-02 Thread Kevin Liu
Look who jumped into the wiseass train. An honest, short answer would be appreciated. On Thursday, June 2, 2016 at 7:54:04 PM UTC-3, Kristoffer Carlsson wrote: > > Someone taught you wrong.

Re: [julia-users] Can we make Julia develop itself?

2016-06-02 Thread Kevin Liu
Is there an answer here somewhere? On Thursday, June 2, 2016 at 7:54:04 PM UTC-3, Kristoffer Carlsson wrote: > > Someone taught you wrong.

Re: [julia-users] Can we make Julia develop itself?

2016-06-02 Thread Kevin Liu
Is there an answer somewhere here? On Thursday, June 2, 2016 at 7:54:04 PM UTC-3, Kristoffer Carlsson wrote: > > Someone taught you wrong.

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

2016-06-02 Thread Penn Taylor
Sampling only happens with Reactive if you explicitly use the `sampleon` function. Otherwise, you just map a function onto a Signal to get a new Signal. When the first Signal changes, the second Signal changes too. There's no sampling or polling going on in the normal case. I'm in no way

Re: [julia-users] Can we make Julia develop itself?

2016-06-02 Thread Kristoffer Carlsson
Someone taught you wrong.

Re: [julia-users] Can we make Julia develop itself?

2016-06-02 Thread Kevin Liu
I'm sorry. I was taught no questions were inane. Assuming we know what the packages ready in other languages do, can't the missing Julia packages be done through induction? On Thursday, June 2, 2016 at 2:45:03 PM UTC-3, Stefan Karpinski wrote: > > Please don't spam the list with inane questions

[julia-users] Re: starting a worker limits blas to one thread

2016-06-02 Thread Michael Eastwood
And I figured out the answer to my own problem. The suspect line in the `addprocs` behavior is here: https://github.com/JuliaLang/julia/blob/v0.4.3/base/multi.jl#L1120 This function calls `blas_set_num_threads(1)` so I can undo this behavior by just calling `Base.blas_set_num_threads(16)` after

[julia-users] starting a worker limits blas to one thread

2016-06-02 Thread Michael Eastwood
Hello julia-users, I've noticed that if I start a worker blas is all of the sudden restricted to only running on one thread. See for example the following log. Here I multiply a large matrix by itself, add a remote worker, and repeat the multiplication (on the master process). In the latter case

Re: [julia-users] Input to Function Not Replaced if Part of Larger Array

2016-06-02 Thread Kaela Martin
This solution worked. Thanks so much! On Thursday, June 2, 2016 at 12:02:05 PM UTC-7, Yichao Yu wrote: > > On Thu, Jun 2, 2016 at 2:28 PM, Kaela Martin > wrote: > > I have a function that computes the unit vector and replaces the input > with > > that unit vector.

[julia-users] errors using packages in parallel

2016-06-02 Thread Ethan Anderes
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 sure what I’m doing wrong. Any help would be appreciated _ _ _ _(_)_ | A fresh

Re: [julia-users] Re: Arithmetic with TypePar

2016-06-02 Thread Robert DJ
That's a nice solution -- thanks! On Thursday, June 2, 2016 at 1:54:23 PM UTC+2, Erik Schnetter wrote: > > In these cases I do the following: > > (1) Add additional type parameters, as in > > ```Julia > type FooImp{D,D1} > baz::Array{D} > bar::Array{D1} > end > ``` > > (2) Add a function

Re: [julia-users] Input to Function Not Replaced if Part of Larger Array

2016-06-02 Thread Yichao Yu
On Thu, Jun 2, 2016 at 3:01 PM, Yichao Yu wrote: > On Thu, Jun 2, 2016 at 2:28 PM, Kaela Martin wrote: >> I have a function that computes the unit vector and replaces the input with >> that unit vector. However, when I have the input as part of a larger

Re: [julia-users] Input to Function Not Replaced if Part of Larger Array

2016-06-02 Thread Yichao Yu
On Thu, Jun 2, 2016 at 2:28 PM, Kaela Martin wrote: > I have a function that computes the unit vector and replaces the input with > that unit vector. However, when I have the input as part of a larger array, > it doesn't replace that part of the array. > > For example, if

[julia-users] Input to Function Not Replaced if Part of Larger Array

2016-06-02 Thread Kaela Martin
I have a function that computes the unit vector and replaces the input with that unit vector. However, when I have the input as part of a larger array, it doesn't replace that part of the array. For example, if the vector I want to make a unit vector is R = [1. 2.; 3. 4.; 5. 6.], the function

Re: [julia-users] Function argument inlining

2016-06-02 Thread Ford Ox
I have thought that every function in julia is Functor by default, since it is object like any other. On Thursday, June 2, 2016 at 2:53:12 PM UTC+2, Yichao Yu wrote: > > On Thu, Jun 2, 2016 at 8:37 AM, Cedric St-Jean > wrote: > > I have two very similar functions that

Re: [julia-users] Re: Double free or corruption (out)

2016-06-02 Thread Nils Gudat
Hm, interesting observation... I suppose the issue in my case is that the code as it is takes about 3-4 days to complete, so running it on 1 instead of 15 cores means I'm unlikely to ever get my PhD! I will at least try to run a shorter version that might be solvable in a day or two without

Re: [julia-users] Can we make Julia develop itself?

2016-06-02 Thread Stefan Karpinski
Please don't spam the list with inane questions like this. On Thu, Jun 2, 2016 at 12:06 PM, Kevin Liu wrote: > Isn't package development mechanical? >

[julia-users] How to run task in background without disabling kb input?

2016-06-02 Thread Forrest Curo
If I try the following: @async begin while(1 == 1) iter(x) # the function listens for incoming rt MIDI events end end end iter begins printing out any notes I play in from my [music] keyboard -- but then I can't use my [text] keyboard to do anything else in the

[julia-users] Can we make Julia develop itself?

2016-06-02 Thread Kevin Liu
Isn't package development mechanical?

[julia-users] Can we make Julia make itself complete?

2016-06-02 Thread Kevin Liu
Instead of developing packages, make Julia develop on its own? Isn't package development mechanical?

Re: [julia-users] Re: Arithmetic with TypePar

2016-06-02 Thread Kristoffer Carlsson
The annoyance is when you have to store these things in a type because for type stability you need to parameterize the type on everything the sotred fields parameterize on, including the "redundant" ones. For example, I have a tensor type which is wrapping a tuple and instead of storing

Re: [julia-users] Re: Double free or corruption (out)

2016-06-02 Thread Andrew
Have you tried running the code without using parallel? I have been getting similar errors in my economics code. It segfaults sometimes, though not always, after a seemingly random amount of time, sometimes an hour or so, sometimes less. However, I don't recall it having ever occurred in the

Re: [julia-users] Function argument inlining

2016-06-02 Thread Cedric St-Jean
Thanks. Maybe it's time to upgrade... On Thursday, June 2, 2016 at 8:53:12 AM UTC-4, Yichao Yu wrote: > > On Thu, Jun 2, 2016 at 8:37 AM, Cedric St-Jean > wrote: > > I have two very similar functions that differ in only which function > they > > call > > > > function

[julia-users] Re: Using pmap in julia

2016-06-02 Thread Martha White
I was printing information from each worker, and seeing the worker number increase. But, when I actually check nworkers, the number stays at 3. So, I was incorrect about the number of workers increasing. Rather, because I am adding and removing workers in the outer loop, the worker id is

[julia-users] Constructing Markdown text for IJulia

2016-06-02 Thread Carl
Hi, I would like to programatically create markdown strings and have them rendered in IJulia so that I can use markdown as a template language to substitute in variables values, etc. For example, something like: ```julia temp = 27 humidity = 88 caption(x) = """\n$x""" tp = md""" # Test Plan

[julia-users] ANN: Book --- Julia Programming for Operations Research

2016-06-02 Thread Chang Kwon
I wrote a book on julia programming, focusing on optimization problems from operations research and management science. http://www.chkwon.net/julia/ I think this book will be useful for first-year graduate students and advanced undergraduate students in

Re: [julia-users] Function argument inlining

2016-06-02 Thread Yichao Yu
On Thu, Jun 2, 2016 at 8:37 AM, Cedric St-Jean wrote: > I have two very similar functions that differ in only which function they > call > > function search_suspects_forward(...) > ... > searchsortedfirst(...) > end > > function search_suspects_backward(...) >

[julia-users] Function argument inlining

2016-06-02 Thread Cedric St-Jean
I have two very similar functions that differ in only which function they call function search_suspects_forward(...) ... searchsortedfirst(...) end function search_suspects_backward(...) ... searchsortedlast(...) end function foo() search_suspects_forward(...) end

[julia-users] Re: ANN: DC.jl - automagical linked plots in your IJulia Notebook

2016-06-02 Thread Cedric St-Jean
Looks great, thank you for this! On Thursday, June 2, 2016 at 12:28:07 AM UTC-4, Tim Wheeler wrote: > > Hello Julia Users, > > We are happy to announce DC.jl - a > package which gives you the power of DC.js > in your IJulia

Re: [julia-users] Re: Arithmetic with TypePar

2016-06-02 Thread Erik Schnetter
In these cases I do the following: (1) Add additional type parameters, as in ```Julia type FooImp{D,D1} baz::Array{D} bar::Array{D1} end ``` (2) Add a function that calculates the type: ```Julia Foo(D) = FooImpl{D,D+1} ``` In many cases I can then have to write `Foo(D)` instead of

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

2016-06-02 Thread Cedric St-Jean
John: Common Lisp and Julia have a lot in common. I didn't mean to suggest writing your software in Lisp, I meant that if ITA was able to run a hugely popular website involving a complicated optimization problem without triggering the GC, then you can do the same in Julia. Like others have

Re: [julia-users] how to set the maximal waiting time for ClusterManagers.addprocs_sge()?

2016-06-02 Thread Ben Arthur
i've used qrsh instead of qsub to avoid the aggressive disk buffering. it's a much better solution all around. check out this PR: https://github.com/JuliaParallel/ClusterManagers.jl/pull/11

[julia-users] installation one side of a company firewall

2016-06-02 Thread Andreas Lobinger
Hello colleagues, i'm trying to get julia (v0.4.5) running on a windows box inside company firewall (actually a cloud instance) which has valid and working http/https proxy, I was able to configure git to use https isteadOf git and set http and https proxy. Pkg.status() clones and installs

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

2016-06-02 Thread Bart Janssens
Hello, I would also be interested to know how and if this kind of functionality relates to Reactive.jl. Looking at the docs for Reactive, it seems it was designed for "continuous" signals. In Reactive, sampling seems to be needed, while in a classical signal/slot implementation (such as in Qt)

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

2016-06-02 Thread Leger Jonathan
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. About the nogc I wonder if activating it will also prevent the core of Julia to be garbage collected ? If yes for long run it's a bad idea

Re: [julia-users] Re: Double free or corruption (out)

2016-06-02 Thread Nils Gudat
Fair enough. Does anyone have any clues as to how I would go about investigating this? As has been said before, the stacktraces aren't very helpful for segfaults, so how do I figure out what's going wrong here?

[julia-users] plans to add an extended standard library section?

2016-06-02 Thread Michele Zaffalon
Related to the recent discussion https://groups.google.com/d/msg/julia-users/IV4ulyX_dCc/fseYrc7xPgAJ Are there any plans to add the documentation for StatsBase.jl to http://docs.julialang.org/, maybe as an "extended standard library" section? I for myself, use DataStructures often and the

[julia-users] Re: Arithmetic with TypePar

2016-06-02 Thread Robert DJ
The problem with not specifying D is type inference. I actually have more entries in Foo and would like type Foo{D} baz::Array{D} bar::Array{D+1} end I want to use Foo in calculations and for D = 1 I am doing something like baz + bar[:,1] baz + bar[:,2] For D = 2: baz + bar[:,:,1] baz +