Re: [julia-users] Problems using PyCall and Igraph

2015-07-10 Thread Seth
Hi Charles, igraph is indeed very good, but you might want to look at some Julia-native graph libraries. Graphs.jl and LightGraphs.jl are available, and the latter performs very favorably compared with igraph. On Friday, July 10, 2015 at 4:57:36 PM UTC-7, Charles Santana wrote: > > Hi again, >

[julia-users] Re: Workaround for a PosDefException in eigs?

2015-07-10 Thread Viral Shah
Could you file an issue and also the matrix? That way, this won't get lost. -viral On Saturday, July 11, 2015 at 1:04:47 AM UTC+5:30, Stef Kynaston wrote: > > Dear all, > > I am experiencing some problems with eigs, and wondered if anyone had any > suggestions for a workaround. > > I need to fin

[julia-users] Re: Juliacon 2015 videos?

2015-07-10 Thread Viral Shah
We have to work through all these details still. -viral On Friday, July 10, 2015 at 11:19:31 PM UTC+5:30, Ismael VC wrote: > > Please could anyone tell me what's the situation with the videos > copyrights would I be allowed to translate them into Spanish? > > El miércoles, 1 de julio de 2015, 7

[julia-users] Re: max function on sparse matrices

2015-07-10 Thread Viral Shah
Could you please file an issue? -viral On Saturday, July 11, 2015 at 12:28:52 AM UTC+5:30, Huda Nassar wrote: > > *julia> **A = sprand(5,5,2/5)* > > *5x5 sparse matrix with 9 Float64 entries:* > > *[3, 1] = 0.640396* > > *[3, 2] = 0.873544* > > *[3, 3] = 0.278582* >

Re: [julia-users] Re: is there compile-time dispatch on constants from a v0.4 @enum

2015-07-10 Thread Jeffrey Sarnoff
Val{} is Julicious! Now .. if enums would be so kind ... to provide a clean way to do this: @enum(ThisEnum, enum1, enum2, enum3) ThisEnum_the_enums = [an_enumed for an_enumed in instances(ThisEnum)] ThisEnum_ValOf_enumed = [Val{an_enumed} for an_enumed in ThisEnum_the_enums] ThisEnum_Va

Re: [julia-users] Problems using PyCall and Igraph

