[julia-users] BinDeps: non-library dependencies

2016-03-22 Thread Robin Deits
Hi all, Using BinDeps, is there currently any way to specify binary dependencies which are not libraries? I can envision this being useful for declaring a build-time dependency on executables like pkg-config or cmake. Likewise, is there a way to declare a dependency on a set of headers? For

[julia-users] string function for expressions: surgically add a specific method to a recursion chain

2016-03-22 Thread vishesh
Hi, I'd like to understand how one can surgically add a piece to a long type chain of something like string in julia. Say I want to update the printing of expression objects. So: module M import Base.string function string(ex::Expr) if ex.head == :$ string("\$(", map(string,

Re: [julia-users] Interest in BandedMatrices.jl Package?

2016-03-22 Thread Tim Holy
+1 from me. I don't have an immediate need, but it seems to be an obvious hole in our coverage of special matrices. Best, --Tm On Tuesday, March 22, 2016 05:44:48 PM Sheehan Olver wrote: > I'm thinking of splitting out the support for a BandedMatrix data structure > from ApproxFun to a

Re: [julia-users] macroexpand entire module

2016-03-22 Thread vishesh
Ah, thank you! I didn't know you could do things like instantiate a module that way. On Monday, March 21, 2016 at 3:21:45 PM UTC-7, Yichao Yu wrote: > > On Mon, Mar 21, 2016 at 5:54 PM, > wrote: > > Oops, maybe name it differently > > > > function expand(ex::Expr) >

[julia-users] Interest in BandedMatrices.jl Package?

2016-03-22 Thread Sheehan Olver
I'm thinking of splitting out the support for a BandedMatrix data structure from ApproxFun to a stand-alone package. Is there interest in this, or existing packages that do the same thing? Sheehan

[julia-users] Re: Is GLSO useful?

2016-03-22 Thread cdm
had not heard of it ... it seems that the author is on to other optimisation algorithms: http://www.cmnt.lv/upload-files/ns_39crt_055.pdf and i cannot find that the GLSO paper has been cited as reference material in any other paer ... it would appear that it may have been an

[julia-users] Re: Problems knowing when a promote_rule exists, and

2016-03-22 Thread Jeffrey Sarnoff
There is something that happens through [and it is either a guess or a partially coherent reflection that implicates] the ways that Nemo establishes shallow abstract hierarchies and short sequences of abstract subordination and how they work to clarify both the heavy interconnectedness of

[julia-users] Re: Problems knowing when a promote_rule exists, and

2016-03-22 Thread 'Bill Hart' via julia-users
So here is an example of how broken this is. I have the following code: println(par_type, " ", T2, " ", Base.promote_rule(par_type, T2), " ", Base.promote_rule(par_type, T2) != par_type) if Base.promote_rule(par_type, T2) != par_type

Re: [julia-users] Re: Problems with in, == and Tuples of types

2016-03-22 Thread 'Bill Hart' via julia-users
Definitely doesn't work that way. If I check both orderings the code to fix (5) works. You might be thinking of promote, not promote_rule. That's not a useful function though because it tries to convert values to a given type, which is basically useless for things like a conversion to

[julia-users] Re: Problems knowing when a promote_rule exists, and

2016-03-22 Thread Jeffrey Sarnoff
aside: would it help others to find this to have a new thread that links here with the subject: why does checking that a promote_rule exists work in the REPL and not inside a module? On Tuesday, March 22, 2016 at 6:39:51 PM UTC-4, Jeffrey Sarnoff wrote: > > That is not

[julia-users] Re: Problems with in, == and Tuples of types

2016-03-22 Thread Jeffrey Sarnoff
That is not supposed to be how it works! As I recall there was a meetup where JeffB explains that promote_rule always never cares about the order of its arguments and internals generate lookups for both orderings. On Tuesday, March 22, 2016 at 6:26:51 PM UTC-4, Bill Hart wrote: > > OK I

[julia-users] Re: Problems with in, == and Tuples of types

