[julia-users] Integer overflows

2015-08-12 Thread Páll Haraldsson
I've seen Julia's non-checking of integer overflows questioned (and I know the answer/performance section (and BigInt alternative, that is just slow/overkill), and recall a discussion in the forums). Just now I noticed: https://github.com/JuliaLang/julia/issues/855 [for 1.0 milestone - after

Re: [julia-users] Function for checking monotonicity of higher-dimensional arrays

2015-08-12 Thread Nils Gudat
Thanks for all the suggestions! Since I'm still on 0.3.11, and only have to check a couple of fairly small arrays, I simply went with function checkmonotonicity(v::Array{Float64}) counter = Array(Int64, ndims(v)) for i = 1:ndims(v) counter[i] = sum(mapslices(issorted, v, i)) end

[julia-users] Julia and databases abstraction (ORM/"Independence mismatch")

2015-08-12 Thread Páll Haraldsson
Hi, [As a database guy, that uses SQL (PostgreSQL); and not really object relational mapping (ORM) or recommending it.. or NoSQL. Or haven't used LINQ in C# (just vaguely familiar), I wander what the best way would be in Julia to access databases.] I know about the driver situation (most rece

[julia-users] Re: Julia as first programming language

2015-08-12 Thread Páll Haraldsson
On Wednesday, August 5, 2015 at 5:33:59 PM UTC, David Gold wrote: > > I've been learning Julia as my first programming language, if I don't > count the VB I learned in high school tech and the small amount of R I > learned to pass STAT 201. > > For me, Julia has been an excellent first first lan

[julia-users] The sate of the latest Docs

2015-08-12 Thread J Luis
In the *latest *Docs I am now seeing several repetitions like the case in the image bellow.

Re: [julia-users] The sate of the latest Docs

2015-08-12 Thread Yichao Yu
On Wed, Aug 12, 2015 at 7:42 AM, J Luis wrote: > In the *latest *Docs I am now seeing several repetitions like the case in > the image bellow. > https://github.com/JuliaLang/julia/commit/dfc7168696c1ad031db99e43bdb799c271edec0c#commitcomment-12528895 > > > >

Re: [julia-users] Assistance with understanding typing

2015-08-12 Thread David Gold
@Stefan, I'd have thought that parametric types being invariant in typevars would lead to !(Tuple{ASCIIString, ASCIIString} <: Tuple{String, String}) just as !(Vector{ASCIIString} <: Vector{String}) Tuples seem to behave specially? On Tuesday, August 11, 2015 at 4:18:38 PM U

Re: [julia-users] Assistance with understanding typing

2015-08-12 Thread Yichao Yu
On Wed, Aug 12, 2015 at 8:14 AM, David Gold wrote: > @Stefan, > > I'd have thought that parametric types being invariant in typevars would > lead to > > !(Tuple{ASCIIString, ASCIIString} <: Tuple{String, String}) > > just as > > !(Vector{ASCIIString} <: Vector{String}) > > Tuples s

Re: [julia-users] Assistance with understanding typing

2015-08-12 Thread Sisyphuss
"Tuple types are *covariant* in their constituent types" Ref: http://docs.julialang.org/en/release-0.3/manual/types/#tuple-types I think this is for the sake of dispatch. On Wednesday, August 12, 2015 at 2:14:14 PM UTC+2, David Gold wrote: > > @Stefan, > > I'd have thought that parametric type

[julia-users] Re: The sate of the latest Docs

2015-08-12 Thread Sisyphuss
Just a somewhat irrelevant question: what is "sate"? On Wednesday, August 12, 2015 at 1:42:15 PM UTC+2, J Luis wrote: > > In the *latest *Docs I am now seeing several repetitions like the case in > the image bellow. > > > >

Re: [julia-users] Re: The sate of the latest Docs

2015-08-12 Thread René Donner
just a typo for "state" Am 12.08.2015 um 14:23 schrieb Sisyphuss : > Just a somewhat irrelevant question: what is "sate"? > > > On Wednesday, August 12, 2015 at 1:42:15 PM UTC+2, J Luis wrote: > In the latest Docs I am now seeing several repetitions like the case in the > image bellow. > > >

Re: [julia-users] Assistance with understanding typing

2015-08-12 Thread David Gold
Ahah, thank you both. On Wednesday, August 12, 2015 at 8:22:09 AM UTC-4, Sisyphuss wrote: > > "Tuple types are *covariant* in their constituent types" > > Ref: http://docs.julialang.org/en/release-0.3/manual/types/#tuple-types > > I think this is for the sake of dispatch. > > > > On Wednesday, Aug

[julia-users] Re: JuliaBox planned downtime on Saturday, 15 August 2015, 23:30:00 UTC(GMT)

2015-08-12 Thread Sisyphuss
On Tuesday, August 11, 2015 at 4:10:48 PM UTC+2, Tanmay K. Mohapatra wrote: > > Hi, > > We have a bunch of updates to JuliaBox to be deployed on > https://juliabox.org/. > Unfortunately we need a full downtime for this update, unlike past updates. > > We shall be taking a downtime for JuliaBox o

[julia-users] Inconsistent behavior of `try`

2015-08-12 Thread Sisyphuss
I thought the following code will return the value 1, a = try error() finally 1 end However, `a` is undefined, as oppose to the `b` in the following code b = try error() end defined as `nothing`.

Re: [julia-users] Inconsistent behavior of `try`

2015-08-12 Thread Yichao Yu
On Wed, Aug 12, 2015 at 9:03 AM, Sisyphuss wrote: > I thought the following code will return the value 1, > a = try > error() > finally > 1 > end No, the try block doesn't even return because it throws an error. To get a return value when an error happens, use the catch block. > However,

Re: [julia-users] Inconsistent behavior of `try`

2015-08-12 Thread Sisyphuss
"The catch clause is not strictly necessary; when omitted, the default return value is nothing." Ref: http://docs.julialang.org/en/latest/manual/control-flow/#exception-handling On Wednesday, August 12, 2015 at 3:14:51 PM UTC+2, Yichao Yu wrote: > > On Wed, Aug 12, 2015 at 9:03 AM, Sisyphuss > w

Re: [julia-users] Inconsistent behavior of `try`

2015-08-12 Thread Yichao Yu
On Wed, Aug 12, 2015 at 9:20 AM, Sisyphuss wrote: > "The catch clause is not strictly necessary; when omitted, the default > return value is nothing." > Ref: > http://docs.julialang.org/en/latest/manual/control-flow/#exception-handling So?? As your second example shows, you get the `nothing` if y

[julia-users] Re: Julia as first programming language

2015-08-12 Thread Jeffrey Sarnoff
I can save you some time, if you allow .. at present and forward more years than you expect, there is no better nor any roughly as good. On Wednesday, August 12, 2015 at 7:34:09 AM UTC-4, Páll Haraldsson wrote: > > > On Wednesday, August 5, 2015 at 5:33:59 PM UTC, David Gold wrote: >> >> I've bee

Re: [julia-users] Re: The sate of the latest Docs

2015-08-12 Thread J Luis
Correct, sorry. quarta-feira, 12 de Agosto de 2015 às 13:29:50 UTC+1, René Donner escreveu: > > just a typo for "state" > > Am 12.08.2015 um 14:23 schrieb Sisyphuss >: > > > Just a somewhat irrelevant question: what is "sate"? > > > > > > On Wednesday, August 12, 2015 at 1:42:15 PM UTC+2, J

Re: [julia-users] Inconsistent behavior of `try`

2015-08-12 Thread Matt Bauman
The basic try/catch/finally behaviors have been discussed before. I think this is a good summary: https://groups.google.com/d/msg/julia-users/Kqn6gNIwD5o/aKE17Nclh3kJ On Wednesday, August 12, 2015 at 9:25:32 AM UTC-4, Yichao Yu wrote: > > On Wed, Aug 12, 2015 at 9:20 AM, Sisyphuss > wrote: >

[julia-users] fast columnwise norm of matrix/speed up mapslices?

2015-08-12 Thread jw3126
I have a matrix and I want to compute the norm of each column. I tried using TimeIt N = 10^6 mat = randn(3, N) @timeit mapslices(norm, mat, 1) 1 loops, best of 3: 915.13 ms per loop Dog slow, 100times slower then numpy: import numpy as np N = 10**6 mat = np.random.randn(3, N) %timeit np.li

Re: [julia-users] fast columnwise norm of matrix/speed up mapslices?

2015-08-12 Thread René Donner
You could also try something like julia> a = rand(100,10); julia> @time [norm(sub(a,:,i)) for i in 1:size(a,2)]; 0.135117 seconds (1.80 M allocations: 40.381 MB, 14.14% gc time) As long as your slices are along the last dimension, i.e. columns in a matrix, you can use FunctionalData

Re: [julia-users] Assistance with understanding typing

2015-08-12 Thread Cedric St-Jean
On Wednesday, August 12, 2015 at 12:15:19 AM UTC-4, Stefan Karpinski wrote: > > You can't create a value whose concrete type is Tuple{AbstractString, > AbstractString} but you can create values that are of that type and you can > create an instance of Vector{Tuple{AbstractString, AbstractString

Re: [julia-users] Assistance with understanding typing

2015-08-12 Thread Mauro
On Wed, 2015-08-12 at 17:28, Cedric St-Jean wrote: > On Wednesday, August 12, 2015 at 12:15:19 AM UTC-4, Stefan Karpinski wrote: >> >> You can't create a value whose concrete type is Tuple{AbstractString, >> AbstractString} but you can create values that are of that type and you can >> create

Re: [julia-users] fast columnwise norm of matrix/speed up mapslices?

2015-08-12 Thread David Gold
One thing that's hurting your home-rolled function's performance is that .^ is allocating a copy for each 1e6-length row. I'm not sure if the vectorized sqrt operator does something similar (I'm actually having some trouble finding the source code for it). Anyway, the best thing to do here seem

