[julia-users] Re: Google Summer of Code 2016 - Ideas Page

2016-02-11 Thread Sisyphuss
Since Atom will be the canonical IDE for Julia, maybe the project juliette can be removed from that list. On Thursday, February 11, 2016 at 4:49:19 AM UTC+1, Shashi Gowda wrote: > > Hi all, > > I have merged the previous ideas pages (2015, 2014) into a canonical one >

Re: [julia-users] if .. else on a whole array

2016-02-11 Thread Michael Borregaard
Note that both of these versions will return an array, allowing for type stability Den torsdag den 11. februar 2016 kl. 09.40.27 UTC+1 skrev Michael Borregaard: > > If you are worried about maintaining two versions, that can be solved > simply: > function foo(x::Vector{bar}) > #the main code

[julia-users] Julia on Ubuntu tablet M10

2016-02-11 Thread Sisyphuss
Canonical and Bq are going to launch a tablet running Ubuntu this year. Is Julia able to run on that platform ?

Re: [julia-users] if .. else on a whole array

2016-02-11 Thread Michael Borregaard
If you are worried about maintaining two versions, that can be solved simply: function foo(x::Vector{bar}) #the main code of your function end function foo(x::bar) foo([x]) end Den onsdag den 10. februar 2016 kl. 13.15.30 UTC+1 skrev Ferran Mazzanti: > > Thanks Mauro... > > using two

Re: [julia-users] if .. else on a whole array

2016-02-11 Thread Tim Holy
If the input is a scalar and the output is a scalar, that's also type-stable. Type-stability is about "predictability of the output type, given the input types," not "always returns the same type." Also, wrapping scalars in an array will have a significant performance cost. Best, --Tim On

[julia-users] Googling the functions I need in Julia is hard

2016-02-11 Thread Po Choi
One thing I hate Julia is that it is very hard to google for the functions I need. I feel like Julia has no documentation. If I google "R standard deviation", the first link is https://stat.ethz.ch/R-manual/R-devel/library/stats/html/sd.html which tells all the things about the standard

Re: [julia-users] julia's GC freeing up space in a 2D array? (an array of pointers which point to pointers which point to structs)

2016-02-11 Thread Gabriel Goh
shit, you hit the nail on the head. they were allocated from a Julia buffer, which was probabily GC'ed. Thanks!!1 On Thursday, February 11, 2016 at 1:14:52 PM UTC-8, Yichao Yu wrote: > > On Thu, Feb 11, 2016 at 1:59 PM, Gabriel Goh > wrote: > > Let's say I have a program

[julia-users] Googling the functions I need in Julia is hard

2016-02-11 Thread Lutfullah Tomak
There is this one http://docs.julialang.org/en/release-0.4/stdlib/math/#Base.std Instead of google, I use this manual for search.

Re: [julia-users] Calling a macro to generate functions

2016-02-11 Thread Mauro
Macros only work on syntax but not on values, as you noted in your post. Here again: julia> macro test(args...) @show args :() end julia> @test k[5] u[i] args = (:(k[5]),:(u[i])) () Macros are processed during parsing of the source, no values exists at that point. Jacob

Re: [julia-users] if .. else on a whole array

2016-02-11 Thread Michael Borregaard
Really sorry, just saw this is identical to Mauro's suggestion :-/ Michael Den torsdag den 11. februar 2016 kl. 11.39.12 UTC+1 skrev Michael Borregaard: > > Thanks for clarifying that! > So do you suggest > [code] > function foo(x::bar) > #the function body > end > > function

[julia-users] Re: Packaging Julia project for Open Respoducable Science

2016-02-11 Thread Lyndon White
I just realized that not only am I dependent on Julia packages. but via PyCall, I am also dependent on python packages. How utterly terrifying packaging this will be. I suspect I will end up failing to meet the goal of a package anyone can just click and run. But I can at least release all the

Re: [julia-users] Re: Voronoi tess / ccall with Fortran

2016-02-11 Thread Stefan Karpinski
Not legally, but it's best to be clear that the combined work is GPL. On Thu, Feb 11, 2016 at 2:03 PM, Tom Breloff wrote: > Just to be super clear... if I was to use this package from within Plots, > would I need to change anything about my license file? > > On Thu, Feb 11,

[julia-users] Re: ccall with an opaque struct

