Re: [julia-users] Strange behavior of push! and pop! for an array of array elements

2016-09-12 Thread Michele Zaffalon
Apologies, I did not want to insult or be rude. Thank you again for the clear explanation. On Tue, Sep 13, 2016 at 8:38 AM, Tamas Papp wrote: > Please don't put words in my mouth, I did not say that. In general, I > find "use case" an elusive concept. I prefer simple building blocks with > clear

Re: [julia-users] Strange behavior of push! and pop! for an array of array elements

2016-09-12 Thread Tamas Papp
Please don't put words in my mouth, I did not say that. In general, I find "use case" an elusive concept. I prefer simple building blocks with clear semantics that I can combine easily to solve problems. Also, whether something "makes sense" is also somewhat subjective and depends on your expectat

Re: [julia-users] Strange behavior of push! and pop! for an array of array elements

2016-09-12 Thread Michele Zaffalon
Thank you for your explanation. In practice you are saying that consistency has led to this consequence even though there is no use case, and therefore it makes little sense? I am not trying to provoke, it is that I find it easier to internalize the concept, once I know the reason behind that conc

[julia-users] Re: equivalent of numpy newaxis?

2016-09-12 Thread DNF
For your particular example, it looks like what you want is (and I am just guessing what mag_sqr means): dist = abs2.(x .- y.') The performance should be the similar to a hand-written loop on version 0.5. You can read about it here: http://docs.julialang.org/en/release-0.5/manual/functions/#dot-

[julia-users] Re: Complex parallel computing implementation

2016-09-12 Thread Adrian Salceanu
Thanks - haven't thought of using Dagger (don't have previous experience with it either). I've read the docs now but I'm not sure how using it would help, maybe I'm missing something? My problem is really about running deeply nested function calls across multiple modules, in parallel. Making t

Re: [julia-users] Strange behavior of push! and pop! for an array of array elements

2016-09-12 Thread Tamas Papp
Fill behaves this way not because of a specific design choice based on a compelling use case, but because of consistency with other language features. fill does not copy, and arrays are passed by reference in Julia, consequently you have the behavior described below. IMO it is best to learn about

Re: [julia-users] Julia on Research Computing Podcast RCE

2016-09-12 Thread Richard Hoffpauir
Thanks for posting here. I didn't know about this podcast. I listened to a few episodes today... it's great! I hope to hear an episode about Julia soon.

[julia-users] Re: Juno workspace variable display.

2016-09-12 Thread Patrick Belliveau
Works for me too. Thanks Uwe! I'll put in a feature request to have a it added to the menu. Juno's getting really good. Patrick On Monday, September 12, 2016 at 2:46:31 PM UTC-7, Patrick Belliveau wrote: > > Hi all, > In his JuliaCon 2016 talk >

Re: [julia-users] Strange behavior of push! and pop! for an array of array elements

2016-09-12 Thread Michele Zaffalon
I have been bitten by this myself. Is there a user case for having an array filled with references to the same object? Why would one want this behaviour? On Tue, Sep 13, 2016 at 4:45 AM, Yichao Yu wrote: > > > On Mon, Sep 12, 2016 at 10:33 PM, Zhilong Liu > wrote: > >> Hello all, >> >> I am pre

Re: [julia-users] Strange behavior of push! and pop! for an array of array elements

2016-09-12 Thread Yichao Yu
On Mon, Sep 12, 2016 at 10:33 PM, Zhilong Liu wrote: > Hello all, > > I am pretty new to Julia, and I am trying to perform push and pop inside > an array of 1D array elements. For example, I created the following array > with 1000 empty arrays. > > julia> vring = fill([], 1000) > This creates a

[julia-users] Strange behavior of push! and pop! for an array of array elements

2016-09-12 Thread Zhilong Liu
Hello all, I am pretty new to Julia, and I am trying to perform push and pop inside an array of 1D array elements. For example, I created the following array with 1000 empty arrays. julia> vring = fill([], 1000) Then, when I push an element to vring[2], julia> push!(vring[2],1) I got the

[julia-users] Re: Juno workspace variable display.

