Re: [julia-users] Unexpected slowdown

2016-08-22 Thread Achu
I see. Thanks! On Monday, 22 August 2016 18:28:15 UTC-5, Yichao Yu wrote: > > > > On Tue, Aug 23, 2016 at 4:58 AM, Achu <ach...@gmail.com > > wrote: > >> I have a simple piece of code that finds me 10001 prime numbers. >> >> function a()

[julia-users] Unexpected slowdown

2016-08-22 Thread Achu
I have a simple piece of code that finds me 10001 prime numbers. function a() pl=[2] n=3 ct=1 while(ct<10001) isnprime=true for a in pl if n%a==0 isnprime=false break end end if isnprime push!(pl,n) ct+=1 end n+=2

Re: [julia-users] Reactive.jl - Resetting an accumulator

2016-05-04 Thread Achu
ine, actions) > > > now display/plot peak_x. > > The benefit of this approach is it is extensible and makes your code easy > to understand. You can add functionality by simply defining new Action > type, a combine method to update previous state, and finally adding it to >

[julia-users] Reactive.jl - Resetting an accumulator

2016-05-04 Thread Achu
Hi I have a signal x Signal{Float64} and I have this other signal that defined by peak_x=foldp(max,0.0,x). Is there a way for me to reinitialize peak_x back to 0? Thanks! Achu

Re: [julia-users] Converting hex ints

2016-04-27 Thread Achu
.@karpinski.org > > wrote: > >> read(io, UInt32). Depending on the endianness of the data stream, you may >> or may not need to call ntoh on that. >> >> On Wed, Apr 27, 2016 at 1:35 PM, Achu <ach...@gmail.com > >> wrote: >> >>> Hi >>>

[julia-users] Converting hex ints

2016-04-27 Thread Achu
UInt8s into one UInt32, I'm using s=bytes2hex(a) #where a is a Vector UInt8, 4 parse(UInt32,"0x"*s) Is there a better way to do this? Thanks! Achu

[julia-users] Re: Error installing hydrogen for Atom

2016-04-08 Thread Achu
7, 2016 at 9:58:20 PM UTC-4, Achu wrote: >> >> Was trying to install hydrogen for Atom when I got this error. Tried it >> with every available version of ZMQ and no luck. Anyone know why? >> >> Installing hydrogen to C:\Users\achug\.atom\packages failed >> &g

[julia-users] Error installing hydrogen for Atom

2016-04-07 Thread Achu
Was trying to install hydrogen for Atom when I got this error. Tried it with every available version of ZMQ and no luck. Anyone know why? Installing hydrogen to C:\Users\achug\.atom\packages failed > zmq@2.14.0 install

Re: [julia-users] Atom compilation error

2016-03-23 Thread Achu
client/issues/131 > https://github.com/JuliaLang/METADATA.jl/tree/metadata-v2/CodeTools > > > > On Wed, Mar 23, 2016 at 2:16 AM, Achu <ach...@gmail.com > > wrote: > >> Tried to install Juno/Atom today. Got this error when precompiling. Does >> anyone know w

[julia-users] Atom compilation error

2016-03-23 Thread Achu
Tried to install Juno/Atom today. Got this error when precompiling. Does anyone know why? Julia 0.4.5 INFO: Precompiling module Atom... ERROR: LoadError: LoadError: UndefVarError: get_obj_meta not defined in hasdoc at C:\Users\achug\.julia\v0.4\CodeTools\src\summaries.jl:24 in fullsignature at

[julia-users] push! performance

2015-11-14 Thread Achu
So in Matlab there's a pretty big difference in performance between preallocating an array, and growing it in a loop with a=[a new_element]; How big is the performance difference in Julia between preallocating and using push! to grow the array in a loop? Thanks! Achu

[julia-users] Re: WinRPM Download failure

2015-10-28 Thread Achu
ng the https://cache.e.ip.saba.us/ prefix from the entries in > sources.list (then restart), does that help? > > > On Tuesday, October 27, 2015 at 1:41:55 PM UTC-7, Achu wrote: >> >> Tried Pkg.update(), exited, and Pkg.build("WinRPM") in a new instance. I >> got this >&

[julia-users] Re: WinRPM Download failure

2015-10-27 Thread Achu
pomd.xml gives me an untrusted connection warning and then a 400 error when go there anyway. http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_13.2/repodata/repomd.xml works just fine. On Monday, 26 October 2015 14:26:07 UTC-5, Achu wrote: > > I got this when I ran Pk

[julia-users] WinRPM Download failure

2015-10-26 Thread Achu
I got this when I ran Pkg.update() and also on WinRPM.update() INFO: Building WinRPM INFO: Downloading https://cache.e.ip.saba.us/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_13.1/repodata/repomd.xml WARNING: Unknown download failure, error code: 2148270086 WARNING: