Re: [julia-users] Re: How do you change the default location for package installation in Windows?

2015-01-07 Thread Robert Grant
Yes, but sysadmin in Windows workplaces is driving this, not Julia. I have to jump through similar hoops with other software too. On 7 Jan 2015 21:30, "Ivar Nesje" wrote: > >I wander why 0.2 (meaning not 0.3.4)? > > Probably because this is a really old thread.

Re: [julia-users] flip sparse matrices slow

2015-01-07 Thread Viral Shah
Right - this is basically an outcome of the design and data structures. Nothing matlab related. You have to do all this in octave, scipy, etc. We can try new data structures in packages, but this is pretty much the norm. Nobody does a good job of documenting it. I am also open to ideas. Best to

Re: [julia-users] Re: Notice about coverage results

2015-01-07 Thread cdm
for the benefit of those whom might help to "write tests" ... could the masses have an example of an test objective and a test written to either satisfy, or NOT satisfy said objective. presumably, examples could be quite simple, or rather complex ... many thanks, cdm

Re: [julia-users] Re: Can I use macro to substitute the argument list of a function?

2015-01-07 Thread Chi-wei Wang
Any ways to achieve this? Jameson於 2015年1月7日星期三UTC-8下午7時32分59秒寫道: > > the declaration `const A = (2,3)` is not part of the macro environment. > values are only seen by functions. whereas macros only see the surface > syntax. so the arguments to `@f` are the literals `1` and `:(A...)` > > On Wed

Re: [julia-users] Re: Can I use macro to substitute the argument list of a function?

2015-01-07 Thread Jameson Nash
the declaration `const A = (2,3)` is not part of the macro environment. values are only seen by functions. whereas macros only see the surface syntax. so the arguments to `@f` are the literals `1` and `:(A...)` On Wed Jan 07 2015 at 10:04:26 PM Chi-wei Wang wrote: > Can ... be applied on macro?

[julia-users] Re: Can I use macro to substitute the argument list of a function?

2015-01-07 Thread Chi-wei Wang
Can ... be applied on macro? I tried this but it didn't compile. macro f(a,b,c) return :($a+$b+$c) end const A = (2,3) @f(1, A...) Chi-wei Wang於 2015年1月7日星期三UTC-8下午6時45分14秒寫道: > > It works! I missed the varargs section in the doc. Thanks! > > Greg Plowman於 2015年1月7日星期三UTC-8下午5時26分02秒寫道: >> >>

[julia-users] Re: Can I use macro to substitute the argument list of a function?

2015-01-07 Thread Chi-wei Wang
It works! I missed the varargs section in the doc. Thanks! Greg Plowman於 2015年1月7日星期三UTC-8下午5時26分02秒寫道: > > > Would the following work? > > const A = (1,2,3) > f(x::Int, y::Int, z::Int) = x+y+z > f(A...) > > > > http://docs.julialang.org/en/release-0.3/manual/functions/#varargs-functions > > > On

Re: [julia-users] Re: Notice about coverage results

2015-01-07 Thread Tim Holy
I should have also added, you can test coverage locally. I've posted (and made big changes to, twice, including just a few minutes ago---sorry!) instructions here: https://github.com/JuliaLang/julia/issues/9493 I did just try this myself, and analyzed the results as described https://github.com

Re: [julia-users] SubArray - indexing speed bottleneck

2015-01-07 Thread Tomas Mikoviny
as Tim said, SubArrays work considerably better on 0.4.0-dev therefore f1 >> f2 ~ f3 @time f1(a, w); elapsed time: 0.880487448 seconds (613990480 bytes allocated, 69.56% gc time) @time f2(a, w); elapsed time: 0.045515195 seconds (35976080 bytes allocated) @time f3(a, w); elapsed time: 0.03442

[julia-users] Re: Can I use macro to substitute the argument list of a function?

2015-01-07 Thread Greg Plowman
Would the following work? const A = (1,2,3) f(x::Int, y::Int, z::Int) = x+y+z f(A...) http://docs.julialang.org/en/release-0.3/manual/functions/#varargs-functions On Thursday, January 8, 2015 11:14:23 AM UTC+11, Chi-wei Wang wrote: > Hi, everyone. I am trying to achieve the effect like the f

[julia-users] Re: Notice about coverage results

