[julia-users] Re: Adjacent list

2015-10-10 Thread Christoph Ortner
By lookup I meant searching for a specific entry. Btw, I am fully aware these theoretical algorithmic aspects, and was more interested in implementation performance (when you have millions of such arrays). Anyhow, I didn't realise that Julia grows arrays exponentially, that is useful to know. T

[julia-users] Re: How do I get Juypter to let me create a Julia notebook?

2015-10-10 Thread Ben Cherian
Ok, I'm not sure what happened...I rang the Pkg.dir("IJulia", "deps", "deps.jl") to verify that I was using the Jupyter instance on my path and then just started a python interpreter instance to check the exact python version I had installed. Lo and behold, now when I run "jupyter notebook", ev

[julia-users] Re: Adjacent list

2015-10-10 Thread Steven G. Johnson
On Saturday, October 10, 2015 at 2:34:06 PM UTC-4, Christoph Ortner wrote: > > But then every time you add something you grow the array, and every time > you do a lookup it will be linear cost? > Array access is O(1), and adding elements one-by-one to the array has amortized cost O(log n) bec

[julia-users] Re: How do I get Juypter to let me create a Julia notebook?

2015-10-10 Thread Steven G. Johnson
What Python distribution and Jupyter version are you using? (Is it possible you have multiple versions installed on your system and it is picking the wrong one? You can force IJulia to build with a particular Jupyter program by setting the JUPYTER environment variable to the path of your jupy

Re: [julia-users] Re: Computed function name in ccall

2015-10-10 Thread Yichao Yu
On Sat, Oct 10, 2015 at 8:13 PM, Tony Kelman wrote: > I believe dlsym can get you in trouble with precompilation since the symbol > pointers don't have persistent values, so keep an eye out. Yes, if it is in a (const?) global. The following should work. julia> const ptr2 = Ref{Ptr{Void}}(cgloba

Re: [julia-users] Re: Computed function name in ccall

2015-10-10 Thread Tony Kelman
I believe dlsym can get you in trouble with precompilation since the symbol pointers don't have persistent values, so keep an eye out.

[julia-users] ANN: AMD.jl

2015-10-10 Thread Tony Kelman
Nice! If you plan on registering this in the future, a longer non-acronym name would likely be preferable, something like ApproxMinDegree.jl.

[julia-users] Re: The Julia Community Standards

2015-10-10 Thread Jeffrey Sarnoff
Be respectful, helpful, curious not omniscient, involved not involving. And Julia is very young -- sexualizing her is creepy.

Re: [julia-users] How do I get Juypter to let me create a Julia notebook?

2015-10-10 Thread Ben Cherian
I've tried both "using IJulia; notebook()" from the Julia REPL and trying jupyter notebook from the command line. Both will bring up a browser, but I only have an option to create a Python 3 notebook. There is no option in the new notebook menu to create a Julia-0.4 notebook. On Saturday, Octob

[julia-users] ANN: AMD.jl

2015-10-10 Thread Dominique Orban
It didn't seem like there was a way to compute the AMD ordering of a sparse matrix in Julia. Until now, that is: https://github.com/dpo/AMD.jl

[julia-users] Re: The Julia Community Standards

2015-10-10 Thread Jiahao Chen
The Oxford English Dictionary gives two definitions to the word "sexualize": 1. To attribute sex or gender to (a person or thing); to endow with male or female characteristics. 2. To make (a person or thing) sexual; to endow with erotic nature or character. The supporting quotati

Re: [julia-users] How do I get Juypter to let me create a Julia notebook?

2015-10-10 Thread Tom Breloff
Just to confirm... Are you doing "using IJulia; notebook()" from the julia prompt? On Saturday, October 10, 2015, Ben Cherian wrote: > Hi everyone, > > I recently installed Julia 0.4 on a Windows machine that already had > Python/Numpy installed on it. I also wanted to get IJulia running, so I >

[julia-users] Re: The Julia Community Standards

2015-10-10 Thread Bill Hart
I've read the thread here (not the original) and am somewhat confused actually. Whilst this seems very reasonable -> In particular, do not sexualize the term “Julia” or any other aspects of the project. The following appears to invite contention. While “Julia” is a female name in many parts of

[julia-users] How do I get Juypter to let me create a Julia notebook?

2015-10-10 Thread Ben Cherian
Hi everyone, I recently installed Julia 0.4 on a Windows machine that already had Python/Numpy installed on it. I also wanted to get IJulia running, so I installed Jupyter using pip and then added IJulia using Pkg.add("IJulia"). This all ran successfully without any obvious problems. (There were

[julia-users] Re: Get an array or just a string of all installed Julia packages

2015-10-10 Thread Michael Hatherly
Pkg.installed() returns the currently installed packages and the REQUIRE file found in your .julia/0.4/ folder lists all the explicitly installed packages. So if you copy that file over to a fresh package directory and run Pkg.resolve() that should install everything that you’d need. — Mike ​

[julia-users] Get an array or just a string of all installed Julia packages

2015-10-10 Thread lewis
I would like to generate a list of all the packages I've installed. Each time I install Julia (which I've done a lot recently, but will settle down now that 0.4.0 is released--Yeah!) I need to install packages again. It would be nice to have a list. It would be nicer to be able to install the

Re: [julia-users] Re: Computed function name in ccall

2015-10-10 Thread Dominique Orban
Even better. Thank you! On Saturday, October 10, 2015 at 2:23:36 PM UTC-4, Yichao Yu wrote: > > On Sat, Oct 10, 2015 at 2:16 PM, Dominique Orban > > wrote: > > Ah I see. If I declare > > > > const func1 = :func1 > > const func2 = :func2 > > > > Then @eval ccall((func, "libsomething"), ...)

Re: [julia-users] Re: The Julia Community Standards

2015-10-10 Thread Sebastian Good
Thanks Stefan. On Saturday, October 10, 2015 at 12:32:05 PM UTC-5, Stefan Karpinski wrote: > > That was not an ad hominem attack, it was a request for you to stop > talking over everyone else on a subject about which you've already > demonstrated a considerable lack of awareness or insight. When

[julia-users] Re: Adjacent list

2015-10-10 Thread Kristoffer Carlsson
The cost can be amortized, see https://en.wikipedia.org/wiki/Dynamic_array#Geometric_expansion_and_amortized_cost On Saturday, October 10, 2015 at 8:34:06 PM UTC+2, Christoph Ortner wrote: > > But then every time you add something you grow the array, and every time > you do a lookup it will be l

Re: [julia-users] Re: Adjacent list

2015-10-10 Thread Stefan Karpinski
Arrays are grown exponentially, so the amortized cost of array growing is not bad. On Sun, Oct 11, 2015 at 12:04 AM, Christoph Ortner < christophortn...@gmail.com> wrote: > But then every time you add something you grow the array, and every time > you do a lookup it will be linear cost? > > E.g.

[julia-users] Re: Adjacent list

2015-10-10 Thread Christoph Ortner
But then every time you add something you grow the array, and every time you do a lookup it will be linear cost? E.g. at some point I used an array of IntSet, but I never tested how efficient it was. Christoph

Re: [julia-users] Re: Computed function name in ccall

2015-10-10 Thread Yichao Yu
On Sat, Oct 10, 2015 at 2:16 PM, Dominique Orban wrote: > Ah I see. If I declare > > const func1 = :func1 > const func2 = :func2 > > Then @eval ccall((func, "libsomething"), ...) works. Thanks! > You can also use cglobal/dlsym > > On Saturday, October 10, 2015 at 1:54:33 PM UTC-4, Andreas Lobing

[julia-users] Re: Computed function name in ccall

2015-10-10 Thread Dominique Orban
Ah I see. If I declare const func1 = :func1 const func2 = :func2 Then @eval ccall((func, "libsomething"), ...) works. Thanks! On Saturday, October 10, 2015 at 1:54:33 PM UTC-4, Andreas Lobinger wrote: > > Hello collea > > *gue,*I think you ran into this > > https://github.com/JuliaLang/julia/iss

Re: [julia-users] Re: parse of string followed by number turned into @doc ?

2015-10-10 Thread Stefan Karpinski
While it's a bit odd to document numbers, making the criteria for whether something is a doc string or not as simple as possible seems like it may be a good thing, even if this particular instance of the syntax isn't terribly useful. On Sat, Oct 10, 2015 at 9:47 PM, Isaiah Norton wrote: > I agre

[julia-users] Re: Computed function name in ccall

2015-10-10 Thread Andreas Lobinger
Hello collea *gue,*I think you ran into this https://github.com/JuliaLang/julia/issues/8195 which i did before. The tuple needs to be constant.

[julia-users] Re: Help wanted - does Cairo.jl work for everyone else except me?

2015-10-10 Thread Andreas Lobinger
I attached a question to the libcairo mailing list: http://lists.cairographics.org/archives/cairo/2015-October/026503.html

Re: [julia-users] Re: The Julia Community Standards

2015-10-10 Thread Stefan Karpinski
That was not an ad hominem attack, it was a request for you to stop talking over everyone else on a subject about which you've already demonstrated a considerable lack of awareness or insight. When you're spouting a stream of nonsense here, you are effectively excluding everyone else who might have

Re: [julia-users] Help wanted - does Cairo.jl work for everyone else except me?

2015-10-10 Thread Rob J. Goedman
El Capitan 10.11.1 beta, Julia 0.4: Julia Version 0.4.0 Commit 0ff703b* (2015-10-08 06:20 UTC) Platform Info: System: Darwin (x86_64-apple-darwin13.4.0) CPU: Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell) LAPACK:

Re: [julia-users] Help wanted - does Cairo.jl work for everyone else except me?

2015-10-10 Thread cormullion
Yup, that's a fail. I'm glad I'm not the only one. What systems are you running? On Saturday, October 10, 2015 at 5:48:03 PM UTC+1, Rob J Goedman wrote: > > > Hi, this is what I get. Looks pretty much like your description. > > > Regards, > Rob > > On Oct 10, 2015, at 9:18 AM, cormu...@mac.com w

[julia-users] Re: parse of string followed by number turned into @doc ?

2015-10-10 Thread Scott Jones
Since parse(val::AbstractString) is really for parsing *expressions*, this does seem correct behavior, although a bit surprising. However, after investigating this, I think parse is not correctly documented. The documentation states that: > *help?> * > *parse*search: *parse* *parse*ip *parse*in

Re: [julia-users] Help wanted - does Cairo.jl work for everyone else except me?

2015-10-10 Thread Rob J. Goedman
Hi, this is what I get. Looks pretty much like your description. Regards, Rob > On Oct 10, 2015, at 9:18 AM, cormull...@mac.com wrote: > > I'm trying to find out why Cairo.jl/text_path() doesn't work for me, but > seems to work for others. If you have Cairo.jl installed, could you run the >

Re: [julia-users] Re: parse of string followed by number turned into @doc ?