2016-02-11 Thread Andrew Adare
Yes!! That works: julia> p = Ref{Ptr{Void}}() Base.RefValue{Ptr{Void}}(Ptr{Void} @0x) julia> ccall((:sp_get_port_by_name, "libserialport"),Cint,(Cstring, Ref{Ptr{ Void}}), "/dev/cu.usbmodem1413", p) 0 julia> bytestring(ccall((:sp_get_port_name, "libserialport"), Ptr{Cchar}, (

[julia-users] sparse linear system where A=I-beta*Q, Q sparse Markov transition matrix

2016-02-11 Thread ben
Hi everyone, I need to solve a linear system Ax=b where A is a 1000x1000, 99% sparse matrix with the following particular structure: A=I - beta Q, where beta<1 but close to 1 (eg 0.995) and Q is a sparse Markov transition matrix (all coefficients 0

[julia-users] julia's GC freeing up space in a 2D array? (an array of pointers which point to pointers which point to structs)

2016-02-11 Thread Gabriel Goh
Let's say I have a program which returns data = ccall(getcfunction()) data is a pointer to a C-struct, dataload = unsafe_load(data) which in turn contains a field a which is a 2D array, a pointer to some pointers of size 4, say. julia> pointer_to_array(dataload.a,4) Ptr{Node} @0x3b8f66c0

[julia-users] DataStreams with mixed data

2016-02-11 Thread Brandon Booth
I'm trying to stream dataframes to an SQLite table and everything works fine unless the dataframe has both numeric and character columns. When I run: source = DataStreams.Data.Table(df) It works if the dataframe is all strings or all numbers. With mixed data, however, it changes all the values

Re: [julia-users] Re: Voronoi tess / ccall with Fortran

2016-02-11 Thread Tom Breloff
Just to be super clear... if I was to use this package from within Plots, would I need to change anything about my license file? On Thu, Feb 11, 2016 at 1:48 PM, Stefan Karpinski wrote: > Yes, it is completely allowed. As long as you do not violate the GPL > license of the

[julia-users] Re: Coordinates of graph layout algorithms

2016-02-11 Thread Andreas Lobinger
On Thursday, February 11, 2016 at 12:13:21 AM UTC+1, hustf wrote: > > There was an inspiring related thread a little while ago: > > > https://groups.google.com/forum/#!searchin/julia-users/graph$20glvisualize/julia-users/ybGrFVKGyDA/KEf6mY0mCwAJ > > My impression is that this subject is full of

[julia-users] Re: Coordinates of graph layout algorithms

2016-02-11 Thread Andreas Lobinger
Hello colleague, i touched the topic of a 'layout engine' a few times in various julia plotting discussions and would really like to see a package that deal with this, with an abstract interface and not tied to a special rendering step (different than d3.js). Graph layout would be a sub task

Re: [julia-users] usage of eachindex with Array type?

2016-02-11 Thread Mauro
It works like so: julia> for i in eachindex(A) @show A[i] end ... I.e. the `i` is to be used as sole index into the array. What `i` is exactly depends on the type of the array. It's either just a Int or a `CartesianIndex` has a field `I`. But you should not access `I`

[julia-users] Packaging Julia project for Open Respoducable Science

2016-02-11 Thread Lyndon White
I've been working in IJulia for all of my experimental needs. I am now submitting the paper and I wish to submit my code and data along with it. I also probably should include a copy of julia. Since my code works in Julia 0.5, but I am confidant it doesn't work in any prior versions (such as

Re: [julia-users] Re: Packaging Julia project for Open Respoducable Science

2016-02-11 Thread Stefan Karpinski
This is not Julia-specific, but the ReproZip tool is really cool: https://vida-nyu.github.io/reprozip/ You record running your program on a Linux system and it monitors all of the system calls that your programs make and then zips up all of the required files – including shared libraries, etc. –

[julia-users] Cxx.jl object address stability?

2016-02-11 Thread Oliver Schulz
Hi, is the memory address (seen from C++) of objects created via `@cxx SomeClass()` (or similar) stable over time (GC cycles)? I need to use a container class whose elements keep a pointer to the container itself. I want Julia to own the container, so it should be subject to garbage

[julia-users] Re: [julia-dev] Re: Google Summer of Code 2016 - Ideas Page

2016-02-11 Thread Mike Innes
We definitely wouldn't be against having a really solid Julietta.jl / GtkIDE.jl based application. There are pros and cons to all of the different IDE approaches, and GSoC is a great opportunity to work on whatever interests you the most! In general, please don't be shy about adding ideas, or

[julia-users] Re: let unpack

2016-02-11 Thread Pablo Zubieta
let; (a,b,c) = (1, 2, 3); a end (note the semicolon) works. But I think it should work as Mauro stated.

Re: [julia-users] usage of eachindex with Array type?

2016-02-11 Thread Mauro
> Thank you Mauro, CartesianRange(size(A)) seems to be what I am looking for. That should automatically be done for you by eachindex. In fact, eachindex will select the fastest method available for iterating over all indices. But if you need extras, as described in that blog post of Tim, then

[julia-users] usage of eachindex with Array type?

2016-02-11 Thread Evan
Hi, I am trying to understand how to use eachindex with an array. For example, I can do: julia> A = zeros(Int, (3,2)) 3x2 Array{Int64,2}: 0 0 0 0 0 0 followed by: julia> for iter in eachindex(A) @show iter.I[1], iter.I[2] @show A[iter]

Re: [julia-users] usage of eachindex with Array type?

2016-02-11 Thread Evan
Thank you Mauro, CartesianRange(size(A)) seems to be what I am looking for. Evan On Thursday, February 11, 2016 at 11:42:11 AM UTC+1, Mauro wrote: > > It works like so: > julia> for i in eachindex(A) > @show A[i] >end > > ... > > I.e. the `i` is to be used as sole index

Re: [julia-users] if .. else on a whole array

2016-02-11 Thread Andrew
You can try the @vectorize_1arg macro. Just define u2 as you did, then @vectorize_1arg Number u2. Or, if you don't want to use the macro, you can try a for loop. Example: function u2(x::AbstractArray) out = similar(x) for i in eachindex(x) out[i] = u2(x[i]) end return out end On

[julia-users] Re: [julia-dev] Re: Google Summer of Code 2016 - Ideas Page

2016-02-11 Thread Pranit Bauva
I am interested in Ordinary Differential Equations package. But when I was reading the conversations on the mailing list as well as on GitHub, someone mentioned that quite a bit of work has already been done. So I want to know the status as well as future prospects of the package ODE.jl . And

Re: [julia-users] if .. else on a whole array

2016-02-11 Thread Michael Krabbe Borregaard
Thanks for clarifying that! So do you suggest [code] function foo(x::bar) #the function body end function foo(x::AbstractVector{bar}) map(foo, x) end [/code] On Thu, Feb 11, 2016 at 10:33 AM, Tim Holy wrote: > If the input is a scalar and the output is a scalar, that's

[julia-users] Re: What does Expr{:meta,:inline} do to my code?

2016-02-11 Thread Andy Ferris
Thank you Mike for clearing that up. Actually, the docs say @inline simply inserts that :meta: http://docs.julialang.org/en/release-0.4/devdocs/meta/. Maybe that's too simplistic. Actually, I *was* looking at this because I wanted to make inline generated functions and see how they behave with

Re: [julia-users] Code introspection for generated function

2016-02-11 Thread Andy Ferris
OK, I thought what Tim wrote might be helpful for me so I took the expression generated by this and stuck it into a function which I then compiled to see the code_native (I want to see code_native/code_lowered of the final generated function - not the Julia code from a generated function which

[julia-users] Re: Packaging Julia project for Open Respoducable Science

2016-02-11 Thread Michael Borregaard
In terms of scientific reproducibility, I do not think that saving a click-and-run package is necessarily the best way to further that. What about unstated assumptions in your code, or (shiver) bugs? IMHO, submitting human-readable (i.e. annotated) source code is a stronger way to ensure

[julia-users] Re: Coordinates of graph layout algorithms

2016-02-11 Thread Tom Breloff
Iain: since the package is yours, would you like to transfer it to an org (JuliaGraphics?) or would you prefer that I just copy/paste some of your code into a new package? (It seems a waste to deprecate it!) On Thursday, February 11, 2016, Andreas Lobinger wrote: > > > On

Re: [julia-users] quick 'n ez way to get allsupertypes(x), allsubtypes(x)?

2016-02-11 Thread Milan Bouchet-Valat
Le mercredi 10 février 2016 à 14:12 -0800, Jeffrey Sarnoff a écrit : > > I need a tuple -- it could have internal subtuples to organize > subtypes of a subtype. > > The use is to investigate more expressively elaborated and more > flexibly organized alternatives to the current Numeric hierarchy.

Re: [julia-users] Re: [julia-dev] Re: Google Summer of Code 2016 - Ideas Page

2016-02-11 Thread Mauro
> I am interested in Ordinary Differential Equations package. But when I was > reading the conversations on the mailing list as well as on GitHub, someone > mentioned that quite a bit of work has already been done. So I want to know > the status as well as future prospects of the package ODE.jl .

[julia-users] Re: What does Expr{:meta,:inline} do to my code?

2016-02-11 Thread Michael Hatherly
I’m assuming including the Expr(:meta,:inline) is the correct thing to do for generated functions? The trick is to interpolate the Expr(:meta, :inline) into the Expr returned by mysub2ind_gen, so something like: julia> function mysub2ind_gen(N) ex = :(I[$N] - 1) for i =

[julia-users] Conflict with Images and Gadfly in v0.4.3 ?

2016-02-11 Thread Anita SV
Hi julia-users, I was trying to use both Images and Gadfly together. (I couldn't get PyPlot to work nicely with @manipulate of Interact, hence using Gadfly). Where should I report this bug, to Images, or to Gadfly itself? Thank you, *> Pkg.status()* 7 required packages: - Gadfly

[julia-users] ccall with an opaque struct

2016-02-11 Thread Lutfullah Tomak
Try p = Ptr{Int}[] julia> ccall((:sp_get_port_by_name, "libserialport"),Cint,(AbstractString, Ref{Ptr{Int}}),"/dev/cu.usbmodem1413",p) or im;mutable Port x:

Re: [julia-users] Re: let unpack

2016-02-11 Thread Jeff Bezanson
Yes, this should definitely work. I'm a bit surprised it doesn't already. On Thu, Feb 11, 2016 at 4:57 AM, Pablo Zubieta wrote: > let; (a,b,c) = (1, 2, 3); a end > > (note the semicolon) works. But I think it should work as Mauro stated.

[julia-users] ccall with an opaque struct

2016-02-11 Thread Andrew Adare
I'm trying to call out to some library functions from libserialport . It is a small c library that makes extensive use of opaque structs in the API. In c I can do the following: #include #include // Compile: // gcc -o example example.c $(pkg-config

[julia-users] Re: IJulia Precompilation troubles.

2016-02-11 Thread Steven G. Johnson
It sounds like you're running into: https://github.com/JuliaLang/julia/issues/12508 IJulia is already loaded, but probably in your Julia session you've done Pkg.update() or something which updated either IJulia itself or one of its dependencies. This causes IJulia to be recompiled when

Re: [julia-users] Conflict with Images and Gadfly in v0.4.3 ?

2016-02-11 Thread Tom Breloff
Here's the relevant issue: https://github.com/JuliaStats/DataArrays.jl/issues/168 On Thu, Feb 11, 2016 at 10:48 AM, Tom Breloff wrote: > No need to report... this is well known. I think the solution will > eventually come from a change to ambiguity warnings within base Julia.

[julia-users] Re: Google Summer of Code 2016 - Ideas Page

2016-02-11 Thread 'Tobi' via julia-users
Yes please remove Julietta from the list since I don't have time to work on this project anymore and atom seems to be processing further. However, it would be absolutely great if better support for writing simple guis would improve. Both Winston and Gtk.jl could benefit from some SOC

Re: [julia-users] Conflict with Images and Gadfly in v0.4.3 ?

2016-02-11 Thread Tom Breloff
No need to report... this is well known. I think the solution will eventually come from a change to ambiguity warnings within base Julia. (I hope?) On Thu, Feb 11, 2016 at 5:21 AM, Anita SV wrote: > Hi julia-users, > I was trying to use both Images and Gadfly

[julia-users] Re: ccall with an opaque struct

2016-02-11 Thread Lutfullah Tomak
p = Ptr{Int}[0] ccall((:sp_get_port_by_name, "libserialport"),Cint,(AbstractString, Ref{Ptr{Int}}),"/dev/cu.usbmodem1413",p) or immutable Port portpointer::Ptr{Void} end p=Port(0) ccall((:sp_get_port_by_name, "libserialport"),Cint,(AbstractString, Ref{Port}),"/dev/cu.usbmodem1413",p)

[julia-users] Re: documentation suggestions

2016-02-11 Thread Douglas Bates
Hi Ivo, Good to hear from you. On Wednesday, February 10, 2016 at 9:58:37 AM UTC-6, ivo welch wrote: > > > ladies and gents---I am not (yet) a julia user. > > may I suggest adding more examples into two places where julia users will > face starting hurdles? > > [1] the I/O docs of julia. like,

Re: [julia-users] Re: ccall with an opaque struct

2016-02-11 Thread Lutfullah Tomak
Hi Yuchiao. Thanks for advice.

Re: [julia-users] Re: documentation suggestions

2016-02-11 Thread Ariel Katz
Hello, With regards to your specific point about CSV I/O, there are a several ways to read CSV files in Julia. - Dataframes .jl: df = readtable("data.csv") - Base:

[julia-users] Pivoted Cholesky pstrf for degenerate multivariate random normal draw

2016-02-11 Thread Michael Lindon
The covariance matrix of my multivariate normal is not full rank and so regular cholesky throws a positive definite error. However, it is possible to do a pivoted cholesky decomposition. Quoting from the netlib manual of pstrf : http://www.netlib.org/lapack/explore-html/dd/dad/dpstrf_8f.html

[julia-users] looking for an equivalent function to "independence_test" in the R coin package

2016-02-11 Thread Albert Cardona
The formula operator is there via the GLM package [1], but I can't find the equivalent of the independent_test function [2]. [1] https://github.com/JuliaStats/GLM.jl [2] http://www.inside-r.org/packages/cran/coin/docs/IndependenceTest Thanks in advance for any pointers. Albert

Re: [julia-users] Re: documentation suggestions

2016-02-11 Thread ivo welch
hi doug---and vice-versa. it's interesting that a core function (reading a .csv file) would not be in a native julia library. when are you switching your students to julia? regards, /iaw Ivo Welch (ivo.we...@gmail.com) http://www.ivo-welch.info/ J. Fred Weston Distinguished Professor of

Re: [julia-users] Re: ccall with an opaque struct

2016-02-11 Thread Lutfullah Tomak
Sorry I couldn't test my examples. I'm glad someone more knowledgeable corrects the code. I think the second one I'm suggesting needs to be p=Ref{Port}() #looking Yuchiao comment. I learn myself too, maybe I should look at docs again. Ref confuses me.

Re: [julia-users] julia's GC freeing up space in a 2D array? (an array of pointers which point to pointers which point to structs)

2016-02-11 Thread Yichao Yu
On Thu, Feb 11, 2016 at 1:59 PM, Gabriel Goh wrote: > Let's say I have a program which returns > > data = ccall(getcfunction()) > > data is a pointer to a C-struct, > > dataload = unsafe_load(data) > > which in turn contains a field a which is a 2D array, a pointer to some >

[julia-users] Re: sparse linear system where A=I-beta*Q, Q sparse Markov transition matrix

2016-02-11 Thread Christoph Ortner
How can a sparse direct solver fail? That seems strange to me. With 1000 x 1000 even a full direct solver should take no time: julia> A = rand(1000,1000); b = rand(1000); @time A \ b; 0.023178 seconds (15 allocations: 7.645 MB)

Re: [julia-users] Re: ccall with an opaque struct

2016-02-11 Thread Yichao Yu
On Thu, Feb 11, 2016 at 3:39 PM, Lutfullah Tomak wrote: > Sorry I couldn't test my examples. I'm glad someone more knowledgeable > corrects the code. > > I think the second one I'm suggesting needs to be > > p=Ref{Port}() #looking Yuchiao comment. Using a mutable type

[julia-users] Re: DataStreams with mixed data

2016-02-11 Thread Brandon Booth
I should clarify, with mixed data, all columns starting with the first numeric column are changed to #NULL. So the first 11 columns are text, columns 12-15 are numeric, and then 16-20 are text. When I convert it to Data.Table, columns 1-11 are strings and columns 12 - 20 are #NULL.

[julia-users] Calling a macro to generate functions

2016-02-11 Thread Julia Tylors
Hi; I am having a problem of calling a macro with predetermined values from a Dictionary. How do i solve this problem? Thanks module X const cmds = Dict{Symbol,Symbol}( :L => :leech, :R => :raise ) macro fun_gen(fname,label) efname = esc(fname) elabel = esc(label) quote function

[julia-users] Re: sparse linear system where A=I-beta*Q, Q sparse Markov transition matrix

2016-02-11 Thread ben
Hi, thanks for taking the time to reply. You made me go back and find a reference/copy error deep in my code... because of badly designed tests and bad luck in the circumstances triggering an error I had managed to convince myself the issue came from this linear system. Thanks again. Ben On

[julia-users] sub-ranges within CartesianRange

2016-02-11 Thread Greg Plowman
Suppose I have a CartesianRange and want to access a sub-range. start = CartesianIndex((1,1,1)) stop = CartesianIndex((5,5,5)) cr = CartesianRange{start, stop) Something like: sub_cr = SubCartesianRange(cr,x,y) where x,y are arbitrary CartesianIndexes within cr. then I could do for a in

Re: [julia-users] Autoformatting for Julia?

2016-02-11 Thread Maxim Grechkin
Was there any progress on this lately? I've noticed that atom-beautify plugin doesn't have Julia support(https://github.com/Glavin001/atom-beautify/issues/799), but there doesn't seem to be a tool that it can hook into. On Saturday, January 11, 2014 at 9:22:14 AM UTC-8, Stefan Karpinski wrote:

[julia-users] Invalid redefinition when redefining an identical parameterized type

2016-02-11 Thread Kristoffer Carlsson
I have a file that defines a type and a few functions. Sometimes I want to reload this file in the REPL to update some modified functions in the file. If the type is parameterized then this will fail even though the type definition does not change. Example: julia> type Foo a::Int

Re: [julia-users] Conflict with Images and Gadfly in v0.4.3 ?

2016-02-11 Thread Tim Holy
It's also "only annoying," meaning it doesn't cause actual problems. --Tim On Thursday, February 11, 2016 10:50:11 AM Tom Breloff wrote: > Here's the relevant issue: > https://github.com/JuliaStats/DataArrays.jl/issues/168 > > On Thu, Feb 11, 2016 at 10:48 AM, Tom Breloff

[julia-users] Re: Coordinates of graph layout algorithms

2016-02-11 Thread hustf
GraphLayout is a nice and useful package which would be a pity to deprecate. Perhaps what is needed is just the courage and enthusiasm to change the interface or delete the less useful or tough to maintain parts?

Re: [julia-users] Invalid redefinition when redefining an identical parameterized type

2016-02-11 Thread Stefan Karpinski
Defining types in a module and then reloading the module helps. The bindings get messy though, so it's best to qualify all accesses when you're developing like that. This is kind of an annoyance – not sure how hard it would be to fix but it should be doable. On Thu, Feb 11, 2016 at 12:10 PM,

[julia-users] Re: IJulia Precompilation troubles.

2016-02-11 Thread lmagarshack
I tried doing the same thing on a separate "fresher" install just in case, still get the same error. For now I'll put my code that uses IJulia in a *__precompile__(false)* module.

Re: [julia-users] Invalid redefinition when redefining an identical parameterized type

2016-02-11 Thread Kristoffer Carlsson
Ah, that's a good idea! Thanks! On Thursday, February 11, 2016 at 6:32:06 PM UTC+1, Stefan Karpinski wrote: > > You could also make the type definition conditional and only evaluate it > if it isn't already defined. > > On Thu, Feb 11, 2016 at 12:21 PM, Kristoffer Carlsson

[julia-users] Re: Voronoi tess / ccall with Fortran

2016-02-11 Thread Robert DJ
I ended up wrapping the Fortran code from the R package. If it's of interest I'm sharing the code: https://github.com/robertdj/Deldir.jl

Re: [julia-users] Re: ccall with an opaque struct

2016-02-11 Thread Yichao Yu
On Thu, Feb 11, 2016 at 12:28 PM, Andrew Adare wrote: > Thanks for the suggestions, but neither appear to work. The first produces a > nonzero pointer, > > julia> p = Ptr{Int}[0] > 1-element Array{Ptr{Int64},1}: > Ptr{Int64} @0x > > > julia>

[julia-users] Re: Voronoi tess / ccall with Fortran

2016-02-11 Thread Tony Kelman
Note that if you're redistributing GPL Fortran code, you should include the text of the GPL in your license file (with a note, as you have in the readme, that says it's applicable to the Fortran code).

Re: [julia-users] Re: Voronoi tess / ccall with Fortran

2016-02-11 Thread Tom Breloff
Thanks Robert... it is of interest :) I'm curious... is this really allowed? The Julia code in this package is MIT licensed and the Fortran code is > licensed under GPL. Can I call this from another package that is fully MIT (and without mentioning the license), or does that GPL notice need to

Re: [julia-users] Code introspection for generated function

2016-02-11 Thread Simon Byrne
This might fall under: https://github.com/JuliaLang/julia/issues/2625 On Thursday, 11 February 2016 02:54:42 UTC, Andy Ferris wrote: > > OK thanks Tim! > > Is there some way/plan to fix this in the future, to make it more > convenient? > > Andy > > On Wednesday, February 10, 2016 at 10:27:38 PM

Re: [julia-users] Re: Packaging Julia project for Open Respoducable Science

2016-02-11 Thread Oliver Schulz
Care (http://reproducible.io/) (based on PRoot, http://proot.me/) may also be an interesting option. I've used it before to pack up a complete Julia installation (including packages and required system libraries) on Ubuntu 14.04 and then run it on Scientific Linux 6. Care and PRoot are

Re: [julia-users] quick 'n ez way to get allsupertypes(x), allsubtypes(x)?

2016-02-11 Thread Jeffrey Sarnoff
stop the presses .. I had misread your initial solution, entering this: subtypestree(x) = length(subtypes(x)) > 1 ? map(subtypestree, subtypes(x)) : x[subtypestree(AbstractArray)...;] ... rather than this: concreteSubtypesTree(x) = length(subtypes(x)) > 1 ? map(concreteSubtypesTree,

[julia-users] Re: ccall with an opaque struct

2016-02-11 Thread Andrew Adare
Thanks for the suggestions, but neither appear to work. The first produces a nonzero pointer, julia> p = Ptr{Int}[0] 1-element Array{Ptr{Int64},1}: Ptr{Int64} @0x julia> ccall((:sp_get_port_by_name, "libserialport"),Cint,(AbstractString,

Re: [julia-users] Invalid redefinition when redefining an identical parameterized type

2016-02-11 Thread Stefan Karpinski
You could also make the type definition conditional and only evaluate it if it isn't already defined. On Thu, Feb 11, 2016 at 12:21 PM, Kristoffer Carlsson wrote: > Modules might work but they bring other annoyances... I would be fine with > a warning and just ignoring

Re: [julia-users] Packaging Julia project for Open Respoducable Science

2016-02-11 Thread Tom Breloff
Lyndon: You might want to get in touch with Simon Adar ( si...@code-ocean.com). His company is building out a platform for reproducible research (code, visualizations, etc) and you might be able to beta test. (I've gotten a sneak peek, and it's a pretty cool service) On Thu, Feb 11, 2016 at

Re: [julia-users] Re: Coordinates of graph layout algorithms

2016-02-11 Thread Tom Breloff
I'm willing to step up! I just don't want to step on Iain's toes. My plan would be: - strip out all drawing-related code - simplify the interface - add some "_apply_recipe" methods in Plots for Graphs.jl objects, which would abstract the drawing from both the layout and the backend Then the

Re: [julia-users] Invalid redefinition when redefining an identical parameterized type

2016-02-11 Thread Kristoffer Carlsson
Modules might work but they bring other annoyances... I would be fine with a warning and just ignoring the whole type block. Similar to: julia> const a = 1 1 julia> const a = 2 WARNING: redefining constant a 2 couldn't it be: julia> type Foo2{T} a::T end julia> type Foo2{T}

[julia-users] Re: Packaging Julia project for Open Respoducable Science

2016-02-11 Thread Josh Day
How about releasing it as a Julia package? You can handle your (Julia) dependencies with the REQUIRE file. I'm working on a reproducible PhD thesis, and that's the route I'm going. All my julia code and tex files will be in there and can be built from scratch. On Thursday, February 11, 2016

[julia-users] Re: Julia on Ubuntu tablet M10

2016-02-11 Thread Perrin Meyer
probably, i'm able to compile julia on my asus c201 chromebook (quad core rockchip arm) using chroot and ubuntu. takes a while... On Thursday, February 11, 2016 at 1:46:59 AM UTC-8, Sisyphuss wrote: > > > > Canonical and Bq are going to launch a tablet running Ubuntu this year. > > Is Julia

Re: [julia-users] Re: Voronoi tess / ccall with Fortran

2016-02-11 Thread Stefan Karpinski
Yes, it is completely allowed. As long as you do not violate the GPL license of the code you are creating a derived work with – and the releasing your code under the MIT license satisfies the GPL, so it's fine. What you cannot do is release a derived work that is or uses proprietary code since