[julia-users] Re: fast columnwise norm of matrix/speed up mapslices?

2015-08-12 Thread David Gold
Here's a way to do it with slices julia> function f(mat) mat1 = slice(mat, 1, :) mat2 = slice(mat, 2, :) mat3 = slice(mat, 3, :) A = Array(Float64, size(mat, 2)) for i in 1:size(mat, 2) A[i] = sqrt(mat1[i]^2 + mat2[i]^2 + mat3[i

Re: [julia-users] Assistance with understanding typing

2015-08-12 Thread David Gold
Well, not all arrays: julia> Array{Int}() 0-dimensional Array{Int64,0}: 4544954880 On Wednesday, August 12, 2015 at 11:36:24 AM UTC-4, Mauro wrote: > > > > On Wed, 2015-08-12 at 17:28, Cedric St-Jean > wrote: > > On Wednesday, August 12, 2015 at 12:15:19 AM UTC-4, Stefan Karpinski > wrote: >

Re: [julia-users] Assistance with understanding typing

2015-08-12 Thread Cedric St-Jean
Oh, of course, that makes sense! Thank you. On Wednesday, August 12, 2015 at 11:36:24 AM UTC-4, Mauro wrote: > > > > On Wed, 2015-08-12 at 17:28, Cedric St-Jean > wrote: > > On Wednesday, August 12, 2015 at 12:15:19 AM UTC-4, Stefan Karpinski > wrote: > >> > >> You can't create a value whose

