[julia-users] Re: Wrapping an array from C

2016-08-20 Thread Jameson
that should be: isimmutable(T::DataType) = !T.mutable You could add more cases for the other Types (Union, TypeVar, and TypeConstructor), although whether you need that in practice would be determined by your use case. Tuple isn't a special case type since mid-2015 (during v0.4-dev) On Thursd

[julia-users] Re: ANN: Julia 0.5.0-rc2 now available

2016-08-20 Thread fncodr
Nice :) Slight (10% or so) performance regression in Tests.runAll() here: https://github.com/fncodr/tblous/blob/master/src/Tests.jl The linked code is mostly focusing on array allocation and copying, and the regression is consistent for several different code paths. /fncodr Den fredag 12 augu

[julia-users] binary searched sets/maps & faster symbols

2016-08-20 Thread fncodr
Hi, I've been experimenting with binary searched sets & maps in Julia. Managed to squeeze out an alternative symbol implementation based my map implementation that could be useful when sorting by name a lot. Any pointers/ideas on how to optimize this further or improve the code are most welcome

[julia-users] Composition of setindex!

2016-08-20 Thread Po Choi
julia> a = zeros(5) 5-element Array{Float64,1}: 0.0 0.0 0.0 0.0 0.0 julia> a[1:3][1:2] = 1.0 1.0 julia> a 5-element Array{Float64,1}: 0.0 0.0 0.0 0.0 0.0 I understand that `a[1:3]` creates an extra array and then `a[1:3][1:2] = 1.0` modified the extra array rather than the origin `a`

[julia-users] Re: ANN: Documenter.jl 0.3

2016-08-20 Thread Christoph Ortner
this is really nice; thank you for putting this package together. On Saturday, 20 August 2016 12:36:21 UTC+1, Morten Piibeleht wrote: > > On Saturday, August 20, 2016 at 2:18:37 AM UTC+3, Christoph Ortner wrote: >> >> I want to give this a try but I can't find the example of HTML output, >> which

[julia-users] Building v0.6 fails on Mac OS X (recent change, within last day or so)

2016-08-20 Thread Scott Jones
Has anybody else come across this? I am no longer able to build from master due to this: CC src/jltypes.o In file included from /j/julia/src/jltypes.c:16: In file included from ./julia_internal.h:465: In file included from /j/julia/usr/include/libunwind.h:25: In file included from /j/julia/usr

[julia-users] Function only causes segfaults inside package...?

2016-08-20 Thread Chris Rackauckas
I was implementing a bunch of Runge-Kutta tableaus and ran into an issue. Specific tableaus which are defined inside of a function inside of DifferentialEquations.jl cause segfaults, but those exact same functions will not segfault when not inside the package. For example, the code (on master):

Re: [julia-users] New to Julia - Need some basic help

2016-08-20 Thread Jeffrey Sarnoff
There is a way -- after the weekend. On Friday, August 19, 2016 at 8:04:58 PM UTC-4, Pigskin Ablanket wrote: > > I probably dont want to change the input file names more than once > although I would be updating its data daily - and I think I know how to do > that (change the name of the file its

Re: [julia-users] Re: memory allocations when accessing tuple fields of a type

2016-08-20 Thread Erik Schnetter
Yes, the call to `map` is type-unstable on 0.4, with a return type inferred as `Tuple{Any, Any, Any}`. It seems fine on 0.5. -erik On Sat, Aug 20, 2016 at 11:26 AM, Kristoffer Carlsson wrote: > That creating a new Element allocates is not strange because it creates an > array. The map call migh

Re: [julia-users] Re: memory allocations when accessing tuple fields of a type

2016-08-20 Thread Kristoffer Carlsson
That creating a new Element allocates is not strange because it creates an array. The map call might allocate due to higher order functions not being optimal in 0.4.

Re: [julia-users] Re: memory allocations when accessing tuple fields of a type

2016-08-20 Thread Erik Schnetter
My guess is that Julia cannot determine all the types of the variables and expressions used in this first if statement. This is surprising, because it should. I've tried locally with Julia 0.4 and Julia 0.5, using code_warntype and code_native, and couldn't find a problem. Which Julia version are

[julia-users] Re: memory allocations when accessing tuple fields of a type

2016-08-20 Thread Uri Patish
Whops, the copy paste got messed. Here it is, typealias ElementSize Tuple{Int, Int, Int} Uri On Friday, August 19, 2016 at 3:06:10 PM UTC+3, Uri Patish wrote: > > Hi, I have to following types, > > typealias ElementSize > > typealias Element Array{Float64, 3} > > type ElementBuffer > size::El

[julia-users] Re: ANN: Documenter.jl 0.3

2016-08-20 Thread Morten Piibeleht
On Saturday, August 20, 2016 at 2:18:37 AM UTC+3, Christoph Ortner wrote: > > I want to give this a try but I can't find the example of HTML output, > which is supposed to be in test/html? > > Thank you. > I apologize, the linked docs are a bit outdated and will be updated shortly. As was alre