Re: [julia-users] Re: Article on `@simd`

2014-12-23 Thread Valentin Churavy
There is a recent and ongoing discussion on the llvm maillinglist to expose scatter and load operations as llvm intrinsics http://thread.gmane.org/gmane.comp.compilers.llvm.devel/79936 . - Valentin On Monday, 1 December 2014 17:43:11 UTC+1, John Myles White wrote: This is great. Thanks,

[julia-users] Re: make errors and git version issues

2014-12-23 Thread Ivar Nesje
I'm really at loss for what to try here. I'm upgrading to git 2.0, but the release notes doesn't seem to have changes that would break anything. kl. 08:22:01 UTC+1 tirsdag 23. desember 2014 skrev Svaksha følgende: On Tue, Dec 23, 2014 at 7:09 AM, SVAKSHA sva...@gmail.com javascript: wrote:

[julia-users] Half precision math operations

2014-12-23 Thread Mark B
I was wondering how Julia supports half precision operations? It seems it does (more or less) but I'm not sure if there's a lot of type conversion going on behind the scenes with associated overhead. Would it be more efficient to store and crunch on Float32s? julia rand(Float16,2,2) *

[julia-users] Re: make errors and git version issues

2014-12-23 Thread SVAKSHA
On Tue, Dec 23, 2014 at 9:10 AM, Ivar Nesje iva...@gmail.com wrote: I'm really at loss for what to try here. I'm upgrading to git 2.0, but the release notes doesn't seem to have changes that would break anything. I dont think git should be able to break anything as julia works as expected with

[julia-users] Re: make errors and git version issues

2014-12-23 Thread SVAKSHA
On Tue, Dec 23, 2014 at 11:55 AM, SVAKSHA svak...@gmail.com wrote: On Tue, Dec 23, 2014 at 9:10 AM, Ivar Nesje iva...@gmail.com wrote: I'm really at loss for what to try here. I'm upgrading to git 2.0, but the release notes doesn't seem to have changes that would break anything. I dont think

[julia-users] Re: Half precision math operations

2014-12-23 Thread Tobias Knopp
I suppose that the fft limitation is due fftw supporting only float32 and float64. I am not sure if simd supports float16. If not you should not expect any speed gains. Cheers Tobi Am Dienstag, 23. Dezember 2014 11:56:46 UTC+1 schrieb Mark B: I was wondering how Julia supports half

[julia-users] Optional functionality in submodule

2014-12-23 Thread Tobias Knopp
Sorry if this has already been answered. Its about optional plotting functionality in a package. More precisely I want to have some Winston / Gtk based plotting things and some PyPlot plotting routines. Is there a possibility to have submodules in a package so that the main module can be used

Re: [julia-users] how to properly dis-connect from a TcpSocket

2014-12-23 Thread Isaiah Norton
To cleanly close a socket, use `close(::TCPSocket)`. Also, you might want to check `isopen(::TCPSocket)` as the loop condition. (the applicable version of `close` in the method table is `close(::AsyncStream)`, because TCPSocket : AsyncStream) On Tue, Dec 23, 2014 at 7:52 AM, Ben Arthur

[julia-users] How to convert TimeArrays do typical Julia Array (Matrix) ?

2014-12-23 Thread paul analyst
How to convert TimeArrays do typical Julia Array (Matrix) ? Paul

Re: [julia-users] Re: Half precision math operations

2014-12-23 Thread Erik Schnetter
Doing computation with Float16 is slow -- most CPUs only have Float32 operations implemented in hardware, as well as conversion operations between Float16 and Float32. The only efficient way is to keep the values as Float32 for as long as possible, and only convert to Float16 when storing back to

[julia-users] Re: make errors and git version issues

2014-12-23 Thread SVAKSHA
Solved. Apparently this was not a git issue at all. Thanks for the pointer Ivar - you were right that julia was running from another directory, in this case the ppa nightlies by Elliot. Thanks for the pointer and sorry about the noise. SVAKSHA ॥ http://about.me/svaksha ॥ On Tue, Dec 23, 2014

Re: [julia-users] Optional functionality in submodule

2014-12-23 Thread Tobias Knopp
Thanks, so the code is only executed when the module was previously loaded right? Am Dienstag, 23. Dezember 2014 16:10:55 UTC+1 schrieb tshort: Not quite what you're asking, but see some discussions in this issue: https://github.com/JuliaLang/julia/issues/2025 Particularly, see the note on

Re: [julia-users] Re: Half precision math operations