2015-10-10 Thread Michael Hatherly
Is it common to doc arbitrary numbers? I can’t see much use for documenting things like that either. We could either throw an error in @doc if you try to document a number or change the parser to ignore cases such as that. I’d suspect it would be simpler to fix up @doc rather than the parser.

[julia-users] Computed function name in ccall

2015-10-10 Thread Dominique Orban
There's a bit in the documentation on this, but Julia metaprogramming apparently just doesn't fit in my brain. How do I achieve this: func = condition ? :func1 : :func2 ccall((func, "libsomething"), ...) I tried all combinations of macro, quote and @eval I could make sense of, with no success.

[julia-users] Help wanted - does Cairo.jl work for everyone else except me?

2015-10-10 Thread cormullion
I'm trying to find out why Cairo.jl/text_path() doesn't work for me, but seems to work for others. If you have Cairo.jl installed, could you run the sample_text.jl test file: $ julia ~/.julia/v0.4/Cairo/samples/sample_text.jl There are lots of deprecations, but — the output file is called

Re: [julia-users] Re: parse of string followed by number turned into @doc ?

2015-10-10 Thread Isaiah Norton
I agree with MDC Francis that this is kind of odd. Is it common to doc arbitrary numbers? Supporting this isnt necessary to doc MathConsts... (it also didn't seem to work properly for ints or floats when I tried -- the doc was added to meta, but help didn't seem to find it). On Oct 10, 2015 11:50

