[julia-users] Re: Running octave scrips from julia

2016-09-18 Thread Waldir Pimenta
Sorry, that was on me: https://github.com/JuliaPy/PyCall.jl/issues/320 Still, since this thread wasn't resolved, it may be a good thing if this gets exposed to more eyes, since other people may have (or have had) the same problem, and could comment confirming its resolution, or that it still

[julia-users] Does Julia 0.5 leak memory?

2016-09-18 Thread K leo
I run Julia through repl. The procedure is simple: include("myfile.jl"), then run myfunction() (I might do a Ctrl-C to interrupt the function), edit something in myfile.jl, then repeat. Initially, julia processes normally take less than 10% RAM, then after some time, one main Julia process

Re: [julia-users] Does Julia 0.5 leak memory?

2016-09-18 Thread Yichao Yu
On Sun, Sep 18, 2016 at 8:53 AM, K leo wrote: > I run Julia through repl. The procedure is simple: include("myfile.jl"), > then run myfunction() (I might do a Ctrl-C to interrupt the function), edit > something in myfile.jl, then repeat. Initially, julia processes normally >

[julia-users] Re: What is the best way to element-wise right shift an array?

2016-09-18 Thread Kristoffer Carlsson
Just because you are calling two functions doesn't mean it is slow. Have you benchmarked? On Sunday, September 18, 2016 at 11:55:47 AM UTC+2, K leo wrote: > > I have been using simply A=[0; A[1:end-1]], but found it to be somehow > quite expensive. I saw that there is unshift! but it has to

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

2016-09-18 Thread Waldir Pimenta
Já existe um grupo/canal do gitter: https://gitter.im/JuliaLangPt/julia --- eu sugeria não fragmentarmos a comunidade, que é bem pequena, com um novo canal de comuncação (até porque esse canal no gitter está ligado a uma organização do github: https://github.com/JuliaLangPt) On Tuesday,

Re: [julia-users] Read a stuctured binary file with big endian unsigned integers (4 bytes) and big endian floats (4 bytes)

2016-09-18 Thread Tim Holy
See ntoh and hton. Perhaps even better, see StrPack.jl. --Tim On Sunday, September 18, 2016 1:13:43 AM CDT Femto Trader wrote: > Hello, > > I'd like to read this file > http://www.dukascopy.com/datafeed/EURUSD/2016/02/14/20h_ticks.bi5 > using Julia. > > It's a LZMA compressed file. > > I can

Re: [julia-users] Does Julia 0.5 leak memory?

2016-09-18 Thread K leo
I am also wondering what information I should look into. On Sunday, September 18, 2016 at 9:30:00 PM UTC+8, Yichao Yu wrote: > > > Impossible to tell without any information provided. >

[julia-users] Read a stuctured binary file with big endian unsigned integers (4 bytes) and big endian floats (4 bytes)

2016-09-18 Thread Femto Trader
Hello, I'd like to read this file http://www.dukascopy.com/datafeed/EURUSD/2016/02/14/20h_ticks.bi5 using Julia. It's a LZMA compressed file. I can decompressed it using cp 20h_ticks.bi5 20h_ticks.xz xz --decompress --format=lzma 20h_ticks.xz Now, I have a 20h_ticks binary file. It's a

[julia-users] What is the best way to element-wise right shift an array?

2016-09-18 Thread K leo
I have been using simply A=[0; A[1:end-1]], but found it to be somehow quite expensive. I saw that there is unshift! but it has to be followed up with deleteat! to make the array the same size, i.e. there need to be two operations. So how can I get a better performance doing the shift?

Re: [julia-users] What is the best way to element-wise right shift an array?

2016-09-18 Thread Tim Holy
On Sunday, September 18, 2016 2:55:46 AM CDT K leo wrote: > I have been using simply A=[0; A[1:end-1]], but found it to be somehow > quite expensive. I saw that there is unshift! but it has to be followed up > with deleteat! to make the array the same size, i.e. there need to be two > operations.

[julia-users] What is the best way to element-wise right shift an array?

2016-09-18 Thread David P. Sanders
You should also benchmark the simple for loop. Please report back with the results.

Re: [julia-users] Re: julia installation broken

2016-09-18 Thread Michael Krabbe Borregaard
Thanks a lot, Jeffrey! Incredibly, this worked. Best, Michael On Fri, Sep 16, 2016 at 6:48 PM, Jeffrey Sarnoff wrote: > I have had this happen, too. My suggestion is grounded in persistence > rather than deep mastery of Julia's structural and file relationships. >

Re: [julia-users] Read a stuctured binary file with big endian unsigned integers (4 bytes) and big endian floats (4 bytes)

2016-09-18 Thread Femto Trader
I think it's ok now... https://github.com/femtotrader/DataReaders.jl/issues/14 but I'm still blocked because of LZMA compression see https://github.com/yuyichao/LibArchive.jl/issues/2 and my question https://groups.google.com/forum/#!topic/julia-users/G9Pqe5svS3c Any help will be great. Le

Re: [julia-users] Does Julia 0.5 leak memory?

2016-09-18 Thread Yichao Yu
On Sun, Sep 18, 2016 at 9:36 AM, K leo wrote: > I am also wondering what information I should look into. > > On Sunday, September 18, 2016 at 9:30:00 PM UTC+8, Yichao Yu wrote: >> >> >> Impossible to tell without any information provided. At least show what your code looks