Re: [julia-users] Assistance with understanding typing

2015-08-12 Thread Stefan Karpinski
On 0.4 Vector{T}() creates a zero-length vector with element type T. On 0.3 you can do T[]. On Wed, Aug 12, 2015 at 11:35 AM, Mauro wrote: > > > On Wed, 2015-08-12 at 17:28, Cedric St-Jean > wrote: > > On Wednesday, August 12, 2015 at 12:15:19 AM UTC-4, Stefan Karpinski > wrote: > >> > >> You c

[julia-users] distributed parallel processing on Windows cluster

2015-08-12 Thread Marcio Sales
Is it possible?

[julia-users] distributed computing in Windows

2015-08-12 Thread Marcio Sales
Hello all. New user here with a couple' questions. Is it possible to set up Julia for distributed computing in Windows cluster? How? Is there a way to delete a variable once created? Not just free mem making x=0. Thank you. M.

[julia-users] Re: distributed computing in Windows

2015-08-12 Thread Tony Kelman
Good question. I have not tried to do this, it's been about 6 years since I last used a Windows cluster. Built-in, it looks like the only remote cluster manager available by default in base Julia communicates over ssh - http://docs.julialang.org/en/latest/manual/parallel-computing/#man-cluster

Re: [julia-users] Re: Juliacon 2015 videos?