2015-01-07 Thread lapeyre . math122a
Is there already a bug report for this ? (Linux) $ julia --version julia version 0.3.5-pre+121 $ julia --code-coverage Segmentation fault This version of julia was giving the same segfault. But, now mysteriously is not. $ julia-0.4 --version julia version 0.4.0-dev+2470 On Wednesday, January 7

Re: [julia-users] SubArray - indexing speed bottleneck

2015-01-07 Thread Greg Plowman
Thanks Tomas, What I really meant was relative performance of f1 vs f2 vs f3 on Julia v0.4. My tests on V0.3.4, showed f3 much faster (x6) than f2 which in turn is much (x4) faster than f1. My point being, if understand your timings correctly, f3 should be faster than f2 on Julia v0.4 - Gre

[julia-users] Can I use macro to substitute the argument list of a function?

2015-01-07 Thread Chi-wei Wang
Hi, everyone. I am trying to achieve the effect like the following C code: #define A 1,2,3 void f(int x, int y, int z) { } f(A); Yet the macro in Julia always returns a single expression. Is it possible to do this?

Re: [julia-users] SubArray - indexing speed bottleneck

2015-01-07 Thread Tomas Mikoviny
I guess one should expect rather similar performance for 0.3.4 and 0.4.0-dev... Function f3 (splice/insert method) performs very slightly worse on 0.4.0-dev+2551 - 10% slower compared to current 0.3.4 release. For me it means pretty much the same performance. Still one has to keep in mind it's

Re: [julia-users] Understanding Profile Results

2015-01-07 Thread Tim Holy
One theory: it might be triggering garbage-collection (gc), which can dominate profiling results. Sometimes you can get into a "periodic cycle" where gc is always happening on a particular line. Sometimes that line might be doing a tiny amount of work and allocating a tiny amount of memory, but

Re: [julia-users] How does one read this declaration please?

2015-01-07 Thread Tim Holy
http://docs.julialang.org/en/release-0.3/manual/types/#singleton-types http://docs.julialang.org/en/release-0.3/manual/conversion-and-promotion/#defining-new-conversions --Tim On Wednesday, January 07, 2015 03:30:56 PM Petr Krysl wrote: > What does this mean please? > > function myfunction{f}(:

Re: [julia-users] How does one read this declaration please?