2016-03-22 Thread 'Bill Hart' via julia-users
OK I solved (5). Apparently promote_rule needs to be defined for both orderings of its arguments if one wants it to work with arguments in either order. I can't think of any reason why one wouldn't expect a promote_rule to come up with a common type to which both can be promoted, regardless of

[julia-users] Re: Problems with in, == and Tuples of types

2016-03-22 Thread 'Bill Hart' via julia-users
Another problem: 5) We have been using promote_type to find out the type returned by a promote_rule we defined, which has mostly worked fine, oddly enough. But now that I realise that's not what promote_type is for, I switched to using promote_rule instead, since it just returns Union{} if

[julia-users] writemime and compose.jl

2016-03-22 Thread Cedric St-Jean
I've got some object whose notebook representation I make with Compose.jl. I have draw_object(obj) = draw(SVGJS(100, 100), compose(...)) How do I turn that into a `writemime` method? So far I have function Base.writemime(st::IO, ty::MIME"image/png", obj::Object) draw_object(obj) end but

[julia-users] Re: Problems with in, == and Tuples of types

2016-03-22 Thread 'Bill Hart' via julia-users
Apparently, promote_type doesn't return the type you get from a promote_rule, but the smallest type which can contain both types, which apparently doesn't have to be a concrete type or even something you get from a promote_rule! That's really confusingly named! That means we are using

[julia-users] Re: Problems with in, == and Tuples of types

2016-03-22 Thread Jeffrey Sarnoff
`@StefanKarpinski`? On Tuesday, March 22, 2016 at 5:10:03 PM UTC-4, Jeffrey Sarnoff wrote: > > afaik, Julia does elegant -- but I have no insight into the situation at > hand; tossing this to `@stefankarpinski` > > On Tuesday, March 22, 2016 at 3:52:23 PM UTC-4, Bill Hart wrote: >> >> Thanks,

[julia-users] Re: Problems with in, == and Tuples of types

2016-03-22 Thread Jeffrey Sarnoff
afaik, Julia does elegant -- but I have no insight into the situation at hand; tossing this to `@stefankarpinski` On Tuesday, March 22, 2016 at 3:52:23 PM UTC-4, Bill Hart wrote: > > Thanks, that looks like an elegant solution if we can make it work. > Unfortunately it doesn't. > > I added

[julia-users] Re: Problems with in, == and Tuples of types

2016-03-22 Thread 'Bill Hart' via julia-users
This is proving impossible to work around. Firstly, I can't seem to produce a minimal example of the behaviour I just mentioned. If the promote_rule_exists function is placed in the Nemo module itself it returns a different value to if I define the function at the REPL. But if I place it in a

Re: [julia-users] Tools for creating presentation slides with Julia code?

2016-03-22 Thread Cedric St-Jean
I don't know about R code, but Jupyter can do a slideshow out of the box. On my vanilla setup, in the toolbar, "Cell Toolbar" has a slideshow option, and there is a `--to slides` option in nbconvert's man page. Please post your

[julia-users] Re: Hello, How do I find my mentor for GSoC2016?

2016-03-22 Thread Hyun
Thank you for your advice. As I told you yesterday, here is my Julia source code for tiling parallel matrix-matrix multiplication. https://github.com/usefulhyun/mmm-julia/blob/master/src/mmm_tiling_parallel.jl It is quite rough version, because I made it hastily, but I checked it work

[julia-users] Re: Problems with in, == and Tuples of types

2016-03-22 Thread 'Bill Hart' via julia-users
Thanks, that looks like an elegant solution if we can make it work. Unfortunately it doesn't. I added the following function to Nemo: function promote_rule_exists{T1, T2}(::Type{T1}, ::Type{T2}) return Union{} != Base.promote_rule(T1, T2) end But when I do

[julia-users] Re: Problems with in, == and Tuples of types

