Re: [julia-users] How do I know what settings were used to build my Julia installation?

2014-07-20 Thread Tony Kelman
You're welcome. Compiling multiple architectures into the same sys.so is a very interesting question - that's not possible right now, not easily, as far as I'm aware. But it would be interesting to take a page out of what OpenBLAS does and set up something similar, both for the pre-compiled

[julia-users] what is the recommended way of including images in an IJulia notebook?

2014-07-20 Thread Andrei Berceanu
Hi guys, I would like to include a couple of .png images in a notebook with IJulia - what is the simplest way of doing that? On one hand there is the ImageView package, but that seems to be geared towards the terminal? Perhaps I can include them directly in a markdown cell? ty, A

Re: [julia-users] what is the recommended way of including images in an IJulia notebook?

2014-07-20 Thread Tim Holy
If you're using the Images package, any image whose output you don't suppress with a semicolon just gets shown automatically. --Tim On Sunday, July 20, 2014 01:26:58 AM Andrei Berceanu wrote: Hi guys, I would like to include a couple of .png images in a notebook with IJulia - what is the

[julia-users] A julia version of diy-lisp (python project)

2014-07-20 Thread Abe Schneider
If you're interested, PEGParser includes a lisp grammar in the examples section. The transform converts to Julia expressions, but that can easily be changed.

[julia-users] Re: A julia version of diy-lisp (python project)

2014-07-20 Thread Dustin Lee
Thanks, that's interesting. This project is aimed at people who want to implement every detail detail of a simple lisp themself, but it would be interesting to compare with other ways to do it. On Sunday, July 20, 2014 7:25:57 AM UTC-6, Abe Schneider wrote: If you're interested, PEGParser

[julia-users] Generating optimized code for an instance of a composite type. Possible?

2014-07-20 Thread Jay Kickliter
I'm writing some polyphase resampling http://nbviewer.ipython.org/github/jaykickliter/Notebooks/blob/master/Polyphase.ipynb code. Sometimes there are symmetries that cut down on the number of required multiplies. I'm still learning how to use Julia's metaprogramming facilities, but assuming

[julia-users] Tips on reducing intermediate garbage?

2014-07-20 Thread Andrei Zh
Recently I found that my application spends ~65% of time in garbage collector. I'm looking for ways to reduce amount of memory produced by intermediate results. For example, I found that A * B may be changed to A_mul_B!(out, A, B) that uses preallocated out buffer and thus almost eliminates

Re: [julia-users] Generating optimized code for an instance of a composite type. Possible?

2014-07-20 Thread Leah Hanson
Have you considered using type parameters to indicate the symmetry of the filter object? That would allow you to use multiple dispatch to make a separate method for each kind of symmetry. -- Leah On Sun, Jul 20, 2014 at 10:03 AM, Jay Kickliter jay.kickli...@gmail.com wrote: I'm writing some

[julia-users] Re: Tips on reducing intermediate garbage?

2014-07-20 Thread Keith Campbell
Dahua Lin's post at http://julialang.org/blog/2013/09/fast-numeric/ might be helpful. On Sunday, July 20, 2014 11:41:19 AM UTC-4, Andrei Zh wrote: Recently I found that my application spends ~65% of time in garbage collector. I'm looking for ways to reduce amount of memory produced by

[julia-users] Specify type for a list of variables

2014-07-20 Thread Noah Brenowitz
in C it is possible to use statements like double a, b, c, d, e, f, g ; rather than double a; double b; ... double g; I frequently find the former notation more convenient than the latter, is there anyway to replicate it in Julia? Specifically, I want to avoid typing something like this.

Re: [julia-users] How to free memory from ImageView display.

2014-07-20 Thread David A.
Something that perhaps has something to do with this. I get this error most times when opening a new ImageView window: 'ErrorException(getgc: Canvas is not drawable)' So I make a while loop with try for the image view, until it appears. The code is like this: appeared = false while !appeared

Re: [julia-users] Setting RNG seeds for parallel computing

2014-07-20 Thread Gray Calhoun
On Saturday, July 19, 2014 8:52:11 PM UTC-4, James Delaney wrote: Since I also agree that Monte Carlo in parallel seems like it is unavoidably distributed, you should require each process to work on non-overlapping substreams of the same stream. I wonder (mainly for my own purposes) if

[julia-users] comprehension and closures in 3.0.0-rc1