2015-01-07 Thread Kevin Squire
Hi Petr, Here, `f` is a singleton type. For this function, you could call myfunction with myfunction(Int, 2, 3) and the value of `f` would be the type `Int` (with type Type{Int}). There is a brief section in the manual ( http://docs.julialang.org/en/latest/manual/types/#singleton-types), but i

Re: [julia-users] Tips and tricks for figuring out where allocation occurs

2015-01-07 Thread Rob J. Goedman
Hi Petr, Will do. The book is very well written, I have seen a few minor typos/errors. e.g. in chapter 1: Section 1.3, 4th sentence: needs => need I believe the next 2 are not correct: Section 1.4, 1st sentence: time => space, or parallel => orthogonal Section 1.5, 1st sentence: space => tim

[julia-users] Understanding Profile Results

2015-01-07 Thread Christoph Ortner
The following figure is part of the results of profiling a performance-critical piece of code: * The pink section corresponds to a single line: G = - G * C where G, C are mod

[julia-users] How does one read this declaration please?

2015-01-07 Thread Petr Krysl
What does this mean please? function myfunction{f}(::Type{f}, args...) # Do stuff using f just like an ordinary functionend I'm sorry to have to ask this, it would be much better to just go to the manual, but the manual search does not yield anything for "Type{". Thanks a lot, Petr

[julia-users] how does method dispatch treat varargs functions?

2015-01-07 Thread Ronald L. Rivest
Perhaps this is a documentation bug, or perhaps I missed the explanation somehow. Suppose I define *(x::ASCIIString, y::Any) = x * string(y) so that * may be used for concatenation of any value to a string: "the value of x is " * x ==> "the value of x is 2" (assuming x == 2) If I t

Re: [julia-users] SubArray - indexing speed bottleneck

2015-01-07 Thread Greg Plowman
I'm interested in something similar, so Thanks Tomas and Tim. Following on from Tomas original splice/insert method, and Tim's advice to wrap in function: function f3(a, w) local b = a[1:1+w] for i in 2:length(a)-w splice!(b, 1) insert!(b, w+1, a[i+w]) end b en

Re: [julia-users] Re: Notice about coverage results

2015-01-07 Thread Don MacMillen
Very nice. Are there recent results for base on Coveralls? All I see is from a run from 25 October. On Wednesday, January 7, 2015 4:09:49 AM UTC-8, Tim Holy wrote: > > On Wednesday, January 07, 2015 12:41:16 AM Ariel Keselman wrote: > > great, does this mean untested functions are now actually

[julia-users] Re: How do you change the default location for package installation in Windows?

2015-01-07 Thread Ivar Nesje
>I wander why 0.2 (meaning not 0.3.4)? Probably because this is a really old thread.

Re: [julia-users] How can I achieve C-like ## in Julia

2015-01-07 Thread Ivar Nesje
The problem is where we should stop adding methods to allow symbols to work as strings. * might be fine though, so please submit your code as a pull request, so we can get more opinions on the matter. (Be sure to link to this discussion and to post a link to the PR here)

Re: [julia-users] sum of 1-element array of composite type returns reference

2015-01-07 Thread Greg Plowman
Thanks for help and patience Milan. Issue opened: https://github.com/JuliaLang/julia/issues/9669

[julia-users] Re: How do you change the default location for package installation in Windows?

2015-01-07 Thread Páll Haraldsson
On Thursday, November 7, 2013 12:20:54 AM UTC, Dave Ramsey wrote: > > Hi, Newbie question here. I am using Julia v0.2-rc2 on a 32 bit Windows > 7 machine. I wish to change the default location of my installed packages > (i.e. the location of my .julia folder). There doesn't appear to be

Re: [julia-users] Re: flip sparse matrices slow

2015-01-07 Thread Christoph Ortner
Issue opened: https://github.com/JuliaLang/julia/issues/9668 Christoph

Re: [julia-users] Is Julia a safe language? Including exception handling?

2015-01-07 Thread Páll Haraldsson
Thanks for answering (and to others automatically, I refrain from answering "thank you" with no other comments..). That was an interesting thread I might comment on.. Maybe there or here (relates a bit to exception handling, so not sure which one to choose). I knew Julia wasn't safe (at least

Re: [julia-users] Re: flip sparse matrices slow

2015-01-07 Thread Christoph Ortner
Dear Douglas and Miles, This is (essentially) what I am doing at the moment, i.e., I take care of the boundary conditions during the assembly. This is really the "right" thing to do for a serious code, but for quick experimentation and teaching codes, the slicing notation to implement boundary

Re: [julia-users] Re: flip sparse matrices slow

2015-01-07 Thread Stefan Karpinski
I'm having flashbacks to all kinds of crazy Matlab sparse matrix hacking... On Wed, Jan 7, 2015 at 3:07 PM, Miles Lubin wrote: > It may be more efficient (given the current implementation) to filter the > I, J, and V arrays directly and then call sparse() again. > > > On Wednesday, January 7, 20

Re: [julia-users] Re: flip sparse matrices slow

2015-01-07 Thread Miles Lubin
It may be more efficient (given the current implementation) to filter the I, J, and V arrays directly and then call sparse() again. On Wednesday, January 7, 2015 12:48:31 PM UTC-7, Christoph Ortner wrote: > > > Thanks for your replies - I will write a short piece of code that shows > the perform

Re: [julia-users] Re: flip sparse matrices slow

2015-01-07 Thread Douglas Bates
On Wednesday, January 7, 2015 1:48:31 PM UTC-6, Christoph Ortner wrote: > > > Thanks for your replies - I will write a short piece of code that shows > the performance problem, and then submit an issue. > Christoph > > P.S: I do use sparse(I,J,V) to construct the matrix, but I am then unable

Re: [julia-users] Re: flip sparse matrices slow

2015-01-07 Thread Christoph Ortner
Thanks for your replies - I will write a short piece of code that shows the performance problem, and then submit an issue. Christoph P.S: I do use sparse(I,J,V) to construct the matrix, but I am then unable to extract a sub matrix because the slicing is so slow.

Re: [julia-users] How can I achieve C-like ## in Julia

2015-01-07 Thread Josh Langsfeld
I went ahead and tried to implement it just because I was interested in the idea. I got a version working that works directly on the underlying c-string data and it actually seems to be about double the speed, and uses about 25% less memory than the symbol(string()) form. Could you elaborate fu

Re: [julia-users] Running mean/median in Julia

2015-01-07 Thread Stefan Karpinski
Try deleting the line where you initially assign to subset – it isn't necessary and causes that variable to change type over the course of your loop. On Tue, Jan 6, 2015 at 6:50 PM, Tomas Mikoviny wrote: > Hi Stefan, > > you are right. But the moment I try to do this for any subset along the > a

[julia-users] Re: string literals split to multilines?

2015-01-07 Thread Ronald L. Rivest
Why not use concatenation: d = "aaa" * "bbb" * "ccc" ?? Cheers, Ron On Tuesday, January 6, 2015 2:15:13 AM UTC-8, Andreas Lobinger wrote: > > Hello colleagues, > > is there a counterpart for the string literal split to multiple lines like > in python? > > d = '09ab\ > eff1\ >

Re: [julia-users] How can I achieve C-like ## in Julia

2015-01-07 Thread Ivar Nesje
The implementation will naturally also use string intermediaries, so you won't get much better performance.

Re: [julia-users] How can I achieve C-like ## in Julia

2015-01-07 Thread Ivar Nesje
I like $(symbol("gen_$x")) better than $(:gen_ * x), and others might agree. There is also an issue about implementing too much of the string API for symbols, because they have different performance characteristics.

Re: [julia-users] Re: flip sparse matrices slow

2015-01-07 Thread Viral Shah
Please do file issues on slicing. The implementations have a bit of effort put into them, but there is most likely room for a lot of optimization. It would be useful to have the exact cases where performance doesn't meet expectations. In general for stiffness matrix assembly, I believe that usi

Re: [julia-users] Re: flip sparse matrices slow

2015-01-07 Thread Tim Holy
flipping (or, I guess, rotation) has already been fixed by kshyatt, who has been writing tests. (!) https://github.com/JuliaLang/julia/pull/9593 I guess the flip is more of a mirror symmetry, but you should be able to copy her pull request to implement it. (Please do submit as a pull request.)

[julia-users] Re: Unexpected performance drop when passing functions

2015-01-07 Thread Peter Simon
Also have a look at https://github.com/timholy/FastAnonymous.jl On Wednesday, January 7, 2015 9:27:17 AM UTC-8, Ivar Nesje wrote: > > Yes, this is the current situation. Don't call functions in this way in a > hot inner loop where you care about performance (yet). There are lots of > things th

Re: [julia-users] Re: flip sparse matrices slow

2015-01-07 Thread Stefan Karpinski
I suspect this is precisely the case. Please do open an issue. On Wed, Jan 7, 2015 at 12:24 PM, Kevin Squire wrote: > I would suggest doing a quick search on github for any issues related to > sparse matrices, and if none are relevant, opening a new one. One likely > possibility is that neither

Re: [julia-users] Re: DArrays performance

2015-01-07 Thread Amuthan
Hi Andreas: this is very helpful, thanks! On Wed, Jan 7, 2015 at 6:06 AM, Andreas Noack wrote: > I made a plot that compares the time it takes to move an array with the > one-sided methods we are using now and with MPI.jl. It is here > > https://github.com/JuliaLang/julia/issues/9167#issuecommen

[julia-users] Unexpected performance drop when passing functions

2015-01-07 Thread Ivar Nesje
Yes, this is the current situation. Don't call functions in this way in a hot inner loop where you care about performance (yet). There are lots of things that can be done to improve this situation, but it hasn't reached the top of anyone's todo list yet. The best current workaround is to use a

Re: [julia-users] Re: flip sparse matrices slow

2015-01-07 Thread Kevin Squire
I would suggest doing a quick search on github for any issues related to sparse matrices, and if none are relevant, opening a new one. One likely possibility is that neither function has been specialized for sparse matrices, and that the general fallback version of these functions are slow for spa

Re: [julia-users] Unexpected performance drop when passing functions

2015-01-07 Thread Mauro
The reason for the slowdown of case 4 is that Julia is not good at inferring the return types of functions passed as arguments to other functions. This shows up in a few places, for instance the `map` function has this problem too which I think has been partly hacked around. This is a bit of a bu

[julia-users] Re: flip sparse matrices slow

2015-01-07 Thread Christoph Ortner
I don't have a solution, but a related comment: slicing of large sparse matrices is very slow too. E.g., I like to assemble a stiffness matrix (for a PDE) with free boundary conditions and then impose clamped boundaries by taking a subset of the matrix, B = A[Ifree, Ifree] this is so slow th

Re: [julia-users] K-means Clustering in matlab

2015-01-07 Thread cdm
also, have a look at Clustering.jl ... see some discussion at: https://groups.google.com/forum/#!searchin/julia-dev/k-means%7Csort:date/julia-dev/d-QrEgtNaCc/KRhZuncbUSwJ On Wednesday, January 7, 2015 8:49:07 AM UTC-8, cdm wrote: > > > i am not familiar with k-means routines in Matlab, so that

Re: [julia-users] K-means Clustering in matlab

2015-01-07 Thread cdm
i am not familiar with k-means routines in Matlab, so that alone leaves me unqualified to discuss comparisons to k-means algorithms in Julia ... but you may find the discussions on the topic of k-means over on the JuliaStats list useful: https://groups.google.com/forum/#!searchin/julia-stats/

Re: [julia-users] How can I achieve C-like ## in Julia

2015-01-07 Thread Josh Langsfeld
Is there any reason there shouldn't be a *(::Symbol, ::Symbol) method to do this even more concisely, and without string intermediates? On Tuesday, January 6, 2015 9:02:27 PM UTC-5, Mike Innes wrote: > > Cool. $(symbol("gen_$x")) might also be a bit more compact, now I think > about it. > > On 7

Re: [julia-users] Improved help system

2015-01-07 Thread Seth
On Wednesday, January 7, 2015 6:44:17 AM UTC-8, Isaiah wrote: > > (1) is basically https://github.com/JuliaLang/julia/issues/3377 > (2) > >> help?> AbstractString >> ERROR: AbstractString not defined > > > works for me, but the other parts might be caused by the method resolution > for edit not

[julia-users] flip sparse matrices slow

2015-01-07 Thread Niccolo' Antonello
Hi all! I have a big sparse matrix and I need to flip it in the following manner: Anew = fliplr(flipud(A')) apparently this operation is very slow... Any ideas to improve it? Is there a smarter equivalent approach? I thank you for your help! Niccolo'

Re: [julia-users] How do you change the default location for package installation in Windows?

2015-01-07 Thread email . rob . grant
I've just been through this too. The trouble is probably common to anyone using Julia in a workplace with Windows and no administrator rights (so that network drive is always popping up). I wrote a julia.bat file: set JULIA_PKGDIR=D:\Julia.0.3.2 set HOME=D:\Julia.0.3.2 D:\Julia-0.3.2\bin\julia.ex

Re: [julia-users] K-means Clustering in matlab

2015-01-07 Thread Nils Gudat
As Stefan said, this might not be the best place to ask about MATLAB, since this is the julia (as in julia, the programming language, see http://julialang.org) user group. You might be interested in visiting MATLAB answers, which is a forum of MATLAB users and can be found here: http://www.math

[julia-users] Unexpected performance drop when passing functions

2015-01-07 Thread Nils Gudat
I'm trying to understand the performance gains from supplying type information to functions. To this end, I've written a short piece of code that takes a vector x of the integers from 1:10 and multiplies it with

Re: [julia-users] K-means Clustering in matlab

2015-01-07 Thread Eng Noor
i mean iwant to learn make a cluster in matlab and using k mean algorithm to set of sensors and choose acluster head for it On Monday, January 5, 2015 9:42:58 PM UTC+3, Stefan Karpinski wrote: > > This is a little confusing since it seems to be a question about Matlab. > Did you mean to ask ab

Re: [julia-users] How to overwrite to an existing file, only range of data? HDF5 can do this ?

2015-01-07 Thread Tim Holy
On Wednesday, January 07, 2015 01:42:24 PM Paul Analyst wrote: > one vector 10^9 it is about 16 GB, ...and that explains it. (Compare against your RAM size.) --Tim > Paul > > W dniu 2015-01-07 o 13:13, Tim Holy pisze: > > Did you try calculating how much memory the right hand side of that > > a

Re: [julia-users] Improved help system

2015-01-07 Thread Isaiah Norton
(1) is basically https://github.com/JuliaLang/julia/issues/3377 (2) > help?> AbstractString > ERROR: AbstractString not defined works for me, but the other parts might be caused by the method resolution for edit not considering generic functions or constructors. the last part of the question is

Re: [julia-users] Re: Composite type with a mix of constant and non-constant fields

2015-01-07 Thread Isaiah Norton
Not yet, see: https://github.com/JuliaLang/julia/issues/9448 On Wed, Jan 7, 2015 at 6:45 AM, Carlos Baptista wrote: > Ehm...in my original post, replace second by first... >

Re: [julia-users] Re: Nullable use cases / expected behavior?

2015-01-07 Thread elextr
> > > > A Nullable is immutable, its value isn't down the back of the couch > > (which is my understanding of epistemological missingness, usually > > applied to the TV remote :), it can never get a value once its null. > That's not a technical question (immutable/mutable), but a conceptual >

Re: [julia-users] Re: DArrays performance

2015-01-07 Thread Andreas Noack
I made a plot that compares the time it takes to move an array with the one-sided methods we are using now and with MPI.jl. It is here https://github.com/JuliaLang/julia/issues/9167#issuecomment-64721543 2015-01-07 1:54 GMT-05:00 Amuthan : > Amit: Thanks for the suggestion. I gave it a quick try

Re: [julia-users] Re: Nullable use cases / expected behavior?

2015-01-07 Thread Milan Bouchet-Valat
Le mercredi 07 janvier 2015 à 14:19 +0100, Tamas Papp a écrit : > On Wed, Jan 07 2015, Milan Bouchet-Valat wrote: > > > Le mercredi 07 janvier 2015 à 04:25 -0800, ele...@gmail.com a écrit : > >> A Nullable is immutable, its value isn't down the back of the couch > >> (which is my understanding of

Re: [julia-users] Re: Nullable use cases / expected behavior?

2015-01-07 Thread Tamas Papp
On Wed, Jan 07 2015, Milan Bouchet-Valat wrote: > Le mercredi 07 janvier 2015 à 04:25 -0800, ele...@gmail.com a écrit : >> A Nullable is immutable, its value isn't down the back of the couch >> (which is my understanding of epistemological missingness, usually >> applied to the TV remote :), it

Re: [julia-users] sum of 1-element array of composite type returns reference

2015-01-07 Thread Milan Bouchet-Valat
Le mercredi 07 janvier 2015 à 01:22 -0800, Greg Plowman a écrit : > OK Thanks Milan. > > > 1. I think for now I'll just use subtype of Number. > I have an uneasy feeling this is not entirely the way to go because I > get stuff that might not be valid for my type. An example is convert() > see

Re: [julia-users] Re: Nullable use cases / expected behavior?

2015-01-07 Thread Milan Bouchet-Valat
Le mercredi 07 janvier 2015 à 04:25 -0800, ele...@gmail.com a écrit : > > > On Wednesday, January 7, 2015 9:36:28 PM UTC+10, Milan Bouchet-Valat wrote: > Le mardi 06 janvier 2015 à 05:27 -0800, ele...@gmail.com a écrit : > > > > > > On Tuesday, January 6, 2015 1

Re: [julia-users] How to overwrite to an existing file, only range of data? HDF5 can do this ?

2015-01-07 Thread Paul Analyst
one vector 10^9 it is about 16 GB, Paul W dniu 2015-01-07 o 13:13, Tim Holy pisze: Did you try calculating how much memory the right hand side of that assignment requires? (Remember that sizeof(Float64) == 8). --Tim On Wednesday, January 07, 2015 03:25:54 AM paul analyst wrote: _ _

[julia-users] Improved help system

2015-01-07 Thread Páll Haraldsson
Hi, 1. If I do: help?> String that works (except see below) and: but: help?> @simd Symbol not found. Falling back on apropos search ... No help information found. I know this is defined (including in 0.3). I'm thinking sometimes I see in code say, @inbounds, or something and I wander what it

Re: [julia-users] Re: Nullable use cases / expected behavior?

2015-01-07 Thread elextr
On Wednesday, January 7, 2015 9:36:28 PM UTC+10, Milan Bouchet-Valat wrote: > > Le mardi 06 janvier 2015 à 05:27 -0800, ele...@gmail.com a > écrit : > > > > > > On Tuesday, January 6, 2015 10:43:16 PM UTC+10, Milan Bouchet-Valat > wrote: > > Le mardi 06 janvier 2015 à 04:38 -0800,

Re: [julia-users] How to overwrite to an existing file, only range of data? HDF5 can do this ?

2015-01-07 Thread Tim Holy
Did you try calculating how much memory the right hand side of that assignment requires? (Remember that sizeof(Float64) == 8). --Tim On Wednesday, January 07, 2015 03:25:54 AM paul analyst wrote: >_ _ _(_)_ | A fresh approach to technical computing > (_) | (_) (_)| Docu

Re: [julia-users] Re: Notice about coverage results

2015-01-07 Thread Tim Holy
On Wednesday, January 07, 2015 12:41:16 AM Ariel Keselman wrote: > great, does this mean untested functions are now actually counted in > coverage? Yes

Re: [julia-users] status of reload / Autoreload

2015-01-07 Thread Tim Holy
reload("Rsvg") (the help specifies a string). --Tim On Tuesday, January 06, 2015 10:15:05 PM Andreas Lobinger wrote: > No? > > On Tuesday, January 6, 2015 5:59:32 PM UTC+1, Tim Holy wrote: > > It already exists, if your module has the same name as a package. Read the > > help on `reload`. > > l

[julia-users] Re: Composite type with a mix of constant and non-constant fields

2015-01-07 Thread Carlos Baptista
Ehm...in my original post, replace second by first...

[julia-users] Composite type with a mix of constant and non-constant fields

2015-01-07 Thread Carlos Baptista
If I want a mutable composite type I can use a *type* and if I want an immutable composite type I can use *immutable*. Yet what if I want a composite type that has both constant and non-constant fields? For example, consider defining a type to store information of a person: type Person name

Re: [julia-users] Re: Nullable use cases / expected behavior?

2015-01-07 Thread Milan Bouchet-Valat
Le mardi 06 janvier 2015 à 05:27 -0800, ele...@gmail.com a écrit : > > > On Tuesday, January 6, 2015 10:43:16 PM UTC+10, Milan Bouchet-Valat wrote: > Le mardi 06 janvier 2015 à 04:38 -0800, ele...@gmail.com a écrit : > > > > > > On Tuesday, January 6, 2015 7:38:

Re: [julia-users] How to overwrite to an existing file, only range of data? HDF5 can do this ?

2015-01-07 Thread paul analyst
_ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_)| Documentation: http://docs.julialang.org _ _ _| |_ __ _ | Type "help()" for help. | | | | | | |/ _` | | | | |_| | | | (_| | | Version 0.3.3 (2014-10-21 20:18 UTC) _/ |\__'_|_|_|\__'_| | Of

Re: [julia-users] Julia takes 2nd place in "Delacorte Numbers" competition

2015-01-07 Thread Tobias Knopp
The recent commits in the threading branch look quite promising. I have not tested it though. One issue is that (if I understand it correctly) that some pthread stuff is required while it would actually better to get this into libuv. Am Dienstag, 6. Januar 2015 05:26:02 UTC+1 schrieb Viral Shah:

Re: [julia-users] How can I achieve C-like ## in Julia

2015-01-07 Thread Ivar Nesje
> > May I ask why $ is needed before symbol()? > The same reason why you need $ in front of x. The function expression needs a symbol as its name, and you want to dynamically generate that symbol at macro evaluation time, in order to have access to the x variable.

Re: [julia-users] Re: Nullable use cases / expected behavior?

2015-01-07 Thread Ivar Nesje
> > Forgot to say Base.== returns bool, so this now makes == type unstable. Type stable (in the context of Julia) means that the return type can be statically inferred from the argument types. This means that + is type stable, even though it returns a Float64 if the arguments are Float64 and

[julia-users] Re: Why does string('a') work but convert(ASCIIString,'a') does not?

2015-01-07 Thread Ivar Nesje
I can't see any argument for why it would be wrong to add the requested method. Please open an issue (or better yet a Pull request) on github, so that we can have more opinions on the matter. The implementation could be as simple as *convert{T<:AbstractString}(::Type{T}, c::Char) = convert(T, s

Re: [julia-users] sum of 1-element array of composite type returns reference

2015-01-07 Thread Greg Plowman
OK Thanks Milan. 1. I think for now I'll just use subtype of Number. I have an uneasy feeling this is not entirely the way to go because I get stuff that might not be valid for my type. An example is convert() see below. But for my purpose now, it's not really a problem. 2. My comment a

[julia-users] Re: Notice about coverage results

2015-01-07 Thread Ariel Keselman
great, does this mean untested functions are now actually counted in coverage?

Re: [julia-users] Julia takes 2nd place in "Delacorte Numbers" competition

2015-01-07 Thread Ariel Keselman
I find that a SharedArray is often a good alternative for a multithreaded solution. would it work here?

Re: [julia-users] Squeezing more performance out of a mandelbrot set computation

2015-01-07 Thread Ariel Keselman
You can use functors to achieve speed and flexibilit like in C++, see here: http://numericextensionsjl.readthedocs.org/en/latest/functors.html