[julia-users] Re: enum data type

2014-02-22 Thread Gour
On Thu, 20 Feb 2014 00:26:41 -0800 (PST) Tobias Knopp tobias.kn...@googlemail.com wrote: Stefan, you got me, this looks like a nice proposal! One minor thing is that these enum types shoud subtype from an abstract Enum type. I am looking forward to this stuff. +1 for that. It would be great

[julia-users] Re: UDP Support

2014-02-22 Thread Bob Cowdery
It also occurs to me that on Linux the first 1024 ports are restricted. Now the send() was TO port 1024 and should not have tried to bind to 1024 which would give EACCESS if not root. On Wednesday, February 5, 2014 7:57:34 PM UTC, Bob Cowdery wrote: Does the network i/o package support UDP as

Re: [julia-users] Sparse Matrix Multiplication Slow in Julia?

2014-02-22 Thread Andreas Noack Jensen
Thank you for leading the investigation. After all it appears that things are not that bad. Regarding your last question, have a look at line 104 in linalg/matmul.jl. It not on the parser level, but here A_mul_Bt checks if A and B are the same matrix and calls syrk in that case. I guess we could

[julia-users] Re: Finite Fields

2014-02-22 Thread Alan Edelman
That's very cool Andreas! Nothing like already having our own GE in addition to LAPACK's. On Thursday, February 20, 2014 5:45:28 PM UTC-5, andrew cooke wrote: A broad and a narrow question... If Julia supports the definition of new integer types can I define a new type for a finite field

Re: [julia-users] Problem to build Julia for openSUSE

2014-02-22 Thread andrew cooke
one more point. ronan, i don't know what you're using opensuse's build service for, but there are issues at the moment with binary builds of julia. see https://github.com/JuliaLang/julia/issues/5293 which if i understand correctly, means that currently 0.3 cannot be pre-built on one machine

Re: [julia-users] Problem to build Julia for openSUSE

2014-02-22 Thread Patrick O'Leary
To clarify, this only affects the precompiled standard library image, sys.{so,dylib,dll}. Everything else is fine, and at the cost of startup time you can delete this file (or use the `make dist` target) and distribute the result. On Saturday, February 22, 2014 5:31:25 AM UTC-6, andrew cooke

Re: [julia-users] Problem to build Julia for openSUSE

2014-02-22 Thread andrew cooke
ah, thanks; i hadn't understood that. On Saturday, 22 February 2014 11:43:34 UTC-3, Patrick O'Leary wrote: To clarify, this only affects the precompiled standard library image, sys.{so,dylib,dll}. Everything else is fine, and at the cost of startup time you can delete this file (or use the

Re: [julia-users] Re: UDP Support

2014-02-22 Thread Keno Fischer
You can an EACCESS if you try to broadcast without enabling broadcast on the socket first (see the unexported julia fuction for how to do that without ccalling libuv directly). On Linux and OS X you also get the correct error code, but that appears not to be the case on windows. I'll have a look.

[julia-users] Re: noob question println

2014-02-22 Thread Jason Knight
What version/platform are you running this on? I'm on Linux using Julia master and everything prints normally for me. On Saturday, February 22, 2014 8:21:18 AM UTC-6, Barry Andersen wrote: I am beginning with julia. Here is a fibonacci series in julia. code: a, b = 1, 1 for i in [1:6]

[julia-users] Row major data/algorithm

2014-02-22 Thread Tobias Knopp
I am converting some algorithms from Python/Numpy to Julia and have no idea how to handle that Julia arrays are column major. I have a matrix on disk (very large 10GB) and it is stored row major. This is the natural representation in my application. Now I want to solve a linear system of

Re: [julia-users] Sparse Matrix Multiplication Slow in Julia?

2014-02-22 Thread Steven G. Johnson
Note that the global scope shouldn't matter much for performance in this case because most of the time is spent in a function (* for sparse matrices)

[julia-users] Struggling w macro

2014-02-22 Thread andrew cooke
When I use this code: module IntModN export @Zn macro Zn(args...) n = args[1] @assert n 1 Zn, n must be 1 name = length(args) 1 ? args[2] : Z$n @assert length(args) 3 Zn, too many args println(n:$n/$(typeof(n)) name:$name/$(typeof(name))) code = :(module $name

[julia-users] Exclude master node in pmap computation

2014-02-22 Thread Micah McClimans
I am working on distributing a compute intensive task over a cluster in Julia, using the pmap function. However, for several reasons I would like to avoid having the master node used in the computation- is there a way to accomplish this using the built in keyword, or will I need to rewrite

Re: [julia-users] Exclude master node in pmap computation

2014-02-22 Thread Stefan Karpinski
If there are other processors, pmap doesn't use the head node by default: julia addprocs(2) 2-element Array{Any,1}: 2 3 julia pmap(x-myid(), 1:10) 10-element Array{Any,1}: 2 3 3 2 2 3 2 3 2 3 On Sat, Feb 22, 2014 at 5:50 PM, Micah McClimans also.also@gmail.comwrote: I am

[julia-users] Re: Struggling w macro

2014-02-22 Thread andrew cooke
Curiously, module ($name) gives something more like I would expect, but then I have a malformed module: andrew@netbook:~/project/int-mod-n/src julia tests.jl OpenBLAS : Your OS does not support AVX instructions. OpenBLAS is using Nehalem kernels as a fallback, which may give poorer

[julia-users] Re: Struggling w macro

2014-02-22 Thread andrew cooke
This is driving e crazy. The following code works: name = :bob dump(:(module ($name) export bar; function bar() 3 end end)) @eval module ($name) export bar; function bar() 3 end end println(bob.bar()) yet the dump appears identical to the malformed module in the earlier code:

[julia-users] Re: Struggling w macro

2014-02-22 Thread andrew cooke
But... if you read those threads it seems that this is intentionally hard to do. So maybe I shouldn't be doing it. I thought it would be neat to generate a module for integers module N, for some N (so it's a parametric module). I guess really I only need to generate a data type. I *could*

[julia-users] Re: noob question println

2014-02-22 Thread Barry Andersen
On Saturday, February 22, 2014 7:21:18 AM UTC-7, Barry Andersen wrote: I am beginning with julia. Here is a fibonacci series in julia. code: a, b = 1, 1 for i in [1:6] println(i, , a) n = a + b a = b b = n end output: sometimes julia fibonacci 1 1 2 julia 1

[julia-users] Re: Best data structure to remove elements one by one

2014-02-22 Thread David P. Sanders
El viernes, 21 de febrero de 2014 16:03:19 UTC-6, Steven G. Johnson escribió: On Friday, February 21, 2014 9:02:48 AM UTC-5, David P. Sanders wrote: OK, I think I have answered my own question: a Set is the good structure. And to create a set from an array I can do something like s =

Re: [julia-users] Best data structure for a dynamic array

2014-02-22 Thread David P. Sanders
El viernes, 21 de febrero de 2014 09:57:10 UTC-6, Kevin Squire escribió: It's hard to answer without more information. Is this related to your other, self-answered post, where you mention adding and deleting elements? Yes, it's a simulation I'm working on, which is a particular kind of