2016-09-12 Thread Chris Rackauckas
I can confirm that works. Wow, never knew that was there. It should be added to the menu. Maybe it's still considered experimental. On Monday, September 12, 2016 at 4:27:52 PM UTC-7, Uwe Fechner wrote: > > It works for me: > Try to open the command palette (Cmd-Shift-P on mac, I guess Ctrl-Shift-

[julia-users] JuliaDiffEq Logo Poll

2016-09-12 Thread Chris Rackauckas
Sometime last week I threw up a logo idea, and a ton of other really cool ideas followed. Now that we have so many awesome choices due to a previous thread , it's hard to pick. Help us choose the JuliaDiffEq logo by going to this issue

[julia-users] Re: Juno workspace variable display.

2016-09-12 Thread Uwe Fechner
It works for me: Try to open the command palette (Cmd-Shift-P on mac, I guess Ctrl-Shift-P on linux and windows), and type 'julia open workspace'. It opens a window showing all variables and functions in scope. On Monday, September 12, 2016 at 11:46:31 PM UTC+2, Patrick Belliveau wrote: > > Hi a

Re: [julia-users] code design question – best ideomatic way to define nested types?

2016-09-12 Thread Chris Stook
On Monday, September 12, 2016 at 7:22:39 PM UTC-4, Chris Stook wrote: > > Last post was incomplete. > > abstract AbstractFoo > > macro commonfields() > return :( > bar; > foo; > ) > end > > type Foo <: AbstractFoo > @commonfields() > end > > type Foobar <: AbstractFoo > @commonfie

Re: [julia-users] code design question – best ideomatic way to define nested types?

2016-09-12 Thread Chris Stook
Last post was incomplete. abstract AbstractFoo macro commonfields() return :( bar foo ) end type Foo <: AbstractFoo @commonfields() end type Foobar <: AbstractFoo @commonfields() barbaz bazbaz end Chris

Re: [julia-users] code design question – best ideomatic way to define nested types?