Re: [julia-users] Re: julia installation broken

2016-09-18 Thread Tony Kelman
This sounds like it may have been a download issue or a corrupt repo, and/or a bug in any fallback code that Pkg might contain to attempt to deal with problems in cloning. If you can reproduce it reliably, would be valuable to report the sequence of steps you used to get into the error state.

[julia-users] Re: What is the best way to element-wise right shift an array?

2016-09-18 Thread K leo
OK, ran a test. And the difference is pretty dramatic. Look: | | |_| | | | (_| | | Version 0.5.0-rc4+0 (2016-09-09 01:43 UTC) _/ |\__'_|_|_|\__'_| | Official http://julialang.org/ release |__/ | x86_64-pc-linux-gnu julia> include("testArray.jl") julia> testShift()

Re: [julia-users] Re: LZMA decompression with Julia

2016-09-18 Thread Yichao Yu
On Sun, Sep 18, 2016 at 9:50 AM, Femto Trader wrote: > I'm still blocked > https://github.com/yuyichao/LibArchive.jl/issues/2 > Any help is welcome. > As I said, you shouldn't require a IOStream, it basically means that you can't support anything other than a raw file

[julia-users] Re: LZMA decompression with Julia

2016-09-18 Thread Femto Trader
I'm still blocked https://github.com/yuyichao/LibArchive.jl/issues/2 Any help is welcome. Le samedi 17 septembre 2016 18:54:48 UTC+2, Femto Trader a écrit : > > Thanks I will have a look > > Le samedi 17 septembre 2016 16:18:34 UTC+2, Tony Kelman a écrit : >> >> Your best bet is probably

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

2016-09-18 Thread Phelipe Wesley
Não sabia da existência, tinha criado pois não conhecia nenhum, vou informar aos que já estão cadastrados no novo para irem para o do gitter. :D No dia 18 de setembro de 2016 às 08:16, Waldir Pimenta < waldir.pime...@gmail.com> escreveu: > Já existe um grupo/canal do gitter:

[julia-users] accessing globals from keyword arg defaults

2016-09-18 Thread Marius Millea
I'd like to access global variables from the default values of keywords arguments, e.g.: x = 3 function f(;x=x) #<- this default value of x here should refer to x in the global scope which is 3 ... end Is there any way to do this? I had guessed the following might work but it doesn't:

[julia-users] Re: accessing globals from keyword arg defaults

2016-09-18 Thread Steven G. Johnson
On Sunday, September 18, 2016 at 5:31:19 PM UTC-4, Marius Millea wrote: > > I'd like to access global variables from the default values of keywords > arguments, e.g.: > > x = 3 > function f(;x=x) #<- this default value of x here should refer to x in > the global scope which is 3 > I think

[julia-users] Re: accessing globals from keyword arg defaults

2016-09-18 Thread Steven G. Johnson
See also https://github.com/JuliaLang/julia/issues/9535

[julia-users] 0.5rc4: TypeError: non-boolean (Bool) used in boolean context

2016-09-18 Thread Cedric St-Jean
I just updated my codebase to 0.5, and encountered a strange bug. I have two tests, test 1 and 2, both wrapped in their own modules so as not to interact. Both tests run fine from a fresh Julia session, but running test 1 before test 2 yields "TypeError: non-boolean (Bool) used in boolean

[julia-users] KeyError when trying to access a column of the dataframes iteratively

2016-09-18 Thread varun7rs
Hi, I seem to have run into a problem here. I firstly have a function as follows: function gen(type, frame1, frame2) x = frame1[:type] z = frame2[:type] y = [] for i in length(frame1) push!(y, x[i] * z[i]) end end Now, when I call: ans = gen(I, frame1, frame2), I get a

Re: [julia-users] accessing globals from keyword arg defaults

2016-09-18 Thread Erik Schnetter
As a work-around, you can define a function `getx() = (global x; x)`, and use it to access the global variable x. -erik On Sun, Sep 18, 2016 at 5:31 PM, Marius Millea wrote: > I'd like to access global variables from the default values of keywords > arguments, e.g.: > >

Re: [julia-users] 0.5rc4: TypeError: non-boolean (Bool) used in boolean context

2016-09-18 Thread Yichao Yu
On Sun, Sep 18, 2016 at 6:29 PM, Cedric St-Jean wrote: > I just updated my codebase to 0.5, and encountered a strange bug. I have two > tests, test 1 and 2, both wrapped in their own modules so as not to > interact. Both tests run fine from a fresh Julia session, but

Re: [julia-users] 0.5rc4: TypeError: non-boolean (Bool) used in boolean context

2016-09-18 Thread Cedric St-Jean
Thank you, loading all the modules up-front solved the problem. I'm surprised that the compiler can make false assumptions about types without triggering segfaults left and right. On Sunday, September 18, 2016 at 6:51:22 PM UTC-4, Yichao Yu wrote: > > On Sun, Sep 18, 2016 at 6:29 PM, Cedric

[julia-users] Re: KeyError when trying to access a column of the dataframes iteratively

2016-09-18 Thread varun7rs
Sorry about that. I was able to fix the error by changing x = frame[:type] to x = frame[type] Apologies for the trouble caused On Sunday, 18 September 2016 22:45:27 UTC+2, varu...@gmail.com wrote: > > > Hi, > > I seem to have run into a problem here. I firstly have a function as > follows: > >