2015-07-10 Thread Charles Novaes de Santana
Hi again, Just to say that I have installed the nightly version of julia (0.4.0-dev+5920 (2015-07-10) and checked out the master branch of PyCall, by running: Pkg.rm("PyCall") Pkg.add("PyCall") Pkg.checkout("PyCall") Now my python-igraph library seems to be working perfectly. I could successfull

Re: [julia-users] Re: Trying to understand memory allocation

2015-07-10 Thread Yichao Yu
On Fri, Jul 10, 2015 at 7:39 PM, Simon Danisch wrote: > Let blocks seem not to be fully optimizable... > So rather try using const. This eliminated the allocations for me. > Related issues: > https://github.com/JuliaLang/julia/issues/10224 > https://github.com/JuliaLang/julia/issues/7953 > > Best,

Re: [julia-users] Re: is there compile-time dispatch on constants from a v0.4 @enum

2015-07-10 Thread Tom Breloff
Awesome! I didn't know about Val... thanks Kevin. On Friday, July 10, 2015 at 5:02:49 PM UTC-4, Kevin Squire wrote: > > It actually exists in Julia v0.4, as the `Val` type: > > julia> @enum Fruit apple orange banana > > julia> apple > apple::Fruit > > julia> isbits(apple) > true > > julia> functi

[julia-users] Re: Trying to understand memory allocation

2015-07-10 Thread Simon Danisch
Let blocks seem not to be fully optimizable... So rather try using const. This eliminated the allocations for me. Related issues: https://github.com/JuliaLang/julia/issues/10224 https://github.com/JuliaLang/julia/issues/7953 Best, Simon Am Freitag, 10. Juli 2015 14:29:20 UTC-7 schrieb Zouhair Ma

Re: [julia-users] Problems using PyCall and Igraph

2015-07-10 Thread Yichao Yu
On Fri, Jul 10, 2015 at 7:16 PM, Charles Novaes de Santana wrote: > Thanks for your answer, Yichao! I am installing the nightly version of julia > and I will try the master version of PyCall. > > I was trying to wrap C++-Igraph into my julia code by using Cpp.jl, however > it seems to be a bit tri

Re: [julia-users] Problems using PyCall and Igraph

2015-07-10 Thread Charles Novaes de Santana
Thanks for your answer, Yichao! I am installing the nightly version of julia and I will try the master version of PyCall. I was trying to wrap C++-Igraph into my julia code by using Cpp.jl, however it seems to be a bit tricky because my c++ codes are not that simple. Do you (or anybody else) recom

Re: [julia-users] Problems using PyCall and Igraph

2015-07-10 Thread Yichao Yu
On Fri, Jul 10, 2015 at 6:07 PM, Charles Novaes de Santana wrote: > Dear Julians, > > Igraph is an amazing library to work with graphs, currently available for R, > C/C++ and Python (http://igraph.org). I am trying to use it with Julia by > using PyCall but I am facing some issues very similar to

[julia-users] Re: Problems using PyCall and Igraph

2015-07-10 Thread Charles Novaes de Santana
Sorry, just to mention: I am using a machine with Ubuntu 14.04.1. Best, Charles On 11 July 2015 at 00:07, Charles Novaes de Santana < charles.sant...@gmail.com> wrote: > Dear Julians, > > Igraph is an amazing library to work with graphs, currently available for > R, C/C++ and Python (http://igr

[julia-users] Problems using PyCall and Igraph

2015-07-10 Thread Charles Novaes de Santana
Dear Julians, Igraph is an amazing library to work with graphs, currently available for R, C/C++ and Python (http://igraph.org). I am trying to use it with Julia by using PyCall but I am facing some issues very similar to the ones related in the following links: https://github.com/JuliaLang/pyjul

[julia-users] Trying to understand memory allocation

2015-07-10 Thread Zouhair Mahboubi
I’m trying to optimize my code, and since one of the bottle necks is garbage collection, I’ve been trying to get rid of unnecessary memory allocation. In the process, I ended up dealing with this case: let X = Int64[1,2,3,14] function sub2(X::Vector{Int64}, nNodes::Int64) N = length(X):

[julia-users] Re: collect(a:b) vs. [a:b;] in v0.4

2015-07-10 Thread Patrick Belliveau
Thanks Josh! That makes a lot of sense. I didn't see that github discussion when I was googling this. Patrick On Friday, July 10, 2015 at 8:10:14 AM UTC-7, Josh Langsfeld wrote: > > You can see the discussion about changing the deprecation suggestion here: > https://github.com/JuliaLang/julia/p

Re: [julia-users] Re: "Newbie" issue tag?

2015-07-10 Thread Michele Zaffalon
I wouldn't want to sound negative but #7153 links to #7206 which refers to #7959 , which is still in discussion: hardly an "intro issue". Also #11540

[julia-users] Performance question on a dictionary of arrays

2015-07-10 Thread Jeremy Kozdon
Hello all, The following minimal example is confusing me. In each case the same operations are performed, in several cases it seems that a copy of the array seems to be made even though the original array is the one getting modified. Any assistance as to what I am doing incorrectly would be ap

Re: [julia-users] Re: is there compile-time dispatch on constants from a v0.4 @enum

2015-07-10 Thread Kevin Squire
It actually exists in Julia v0.4, as the `Val` type: julia> @enum Fruit apple orange banana julia> apple apple::Fruit julia> isbits(apple) true julia> function what_am_i{T}(::Val{T}) println("I'm a $T, of type $(typeof(T))") end what_am_i (generic function with 1 method) julia

[julia-users] Re: is there compile-time dispatch on constants from a v0.4 @enum

2015-07-10 Thread Tom Breloff
As far as I know, this would require the ability to dispatch on values in general, since enum values are just const instances of an immutable type. I know this feature has been requested (and I'd certainly make use of it as well), but I'm not sure I'd expect it anytime soon. On Friday, July 10

[julia-users] is there compile-time dispatch on constants from a v0.4 @enum

2015-07-10 Thread Jeffrey Sarnoff
Or, is dispatch on enum values planned? Can I tell when a function parameter will dispatch on its arg value at compile-time? thanks.

[julia-users] Workaround for a PosDefException in eigs?

2015-07-10 Thread Stef Kynaston
Dear all, I am experiencing some problems with eigs, and wondered if anyone had any suggestions for a workaround. I need to find the smallest positive eigenvalue, lambda, of the generalised eigenvalue problem A*v = lambda*B*v Here, A and B are large, sparse symmetric stiffness matrices from a

[julia-users] max function on sparse matrices

2015-07-10 Thread Huda Nassar
*julia> **A = sprand(5,5,2/5)* *5x5 sparse matrix with 9 Float64 entries:* *[3, 1] = 0.640396* *[3, 2] = 0.873544* *[3, 3] = 0.278582* *[4, 3] = 0.751313* *[1, 4] = 0.644883* *[2, 4] = 0.0778264* *[3, 4] = 0.848185* *

[julia-users] Re: Juliacon 2015 videos?

2015-07-10 Thread Ismael VC
Please could anyone tell me what's the situation with the videos copyrights would I be allowed to translate them into Spanish? El miércoles, 1 de julio de 2015, 7:07:18 (UTC-5), Hans-Peter escribió: > > Will there be videos of the 2015 Juliacon? Where... :-) > Thanks. >

Re: [julia-users] Re: Help to eliminate Calendar.jl dependence

2015-07-10 Thread Tom Breloff
Ok thanks Jacob and Jeffrey... I'm looking forward to both of your efforts! On Friday, July 10, 2015 at 12:49:45 PM UTC-4, Jacob Quinn wrote: > > > On Fri, Jul 10, 2015 at 8:11 AM, Tom Breloff > wrote: > >> as > > > Tom, > > Yes, the method I proposed won't work retroactively since the method for

Re: [julia-users] Re: Help to eliminate Calendar.jl dependence

2015-07-10 Thread Jacob Quinn
On Fri, Jul 10, 2015 at 8:11 AM, Tom Breloff wrote: > as Tom, Yes, the method I proposed won't work retroactively since the method for getting the current local offset from GMT is `now() - now(Dates.UTC)`. If you were to run that every second crossing over the daylight savings moment, you'd se

[julia-users] Re: Help to eliminate Calendar.jl dependence

2015-07-10 Thread Jeffrey Sarnoff
That is for others to say. I am doing it the way that I feel is best. On Friday, July 10, 2015 at 12:15:49 PM UTC-4, Tom Breloff wrote: > > Great Jeffrey... happy to help test, although it's clear you're more of a > "time-guru" than me. Are you working on something orthogonal to > Dates/TimeZo

[julia-users] Re: Help to eliminate Calendar.jl dependence

2015-07-10 Thread Tom Breloff
Great Jeffrey... happy to help test, although it's clear you're more of a "time-guru" than me. Are you working on something orthogonal to Dates/TimeZones, or is it meant to be a replacement? On Friday, July 10, 2015 at 12:03:52 PM UTC-4, Jeffrey Sarnoff wrote: > > (mine .. will :) > I plan to

Re: [julia-users] Deep Dreams via Mocha?

2015-07-10 Thread Spencer Russell
I don't know about the caffe interoperability, but there's already a ProtoBuf.jl[1]. It may be that the only thing preventing a Julia variant is someone doing it. -s On Fri, Jul 10, 2015, at 11:31 AM, Jeff Waller wrote: > So the deep dreams setup is available and the notebook is very simple > her

[julia-users] Re: Help to eliminate Calendar.jl dependence

2015-07-10 Thread Jeffrey Sarnoff
(mine .. will :) I plan to have a shake-me-down, fully capable (not fully elaborated) version around the end of the month. If you would like, -- email me some test cases that are relevant to you (search "github jeffrey sarnoff", my email is on that page). I have not put any current code up on gi

Re: [julia-users] Re: Environment reification and lazy evaluation

2015-07-10 Thread Brandon Taylor
I don't know if you came across the vignette? http://cran.r-project.org/web/packages/lazyeval/vignettes/lazyeval.html ? dplyr uses lazyeval extensively, see http://cran.r-project.org/web/packages/dplyr/vignettes/nse.html . The cool thing about being able to incorporate this kind of thing in Jul

[julia-users] Deep Dreams via Mocha?

2015-07-10 Thread Jeff Waller
So the deep dreams setup is available and the notebook is very simple here are the relevant components that it uses from cStringIO import StringIO import numpy as np import scipy.ndimage as nd import PIL.Image #from PIL import Image from IPython.display import clear_output, Image, display from go

Re: [julia-users] Re: Constructing tuples using Tuple

2015-07-10 Thread Yichao Yu
On Fri, Jul 10, 2015 at 11:21 AM, Kevin Squire wrote: > To clarify what I think Yichao is trying to say: > > julia> Tuple{Int64,Int64}((2,3)) === (2,3) > true > > Do you have a need to construct a tuple with the first syntax that can't be > done with the second? Yes that's exactly what I meant an

Re: [julia-users] Re: Juliacon 2015 videos?

2015-07-10 Thread Christian Peel
I understand the attraction of releasing all the JuliaCon videos at once; another option is to just release them as you finish editing or otherwise preparing each one, in a sort of just-in-time way :-)This later technique of releasing one-by-one may even allow more focused attention on one pa

Re: [julia-users] Re: Constructing tuples using Tuple

2015-07-10 Thread Kevin Squire
To clarify what I think Yichao is trying to say: julia> Tuple{Int64,Int64}((2,3)) === (2,3) true Do you have a need to construct a tuple with the first syntax that can't be done with the second? On Fri, Jul 10, 2015 at 8:07 AM, Yichao Yu wrote: > On Fri, Jul 10, 2015 at 11:02 AM, andrew cooke

Re: [julia-users] Re: Environment reification and lazy evaluation

2015-07-10 Thread Cedric St-Jean
On Friday, July 10, 2015 at 5:51:05 AM UTC-4, Fabian Gans wrote: > > Hi Cedric, > > a macroexpand shortcut for the REPL shouldn't be a big problem, I just > tried to prototype one and it seems to work fine: > https://github.com/meggart/julia/commit/73c96897572cedf10f74fd09907232c706bbdf48 > > Is

[julia-users] Re: collect(a:b) vs. [a:b;] in v0.4

2015-07-10 Thread Josh Langsfeld
You can see the discussion about changing the deprecation suggestion here: https://github.com/JuliaLang/julia/pull/11369 I think people liked it because it's a bit of an abuse of terminology to call the [a:b;] form 'concatenation' when there is only one object being put into the array. The 'col

Re: [julia-users] Re: Constructing tuples using Tuple

2015-07-10 Thread Yichao Yu
On Fri, Jul 10, 2015 at 11:02 AM, andrew cooke wrote: > > if it doesn't affect you that's great! means it would mean it's easy to > change without worrying you... Well, my question is why would you want to call it? > > On Friday, 10 July 2015 11:57:57 UTC-3, Yichao Yu wrote: >> >> On Fri, Jul 1

Re: [julia-users] Errors while trying to install Cxx Package

2015-07-10 Thread Kostas Tavlaridis-Gyparakis
Ok, this did work. Thanks a lot for the suggestion. I actually haven't proceeded with trying this, cause I thought that since the moment julia command was not working inside the source folder the problem had to do with the installation itself and not with linking. My mistake. Thanks a lot for all

Re: [julia-users] Errors while trying to install Cxx Package

2015-07-10 Thread El suisse
for add softlink: sudo ln -s /home/kostav/julia/./julia /usr/local/bin ​ 2015-07-10 11:57 GMT-03:00 Isaiah Norton : > Also both 'julia/usr/bin/julia` and `julia/usr/bin/julia-debug` do exist. > > What else could I try? > > > Run one of them? > > bar@baz:~/julia$ /home/kostav/julia/usr/bin/julia

Re: [julia-users] Errors while trying to install Cxx Package

2015-07-10 Thread Kostas Tavlaridis-Gyparakis
I did open both locations in terminal and type julia and I still get the same msg that: "The program 'julia' is currently not installed. You can install it by typing: sudo apt-get install julia" Unless if you were meaning sth else and I missunderstood your suggestion On Friday, July 10, 2015

Re: [julia-users] Re: Constructing tuples using Tuple

2015-07-10 Thread andrew cooke
if it doesn't affect you that's great! means it would mean it's easy to change without worrying you... On Friday, 10 July 2015 11:57:57 UTC-3, Yichao Yu wrote: > > On Fri, Jul 10, 2015 at 10:52 AM, andrew cooke > wrote: > > https://github.com/JuliaLang/julia/issues/8470#issuecomment-120427405

Re: [julia-users] Errors while trying to install Cxx Package

2015-07-10 Thread Isaiah Norton
> > Also both 'julia/usr/bin/julia` and `julia/usr/bin/julia-debug` do exist. What else could I try? Run one of them? bar@baz:~/julia$ /home/kostav/julia/usr/bin/julia On Fri, Jul 10, 2015 at 10:50 AM, Kostas Tavlaridis-Gyparakis < kostas.tavlari...@gmail.com> wrote: > Thanks a lot for pointi

Re: [julia-users] Re: Constructing tuples using Tuple

2015-07-10 Thread Yichao Yu
On Fri, Jul 10, 2015 at 10:52 AM, andrew cooke wrote: > https://github.com/JuliaLang/julia/issues/8470#issuecomment-120427405 > Well, I don't really find this an issue since you don't really need to call it directly. Not even the `tuple` function. > > > On Friday, 10 July 2015 11:09:13 UTC-3, Sc

Re: [julia-users] Re: Environment reification and lazy evaluation

2015-07-10 Thread Cedric St-Jean
On Thursday, July 9, 2015 at 10:35:30 PM UTC-4, Brandon Taylor wrote: > > To walk back in time, you could say something like: compile this like this > was is in line 8. Or compile this like this was in line 5. It seems like > Julia already has some of this functionality in macros. Internal vari

Re: [julia-users] Re: Environment reification and lazy evaluation

2015-07-10 Thread Isaiah Norton
Right now the best resources to learn how the compiler works are the developer docs and Jeff's talk at JuliaCon last year. http://docs.julialang.org/en/latest/#developer-documentation https://www.youtube.com/watch?v=osdeT-tWjzk (there were several more compiler-related talks this year; hopefully

[julia-users] Re: Constructing tuples using Tuple

2015-07-10 Thread andrew cooke
https://github.com/JuliaLang/julia/issues/8470#issuecomment-120427405 On Friday, 10 July 2015 11:09:13 UTC-3, Scott Jones wrote: > > @David I totally agree, and I don't think it's just us! Having to > remember that a trailing , is necessary for single element tuples threw me > a lot at first a

Re: [julia-users] Errors while trying to install Cxx Package

2015-07-10 Thread Kostas Tavlaridis-Gyparakis
Thanks a lot for pointing out the above mentioned part of the Readme file I have had a look on it as well and tried also to add the prefix line in Make.used but also didn't work. Also both 'julia/usr/bin/julia` and `julia/usr/bin/julia-debug` do exist. Make, maketest and make-install all run witho

Re: [julia-users] Errors while trying to install Cxx Package

2015-07-10 Thread Isaiah Norton
If `julia/usr/bin/julia` or `julia/usr/bin/julia-debug` do not exist, then something went wrong in the build. On Fri, Jul 10, 2015 at 10:40 AM, El suisse wrote: > from the README..md > > Once it is built, you can run the julia executable using its full path in > the directory created above (the

Re: [julia-users] Errors while trying to install Cxx Package

2015-07-10 Thread El suisse
from the README..md Once it is built, you can run the julia executable using its full path in the directory created above (the julia directory), or, to run it from anywhere, either - add a soft link to the julia executable in the julia directory to /usr/local/bin (or any suitable direct

Re: [julia-users] Errors while trying to install Cxx Package

2015-07-10 Thread Kostas Tavlaridis-Gyparakis
I downloaded the julia file and located them in the home directory ("/home/kostav/julia") then I run make, make test and make install as well. All of them seem to work. Then when I try to run julia command in terminal opening terminal from the file where the source is located ("/home/kostav/julia

Re: [julia-users] Errors while trying to install Cxx Package

2015-07-10 Thread Seth
I haven't read the entire thread here, but if you're in the top-level julia source directory and have built julia from source, the binary is located in ./usr/bin/julia . On Friday, July 10, 2015 at 7:19:53 AM UTC-7, Kostas Tavlaridis-Gyparakis wrote: > > Any suggestions pls??? > > On Friday, J

Re: [julia-users] Errors while trying to install Cxx Package

2015-07-10 Thread Kostas Tavlaridis-Gyparakis
Any suggestions pls??? On Friday, July 10, 2015 at 11:04:58 AM UTC+2, Kostas Tavlaridis-Gyparakis wrote: > > Finally manage to run make command with no errors. > Yet again after this I perform make test and everything seems to be fine. > Then I run make install and once its finished, I try to run

Re: [julia-users] Re: Environment reification and lazy evaluation

2015-07-10 Thread David Gold
> > Hmm, so the reason that macros are able to function is that they occur > before type computation? I don't know how best to respond to this question, but I will throw out that staged functions are expanded after type information is known to the compiler. On Friday, July 10, 2015 at 10:07

[julia-users] Re: Help to eliminate Calendar.jl dependence

2015-07-10 Thread Tom Breloff
Thanks Jeffrey. Yes based on this I believe the source is erroneously labeled as UTC-time since epoch, when in fact it should have been labeled Unix/POSIX time. I think I have been able to get reasonable results when doing something like (seconds % 86400). My uses are generally very flexible

[julia-users] Re: Constructing tuples using Tuple

2015-07-10 Thread Scott Jones
@David I totally agree, and I don't think it's just us! Having to remember that a trailing , is necessary for single element tuples threw me a lot at first also!

Re: [julia-users] Re: Environment reification and lazy evaluation

2015-07-10 Thread Brandon Taylor
Hmm, so the reason that macros are able to function is that they occur before type computation? One solution might be to make scope annotations that override defaults. Then, when eval is called, it optionally attaches scope annotations to a given scope. Note that scope annotations should be abl

[julia-users] Re: Constructing tuples using Tuple

2015-07-10 Thread David Gold
@Scott maybe it's just me, but passing a tuple to the method that's responsible for constructing precisely that same tuple is kind of unsatisfying! =p On Friday, July 10, 2015 at 9:51:17 AM UTC-4, Scott Jones wrote: > > You need to pass a tuple to the constructor, i.e.: > julia> x = Tuple{Int64}

[julia-users] Re: Constructing tuples using Tuple

2015-07-10 Thread David Gold
@Andrew: I wonder if it's more complicated than that. Clearly tuples aren't implemented that way and the docs language is analogical. However, it seems that constructing a tuple object from non-tuple objects doesn't work the same way as constructing other types: julia> @which tuple(1) ERROR: Ar

[julia-users] Re: Constructing tuples using Tuple

2015-07-10 Thread andrew cooke
(and if it's just a side-effect of the fact that tuples aren't really implemented that way (because you'd need an infinite number of them all with the same name...) then perhaps the language should contain some kind of fix so that the call does work, so that all(?) data types can be handled co

[julia-users] Re: Constructing tuples using Tuple

2015-07-10 Thread Scott Jones
You need to pass a tuple to the constructor, i.e.: julia> x = Tuple{Int64} Tuple{Int64} julia> x((1,)) (1,) On Friday, July 10, 2015 at 9:40:44 AM UTC-4, andrew cooke wrote: > > > sorry, more confusion... why doesn't this work? > > julia> Tuple{Int}(1) > ERROR: MethodError: `convert` has no

[julia-users] Re: Constructing tuples using Tuple

2015-07-10 Thread David Gold
For whatever reason, the relevant method isn't a type constructor: julia> tuple(1) (1,) On Friday, July 10, 2015 at 9:40:44 AM UTC-4, andrew cooke wrote: > > > sorry, more confusion... why doesn't this work? > > julia> Tuple{Int}(1) > ERROR: MethodError: `convert` has no method matching conver

Re: [julia-users] Re: Did something change ~8 days ago with type parameterization in 0.4?

2015-07-10 Thread andrew cooke
all i meant was that julia tends to evaluate things as later as possible, so it's not *that* surprising that something that isn't "used" doesn't cause an error. it wasn't anything deep, sorry. andrew On Friday, 10 July 2015 10:35:11 UTC-3, Seth wrote: > > Andrew, would you mind sharing your

[julia-users] Constructing tuples using Tuple

2015-07-10 Thread andrew cooke
sorry, more confusion... why doesn't this work? julia> Tuple{Int}(1) ERROR: MethodError: `convert` has no method matching convert(::Type{Tuple{ Int64}}, ::Int64) This may have arisen from a call to the constructor Tuple{Int64}(...), since type constructors fall back to convert methods. Closest c

Re: [julia-users] Re: Did something change ~8 days ago with type parameterization in 0.4?

2015-07-10 Thread Yichao Yu
On Fri, Jul 10, 2015 at 9:35 AM, Seth wrote: > Andrew, would you mind sharing your insight here? It made things more > confusing for me, and I don't know how to troubleshott this any further. > Well, since we already have an issue for this https://github.com/JuliaLang/julia/issues/12063, let's co

Re: [julia-users] Re: Did something change ~8 days ago with type parameterization in 0.4?

2015-07-10 Thread Seth
Andrew, would you mind sharing your insight here? It made things more confusing for me, and I don't know how to troubleshott this any further. On Thursday, July 9, 2015 at 10:29:03 AM UTC-7, andrew cooke wrote: > > > ah, that makes a certain kind of sense. thanks for the follow-up. > > On Wednes

Re: [julia-users] Re: How to find last somethink in vector ?

2015-07-10 Thread Milan Bouchet-Valat
Le vendredi 10 juillet 2015 à 06:13 -0700, Christoph Ortner a écrit : > an obvious way to do it is > > first(find(x)) > last(find(x)) > > but there might be more efficient ways. You were quite close: findfirst() and findlast() :-) Regards > Christoph > > > > On Friday, 10 July 2015 14:10:53

Re: [julia-users] Type constructor for Arrays or Tuples

2015-07-10 Thread Tim Holy
Yes (I was being brief, but you're right that could have been confusing). --Tim On Friday, July 10, 2015 05:58:31 AM David Gold wrote: > @Tim, > > On that note, one would also want to amend the declaration of `MyArray` to > `MyArray{T <: MyType}` in order that the type information about the > `v

[julia-users] Re: How to find last somethink in vector ?

2015-07-10 Thread Christoph Ortner
an obvious way to do it is first(find(x)) last(find(x)) but there might be more efficient ways. Christoph On Friday, 10 July 2015 14:10:53 UTC+1, paul analyst wrote: > > How to find last somethink in vector ? > how to find index of last "1" > 1 > 0 > 0 > 1 > 0 > 0 > 0 > 1 > 1 > 0

[julia-users] How to find last somethink in vector ?

2015-07-10 Thread Paul Analyst
How to find last somethink in vector ? how to find index of last "1" 1 0 0 1 0 0 0 1 1 0 0 0 0 0 Paul

Re: [julia-users] Type constructor for Arrays or Tuples

2015-07-10 Thread David Gold
@Tim, On that note, one would also want to amend the declaration of `MyArray` to `MyArray{T <: MyType}` in order that the type information about the `values` field be reflected in the type of the `MyArray` object, correct? On Friday, July 10, 2015 at 8:38:11 AM UTC-4, Tim Holy wrote: > > Off-to

Re: [julia-users] Type constructor for Arrays or Tuples

2015-07-10 Thread Tim Holy
Off-topic, but you also have a major type problem. Use `Array{T,N}` rather than `Array{MyType}`, where `T <: MyType`. See http://docs.julialang.org/en/release-0.3/manual/faq/#how-should-i-declare-abstract-container-type-fields. --Tim On Friday, July 10, 2015 12:17:19 AM Scott Noel-Hemming wrote

[julia-users] Re: Calling a C function with one "By Referece" argument

2015-07-10 Thread Panagiotis Mamatsis
On Wednesday, July 8, 2015 at 1:37:16 PM UTC+3, Panagiotis Mamatsis wrote: > > Hello to everyone, >i am a n00b in Julia language and i am trying to understand the way to > call code written in C via shared libraries. I have started with a 'small > scale' case into which i am trying to call a

Re: [julia-users] Re: Environment reification and lazy evaluation

2015-07-10 Thread Fabian Gans
Hi Cedric, a macroexpand shortcut for the REPL shouldn't be a big problem, I just tried to prototype one and it seems to work fine: https://github.com/meggart/julia/commit/73c96897572cedf10f74fd09907232c706bbdf48 Is there any special functionality/problems which I don't see that should be con

Re: [julia-users] Errors while trying to install Cxx Package

2015-07-10 Thread Kostas Tavlaridis-Gyparakis
Finally manage to run make command with no errors. Yet again after this I perform make test and everything seems to be fine. Then I run make install and once its finished, I try to run Julia command in terminal in the path where the julia source file is located but I receive msg saying that I don'

[julia-users] Is @@ reservd word in Julia ? Can I use @@ in data?

2015-07-10 Thread paul analyst
Is @@ reservd word in Julia ? Can I use @@ in data? Paul

Re: [julia-users] Type constructor for Arrays or Tuples

2015-07-10 Thread Jameson Nash
Tuple{} is v0.4 syntax. on v0.3 use ( ) or Compat. On Fri, Jul 10, 2015 at 3:29 AM Scott Noel-Hemming wrote: > I'm sure I'm missing something obvious here, but can anyone point me to > where I should look to explain this behavior: > > immutable MyArray <: MyType > prefix::Char > values::Arra

[julia-users] Type constructor for Arrays or Tuples

2015-07-10 Thread Scott Noel-Hemming
I'm sure I'm missing something obvious here, but can anyone point me to where I should look to explain this behavior: immutable MyArray <: MyType prefix::Char values::Array{MyType} MyArray(values::Array{MyType}) = new('*', values::Array{MyType}) #MyArray(values::Tuple{MyType}) = new(coll

Re: [julia-users] Unable to reach Azure VM through --machinefile or addprocs, but fine through ssh command

2015-07-10 Thread Amit Murthy
Hmm, the tunnel option is expected to work when only the ssh port is open. Is it possible that the ssh connection setup is throwing up a dialog in the background? For example, when using a keyfile to login to an AWS instance, I use sshflags = `-o UserKnownHostsFile=/dev/null -o StrictHostKeyCheck