2016-09-12 Thread Chris Stook
I use a macro to avoid retyping common fields. abstract AbstractFoo macro commonfields() return :( type Foo <: AbstractFoo bar baz end type Foobar <: AbstractFoo bar baz barbaz bazbaz end

Re: [julia-users] Re: equivalent of numpy newaxis?

2016-09-12 Thread Bob Nnamtrop
I use a simple function for this: function newdim(A::AbstractArray, d::Integer) @assert 0 < d <= ndims(A)+1 dim = size(A) reshape(A, dim[1:d-1]..., 1, dim[d:end]...) end But having syntax for a newaxis would be great. See also: https://github.com/JuliaLang/julia/issues/5405 https://g

Re: [julia-users] code design question – best ideomatic way to define nested types?

2016-09-12 Thread Tom Breloff
I think #2 is the right solution, but I also wish there was a nicer syntax to do it. Here's how I'd probably tackle it... if I get around to it soon I'll post the implementation: @abstract type AbstractFoo bar::Int end @extend AbstractFoo type Foo end @extend AbstractFoo type Foobar baz

Re: [julia-users] Re: equivalent of numpy newaxis?

2016-09-12 Thread Tim Holy
*julia> a = rand(3)* *3-element Array{Float64,1}:* *0.47428 * *0.505429* *0.198919* *julia> reshape(a, (3,1))* *3×1 Array{Float64,2}:* *0.47428 * *0.505429* *0.198919* *julia> reshape(a, (1,3))* *1×3 Array{Float64,2}:* *0.47428 0.505429 0.198919* Is that what you want? (Note that for

[julia-users] Re: equivalent of numpy newaxis?

2016-09-12 Thread Neal Becker
I haven't studied it, but I guess that newaxis increases the dimensionality, while specifying 0 for the stride. Can reshape do that? Tim Holy wrote: > I'm not certain I understand what `np.newaxis` does, but doesn't `reshape` > do the same thing? (newaxis does look like a convenient way to spec

[julia-users] Re: Juno workspace variable display.

2016-09-12 Thread Chris Rackauckas
I don't think it's available yet. This might be something you might want to file a request for by opening an issue. On Monday, September 12, 2016 at 2:46:31 PM UTC-7, Patrick Belliveau wrote: > > Hi all, > In his JuliaCon 2016 talk > on Jun

Re: [julia-users] code design question – best ideomatic way to define nested types?

2016-09-12 Thread Chris Rackauckas
Ahh, that makes a lot of sense as well. I can see how that would make everything a lot harder to optimize. Thanks for the explanation! On Monday, September 12, 2016 at 2:44:22 PM UTC-7, Stefan Karpinski wrote: > > The biggest practical issue is that if you can subtype a concrete type > then you

[julia-users] Re: can someone help me read julia's memory footprint on this cluster? [SGE]

2016-09-12 Thread Chris Rackauckas
For SGE, a lot of systems let you ssh into the node and use htop. That will show you a lot of information about the node, and can help you find out which process is using up what about of memory (note, this check only works in real-time so your computational has to be long enough). On Monday, S

[julia-users] Re: Tutorial Julia language brazilian portuguese

2016-09-12 Thread jmarcellopereira
olá felipe. É uma boa ideia. Se você criar eu compartilho com o pessoal da unb. Hello Felipe. It's a great idea. If you marry I share with the staff of unb. Em segunda-feira, 12 de setembro de 2016 17:54:50 UTC-3, Phelipe Wesley escreveu: > > O que acham de criarmos um grupo Julia-Brasil no sla

[julia-users] Re: Complex parallel computing implementation

2016-09-12 Thread dnm
Have you tried Dagger.jl to set up a DAG of computations you need performed? On Monday, September 12, 2016 at 5:04:26 PM UTC-4, Adrian Salceanu wrote: > > This is a random example of an error - not really sure how to debug this, > seems to crash withi

[julia-users] Juno workspace variable display.

2016-09-12 Thread Patrick Belliveau
Hi all, In his JuliaCon 2016 talk on Juno's new graphical debugging capabilities, Mike Innes also showed off a workspace pane in Juno that displays currently defined variable values from an interactive Julia session. My impression from the

Re: [julia-users] code design question – best ideomatic way to define nested types?

2016-09-12 Thread Stefan Karpinski
The biggest practical issue is that if you can subtype a concrete type then you can't store values inline in an array, even if the values are immutable – since a subtype can be bigger than the supertype. This leads to having things like "final" classes, etc. Fundamentally, this is really an issue o

[julia-users] Re: Complex parallel computing implementation

2016-09-12 Thread Adrian Salceanu
This is a random example of an error - not really sure how to debug this, seems to crash within the Postgres library. The dump is long but not really helpful. 12-Sep 21:39:38:WARNING:root:Module __anon__ not defined on process 5 12-Sep 21:39:38:WARNING:root:Module __anon__ not defined on proces

[julia-users] Complex parallel computing implementation

2016-09-12 Thread Adrian Salceanu
I was wondering if anybody can point me towards a tutorial or a large code base using parallel computing. Everything that is discussed so far in the docs and books is super simple - take a function, run it in parallel, the end. To explain, I'm working on a full stack MVC web framework - so thi

Re: [julia-users] equivalent of numpy newaxis?

2016-09-12 Thread Tim Holy
I'm not certain I understand what `np.newaxis` does, but doesn't `reshape` do the same thing? (newaxis does look like a convenient way to specify shape, though.) Best, --Tim On Monday, September 12, 2016 3:28:56 PM CDT Neal Becker wrote: > Some time ago I asked this question > http://stackoverf

[julia-users] Re: Help on building Julia with Intel MKL on Windows?

2016-09-12 Thread Tony Kelman
Intel compilers on windows are MSVC style, which our build system is not really set up to handle. There is experimental partial support (search for "MSVC support tracking issue" if you're interested) but it would really require rewriting the build system to use cmake to work smoothly. You can b

[julia-users] Re: Tutorial Julia language brazilian portuguese

2016-09-12 Thread Phelipe Wesley
O que acham de criarmos um grupo Julia-Brasil no slack?

[julia-users] Re: equivalent of numpy newaxis?

2016-09-12 Thread Matt Bauman
It's pretty close. In Julia 0.5, we have all the parts that are required to make this a possibility. We have index types that specify both how many indices in the source array should be consumed (CartesianIndex{N} spans N dimensions) and types that determine what the dimensionality of the outpu

[julia-users] can someone help me read julia's memory footprint on this cluster? [SGE]

2016-09-12 Thread Florian Oswald
hi all, i get the following output from the SGE command `qstat -j jobnumber` of a julia job that uses 30 workers. I am confused by the mem column. am I using more memory than what I asked for? I asked for max 4G on each processor. job-array tasks:1-30:1 usage1:

[julia-users] equivalent of numpy newaxis?

2016-09-12 Thread Neal Becker
Some time ago I asked this question http://stackoverflow.com/questions/25486506/julia-broadcasting-equivalent-of-numpy-newaxis As a more interesting example, here is some real python code I use: dist = mag_sqr (demod_out[:,np.newaxis] - const.map[np.newaxis,:]) where demod_out, const.map are each

Re: [julia-users] code design question – best ideomatic way to define nested types?

2016-09-12 Thread Chris Rackauckas
https://en.wikipedia.org/wiki/Composition_over_inheritance http://programmers.stackexchange.com/questions/134097/why-should-i-prefer-composition-over-inheritance https://www.thoughtworks.com/insights/blog/composition-vs-inheritance-how-choose That's just the start. Overtime, people realized inhe

[julia-users] Re: Suggestion regarding valuable Youtube videos related to Julia learning

2016-09-12 Thread Chris Rackauckas
I think we should setup something for video tutorials, like the JuliaBlogger community except for Youtube (is there such a thing as Youtube aggregating?). I plan on doing some tutorials on "Plotting with Plots.jl in Juno", "Solving ODEs with DifferentialEquations.jl", "Using Julia's Pkg with Gi

Re: [julia-users] Re: 1st try julia, 2/3 speed of python/c++

2016-09-12 Thread Yichao Yu
On Sep 12, 2016 2:52 PM, "Páll Haraldsson" wrote: > > On Monday, September 12, 2016 at 11:32:48 AM UTC, Neal Becker wrote: >> >> Anyone care to make suggestions on this code, how to make it faster, or more >> idiomatic Julia? > > > > It may not matter, but this function: > > function coef_from_fun

[julia-users] Re: 1st try julia, 2/3 speed of python/c++

2016-09-12 Thread Páll Haraldsson
On Monday, September 12, 2016 at 11:32:48 AM UTC, Neal Becker wrote: > Anyone care to make suggestions on this code, how to make it faster, or > more > idiomatic Julia? > It may not matter, but this function: function coef_from_func(func, delta, size) center = float(size-1)/2 return

[julia-users] Re: Help on building Julia with Intel MKL on Windows?

2016-09-12 Thread Zhong Pan
Thanks! I am still a bit confused about this part: To build Julia for Windows, this page says I need to use MinGW compiler either under MSYS2 or Cygwin: https://github.com/JuliaLang/julia/blob/master/README.windows.md However, to build Julia with MKL BLAS and LAPACK libraries, the first link yo

Re: [julia-users] code design question – best ideomatic way to define nested types?

2016-09-12 Thread Bart Janssens
Looking at this example, it seems mighty tempting to have the ability to subtype a concrete type. Are the exact problems with that documented somewhere? I am aware of the following section in the docs: "One particularly distinctive feature of Julia’s type system is that concrete types may not subt

Re: [julia-users] code design question – best ideomatic way to define nested types?

2016-09-12 Thread Michael Borregaard
Thanks for the prompt response, I will go with that then :-) I actually thought later that I may avoid some of the clutter in approach 2 by adding another level of indirection: abstract AbstractFoo type FooData bar baz #... several other fields end type FoobarData barbaz bazbaz #.

[julia-users] Want to contribute to Julia

2016-09-12 Thread cormullion
If you're still in learning_julia mode, you could help out by checking the Julia wikibook (https://en.wikibooks.org/wiki/Introducing_Julia) for 0.5 compatibility. I've been through it once to update some of the more obvious changes and deprecations — but "you gotta catch em all", as they say!

[julia-users] Want to contribute to Julia

2016-09-12 Thread cormullion
If you're still in learning_julia mode, you could help out by checking the Julia wikibook (https://en.wikibooks.org/wiki/Introducing_Julia) for 0.5 compatibility. I've been through it once to update some of the more obvious changes and deprecations — but "you gotta catch em all", as they say!

Re: [julia-users] Want to contribute to Julia

2016-09-12 Thread Chris Rackauckas
I would say start with the package ecosystem. Almost nothing in Julia Base is really first-class or special, so almost anything can contribute to Julia via packages. For example, things like Traits and VML bindings bas

[julia-users] Suggestion regarding valuable Youtube videos related to Julia learning

2016-09-12 Thread Colin Beckingham
The various Youtube videos recorded at Julia conferences look very good. It's great to have explanations given by the experts at the top of the Julia tree, no names mentioned, you know who you are. Thanks for this resource. >From the consumer side, the packages are kinda long. I imagine that man

[julia-users] Re: Help on building Julia with Intel MKL on Windows?

2016-09-12 Thread Chris Rackauckas
You just do what it says here: https://github.com/JuliaLang/julia. Then you can replace a lot of the functions using VML.jl On Sunday, September 11, 2016 at 10:35:35 PM UTC-7, Zhong Pan wrote: > > Anybody knows how to build Julia with Intel MKL on Windows?

Re: [julia-users] Want to contribute to Julia

2016-09-12 Thread Tim Holy
There are some great resources at http://julialang.org/learning/ Best, --Tim On Monday, September 12, 2016 7:56:46 AM CDT rishucod...@gmail.com wrote: > Thanks for the help. Can you suggest me what should I learn to work in > Julia?

Re: [julia-users] code design question – best ideomatic way to define nested types?

2016-09-12 Thread Stefan Karpinski
I would probably go with approach #2 myself and only refer to the .bar and .baz fields in all of the generic AbstractFoo methods. On Mon, Sep 12, 2016 at 10:10 AM, Michael Borregaard wrote: > Hi, > > I am defining a set of types to hold scientific data, and trying to get > the best out of Julia'

Re: [julia-users] Julia for Data Science book recently released

2016-09-12 Thread Stefan Karpinski
Great! You'll probably want to make a PR to add this book here: http://julialang.org/learning/ (repo here: https://github.com/JuliaLang/julialang.github.com) On Mon, Sep 12, 2016 at 7:57 AM, Steve Hoberman wrote: > *Julia for Data Science* by Zacharias Voulgaris, PhD, will show you how > to use

Re: [julia-users] Re: 1st try julia, 2/3 speed of python/c++

2016-09-12 Thread Stefan Karpinski
All of the globals setup in bench1 are non-const, which means the top-level benchmarking code is pretty slow, but if N is small, this won't matter much. If N is large, it's worth either wrapping the setup in a function body or making all these variables const. On Mon, Sep 12, 2016 at 8:37 AM, Neal

Re: [julia-users] Re: Julia Low Pass Filter much slower than identical code in Python ??

2016-09-12 Thread Stefan Karpinski
JIT = Just In Time, i.e. the first time you use the code. On Mon, Sep 12, 2016 at 6:52 AM, MLicer wrote: > Indeed it does! I thought JIT compilation takes place prior to execution > of the script. Thanks so much, this makes sense now! > > Output: > first call: 0.804573 seconds (1.18 M allocati

Re: [julia-users] Julia on Research Computing Podcast RCE

2016-09-12 Thread Stefan Karpinski
We've started a conversation with Brock to make sure that happens :) On Mon, Sep 12, 2016 at 5:03 AM, Mauro wrote: > RCE is a excellent podcast, would be cool the hear some core-devs > talking there. > > On Sun, 2016-09-11 at 02:29, Brock Palen wrote: > > I am one half of the HPC/Research Compu

[julia-users] sending code to a Julia REPL running in Emacs/ansi-term

2016-09-12 Thread Tamas Papp
I have been using Emacs/ESS for Julia, but realized Gallium needs a more capable terminal. Julia runs fine inside ansi-term, but I would like to have ESS's convenient functionality of sending a line/region/definition to the REPL. Is this feasible somehow, with some clever hack of julia-mode and/or

Re: [julia-users] Want to contribute to Julia

2016-09-12 Thread rishucoding
On Monday, September 12, 2016 at 8:26:47 PM UTC+5:30, rishu...@gmail.com wrote: > > Thanks for the help. Can you suggest me what should I learn to work in > Julia? I suppose python is good. >

Re: [julia-users] Want to contribute to Julia

2016-09-12 Thread rishucoding
Thanks for the help. Can you suggest me what should I learn to work in Julia?

Re: [julia-users] Does anyone know how jl_calls may have to do with SIGUSER1?

2016-09-12 Thread Yichao Yu
On Mon, Sep 12, 2016 at 10:40 AM, K leo wrote: > Thanks for the reply. > I registered a signal handler before calling these and the code now does > not terminate and appears to run fine. Will my handler cause problems to > the jl_calls? > You handler doesn't cause any trouble, it will just nev

Re: [julia-users] Does anyone know how jl_calls may have to do with SIGUSER1?

2016-09-12 Thread K leo
Thanks for the reply. I registered a signal handler before calling these and the code now does not terminate and appears to run fine. Will my handler cause problems to the jl_calls? The documentation mentions about SIGUSER2 with the profiler BTW. On Monday, September 12, 2016 at 10:06:04 PM UTC

Re: [julia-users] default type parameter?

2016-09-12 Thread Mauro
On Mon, 2016-09-12 at 16:07, Yichao Yu wrote: > On Mon, Sep 12, 2016 at 9:52 AM, Neal Becker wrote: > >> Taking the following example: >> >> type Point{T<:Real} >> x::T >> y::T >> end >> >> I can construct a Point taking the type "T" from the argument types. >> Or I can explici

[julia-users] code design question – best ideomatic way to define nested types?

2016-09-12 Thread Michael Borregaard
Hi, I am defining a set of types to hold scientific data, and trying to get the best out of Julia's type system. The types in my example are 'nested' in the sense that each type will hold progressively more information and thus allow the user to do progressively more. Like this: type Foo bar

Re: [julia-users] default type parameter?

2016-09-12 Thread Yichao Yu
On Mon, Sep 12, 2016 at 9:52 AM, Neal Becker wrote: > Taking the following example: > > type Point{T<:Real} > x::T > y::T > end > > I can construct a Point taking the type "T" from the argument types. > Or I can explicity specify the type > > Point{Int32}(2,2) > > But I'd like t

Re: [julia-users] Does anyone know how jl_calls may have to do with SIGUSER1?

2016-09-12 Thread Yichao Yu
On Mon, Sep 12, 2016 at 10:03 AM, K leo wrote: > I put the following lines in my C++ code. These are only executed once > near the beginning of the code > and run fine. There are no other julia related statements in the code. > But with the presence of these statements in the code, whenever the c

[julia-users] Does anyone know how jl_calls may have to do with SIGUSER1?

2016-09-12 Thread K leo
I put the following lines in my C++ code. These are only executed once near the beginning of the code and run fine. There are no other julia related statements in the code. But with the presence of these statements in the code, whenever the code does some communications requests on the Internet

[julia-users] default type parameter?

2016-09-12 Thread Neal Becker
Taking the following example: type Point{T<:Real} x::T y::T end I can construct a Point taking the type "T" from the argument types. Or I can explicity specify the type Point{Int32}(2,2) But I'd like to be able to specify a default type: type Point{T<:Real=Int32} for example

[julia-users] Re: How to deal with methods redefinition warnings in 0.5?

2016-09-12 Thread K leo
After calling workspace(), there are even a lot of warnings regarding methods in packages. On Monday, September 12, 2016 at 6:57:47 PM UTC+8, felip...@gmail.com wrote: > > Try calling workspace() before repeating include.

[julia-users] Julia for Data Science book recently released

2016-09-12 Thread Steve Hoberman
*Julia for Data Science* by Zacharias Voulgaris, PhD, will show you how to use the Julia language to solve business critical data science challenges. After covering the importance of Julia to the data science community and several essential data science principles, we start with the basics in

[julia-users] Re: 1st try julia, 2/3 speed of python/c++

2016-09-12 Thread Neal Becker
Steven G. Johnson wrote: > > > > On Monday, September 12, 2016 at 7:59:33 AM UTC-4, DNF wrote: >> >> function(p::pnseq)(n,T=Int64) >> >>> > Note that the real problem with this function declaration is that the type > T is known only at runtime, not at compile-time. It would be better to > d

[julia-users] Re: 1st try julia, 2/3 speed of python/c++

2016-09-12 Thread DNF
The code is not particularly long, but it seems like almost every type has its own module, which makes it harder to get an overview. A few of the composite types are defined with abstract types as fields, such as FNNyquistPulse. That is not optimal: http://docs.julialang.org/en/latest/manual/p

Re: [julia-users] Re: Problem with Plots/Compat on RC4

2016-09-12 Thread Tom Breloff
Josef is really responsive with GR issues... you should open issues when you find anything: https://github.com/jheinen/GR.jl/issues Sometimes it's hard to know if it's a problem with the Plots backend code or with GR itself, but we'll both see the issues. GR is pretty mature, but I agree it's no

[julia-users] Re: 1st try julia, 2/3 speed of python/c++

2016-09-12 Thread Steven G. Johnson
On Monday, September 12, 2016 at 7:59:33 AM UTC-4, DNF wrote: > > function(p::pnseq)(n,T=Int64) > >> Note that the real problem with this function declaration is that the type T is known only at runtime, not at compile-time. It would be better to do function (p::pnseq){T}(n, ::Type{T}

[julia-users] Re: 1st try julia, 2/3 speed of python/c++

2016-09-12 Thread Neal Becker
Patrick Kofod Mogensen wrote: > This surprised me as well, where did you find this syntax? > > On Monday, September 12, 2016 at 1:59:33 PM UTC+2, DNF wrote: >> >> I haven't looked very closely at your code, but a brief look reveals that >> you are defining your functions in a very unusual way. Tw

Re: [julia-users] Re: 1st try julia, 2/3 speed of python/c++

2016-09-12 Thread Steven G. Johnson
On Monday, September 12, 2016 at 8:07:55 AM UTC-4, Yichao Yu wrote: > > > > On Mon, Sep 12, 2016 at 8:03 AM, Patrick Kofod Mogensen < > patrick@gmail.com > wrote: > >> This surprised me as well, where did you find this syntax? >> > > Call overload. > (i.e. it's the new syntax for call overl

Re: [julia-users] Re: 1st try julia, 2/3 speed of python/c++

2016-09-12 Thread Yichao Yu
On Mon, Sep 12, 2016 at 8:03 AM, Patrick Kofod Mogensen < patrick.mogen...@gmail.com> wrote: > This surprised me as well, where did you find this syntax? > Call overload. > > > On Monday, September 12, 2016 at 1:59:33 PM UTC+2, DNF wrote: >> >> I haven't looked very closely at your code, but a

[julia-users] Re: 1st try julia, 2/3 speed of python/c++

2016-09-12 Thread Patrick Kofod Mogensen
This surprised me as well, where did you find this syntax? On Monday, September 12, 2016 at 1:59:33 PM UTC+2, DNF wrote: > > I haven't looked very closely at your code, but a brief look reveals that > you are defining your functions in a very unusual way. Two examples: > > function (f::FIRFilter)

[julia-users] Re: 1st try julia, 2/3 speed of python/c++

2016-09-12 Thread DNF
I haven't looked very closely at your code, but a brief look reveals that you are defining your functions in a very unusual way. Two examples: function (f::FIRFilter)(x) return filt(f, x) end function(p::pnseq)(n,T=Int64) out = Array{T}(n) for i in eachindex(out) if p.count <

Re: [julia-users] Re: Problem with Plots/Compat on RC4

2016-09-12 Thread Scott Thomas
I have not had much luck with the GR backend myself - it looks nice, but it has no antialiasing on linux yet and I can't close the plot window once it's open. I think it just needs time to mature some more. On Mon, 12 Sep 2016 at 12:31 DNF wrote: > Thanks. After deleting .julia/lib and restarti

[julia-users] 1st try julia, 2/3 speed of python/c++

2016-09-12 Thread Neal Becker
As a first (nontrivial) try at julia, I put together some simple DSP code, which represents a pn generator (random fixed-width integer generator) constellation mapping interpolating FIR filter (from DSP.jl) decimating FIR filter (from DSP.jl) mean-square error measure Source code is here: https:/

[julia-users] Re: Problem with Plots/Compat on RC4

2016-09-12 Thread DNF
Thanks. After deleting .julia/lib and restarting julia I get some warnings before the prompt shows up: WARNING: Method definition cgrad(Any, Any) in module PlotUtils at ~/.julia/ PlotUtils/src/color_gradients.jl:82 overwritten at ~/.julia/PlotUtils/src/ color_gradients.jl:99. WARNING: Method defi

[julia-users] Re: Problem with Plots/Compat on RC4

2016-09-12 Thread Scott T
Oh and just to be a little clearer, that's ~/.julia/lib (the .julia folder in your home directory) and not the .../julia/lib folder in Applications. On Monday, 12 September 2016 12:12:08 UTC+1, Scott T wrote: > > Try removing .julia/lib (the precompile cache). I had this same issue and > this ap

[julia-users] Re: Problem with Plots/Compat on RC4

2016-09-12 Thread Scott T
Try removing .julia/lib (the precompile cache). I had this same issue and this appears to have fixed it. On Monday, 12 September 2016 12:06:48 UTC+1, DNF wrote: > > After updating to RC4 (binary download) plotting completely stopped > working for me. > > julia> plot(rand(5)) > [Plots.jl] Initi

[julia-users] Problem with Plots/Compat on RC4

2016-09-12 Thread DNF
After updating to RC4 (binary download) plotting completely stopped working for me. julia> plot(rand(5)) [Plots.jl] Initializing backend: gr INFO: Precompiling module GR. WARNING: Module Compat with uuid 169833921923513 is missing from the cache. This may mean module Compat does not support p

[julia-users] How to deal with methods redefinition warnings in 0.5?

2016-09-12 Thread felipenoris
Try calling workspace() before repeating include.

[julia-users] Re: Julia Low Pass Filter much slower than identical code in Python ??

2016-09-12 Thread MLicer
Indeed it does! I thought JIT compilation takes place prior to execution of the script. Thanks so much, this makes sense now! Output: first call: 0.804573 seconds (1.18 M allocations: 53.183 MB, 1.43% gc time) repeated call: 0.000472 seconds (217 allocations: 402.938 KB) Thanks again, Cheer

[julia-users] Re: Julia Low Pass Filter much slower than identical code in Python ??

2016-09-12 Thread randmstring
The Julia code takes 0.000535 seconds for me on the second run -- during the first run, Julia has to compile the method you're timing. Have a look at the performance tips

Re: [julia-users] Julia on Research Computing Podcast RCE

2016-09-12 Thread Mauro
RCE is a excellent podcast, would be cool the hear some core-devs talking there. On Sun, 2016-09-11 at 02:29, Brock Palen wrote: > I am one half of the HPC/Research Computing podcast http://www.rce-cast.com/ > > We would like to feature Julia on the show. This takes a developer or two > and is a

[julia-users] Re: PyPlot x(y)tick label fontsize

2016-09-12 Thread MLicer
Excellent! Thanks so much! On Friday, September 9, 2016 at 5:45:26 PM UTC+2, Ralph Smith wrote: > > ax[:tick_params]("both",labelsize=24) > > See http://matplotlib.org/api/pyplot_api.html > for related functions and arguments. >