2016-03-22 Thread Jeffrey Sarnoff
This checks whether a specific promote rule exists: promotionExists{T1, T2}( ::Type{T1}, ::Type{T2} ) = (Union{} != promote_rule(T1,T2)) On Tuesday, March 22, 2016 at 11:37:56 AM UTC-4, Bill Hart wrote: > > I'm having trouble understanding the following behaviour > in 0.5.0-dev+3171. I

Re: [julia-users] Help needed regarding INERITANCE

2016-03-22 Thread Stefan Karpinski
Read through the julia-dev thread I linked to – this is addressed in depth there. On Tue, Mar 22, 2016 at 12:55 PM, Mauro wrote: > > By the way isn't type Basic in my code a composite type? > > Basic is defined both as `type` and as `abstract` which will error. > > > So is

Re: [julia-users] Tools for creating presentation slides with Julia code?

2016-03-22 Thread Jeffrey Sarnoff
I have been using Beamer in LaTeX with minted: copied or transcribed sections from the REPL into nice looking code using the minted environment.

Re: [julia-users] Help needed regarding INERITANCE

2016-03-22 Thread Mauro
> By the way isn't type Basic in my code a composite type? Basic is defined both as `type` and as `abstract` which will error. > So is there any way of inheritance among composite types ? No. > Also is there any libraries which I can refer to which uses extensive > inheritance? > > In C++ we

Re: [julia-users] Tools for creating presentation slides with Julia code?