Re: [julia-users] Excel UDF

2015-10-10 Thread Isaiah Norton
There is no COM support built in. The COM ABI can be called from C by representing interfaces as structs of function pointers. Technically the same thing could be done from Julia, though putting it all together would take some work. If you are interested in working on this (which would be great!),

[julia-users] Re: parse of string followed by number turned into @doc ?

2015-10-10 Thread Michael Hatherly
If you want to disable the automatic @doc then you can append a ; to the string or nest the expressions in a begin ... end block: "hello"; 3.142 begin "hello" 3.142 end — Mike ​ On Friday, 9 October 2015 22:02:37 UTC+2, Michael Francis wrote: > > Julia 0.4 rc4 > > I get the followi

Re: [julia-users] Re: The Julia Community Standards

2015-10-10 Thread Scott Jones
On Saturday, October 10, 2015 at 7:53:58 AM UTC-4, Stefan Karpinski wrote: > > Anthropomorphization is fine, sexualization is not. The main reason that > using "she" to refer to Julia is not great is that the next thing is so > often to sexualize the term, not because there's anything objection

Re: [julia-users] Passing a void** to C

2015-10-10 Thread Dominique Orban
Thanks. It's all working now. On Friday, October 9, 2015 at 7:11:35 AM UTC-4, Tony Kelman wrote: > > On 0.3, try convert(Ptr{Ptr{Void}}, 0) > > > On Friday, October 9, 2015 at 4:03:51 AM UTC-7, Dominique Orban wrote: >> >> Thanks for the responses! No luck so far though: >> >> julia> akeep = Ptr{P

Re: [julia-users] How to have type parameters T less than DenseArray{AbstractFloat} in the covariant sense?

2015-10-10 Thread cheng wang
It works perfectly well. Thanks a lot!! I am curious why doesn't Julia support DenseArray{<:AbstractFloat} ?? Since your way means exactly above. On Saturday, October 10, 2015 at 4:08:53 PM UTC+2, Gnimuc Key wrote: > > sorry, i misunderstood what you want to define. > > julia> F = TypeVar(:F, Un

Re: [julia-users] How to have type parameters T less than DenseArray{AbstractFloat} in the covariant sense?

2015-10-10 Thread Gnimuc
sorry, i misunderstood what you want to define. julia> F = TypeVar(:F, Union{}, AbstractFloat) F<:AbstractFloat julia> type Boo{T<:DenseArray{F}} x::T end julia> Boo Boo{T<:DenseArray{F<:AbstractFloat,N}} julia> Baz([1.2]) Baz{Array{Float64,1}}([1.2]) is this what you want

Re: [julia-users] How to have type parameters T less than DenseArray{AbstractFloat} in the covariant sense?

2015-10-10 Thread cheng wang
nope. call(T, 100) does not create a subtype of DenseArray{T}. The issues Steven mentioned is of great help. Thanks. On Saturday, October 10, 2015 at 3:44:27 PM UTC+2, Gnimuc Key wrote: > > type Foo{T<:AbstractFloat} >> x:: DenseArray{T} >> Foo() = new(call(T, 100)) >> end > > > do you me

[julia-users] Re: Loading files and scoping of variables in parallel code

2015-10-10 Thread Sara Freeman
I've encountered a similar problem, but do not have a solution to report. I'm not sure why require was depreciated. It worked quite well. On Friday, October 9, 2015 at 10:35:20 AM UTC-4, Christopher Fisher wrote: > > Hi all- > > I am trying to load a file of functions on a cluster of computers

