[julia-users] Re: julia-i18n: Translators and reviewer needed!

2016-10-02 Thread Mosè Giordano
Hi, last week I completely translated http://julialang.org/downloads/platform.html to Italian (or at least I thought I did it), but now most of the translations disappeared, without recent changes to https://github.com/JuliaLang/julialang.github.com/blob/master/downloads/platform.md. What

[julia-users] ANN: ParallelDataTransfer.jl

2016-10-02 Thread Chris Rackauckas
ParallelDataTransfer.jl is a library for sending and receiving data among processes defined using Julia's parallel computing framework. This library can be used to: - Send variables to worker processes - Directly define

Re: [julia-users] metaprogramming and encapsulation

2016-10-02 Thread Carlo Lucibello
that could be handy indeed, thanks. I would also like to automatize the process using ```julia mlist = methodswith(A, ModA) ``` but looks like objects of type Method are not callable ```julia julia> mlist[1](1) ERROR: MethodError: objects of type Method are not callable in eval_user_input(::Any,

[julia-users] Re: membership checking in heap

2016-10-02 Thread Steven G. Johnson
On Saturday, October 1, 2016 at 1:17:48 PM UTC-4, Athul George Appadan wrote: > > I am trying to find a way to check the membership of a user defined type > object in a heap. This is the code I have written: > > type HeapEntry > k::Int > dist::Float64 > end > > isless(e1::HeapEntry,

[julia-users] Re: Changing Repositories Without Deleting METADATA

2016-10-02 Thread Avik Sengupta
I usually do this directly in git, and not via Pkg commands. I go into the package directory, and add my fork as an additonal remote. So.. cd /home/chris/v0.5/Sundials git remote add chris https://github.com/ChrisRackauckas/Sundials.jl.git

[julia-users] Changing Repositories Without Deleting METADATA

2016-10-02 Thread Chris Rackauckas
Does anyone have a good way to change repositories? A common example for me is, Sundials is in JuliaDiffEq, so I fork it to my Github account for an extended PR, but to work on it I need to remove my current Sundials install and clone from my own repository. However, METADATA does not like this

[julia-users] Re: Using generators

2016-10-02 Thread Steven G. Johnson
On Sunday, October 2, 2016 at 6:02:13 AM UTC-4, harven wrote: > > I see that julia v0.5 has now generators. That looks promising but the > example given in the docs is not really interesting, > > sum(1/n^2 for n = 1:1000) > > since we have been able to write from start the shorter

[julia-users] Re: View (a portion of a) vector as a matrix

2016-10-02 Thread Fengyang Wang
There should be no copy if you reshape a view. julia> reshape((@view x[1:6]), (3, 2)) 3×2 Base.ReshapedArray{Float64,2,SubArray{Float64,1,Array{Float64,1},Tuple{UnitRange{Int64}},true},Tuple{}}: 1.0 1.0 1.0 1.0 1.0 1.0 On Sunday, October 2, 2016 at 8:43:01 AM UTC-4, Alexey Cherkaev

[julia-users] Re: Changing Repositories Without Deleting METADATA

2016-10-02 Thread Chris Rackauckas
Yeah, this is how I used to do it. It's really fragile though when used in conjunction with Github Desktop on Windows (it doesn't, at least didn't, like multiple remotes). I guess that's the best option unless the package manager allows one to choose remotes. On Sunday, October 2, 2016 at

[julia-users] Re: Changing Repositories Without Deleting METADATA

2016-10-02 Thread Kristoffer Carlsson
Just git remote add REMOTE_NAME REMOTE_URL in the package folder and then git checkout REMOTE_NAME master git checkout origin master to swap between the repos. On Sunday, October 2, 2016 at 7:01:28 PM UTC+2, Chris Rackauckas wrote: > > Does anyone have a good way to change repositories? A

[julia-users] Re: Changing Repositories Without Deleting METADATA

2016-10-02 Thread Kristoffer Carlsson
Just git add remote REMOTE_NAME REMOTE_URL in the package folder and then git checkout REMOTE_NAME master git checkout origin master to swap between the repos. On Sunday, October 2, 2016 at 7:01:28 PM UTC+2, Chris Rackauckas wrote: > > Does anyone have a good way to change repositories? A

[julia-users] Re: View (a portion of a) vector as a matrix

2016-10-02 Thread Chris Rackauckas
Fengyang's reshape((@view x[1:6]), (3, 2)) will work well and will be essentially cost-free since reshape creates a view, and a view of a view is still just a view (no copy). Another way to write it is reshape(view(x,1:6), (3, 2)). For example: function f(t,u,du) x = reshape(view(x,1:6), (3,

Re: [julia-users] metaprogramming and encapsulation

2016-10-02 Thread Fengyang Wang
It is not in general possible to recover the function itself from a method, as methods are specific to types and not functions. Multiple functions can share methods if those functions have the same type. In the case of generic (or singleton) functions, you can recover the function from the

Re: [julia-users] Re: ASTs of complete modules/packages?

2016-10-02 Thread Jameson
This also sounds similar to some of the issues I dealt with in some experimental code I wrote to simulate the result of precompiling modules. In `eval_expr`, I dealt with the ability to handle some expressions specially (such as `=`) and to recurse into `module` declarations. (The net goal of

[julia-users] Re: membership checking in heap

2016-10-02 Thread Athul George Appadan
Thanks a lot.. On Monday, October 3, 2016 at 2:41:13 AM UTC+5:30, Steven G. Johnson wrote: > > > > On Saturday, October 1, 2016 at 1:17:48 PM UTC-4, Athul George Appadan > wrote: >> >> I am trying to find a way to check the membership of a user defined type >> object in a heap. This is the code

[julia-users] Unexpected results with typeof(DataFrame)

2016-10-02 Thread r5823
I have a custom type ParType.Parjm and two DataFrames,temp and DF, where the elements are of this type: typeof(temp[:A]) DataArrays.DataArray{ParType.Parjm,1} and typeof(DF[:A]) DataArrays.DataArray{ParType.Parjm,1} However, the following comparison returns false. typeof(temp[:A]) ==

[julia-users] ANN: GoogleCloud.jl - Google Cloud JSON API Wrapper for Julia

2016-10-02 Thread joshbode
Hello julia-users, We have tagged and released v0.0.1 of GoogleCloud.jl - a general wrapper for Google Cloud Platform JSON RESTful APIs (Storage, Compute, etc). A quick-start tutorial is available at:

[julia-users] Re: Changing Repositories Without Deleting METADATA

2016-10-02 Thread Tony Kelman
The conclusion I'd take out of that is not to use GitHub Desktop. It tries to hide too many important things like this from you. As far as git GUIs go, try SourceTree, it has a much more direct mapping between command line operations and GUI buttons.

[julia-users] Using generators

2016-10-02 Thread harven
I see that julia v0.5 has now generators. That looks promising but the example given in the docs is not really interesting, sum(1/n^2 for n = 1:1000) since we have been able to write from start the shorter and I think as efficient sum(n->1/n^2, 1:1000) My question is,

[julia-users] Using generators

2016-10-02 Thread cormullion
Aren't generators to do with when the results are produced (on demand), rather than how they're specified?

[julia-users] View (a portion of a) vector as a matrix

2016-10-02 Thread Alexey Cherkaev
I have the model where it is convenient to represent one of the variables as a matrix. This variable, however, is obtained as a solution of ODEs (among other variables). I'm using Sundials to solve ODEs and `Sundials.cvode` requires the ODE RHS function to take a vector. So, it seems logical

Re: [julia-users] View (a portion of a) vector as a matrix

2016-10-02 Thread Tom Breloff
Look at 'splitview' in CatViews.jl On Sunday, October 2, 2016, Alexey Cherkaev wrote: > I have the model where it is convenient to represent one of the variables > as a matrix. This variable, however, is obtained as a solution of ODEs > (among other variables). I'm