2015-08-12 Thread ronubi
Five weeks later – still processing the videos? On Thursday, July 2, 2015 at 2:11:52 AM UTC-7, Stefan Karpinski wrote: > > The AV crew was actually paid and they're actively working on the videos, > so that should be done soonish. Will let everyone know once it's done, of > course. I'm eager to

Re: [julia-users] Re: Juliacon 2015 videos?

2015-08-12 Thread Luke Stagner
Perhaps they are planning to upload the videos when 0.4 gets released in order to maximize the media impact. On Wednesday, August 12, 2015 at 5:58:50 PM UTC-7, ron...@gmail.com wrote: > > Five weeks later – still processing the videos? > > On Thursday, July 2, 2015 at 2:11:52 AM UTC-7, Stefan Kar

Re: [julia-users] Juliacon 2015 videos?

2015-08-12 Thread Viral Shah
No, there is no such plan to co-ordinate with the 0.4 release. We are still processing videos and fixing issues. It is unfortunately not easy, with multiple cameras, two tracks, video/sound quality issues and fully managed by volunteers. I do wish things would not be this slow, but it turns out

[julia-users] weird read behavior

2015-08-12 Thread Yakir Gagnon
Which I'm sure depends on some mistake I'm making, but what? This: ```julia function imread!(a,fname,sz) stream, _ = open(`dcraw -w -H 0 -o 0 -h -4 -c $fname`) data = read(stream, UInt16, 3, sz[1], sz[2]) for i in eachindex(a) a[i] = (data[2,i] + 1.)/65536 end end ``` is a lot faster than this: ``

Re: [julia-users] Juliacon 2015 videos?

2015-08-12 Thread Christian Peel
I guess that you're waiting to release them all at once. Please consider releasing each video as it is finished; perhaps accompanied by a post to this group. I think this would focus attention on each talk, and encourage conversation on talks that may not get so much attention in an all-at-once re

Re: [julia-users] Juliacon 2015 videos?

2015-08-12 Thread Michele Zaffalon
+1 On Thu, Aug 13, 2015 at 6:54 AM, Christian Peel wrote: > I guess that you're waiting to release them all at once. Please consider > releasing each video as it is finished; perhaps accompanied by a post to > this group. I think this would focus attention on each talk, and encourage > conversa

Re: [julia-users] Juliacon 2015 videos?

2015-08-12 Thread Viral Shah
We’ll start doing them in groups. One at a time would be a lot of work, and take several weeks! -viral > On 13-Aug-2015, at 10:24 am, Christian Peel wrote: > > I guess that you're waiting to release them all at once. Please consider > releasing each video as it is finished; perhaps accompa

Re: [julia-users] distributed parallel processing on Windows cluster

2015-08-12 Thread Amit Murthy
If you can write a ClusterManager ( look at ClusterManager.jl for some examples), there is no particular reason why it should not be possible. On Thu, Aug 13, 2015 at 1:50 AM, Marcio Sales wrote: > Is it possible?