2016-03-22 Thread Mauro
> On Tuesday, March 22, 2016 at 11:00:13 AM UTC-5, Mauro wrote: > > I think you can do it with Jupyter notebooks, which also work with R. > > > Are you thinking of the RISE extension (https://github.com/damianavila/ > RISE.git) for Jupyter notebooks? I couldn't say whether RISE is what is

Re: [julia-users] ANN: Julia 0.4.5 released

2016-03-22 Thread Milan Bouchet-Valat
Le mardi 22 mars 2016 à 16:41 +, SVAKSHA a écrit : > Hi, > > On Tue, Mar 22, 2016 at 3:49 PM, Tamas Papp wrote: > > > > > > > > For Debian (Jessie), I am using using the official packages which is > > > currently at ver-0.4.3 via apt-get. I would also like to know what is

Re: [julia-users] ANN: Julia 0.4.5 released

2016-03-22 Thread SVAKSHA
Hi, On Tue, Mar 22, 2016 at 3:49 PM, Tamas Papp wrote: >> For Debian (Jessie), I am using using the official packages which is >> currently at ver-0.4.3 via apt-get. I would also like to know what is >> the proper way to upgrade - are the ubuntu PPA's tested on Debian >> stable

Re: [julia-users] LLVM error?

2016-03-22 Thread Isaiah Norton
Yes, known. See https://github.com/JuliaLang/julia/pull/15300 https://github.com/JuliaLang/julia/issues/15533 On Tue, Mar 22, 2016 at 12:28 PM, Andrea Pagnani wrote: > Dear All, > > fresh new 0.5 > > Version 0.5.0-dev+3224 (2016-03-22 14:53 UTC) > Commit 013e0fe* (0

Re: [julia-users] Tools for creating presentation slides with Julia code?

2016-03-22 Thread Douglas Bates
On Tuesday, March 22, 2016 at 11:00:13 AM UTC-5, Mauro wrote: > > I think you can do it with Jupyter notebooks, which also work with R. > Are you thinking of the RISE extension (https://github.com/damianavila/RISE.git) for Jupyter notebooks? I think I would need to use more than one notebook

Re: [julia-users] LLVM error?

2016-03-22 Thread Andrea Pagnani
Ok thanks! On Tuesday, March 22, 2016 at 5:30:40 PM UTC+1, Isaiah wrote: > > Yes, known. See > https://github.com/JuliaLang/julia/pull/15300 > https://github.com/JuliaLang/julia/issues/15533 > > > On Tue, Mar 22, 2016 at 12:28 PM, Andrea Pagnani > wrote: > >> Dear All,

Re: [julia-users] LLVM error?

2016-03-22 Thread Yichao Yu
Also see an ugly workaround @ https://github.com/stevengj/PyCall.jl/pull/249 On Tue, Mar 22, 2016 at 12:30 PM, Isaiah Norton wrote: > Yes, known. See > https://github.com/JuliaLang/julia/pull/15300 > https://github.com/JuliaLang/julia/issues/15533 > > > On Tue, Mar 22,

Re: [julia-users] Re: GSoC 2016 - Simple persistent distributed storage Project

2016-03-22 Thread Soujanya Ponnpalli
Hello, By going through Parallel Computing package of Julia, I understand that it is used for any of the functionalities that we would want to provide with the Simple Distributed Storage. I believe that there is no role of it in building a distributed storage. Please let me know if there is

[julia-users] LLVM error?

2016-03-22 Thread Andrea Pagnani
Dear All, fresh new 0.5 Version 0.5.0-dev+3224 (2016-03-22 14:53 UTC) Commit 013e0fe* (0 days old master) x86_64-apple-darwin15.4.0 after a using PyPlot julia exit with a LLVM ERROR: Program used external function '_julia_getindex_23789' which could not be resolved! Just to check if it is

Re: [julia-users] Help needed regarding INERITANCE

2016-03-22 Thread kunal singh
By the way isn't type Basic in my code a composite type? So is there any way of inheritance among composite types ? Also is there any libraries which I can refer to which uses extensive inheritance? In C++ we can easily inherit classes ? Why don't we have such ease in Julia ? On Tuesday, March

Re: [julia-users] Tools for creating presentation slides with Julia code?

2016-03-22 Thread Mauro
I think you can do it with Jupyter notebooks, which also work with R. On Tue, 2016-03-22 at 16:46, Douglas Bates wrote: > This issue comes up in various forms from time to time. I will be giving a > presentation in a few days about mixed-effects models in R and Julia. If it >

Re: [julia-users] ANN: Julia 0.4.5 released

2016-03-22 Thread Tamas Papp
On Tue, Mar 22 2016, SVAKSHA wrote: > On Tue, Mar 22, 2016 at 9:27 AM, Tamas Papp wrote: >> >> Otherwise, what is a 'clean' way of installing on Debian/Ubuntu, so that > > For Debian (Jessie), I am using using the official packages which is > currently at ver-0.4.3 via apt-get.

Re: [julia-users] Help needed regarding INERITANCE

2016-03-22 Thread Stefan Karpinski
Have a read on this oldish thread: https://groups.google.com/forum/#!topic/julia-dev/eA4VkFAD-yQ. Still applies today. On Tue, Mar 22, 2016 at 11:30 AM, kunal singh wrote: > > > On Tuesday, March 22, 2016 at 8:43:50 PM UTC+5:30, Mauro wrote: >> >> > Hi Mauro , >> > >> > Can

[julia-users] Tools for creating presentation slides with Julia code?

2016-03-22 Thread Douglas Bates
This issue comes up in various forms from time to time. I will be giving a presentation in a few days about mixed-effects models in R and Julia. If it was an R-only presentation I would probably use the the RStudio tools to create slides from .Rmd (R Markdown) sources. I would appreciate

[julia-users] Problems with in, == and Tuples of types

2016-03-22 Thread 'Bill Hart' via julia-users
I'm having trouble understanding the following behaviour in 0.5.0-dev+3171. I wonder if someone can tell me what I'm doing wrong. module Mymod type mytype end end sig_table = [x.sig for x in methods(Base.promote_rule)] V = Tuple{typeof(Base.promote_rule),Type{Mymod.mytype},Type{Int64}}

Re: [julia-users] Help needed regarding INERITANCE

2016-03-22 Thread Stefan Karpinski
Let me turn this around. Why do you feel like you need to inherit from a concrete type? On Tue, Mar 22, 2016 at 11:28 AM, kunal singh wrote: > > > On Tuesday, March 22, 2016 at 8:43:50 PM UTC+5:30, Mauro wrote: >> >> > Hi Mauro , >> > >> > Can you show me any example ? >> >

Re: [julia-users] Help needed regarding INERITANCE

2016-03-22 Thread kunal singh
On Tuesday, March 22, 2016 at 8:43:50 PM UTC+5:30, Mauro wrote: > > > Hi Mauro , > > > > Can you show me any example ? > > I am a beginner in Julia. It would of great help for me. > > In Julia the number types are defined here: > >

Re: [julia-users] Help needed regarding INERITANCE

2016-03-22 Thread kunal singh
On Tuesday, March 22, 2016 at 8:43:50 PM UTC+5:30, Mauro wrote: > > > Hi Mauro , > > > > Can you show me any example ? > > I am a beginner in Julia. It would of great help for me. > > In Julia the number types are defined here: > >

Re: [julia-users] Help needed regarding INERITANCE

2016-03-22 Thread Mauro
> Hi Mauro , > > Can you show me any example ? > I am a beginner in Julia. It would of great help for me. In Julia the number types are defined here: https://github.com/JuliaLang/julia/blob/fdbcdf78bf0106e609a8d83b9e896d2d11bae594/base/boot.jl#L156 So there are the abstract types: abstract

Re: [julia-users] Help needed regarding INERITANCE

2016-03-22 Thread kunal singh
Hi Mauro , Can you show me any example ? I am a beginner in Julia. It would of great help for me. On Tuesday, March 22, 2016 at 8:01:47 PM UTC+5:30, Mauro wrote: > > You can only inherit from abstract types. Also, first defining > > type number > ... > end > > and then > > abstract

Re: [julia-users] Re: performace of loops Julia vs Blas

2016-03-22 Thread Erik Schnetter
On Tue, Mar 22, 2016 at 4:36 AM, Igor Cerovsky wrote: > The factor ~20% I've mentioned just because it is something what I've > commonly observed, and of course can vary, and isn't that important. > > What bothers me is: why the performance drops 2-times, when I combine

Re: [julia-users] Help needed regarding INERITANCE

2016-03-22 Thread Mauro
You can only inherit from abstract types. Also, first defining type number ... end and then abstract number is not possible. It cannot be both abstract and concrete. (Also note that types are by convention Captialized). So build your hierarchy only with abstract types and make concrete

[julia-users] Help needed regarding INERITANCE

2016-03-22 Thread kunal singh
So basically there is a type called Basic defined as follows type Basic ptr::Ptr{Void} function Basic() z = new(C_NULL) ccall((:basic_new_stack, :libsymengine), Void, (Ptr{Basic}, ), ) finalizer(z, basic_free) return z end end Now I want to create a

[julia-users] Re: When will juno-atom bundle become available?

2016-03-22 Thread Keith Campbell
Julia is largely a volunteer effort. Perhaps you'll be lucky and another member of the community will step forward to volunteer. But more likely, if you really want this to happen, you will need to be the one to make it so.

[julia-users] Re: Tail indexing

2016-03-22 Thread Luke Stagner
Ah so thats what its called. Thanks for the links. I do hope that gets into Base. On Tuesday, March 22, 2016 at 5:19:36 AM UTC-7, mschauer wrote: > > > Hello, > there is relevant discussion and a sketch how to implement something like > this at > >

[julia-users] Re: Tail indexing

2016-03-22 Thread mschauer
Hello, there is relevant discussion and a sketch how to implement something like this at http://stackoverflow.com/questions/30159815/is-there-a-julia-equivalent-to-numpys-ellipsis-slicing-syntax/30163887#30163887 and https://github.com/JuliaLang/julia/issues/5405 Am Dienstag, 22. März 2016

[julia-users] Tail indexing

2016-03-22 Thread Luke Stagner
Hello, I've recently come across a situation where I needed to index an array a[:,:,i,j] without having to know how many colons I needed. I accomplished this with the following code. function recursive_slicedim(A,dims,inds) d_len = length(dims) s = slicedim(A,dims[d_len],inds[d_len])

[julia-users] Re: When will juno-atom bundle become available?

2016-03-22 Thread Yao Lu
I mean an atom bundle with julia and other plugins installed 在 2016年3月21日星期一 UTC+8下午10:07:01,Chris Rackauckas写道: > > It's available. > > https://github.com/JunoLab/atom-julia-client/tree/master/manual > > Or do you mean a Julia/Atom bundle with the client pre-installed? > > On Monday, March 21,

Re: [julia-users] Re: Announcing JuDE: autocomplete and jump to definition support for Atom

2016-03-22 Thread Mike Innes
This is very cool! RE the path, perhaps it could make sense for Jude to check for the `julia-client.juliaPath` before defaulting to `julia`? I'm also hoping that julia-client can expose some kind of API eventually so that people can build whatever custom interactions they want. Autocomplete in

Re: [julia-users] ANN: Julia 0.4.5 released

2016-03-22 Thread SVAKSHA
On Tue, Mar 22, 2016 at 10:08 AM, Milan Bouchet-Valat wrote: > The PPA is currently unmaintained due to lack of manpower. The fact > that it's still mentioned on the platform-specific instructions page is > an oversight. > > For now, the best way to get the latest release on

Re: [julia-users] ANN: Julia 0.4.5 released

2016-03-22 Thread Milan Bouchet-Valat
Le mardi 22 mars 2016 à 09:54 +, SVAKSHA a écrit : > Hi, > > On Tue, Mar 22, 2016 at 9:27 AM, Tamas Papp wrote: > > > > > > Otherwise, what is a 'clean' way of installing on Debian/Ubuntu, so > > that > For Debian (Jessie), I am using using the official packages which is

Re: [julia-users] ANN: Julia 0.4.5 released

2016-03-22 Thread SVAKSHA
Hi, On Tue, Mar 22, 2016 at 9:27 AM, Tamas Papp wrote: > > Otherwise, what is a 'clean' way of installing on Debian/Ubuntu, so that For Debian (Jessie), I am using using the official packages which is currently at ver-0.4.3 via apt-get. I would also like to know what is the

Re: [julia-users] DataFrame from string

2016-03-22 Thread Eric Forgy
On Tuesday, March 22, 2016 at 5:12:35 PM UTC+8, Milan Bouchet-Valat wrote: > > I never said it would be added to Base. I should have been a bit more > explicit, but I was referring to the next version of DataFrames.jl. > Phew. That makes sense. So I was confused. Not the first time and won't be

Re: [julia-users] ANN: Julia 0.4.5 released

2016-03-22 Thread Tamas Papp
Hi, Are the Ubuntu/Debian binaries still meant to be available at https://launchpad.net/~staticfloat/+archive/ubuntu/juliareleases ? They are mentioned in the platform-specific instructions at http://julialang.org/downloads/platform.html but the latest version seems to be 0.4.2. Otherwise, what

[julia-users] Re: facing problem in building Pakages

2016-03-22 Thread Jeffrey Sarnoff
that in combination with recompiling the current gmp worked wget https://gmplib.org/download/gmp/gmp-6.1.0.tar.lz lzip -d gmp* tar -xvf gmp* cd gmp-6.1.0 ./configure --enable-cxx make -j4 sudo make install julia

Re: [julia-users] DataFrame from string

2016-03-22 Thread Milan Bouchet-Valat
Le lundi 21 mars 2016 à 20:00 -0700, Eric Forgy a écrit : > > And with the next release (available from git master) you will be > > able  > > to do this directly:  > > df = csv"""  > > 1, 7.6  > > 2, 45.6  > > 3, 12.1  > > ...  > > """  > This looks cool and my first reaction was, "Neat!", but why

Re: [julia-users] Re: performace of loops Julia vs Blas

2016-03-22 Thread Igor Cerovsky
The factor ~20% I've mentioned just because it is something what I've commonly observed, and of course can vary, and isn't that important. What bothers me is: why the performance drops 2-times, when I combine two routines where each one alone causes performance drop 0.2-times? In other words I