2014-07-20 Thread Cyril Slobin
This is my first question in this group, maybe it is silly, but: In Julia 2.1.0, comprehensions create new variable bindings on each iteration. This is explained as a new behavior in this example: https://github.com/JuliaLang/julia/blob/master/NEWS.md#new-language-features-1 But, in recent

[julia-users] comprehension and closures in 0.3.0-rc1

2014-07-20 Thread Cyril Slobin
Sorry, I've did it wrong the first time, the second attempt. Seems like the behavior of comprehensions in 0.3.0-rc1 was changed (compared to stable 0.2.1), and changed in a wrong way. The expected behavior is documented here:

[julia-users] MLBase v0.5 released

2014-07-20 Thread Dahua Lin
Please see https://github.com/JuliaStats/MLBase.jl/blob/master/NEWS.md for recent updates. Also the documentation is moved from Readme to a Sphinx doc http://mlbasejl.readthedocs.org/en/latest/ Now we already have quite a few packages for various machine learning tasks: MLBase.jl

[julia-users] Re: iterate over rows of sparse matrix and get index of nonzeros?

2014-07-20 Thread Odd Andersen
Sparse matrices in Julia are to my understanding stored as compressed sparse columns. So it is very easy to get the nonzero elements for a given column, but not so easy for rows. To get the indices of nonzeros rows for column 'c' in sparse matrix M, one can use (at least in the current

[julia-users] Re: Specify type for a list of variables

2014-07-20 Thread Pierre-Yves GĂ©rardy
I don't think it is supported out of the box, but you can achieve that with a macro. julia macro as(Typ, names...) res = quote end for n in names push!(res.args, Expr(:(::), n, Typ)) end res end julia type Foo @as

[julia-users] Julia with LightTable

2014-07-20 Thread Diego Tapias
I have got the following error whenever I try to run a Julia Script with the editor LightTable: Couldn't connect to Julia ERROR: REPLCompletions not defined in anonymous at no file in include at boot.jl:238 in include_from_node1 at loading.jl:114 in include at boot.jl:238 in

[julia-users] Re: Julia with LightTable

2014-07-20 Thread Joshua Job
Can you post the contents of your user behaviors file? You can get to it via ctrl+space and then typing user behaviors, you should see an option to edit them. You have to specify the path to julia there, or have it on your path. More details can be found at

Re: [julia-users] comprehension and closures in 0.3.0-rc1

2014-07-20 Thread Simon Kornblith
Bug filed: https://github.com/JuliaLang/julia/issues/7679 On Sunday, July 20, 2014 6:08:46 PM UTC-4, Keno Fischer wrote: I don't recall that being changed again intentionally. On Sun, Jul 20, 2014 at 2:18 PM, Cyril Slobin cyril@gmail.com javascript: wrote: Sorry, I've did it wrong

[julia-users] Re: comprehension and closures in 3.0.0-rc1

2014-07-20 Thread Patrick O'Leary
Simon filed an issue: https://github.com/JuliaLang/julia/issues/7679. Thanks for the report! On Sunday, July 20, 2014 3:58:17 PM UTC-5, Cyril Slobin wrote: This is my first question in this group, maybe it is silly, but: In Julia 2.1.0, comprehensions create new variable bindings on each

Re: [julia-users] Re: Julia with LightTable

2014-07-20 Thread Diego Tapias
Thank you @Joshua. That's what I got (I have followed the instructions of the one-more-minute repo). ;; User behaviors ;; - ;; Behaviors are stored as a set of diffs that are merged together ;; to create the final set of functionality that makes up Light Table. You can

[julia-users] Sorting behavior

2014-07-20 Thread Abe Schneider
It wasn't obvious to me initially why `sort` wasn't working for me (strings and composite types). On further investigation it looks like that it only works for single-dimension arrays -- which makes sense. However, if I type: lst = [a b c] sort(lst) I get an error. The answer is that it's of

Re: [julia-users] Advice for a flight mechanics simulation

2014-07-20 Thread Adrian Cuthbertson
I've used abstract function types to something similar to what I think you may be wanting. The following is a simple example of this method, which hopefully may give you some ideas: Firstly, say I have a model which has a value x and I wish to apply a simulation function, which takes an argument

[julia-users] Re: Populating a DArray from file...

2014-07-20 Thread Einar Otnes
Thanks!! It solved my problem. Einar On Friday, July 18, 2014 1:38:11 AM UTC+2, Ivar Nesje wrote: Bigger than memory smells of mmap_array http://docs.julialang.org/en/latest/stdlib/base/#Base.mmap_array