Re: [julia-users] How to have type parameters T less than DenseArray{AbstractFloat} in the covariant sense?

2015-10-10 Thread Gnimuc Key
> > type Foo{T<:AbstractFloat} > x:: DenseArray{T} > Foo() = new(call(T, 100)) > end do you mean this? 在 2015年10月10日星期六 UTC+8下午9:36:39,cheng wang写道: > > I also want to use it to create a new type like the following (just > example, not correct code): > type Foo{F<:AbstractFloat, T

Re: [julia-users] How to have type parameters T less than DenseArray{AbstractFloat} in the covariant sense?

2015-10-10 Thread cheng wang
I also want to use it to create a new type like the following (just example, not correct code): type Foo{F<:AbstractFloat, T > In the meantime, you can use > > foo{T<:AbstractFloat}(x::DenseArray{T}) > > to get what you want. > > // T > >

[julia-users] Re: there is a problem with pull request tests??

2015-10-10 Thread Tony Kelman
There have been some issues with 32 bit binaries recently, causing appveyor to fail tests. A fix is making its way through the buildbots now, I plan to restart all the failed builds once things should be working again. On Friday, October 9, 2015 at 4:45:57 PM UTC-7, cheng wang wrote: > > I noti

[julia-users] Re: a pmap question involving Monte Carlo

2015-10-10 Thread Christopher Fisher
Creating a "super" array has worked for me in the past. Of course, someone with more experience might have a more elegant solution. Good luck! On Saturday, October 10, 2015 at 8:52:38 AM UTC-4, james...@gmail.com wrote: > > Hi Christopher: > > Thank you for the suggestions. I think I understand

[julia-users] Re: a pmap question involving Monte Carlo

2015-10-10 Thread jamesmnason
Hi Christopher: Thank you for the suggestions. I think I understand. Is the fix to create a "super" array, super_array, that contains all the inputs PF_outer wants to pass to PF_inner, i.e., output = pmap(PF_Inner, super_array)? I will give your suggestions a go later today or tomorrow and

[julia-users] Re: The Julia Community Standards

2015-10-10 Thread Scott Jones
Reply to SVAKSHA's comment (https://groups.google.com/forum/#!topic/julia-users/cIghG0GJ114%5B101-125%5D) in original thread: > I think Sisyphuss might actually have meant "genderization", not > > "sexualization" > > (I'm not sure if English is Sisyphuss' first language, which might > explain

[julia-users] Re: a pmap question involving Monte Carlo

2015-10-10 Thread Christopher Fisher
Another thing to check is how you are mapping your inputs to the available workers. Just to give you a simple example, suppose you have a function called MyModel that accepts an array of parameters and each worker receives the same parameters. The basic steps would be: Nworkers = 3 parms = [.3

[julia-users] Re: Adjacent list

2015-10-10 Thread Steven G. Johnson
On Saturday, October 10, 2015 at 6:57:22 AM UTC-4, Thuener Silva wrote: > > What is the best way to represent adjacent lists in Julia? By adjacent > list I a mean dinamic array of dinamic arrays. > Arrays of arrays work fine in Julia, and all 1d arrays can be dynamically resized.

[julia-users] Re: ANN: ErrorLineNumber package

2015-10-10 Thread Steven G. Johnson
See also https://github.com/JuliaLang/julia/pull/13491 for recent progress...

[julia-users] Re: ANN: ErrorLineNumber package

2015-10-10 Thread Christoph Ortner
sounds really useful - thank you. (I often had that problem) Christoph

Re: [julia-users] Re: The Julia Community Standards

2015-10-10 Thread Stefan Karpinski
Anthropomorphization is fine, sexualization is not. The main reason that using "she" to refer to Julia is not great is that the next thing is so often to sexualize the term, not because there's anything objectionable about anthropomorphizing Julia. For example, the Julia-tan anime character

[julia-users] Re: The Julia Community Standards

2015-10-10 Thread Scott Jones
On Saturday, October 10, 2015 at 7:39:02 AM UTC-4, mschauer wrote: > > Just a remark about > >This line doesn't make sense in languages where *everything* has a > gender: "While 'Julia' is a female name in many parts of the world, the > programming language is not a person and does not have a g

[julia-users] Re: a pmap question involving Monte Carlo

2015-10-10 Thread Christopher Fisher
I'm not positive, but it looks like PF_inner is expecting multiple inputs and pmap appears to be sending a single array of arrays to PF_inner. One thing you might try is accepting an array of arrays in PF_inner and extracting the components within the function. It might also be possible to map

[julia-users] Re: The Julia Community Standards

2015-10-10 Thread mschauer
Just a remark about >This line doesn't make sense in languages where *everything* has a gender: "While 'Julia' is a female name in many parts of the world, the programming language is not a person and does not have a gender." I think that is just not true, for example the direct translation "Auch

[julia-users] Re: The Julia Community Standards

2015-10-10 Thread Scott Jones
Copied over from Kate's message on the other thread: (https://groups.google.com/forum/#!topic/julia-users/cIghG0GJ114%5B101-125%5D) > Here are my views on some of the questions/themes I see raised in this > thread. > - Why are you against calling Julia “she” or saying things like “court > her”

[julia-users] Re: The Julia Community Standards

2015-10-10 Thread Scott Jones
Thanks for creating this thread, and restarting the important part of Carlos' comment in the other thread. I want to make myself clear, I *do* think that violations of the community standard should be called out, and that Stefan was right in doing so, my point was that the community standard sho

[julia-users] Re: Adjacent list

2015-10-10 Thread Christoph Ortner
Probably depends on the application, but I'd also be very interested in what experts say on this.

[julia-users] Adjacent list

2015-10-10 Thread Thuener Silva
What is the best way to represent adjacent lists in Julia? By adjacent list I a mean dinamic array of dinamic arrays. Grats, Thuener Silva

Re: [julia-users] The Julia Community Standards

2015-10-10 Thread Stefan Karpinski
Thanks, Tomas. For what it's worth, I think that community standards violations are quite rare, and I've only ever had to call a few things out. As the community grows, one of the major challenges is to remain as friendly, civil and helpful as we always have been, even as the number of people with

Re: [julia-users] Re: Naming convention

2015-10-10 Thread Tomas Lycken
I think it’s time to move any discussion on the community standards out of this thread (this one might be a better option ) and get back on track. I believe the last thing that was stated that actually concerned t

[julia-users] The Julia Community Standards

2015-10-10 Thread Tomas Lycken
Since a recent thread was derailed into discussions about the code of conduct in this community, I figured it would be better to move that discussion here, in the hopes that the technical discussion in the other thread can be picked up again. As a starting point, here is the actual Julia Commun

[julia-users] unknown option root

2015-10-10 Thread 'Stéphane Laurent' via julia-users
Hello, Sometimes when my screen switches to save mode (I'm using LXDE desktop on Ubuntu), I get a message like : unknown option --root > in client.jl This is not the exact message (next time I see it I will update this post). And I am not using Julia in the session.

[julia-users] Re: ANN: Julia v0.4.0 released!

2015-10-10 Thread zhangliye . cn
Congratulation! It's a great release! I will start to use Julia for my research projects from this version. I am still waiting for the convenient debug environment as that in Python. Thanks for this amazing product! On Friday, October 9, 2015 at 7:20:32 PM UTC+8, Tony Kelman wrote: > > At lon

[julia-users] Excel UDF

2015-10-10 Thread Antonio Suriano
Is there any support in Julia for COM objects and Excel/Office integration? Is there a package for deploying Excel UDFs? (user defined functions)

Re: [julia-users] Re: Naming convention

2015-10-10 Thread Stefan Karpinski
A few brief items. 1. Try to avoid referring to Julia as "her" in languages where a neutral pronoun is an option. 2. In any language, the combination of "her" + "courting" + "beautiful" qualifies as sexualization, as do jokes that imply sexual activity with Julia. Claiming that this is Anglocentr