2014-12-23 Thread Tobias Knopp
Interesting but it seems that the common SIMD instructions are indeed only available for float32 an larger. This would have been a factor 2 that could potentially reached. Am Dienstag, 23. Dezember 2014 19:10:50 UTC+1 schrieb Erik Schnetter: Doing computation with Float16 is slow -- most CPUs

Re: [julia-users] Optional functionality in submodule

2014-12-23 Thread Avik Sengupta
Thanks, so the code is only executed when the module was previously loaded right? No, I believe that if the module is loaded in the future, the code is executed then. The code is executed immediately if the module has been previously loaded. See Mike's comments at that issue:

Re: [julia-users] Re: new packages: PrimeSieve, ZChop, DeepConvert, PermutationsA

2014-12-23 Thread John Lapeyre
On 12/22/2014 07:19 PM, Hans W Borchers wrote: This approach to count prime numbers based on tables is very useful (for me), thanks. There are more than 305 million primes in the interval [1841378967856, 18500]. What am I doing wrong: julia genprimes(1841378967856,

Re: [julia-users] Re: Half precision math operations

2014-12-23 Thread Jiahao Chen
Related issue: https://github.com/JuliaLang/julia/issues/5942

[julia-users] Supporting @inbounds with custom array type?

2014-12-23 Thread Sheehan Olver
I'm making a custom BandedMatrix data type that overrides setindex!, and I want to use @inbounds: @inbounds A[k,j]=4 The issue is that @inbounds doesn't seem to go inside the setindex! call. Any idea to allow @inbounds to work? My solution is to add another call ibsetindex!, but this makes

[julia-users] C code in a Julia package

2014-12-23 Thread lapeyre . math122a
Can someone point me to examples of C code in Julia packages ? I am using BinDeps to download two C++ libraries. After a lot of blind trial and error I have a build.jl that does what I need. But, I need to write a c wrapper for the C++ libraries. One idea is to have BinDeps handle the build,

[julia-users] convert Matlab code into Julia

2014-12-23 Thread jspark
Hi, I am a *two days *old beginner for *Julia* and it seemed I can translate *Matlab* code into Julia in a second (?) but the reality is always different... The goal for original *Matlab* code was to select eight time series data files (matlab format) in a folder(directory) and run the data

[julia-users] Re: convert Matlab code into Julia

2014-12-23 Thread DP
As per .mat file, one thing I can say is, Write a Matlab script to get a .csv data file from .mat. Now Interface .csv file with your julia code. On Wednesday, December 24, 2014 8:00:35 AM UTC+5:30, jspark wrote: Hi, I am a *two days *old beginner for *Julia* and it seemed I can translate

Re: [julia-users] Re: convert Matlab code into Julia

2014-12-23 Thread Jameson Nash
There is a package available for reading matlab .mat files ( https://github.com/simonster/MAT.jl) For basic `dir()` functionality, Julia's `readdir()` may be sufficient for you. For more complicated usages, Glob.jl pattern matching may come in handy (https://github.com/vtjnash/Glob.jl) On Tue

Re: [julia-users] C code in a Julia package

2014-12-23 Thread Elliot Saba
Hey John, If you can explain a bit as to what you want to do with your libraries, that would help. What I understand from you so far is that: A) You have to C++ libraries that you are able to download and compile B) You want to write a wrapper that sits between Julia and the C++, written in C

[julia-users] Re: How can I create a simple Graph using Graphs.jl?

2014-12-23 Thread Todd Leo
Then you can use the methods described at http://graphsjl-docs.readthedocs.org/en/latest/graphs.html#graph http://www.google.com/url?q=http%3A%2F%2Fgraphsjl-docs.readthedocs.org%2Fen%2Flatest%2Fgraphs.html%23graphsa=Dsntz=1usg=AFQjCNHVoi5mCb8OfzJ8seHEQEjoCuoN9Q to extract/operate on

[julia-users] convert for parametric type unions

2014-12-23 Thread Andreas Noack
convert fails for parametric type unions, e.g. julia immutable TC{T} end julia immutable TD{T} end julia typealias TCD{T} Union(TC{T}, TD{T}) Union(TC{T},TD{T}) julia convert{T}(::Type{TCD{T}}, x::TC) = Andreas convert (generic function with 493 methods) julia convert(TCD{Float64},

Re: [julia-users] Re: new packages: PrimeSieve, ZChop, DeepConvert, PermutationsA

2014-12-23 Thread Hans W Borchers
No, You've got a typo. But, be careful fixing it, it may eat up all your memory. A typo from copying. The problem is that first the memory error occurs and on second call it returns an empty error. julia genprimes(1841378967856, 18500) ERROR: MemoryError() in primescopy