Re: [julia-users] Testing uncommitted changes to a package

2016-10-21 Thread Michele Zaffalon
And that command would be push!(LOAD_PATH, $PWD/src) On Fri, Oct 21, 2016 at 5:36 PM, Yichao Yu wrote: > Add $PWD/src to LOAD_PATH instead. This way you can also make sure you are > not using Pkg incorrectly in your package. > > > On Fri, Oct 21, 2016 at 11:11 AM, Chandrakant

Re: [julia-users] Re: GR error

2016-10-21 Thread henri.gir...@gmail.com
Thanks it does ... Le 21/10/2016 à 17:51, Josef Heinen a écrit : The PR for GR v0.16.0 hasn't been merged yet - no idea, why. In the meantime, please: Pkg.checkout("GR") ENV["GRDIR"]="" Pkg.build("GR") This should install the latest GR binaries with support for generating video content on

Re: [julia-users] How to parallelize computation on HDF5 files?

2016-10-21 Thread Gregory Salvan
Hello, I see no answer so I'll try to help. Before, just in case, I think it's not a good approach to look at performance first. A better one would consist to write clean code that express your intents first and then if it's necessary profile and optimize. You should profile, because I have

[julia-users] Testing uncommitted changes to a package

2016-10-21 Thread Chandrakant G
Hi guys, I am getting my feet wet with Julia and its pretty nice so far. I am testing an external Julia package (not something I wrote). I have already cloned it and made some changes. I have started the julia repl inside the directory where i cloned the package repo. Here's my workflow. #

Re: [julia-users] Testing uncommitted changes to a package

2016-10-21 Thread Yichao Yu
Add $PWD/src to LOAD_PATH instead. This way you can also make sure you are not using Pkg incorrectly in your package. On Fri, Oct 21, 2016 at 11:11 AM, Chandrakant G < chandrakant.gopa...@gmail.com> wrote: > Hi guys, > I am getting my feet wet with Julia and its pretty nice so far. > I am

[julia-users] Testing uncommitted changes to a package

2016-10-21 Thread Steven G. Johnson
Just include your runtests.jl script.

[julia-users] Re: I am getting a stack over flow error when using the optimize function from Optim package

2016-10-21 Thread Páll Haraldsson
On Friday, October 21, 2016 at 1:50:13 PM UTC, SajeelBongale wrote: > > > *This is my cost function:* > "This function calculates the cost and gradient at a given theta" > function costFunction( initial_theta,X, y) > I find it likely, this should go to julia-opt. See:

Re: [julia-users] Julia 0.5 precompilation failures

2016-10-21 Thread Michele Zaffalon
I am not sure if this is the reason, but the manual ( http://docs.julialang.org/en/release-0.5/manual/modules/) says you should put _precompile_() before the module starts. On Fri, Oct 21, 2016 at 10:56 PM, Rohit Varkey Thankachan < rohitvar...@gmail.com> wrote: > Hi, > > I've been trying to use

Re: [julia-users] Julia 0.5 precompilation failures

2016-10-21 Thread Rohit Varkey Thankachan
Oops! Thanks! I put __precompile__() before the module definitions in both Foo.jl and Bar.jl. The problem is still there though. - Rohit On Friday, 21 October 2016 17:23:16 UTC-4, Michele Zaffalon wrote: > > I am not sure if this is the reason, but the manual ( >

[julia-users] Julia 0.5 precompilation failures

2016-10-21 Thread Rohit Varkey Thankachan
Hi, I've been trying to use julia on one of my university machines and having precompilation issues. The machine runs Linux x84_46 and I'm using the 0.5 generic linux binary. I was trying to use JLD.jl and kept getting precompilation failures for HFD5. On trying to do `using HDF5` in the

Re: [julia-users] Re: canonical binary representation for Array

2016-10-21 Thread Páll Haraldsson
On Wednesday, October 19, 2016 at 7:03:49 AM UTC, Michele Zaffalon wrote: > > On Thursday, October 13, 2016 at 3:38:36 PM UTC+2, Steven G. Johnson wrote: >> >> write on a numeric array will output the raw bytes, i.e. Column-major >> data in the native byte order. >> >> >> Would it be a

Re: [julia-users] Re: BLAS.set_num_threads() and peakflops scaling

2016-10-21 Thread Ralph Smith
On looking more carefully, I believe I was mistaken about thread assignment to cores - that seems to be done well in OpenBLAS (and maybe Linux in general nowadays). Perhaps the erratic benchmarks under hyperthreading - even after heap management is tamed - arise when the operating system

Re: [julia-users] Re: GR error

2016-10-21 Thread henri.gir...@gmail.com
I have another problem... Thanks for your help Regards Henri f = zeta for n = 5:30 plot_domain(domain_colors, f, re=(-6, 6), im=(-20, 20), N=15, n=n) end GKS: /home/pi/.julia/v0.5/GR/src/../deps/gr/lib/./movplugin.so: undefined symbol: gks_movplugin Le 20/10/2016 à 19:19, Josef

Re: [julia-users] Re: Status of Plots.jl?

2016-10-21 Thread henri.gir...@gmail.com
Yes it works :) https://github.com/jheinen/GR.jl/issues/34 Reading this for my problem with mov, I reverse back to suggested. I have got the pic but not the mov Le 20/10/2016 à 19:23, Josef Heinen a écrit : GR v0.16.0 should be available soon. I made a PR

[julia-users] Re: Julia types newbie question

2016-10-21 Thread Simon Danisch
There is a speed difference, which you can see beautifully like this: function _sum{T}(::Type{T}, A) r = zero(T) @inbounds for i in eachindex(A) r += T(A[i]) end r end @code_llvm _sum(Int, rand(Int64, 10^6)) -> uses <4,Int64> vectors @code_llvm _sum(Int, rand(Int32,

[julia-users] Re: Generating MLS Sequences: modulo-2 polynomial factorization

2016-10-21 Thread CrocoDuck O'Ducks
These are very good info, thanks! On Friday, 21 October 2016 11:49:42 UTC+1, Fredrik Johansson wrote: > > On Thursday, October 20, 2016 at 9:52:26 PM UTC+2, CrocoDuck O'Ducks wrote: >> >> Hi there cool people! >> >> I have implemented a simple MLS generator using linear feedback shift >>

[julia-users] I am getting a stack over flow error when using the optimize function from Optim package

2016-10-21 Thread SajeelBongale
Hello, i am new to julia. I am trying to implement logistic regression as per some course on Machine learning. I am using the Atom editor for running Julia. However i am unable to find the right arguments for using the optimize function. I am sending my differentiable function which is the

Re: [julia-users] Re: Julia types newbie question

2016-10-21 Thread Angel de Vicente
Hi, Ismael Venegas Castelló writes: > julia> Base.sum{T<:Real, S<:Real}(::Type{T}, xs::Range{S})::T = sum(xs) > julia> r = 1:100; sum(r), sum(Int32, r) thanks for this, but as I understand it, for my particular case in which I'm interested in working with 32bits

[julia-users] Re: prblem with space after "ś", "ć" ERROR: UnicodeError: invalid character index

2016-10-21 Thread Germán Aquino
Hello, I'm not sure if this is what you need, but you could use: str = "abc" temp = collect(graphemes(str)) find(temp .== "c") On Thursday, October 20, 2016 at 2:34:03 PM UTC-3, program...@gmail.com wrote: > > What wrong ? > julia> o=open("string.txt","w") > IOStream() > > julia> write(o,b) >

[julia-users] Re: jump ahead in Mersenne Twister

2016-10-21 Thread Dan
Hi Joaquim, The *jumppoly* parameter to randjump is a string which depends on the specific parameters of the MersenneTwister. By default Julia uses the 19937 parameters in SFMT. To calculate these strings a utility was (or is still) supplied with SFMT called calc-jump. Its homepage is

Re: [julia-users] Re: Does new "dot" syntax fuse?

2016-10-21 Thread Mauro
On Fri, 2016-10-21 at 09:51, Alexey Cherkaev wrote: > Ay, how many times I've done it! Still forget about global variables! > > OK, I see now about `.+` and friends. As a work-around until 0.6: If you use the functional form of binary operators then they get fused too:

[julia-users] Re: Does new "dot" syntax fuse?

2016-10-21 Thread Alexey Cherkaev
Ay, how many times I've done it! Still forget about global variables! OK, I see now about `.+` and friends. Thanks! On Friday, October 21, 2016 at 3:59:59 AM UTC+2, Steven G. Johnson wrote: > > Putting things into a function to avoid benchmarking in global scope: > > > foo!(x,y) = x .=

Re: [julia-users] UTF8, how to procesed text data

2016-10-21 Thread Gregory Salvan
Hi, there is a library that let you specify the encoding type when opening files: https://github.com/nalimilan/StringEncodings.jl 2016-10-20 19:32 GMT+02:00 : > Julia ver 5 is OK , but is new problem with space after ś, ć . More in new > post... > > Paul > > W dniu

[julia-users] Re: Generating MLS Sequences: modulo-2 polynomial factorization

2016-10-21 Thread CrocoDuck O'Ducks
Wow! Nice! Thank you very much, I will dive into the report. As for non-linearity, I think I already read your comment when I was preparing my DSP assignment at uni. To detect and deal with non-linearity I have decide to stick with this swept sine method

[julia-users] Re: Generating MLS Sequences: modulo-2 polynomial factorization

2016-10-21 Thread Fredrik Johansson
On Thursday, October 20, 2016 at 9:52:26 PM UTC+2, CrocoDuck O'Ducks wrote: > > Hi there cool people! > > I have implemented a simple MLS generator using linear feedback shift > registers. I used as taps the ones provided in: > > Vanderkooy, J. (1994). Aspects of MLS Measuring Systems. Journal

Re: [julia-users] congratulations to Indian dost

2016-10-21 Thread Tim Holy
Don't look at me, I swear it was just a simple change in the return type of a function---they should have used a parametric type definition. Another $1billion down the drain... Best, --Tim On Wed, Oct 19, 2016 at 11:50 PM, Michele Zaffalon < michele.zaffa...@gmail.com> wrote: > Tim Holy: I had