Re: [julia-users] Is it OK (stylistically) to override missing Base functionality in a package?

2015-02-25 Thread Sheehan Olver
Maybe a better alternative is to create an internal function with the same name: real(v…)=Base.real(v…) real{T<:Real}(::Type{Complex{T}})=T real{T<:Real}(::Type{T})=T This will avoid the override leaking from the package. > On 26 Feb 2015, at 6:07 pm, Sheehan Olver wr

Re: [julia-users] Is it OK (stylistically) to override missing Base functionality in a package?

2015-02-25 Thread Sheehan Olver
I think this is a case where I know the answer but pretending I don’t :) > On 26 Feb 2015, at 6:06 pm, Ivar Nesje wrote: > > We have seen quite a few instances where Base functions were extended with > methods without restriction to non-Base types, and it caused problems when > Julia was upd

[julia-users] Is it OK (stylistically) to override missing Base functionality in a package?

2015-02-25 Thread Ivar Nesje
We have seen quite a few instances where Base functions were extended with methods without restriction to non-Base types, and it caused problems when Julia was updated. Is randomly breaking in new versions of Julia your style?

Re: [julia-users] Gadfly in userimg.jl

2015-02-25 Thread Todd Leo
Hi Shashi, I have encoutered errors on building julia with Base.require("Gadfly") in userimg: LoadError(at "sysimg.jl" line 319: LoadError(at "/home/todd/workspace/julia/base/userimg.jl" line 2: LoadError(at "/home/todd/.julia/v0.4/Gadfly/src/Gadfly.jl" line 1054: LoadError(at "/home/todd/.j

Re: [julia-users] Mutate C struct represented as Julia immutable

2015-02-25 Thread Jameson Nash
On Wed Feb 25 2015 at 7:15:33 AM J Luis jmfl...@gmail.com wrote: > > You can't modify an immutable. There are no exceptions. >> > > First let me why I'm struggling with the immutables. The library I'm > wrapping use complicated structures with sometimes several l

Re: [julia-users] Large memory allocation and GC time in fractal renderer

2015-02-25 Thread Viral Shah
Could you file this as an issue? -viral > On 26-Feb-2015, at 10:44 am, DumpsterDoofus > wrote: > > Thanks for the tip. Unfortunately, @evalpoly seems to be orders of magnitude > slower for some reason, and has huge memory allocation compared to @horner. > Here is an example: > import Base

Re: [julia-users] Re: Large memory allocation and GC time in fractal renderer

2015-02-25 Thread DumpsterDoofus
Thanks for the tip. Unfortunately, @evalpoly seems to be orders of magnitude slower for some reason, and has huge memory allocation compared to @horner. Here is an example: import Base.Math.@horner function SchroderFifthHorner(a0::Float64, a1::Float64, a2::Float64, a3::Float64, a4::Float64, a5::

[julia-users] Is it OK (stylistically) to override missing Base functionality in a package?

2015-02-25 Thread Sheehan Olver
I'm wondering if overrides that only involve Base types to implement missing functionality is considered bad form. For example, the following is convenient for getting the real type of a Complex: Base.real{T<:Real}(::Type{Complex{T}})=T Base.real{T<:Real}(::Type{T})=T But I suppose

Re: [julia-users] Re: How to accelerate the Warm-up process of `svds`?

2015-02-25 Thread Todd Leo
I am a little bit confused when trying to add precompile for svds in userimg.jl, since svds uses nsv as keyword arguments: function svds{S}(X::S; nsv::Int = 6, ritzvec::Bool = true, tol::Float64 = 0.0, maxiter::Int = 1000) hence, calling svds maybe looks like: svds(X, nsv = 2), where X is a spa

[julia-users] Opacity in Gadfly plots

2015-02-25 Thread Jordan Meyer
I was playing around with using Gadfly's Geom.ribbon to make plots showing integrals as shaded areas under curves. Sometimes you might have two curves in separate colors where parts of the shaded regions under both curves overlap. If the shading that is being done by Geom.ribbon is not completel

[julia-users] Re: Julia T-shirt and Sticker

2015-02-25 Thread Aero_flux
How about organising something to help fund JuliaCon 2015 if funding is needed. www.spread*shirt*.com/ maybe? I would be up for buying one. Would it be alright to reproduce one for myself? On Monday, June 9, 2014 at 10:55:06 PM UTC+1, Rich Morin wrote: > > I've been looking around for a Julia sh

Re: [julia-users] Re: ANN: Symbolic computation with Julia

2015-02-25 Thread Ondřej Čertík
Hi John, I just discovered this thread, some comments: On Wed, Jan 28, 2015 at 9:53 AM, wrote: > > > On Wednesday, January 28, 2015 at 10:20:08 AM UTC+1, Francesco Bonazzi > wrote: >> >> >> >> On Tuesday, January 27, 2015 at 12:34:43 PM UTC+1, John Lapeyre wrote: >>> >>> > I read that the next

Re: [julia-users] Re: Whats the deal with concatenation in 0.4!?

2015-02-25 Thread Tim Holy
On Wednesday, February 25, 2015 06:21:24 PM David P. Sanders wrote: > To continue the theme: > > What is [[3, 4], [5, 6]] supposed to do now? I thought this was supposed > to give me an array of arrays, but it just gives me a deprecation warning. Eventually it will give you an array of arrays, b

Re: [julia-users] Re: Whats the deal with concatenation in 0.4!?

2015-02-25 Thread David P. Sanders
To continue the theme: What is [[3, 4], [5, 6]] supposed to do now? I thought this was supposed to give me an array of arrays, but it just gives me a deprecation warning. And [[3,4]; [5,6]] gives me concatenation. How do I just get the 1D array of 1D arrays? > 2015-02-26 1:56 GMT+01:00

[julia-users] KDEMultivariate in Julia

2015-02-25 Thread Arshak Navruzyan
Hello, I am looking for a Multivariate Kernel Density Estimator that can support both mixed Continuous and Discrete variables similar to this Python implementation http://statsmodels.sourceforge.net/devel/generated/statsmodels.nonparametric.kernel_density.KDEMultivariate.html Thank you, Arsh

Re: [julia-users] Re: Whats the deal with concatenation in 0.4!?

2015-02-25 Thread Simon Danisch
Oh wait, i should get some sleep... eltype of b is obviosly Vector3, which is what you said :D 2015-02-26 1:56 GMT+01:00 Simon Danisch : > Just to make sure that we're on the same page: you say that your > suggestion actually doesn't work to construct a Matrix{Vector3}? > or is does [[a,a,a]' ;

Re: [julia-users] Re: Whats the deal with concatenation in 0.4!?

2015-02-25 Thread Simon Danisch
Just to make sure that we're on the same page: you say that your suggestion actually doesn't work to construct a Matrix{Vector3}? or is does [[a,a,a]' ; [a,a,a]'] lead to different results than [b ; b]? I just tried it, [b ; b] on my 4 days old master yields Matrix{Vector3}. (with b = Array(Vector

Re: [julia-users] Re: Whats the deal with concatenation in 0.4!?

2015-02-25 Thread Josh Langsfeld
In general I think you are making good points. Different parallel syntaxes for constructing with and without flattening would be a nice feature. On Wed, Feb 25, 2015 at 6:46 PM, Simon Danisch wrote: > So what do I expect from your case? > [[a,a,a]' ; [a,a,a]'] > b = [a,a,a]' => some array, whic

Re: [julia-users] Re: Any introspective way to get a list of functions defined in a module?

2015-02-25 Thread Isaiah Norton
names(M, true) will give you a bigger list to work with. On Feb 25, 2015 6:49 PM, "Kirill Ignatiev" wrote: > Perhaps something like this (by brute force)? This doesn't include type > constuctors, though. > > filter(f -> isa(eval(f), Function), names(Base)) > > On Wednesday, 25 February 2015 18:37

Re: [julia-users] Re: Whats the deal with concatenation in 0.4!?

2015-02-25 Thread Simon Danisch
> > I actually think the plan of [a,b,c] for construction without > concatenation and [a;b;c] and [a b c] for concatenation is pretty good I think this should read: [a,b,c] for construction without concatenation and [a;b;c] and [a b c] for *construction *with concatenation. I mean what you really

[julia-users] Re: Any introspective way to get a list of functions defined in a module?

2015-02-25 Thread Kirill Ignatiev
Perhaps something like this (by brute force)? This doesn't include type constuctors, though. filter(f -> isa(eval(f), Function), names(Base)) On Wednesday, 25 February 2015 18:37:23 UTC-5, Phil Tomson wrote: > > Just wondering if there is any way to get a list of functions defined in a > module

Re: [julia-users] Re: Whats the deal with concatenation in 0.4!?

2015-02-25 Thread Simon Danisch
Yeah it's not I suppose... But it sort of mixes concatenating syntax with construction syntax and gives you completely different syntax for basically the same process. I try to explain, as I can imagine, that people who are more used to this, don't really see my point. Case 1 a = SomeType(...) [a,a

[julia-users] Any introspective way to get a list of functions defined in a module?

2015-02-25 Thread Phil Tomson
Just wondering if there is any way to get a list of functions defined in a module?

Re: [julia-users] Passing Julia values opaquely to a c function that expects void pointer

2015-02-25 Thread Jeff Bezanson
Yes, `Any` is what to use for passing through a julia value pointer. It will not be copied, and is guaranteed to be referenced for the duration of the ccall. If you need it referenced longer than that, you need to keep a reference somewhere manually. Always use Ptr{Void} for void*. That will even

Re: [julia-users] Re: Whats the deal with concatenation in 0.4!?

2015-02-25 Thread Josh Langsfeld
Assuming transposing works, you could do [[a,a,a]' ; [a,a,a]'] which isn't entirely horrible On Wednesday, February 25, 2015 at 5:50:04 PM UTC-5, Simon Danisch wrote: > > Okay... So how do I realize: > a = vec3(...) > [ a a a ; a a a] > > Well, all I think is, that arrays of arrays get treated li

Re: [julia-users] Re: Whats the deal with concatenation in 0.4!?

2015-02-25 Thread Josh Langsfeld
FYI, transposing currently doesn't work even on built-in arrays because it also calls transpose on each element as well. So it converts them all to Array{T,2} and then can't fit them back into a Array{Array{T,1},1}. On Wednesday, February 25, 2015 at 5:24:29 PM UTC-5, Jeff Bezanson wrote: > > Tr

Re: [julia-users] Re: Whats the deal with concatenation in 0.4!?

2015-02-25 Thread Simon Danisch
Okay... So how do I realize: a = vec3(...) [ a a a ; a a a] Well, all I think is, that arrays of arrays get treated like second class citizens, as it is harder to work with them in the same way, as it would be possible with concatenating ;) This is especially relevant with FixedSizeArrays coming u

[julia-users] Re: Unable to set up AppVeyor.

2015-02-25 Thread Ismael VC
It works! One final doubt, how can I enable testing in Travis for both Linux 32 and 64 bits for both stable and development branches, the way I have it now for AppVeyour with Windows: - https://ci.appveyor.com/project/Ismael-VC/ahn-jl Thank you very much Tony! Cheers El miércoles, 25

Re: [julia-users] Re: Whats the deal with concatenation in 0.4!?

2015-02-25 Thread Jeff Bezanson
Transposing [vec1, vec2, vec3] will absolutely work. I think the issue you saw with it was specific to ImmutableArrays. I don't know why they have that behavior. On Wed, Feb 25, 2015 at 5:21 PM, Simon Danisch wrote: > I mean, my whole busyness is about constructing matrices of Vec2/3/4, which > i

Re: [julia-users] Re: Whats the deal with concatenation in 0.4!?

2015-02-25 Thread Simon Danisch
I mean, my whole busyness is about constructing matrices of Vec2/3/4, which inherit from DenseArray. So I'm basically forced, if I'm not missing something, to do quite a bit of work to get my [vec1 vec2 vec3] going. Especially, as transpose([vec1, vec2, vec3]) doesn't seem to work, bug or not isn't

Re: [julia-users] Re: Whats the deal with concatenation in 0.4!?

2015-02-25 Thread Simon Danisch
Well, the issue raised here was, how do you realize non concatening [a b c]? This seems impossible now, even though that there are quite a few use cases for it... 2015-02-25 23:13 GMT+01:00 Stefan Karpinski : > I actually think the plan of [a,b,c] for construction without > concatenation and [a;b

Re: [julia-users] Re: Whats the deal with concatenation in 0.4!?

2015-02-25 Thread Stefan Karpinski
I actually think the plan of [a,b,c] for construction without concatenation and [a;b;c] and [a b c] for concatenation is pretty good. I no longer feel that there's any need for a new bracket like [| |]. The thing that clicked for me is that [a;] isn't really concatenation at all anyway. On Wed, Fe

[julia-users] Re: Whats the deal with concatenation in 0.4!?

2015-02-25 Thread Simon Danisch
As Julia was the first language to introduce me to this kind of constructs, I'm not sure about your used terms. Concatenate for me would firstly mean, to just connect elements (that's at least what the German translation suggests), which I would apply to the process of putting the elements toget

Re: [julia-users] Whats the deal with concatenation in 0.4!?

2015-02-25 Thread Jeff Bezanson
We decided to have [a, b] never concatenate, and [a b] and [a; b] always concatenate. Before, [a b] would concatenate but T[a b] did not. I think that was a bit confusing. However, I agree that "typed concatenation" is a strange operation; not sure when I would use that. Maybe time to use [| ... |]

Re: [julia-users] Re: Standard File Dialogs

2015-02-25 Thread Tobias Knopp
The error message is actually because the Gtk version was bumped to a new version that comes with a nice default theme. Still not native but looking better. The error is because there either the data for the icons is not installed or some path is not properly said. The issue is also discussed

[julia-users] Passing Julia values opaquely to a c function that expects void pointer

2015-02-25 Thread Kirill Ignatiev
I have a C function that expects an opaque void* pointer to hold some user data. This is specifically about a small problem with Sundials.jl, but it's also unclear to me generally. How do I safely pass a Julia value to the function? What are the conventions? The value will later be passed to Ju

[julia-users] Re: Julia users Berlin

2015-02-25 Thread Simon Danisch
I'd join, if the date is allowing it =) But, I'm not from Berlin, so I'd need to plan this! Am Mittwoch, 25. Februar 2015 14:35:13 UTC+1 schrieb David Higgins: > > Hi all, > > I'm based at the Technical University in Berlin and I've more or less > completed the transition to using Julia for all

[julia-users] Re: Julia users Berlin

2015-02-25 Thread Felix Schüler
Hi David, I just recently started using julia for my data-analysis tasks here at TU Berlin and the MPI. Would be glad to share some knowledge (of which I have very little until now)! Felix On Wednesday, February 25, 2015 at 2:35:13 PM UTC+1, David Higgins wrote: > > Hi all, > > I'm based at

[julia-users] Re: Readcsv problem

2015-02-25 Thread Brandon Booth
Doh! Clearly, I'm new around here. On Wednesday, February 25, 2015 at 2:34:45 PM UTC-5, Steven G. Johnson wrote: > > > > On Wednesday, February 25, 2015 at 12:37:35 PM UTC-5, Brandon Booth wrote: >> >> I'm trying to read a csv file from a thumb drive using IJulia and keep >> getting an error.

[julia-users] Re: Readcsv problem

2015-02-25 Thread Steven G. Johnson
On Wednesday, February 25, 2015 at 12:37:35 PM UTC-5, Brandon Booth wrote: > > I'm trying to read a csv file from a thumb drive using IJulia and keep > getting an error. > > My code reads: > > params = readcsv("/media/brandon/ED2F-0842/Parameters.csv",',') > You don't pass the delimiter to read

Re: [julia-users] Re: Standard File Dialogs

2015-02-25 Thread Tony Kelman
For Tk.jl, it looks like the documentation is here - https://github.com/JuliaLang/Tk.jl/blob/master/examples/README.md You can click the little pencil-looking icon to make suggested edits to the markdown document in Github's web interface, and directly create a pull request that way. On Wedne

Re: [julia-users] Re: Standard File Dialogs

2015-02-25 Thread Tim Holy
Sure, just click on the source file (e.g., README.md) and then on the little pencil icon in the upper right hand corner. See also https://github.com/JuliaLang/julia/blob/master/CONTRIBUTING.md Thanks for tackling this! --Tim On Wednesday, February 25, 2015 10:44:28 AM Eric S wrote: > Is there

Re: [julia-users] Re: Standard File Dialogs

2015-02-25 Thread Eric S
Is there some documentation describing how to add to the documentation? I'd be happy to do so if I had a clue how. Eric On Wednesday, February 25, 2015 at 10:08:41 AM UTC-6, Tim Holy wrote: > > It's a mix: the author has a lot of implicit knowledge that's s/he takes > for > granted, and that m

[julia-users] Whats the deal with concatenation in 0.4!?

2015-02-25 Thread Simon Danisch
Hi there, I thought default concatenation was deprecated, to make it easier to create arrays of arrays... But it became rather impossible and confusing in the horizontal case, from what I see. Is there really not a single method left from the few ways in 0.35 of creating a horizontal vector of v

[julia-users] Re: Readcsv problem

2015-02-25 Thread Seth
Are you sure you've got comma separated values then? I was of the understanding that "readcsv" is just "readdlm" with the delimiter set to a comma. If you're trying to use a different delimiter, "readdlm" is what you should use. On Wednesday, February 25, 2015 at 9:37:35 AM UTC-8, Brandon Boo

[julia-users] Readcsv problem

2015-02-25 Thread Brandon Booth
I'm trying to read a csv file from a thumb drive using IJulia and keep getting an error. My code reads: params = readcsv("/media/brandon/ED2F-0842/Parameters.csv",',') I get the following error: 'readcsv' has no method matching readcsv(::ASCIIString, ::Char) while loading In[10], in expressio

Re: [julia-users] Re: Standard File Dialogs

2015-02-25 Thread Tony Kelman
Here's a version for Windows that should just work (tm) on Vista-and-newer where Powershell is installed by default: chomp(readall(`powershell -Command "[System.Reflection.Assembly]::LoadWithPartialName(\"System.Windows.Forms\") | Out-Null; \$dialog = New-Object System.Windows.Forms.OpenFil

[julia-users] Re: Unable to set up AppVeyor.

2015-02-25 Thread Tony Kelman
You need to use the same link as for nightly builds at the bottom of julialang.org/downloads, so it's "download/win32" or "download/win64" for nightlies. OSX support on Travis has to be explicitly enabled by sending an email to them requesting it, but they're not accepting new requests at this

[julia-users] Re: Unable to set up AppVeyor.

2015-02-25 Thread Ismael VC
Neither `win64`, `devel/win64`, `unstable/win64` or `nightly/win64` work. El lunes, 23 de febrero de 2015, 23:28:38 (UTC-6), Ismael VC escribió: > > This is the log: > > [00:00:00] Build started > [00:00:10] git clone -q --branch=master git:// > github.com/Ismael-VC/AHN.jl.git C:\projects\ahn-jl >

Re: [julia-users] Re: Standard File Dialogs

2015-02-25 Thread Tim Holy
It's a mix: the author has a lot of implicit knowledge that's s/he takes for granted, and that makes it harder to write good documentation. In combination with edits from the package author, a user who is just learning a package is the _perfect_ person to write documentation. The other point is

Re: [julia-users] Re: Standard File Dialogs

2015-02-25 Thread Eric S
I guess I would if I had the knowledge. I was hoping the author of the package might help here since I'm assuming that person could do it much more efficiently. Eric On Wednesday, February 25, 2015 at 9:27:14 AM UTC-6, Tim Holy wrote: > > By all means, please improve the documentation! > > --T

Re: [julia-users] Re: Standard File Dialogs

2015-02-25 Thread Tim Holy
By all means, please improve the documentation! --Tim On Wednesday, February 25, 2015 07:09:33 AM Eric S wrote: > Thanks, > > This is exactly what I want. The documentation for the Tk package doesn't > list all the available methods/functions. There needs to be a more > discoverable method of fi

[julia-users] Re: Standard File Dialogs

2015-02-25 Thread Eric S
Thanks, This is exactly what I want. The documentation for the Tk package doesn't list all the available methods/functions. There needs to be a more discoverable method of finding them than asking in the user group. Eric On Tuesday, February 24, 2015 at 6:55:52 PM UTC-6, j verzani wrote: > > Y

[julia-users] Re: Unable to set up AppVeyor.

2015-02-25 Thread Ismael VC
Ok now that I changed the appveyor file, it no longer finds the development versions: https://ci.appveyor.com/project/Ismael-VC/ahn-jl/build/1.0.32/job/hssfqsl3pjhlm9de a[00:00:00] Build started [00:00:08] git clone -q --branch=master git://github.com/Ismael-VC/AHN.jl.git C:\projects\ahn-jl [00

[julia-users] Re: Unable to set up AppVeyor.

2015-02-25 Thread Ismael VC
Tony, I've updated according to your comment. I also have a doubt about Travis. How can I test for OSX, right now it's only testing for Linux (both release and nightly), perhaps it's because I'm using a regular account? (though thats how the `.travis.yml` file comes out from `Pkg.generate`) lan

Re: [julia-users] Re: workflow for devloping large modules

2015-02-25 Thread lapeyre . math122a
I usually edit files and 'include' them, sometimes copy and paste. Thanks for posting the information on ESS. Cheers, John On Wednesday, February 25, 2015 at 1:04:09 PM UTC+1, Tamas Papp wrote: > > ESS _does_ support Julia at the moment: > > 1. editing Julia code works fine, even though the afo

[julia-users] Julia users Berlin

2015-02-25 Thread David Higgins
Hi all, I'm based at the Technical University in Berlin and I've more or less completed the transition to using Julia for all of my research (I still use OpenCL for bigger projects). I'm just wondering if there are other Berlin based Julia users/developers who want to meet up from time to time

Re: [julia-users] Pass by reference

2015-02-25 Thread David Higgins
Thanks Stefan! That really helps. I don't know if you guys have such a thing as a language specification document (I'm guessing the language is too much in evolution at present for that to be the case), but if you do I'd be happy to work towards porting bits of it to the main documentation. Da

Re: [julia-users] Mutate C struct represented as Julia immutable

2015-02-25 Thread J Luis
You can't modify an immutable. There are no exceptions. > First let me why I'm struggling with the immutables. The library I'm wrapping use complicated structures with sometimes several levels of nesting and several fixed length members (which are the ones that are currently causing me the tr

Re: [julia-users] Re: workflow for devloping large modules

2015-02-25 Thread Tamas Papp
ESS _does_ support Julia at the moment: 1. editing Julia code works fine, even though the aforementioned commit from Wilfred Hughes will improve it and will also make it easier to follow improvements in julia-mode, 2. interacting with the REPL is functional, but does not support all the extras I

Re: [julia-users] Bokeh.jl update released: call for feedback

2015-02-25 Thread Simon Danisch
It's not simply Cairo being bad. I think it's a very nice package for it's purpose. But for me, it's also about having a unified infrastructure, which can seamlessly switch between complicated 3D rendering and 2D rendering, or have them in the same window. This all, while experimenting with OpenCL

[julia-users] Re: workflow for devloping large modules

2015-02-25 Thread lapeyre . math122a
Great. I have not tried ESS yet, but definitely will when it supports Julia. I am not completely happy with emacs and julia-mode now. julia-mode seems to insert a lot of trailing whitespace when killing/yanking. And I can't find a decent terminal mode/ shell buffer, unless I am running something

Re: [julia-users] Re: workflow for devloping large modules

2015-02-25 Thread Tamas Papp
I mean something like eval(MyModule, :(newfunction(x)=x+1)) Hopefully 1. ESS will be made compatible/depend on julia-mode soon, see https://github.com/emacs-ess/ESS/pull/122 2. then I can add extend ESS to handle this (and also line numbers for errors, etc). Best, Tamas On Wed, Feb 25 2015,

Re: [julia-users] Re: workflow for devloping large modules

2015-02-25 Thread lapeyre . math122a
I guess you mean using the module's eval to add functions/variables ? This sounds like an excellent option. I am using emacs/julia mode + konsole. On Wednesday, February 25, 2015 at 11:39:31 AM UTC+1, Tamas Papp wrote: > > Hi John, > > In fact you can eval "into" a module and thus add function

[julia-users] Spatial Autocorrelation

2015-02-25 Thread Marc Williams
Hi all, I was just wondering if there are any packages out there that include functions to calculate spatial autocorrelation measures like Moran's I and Geary's C? Couldn't find anything while looking through. Should be relatively straightforward to code up if not. What package might be best to

Re: [julia-users] Bokeh.jl update released: call for feedback

2015-02-25 Thread Andreas Lobinger
Hello colleague, On Tuesday, February 24, 2015 at 4:37:04 PM UTC+1, Simon Danisch wrote: > > Well, sticking to the Cairo API is not an option, quite frankly. > I want to create something completely interactive at high speeds. I want > to see, if I can actually compile parts of my event tree comp

[julia-users] Re: Using a function on a group of data

2015-02-25 Thread pgs
Hi Thanks for the links. Regards On Tuesday, February 24, 2015 at 11:47:34 AM UTC, pgs wrote: > > Hi > I have a txt file which I'm trying to perform a compuation(FUNCTION) on > groups of data - the Grouping being Col1 then Col2. > eg > > Say my txt file has the following > > Col1,Col2,Col

Re: [julia-users] Re: workflow for devloping large modules

2015-02-25 Thread Tamas Papp
Hi John, In fact you can eval "into" a module and thus add functions/variables without reloading the whole thing. Juno supports this, I am working on ESS to provide the same functionality. What IDE are you using? Best, Tamas On Wed, Feb 25 2015, lapeyre.math1...@gmail.com wrote: > I found a so

[julia-users] Re: workflow for devloping large modules

2015-02-25 Thread lapeyre . math122a
I found a solution. If something is wrong, please correct it in this thread. -- To make a module, you must put code in a single module expression 'module MyModule ... end'. You may 'include' other files within this expression which has the effect of literally writing the contents inside

Re: [julia-users] Re: How to accelerate the Warm-up process of `svds`?

2015-02-25 Thread Todd Leo
Thanks Tim, for the neat and patient explanation! I did follow your tips, added my module to userimg.jl and precompile for the svds. What I did wrong is, I put my precompile function in my scripts rather than userimg.jl. Will try it again now. Cheers, Todd Leo On Wednesday, February 25, 2015 a

Re: [julia-users] Bokeh.jl update released: call for feedback

2015-02-25 Thread Andreas Lobinger
Hello colleague, On Tuesday, February 24, 2015 at 4:32:56 PM UTC+1, Samuel Colvin wrote: > > I've just read you post and done a double take. > > You're suggesting in the medium term future that the only browsers > available will either not be able to execute js or won't have a rendering > engine

Re: [julia-users] Re: How to accelerate the Warm-up process of `svds`?

2015-02-25 Thread Tim Holy
Keep in mind that compilation involves multiple stages: - parsing - lowering - type inference - generation of LLVM IR - generation of machine native code Just because it gets built into julia does not mean it goes through all of those steps for all possible data types (in fact, that's not even po

[julia-users] Re: Unable to set up AppVeyor.

2015-02-25 Thread Tony Kelman
A few things are wrong there. If you want to test on stable, then JULIAVERSION should be "stable/win32" or "stable/win64", and the line in install that downloads the binary should say $("http://status.julialang.org/"+$env:JULIAVERSION), i.e. not include download in it. You'll also want to repl

Re: [julia-users] Re: How to accelerate the Warm-up process of `svds`?

2015-02-25 Thread Todd Leo
That's exactly how I understand, and I'm using 0.4, so Tim's suggestion above won't work...I presume this is not related to the implementation of svds, since other built-in functions also takes much more time and memory on the first running: julia> @time sprand(5,5,0.1) elapsed time: 0.31490503

Re: [julia-users] Re: How to accelerate the Warm-up process of `svds`?

2015-02-25 Thread SLiZn Liu
That's exactly how I understand, and I'm using 0.4, so Tim's suggestion above won't work...I presume this is not related to the implementation of svds, since other built-in functions also takes much more time and memory on the first running: julia> @time sprand(5,5,0.1) elapsed time: 0.314905039 s

[julia-users] Re: using repeat() function, and then using size()

2015-02-25 Thread Simon Danisch
Are you on windows? This is most probably an old but unfixed bug, which is only about the display of tuples in the REPL. https://github.com/JuliaLang/julia/issues/7434 Am Mittwoch, 25. Februar 2015 09:59:18 UTC+1 schrieb Ranjan Anantharaman: > > Hey, I'm trying to translate some MATLAB code into

Re: [julia-users] Re: How to accelerate the Warm-up process of `svds`?

2015-02-25 Thread Viral Shah
No need to precompile. svds was recently added to base - but it won't exist in 0.3. -viral On Wednesday, February 25, 2015 at 12:32:09 PM UTC+5:30, Todd Leo wrote: > > Isn't svd/svds already included in base? Do I need to precompile them? > > On Saturday, February 7, 2015 at 3:48:50 AM UTC+8, Ti

[julia-users] using repeat() function, and then using size()

2015-02-25 Thread Ranjan Anantharaman
Hey, I'm trying to translate some MATLAB code into Julia, and I ran into this. Consider this code in MATLAB: 1. nx=12;ny=nx;nz=nx; x=1.0; 2. F=repmat(x/19,[nx ny nz 19]); To translate line 2 into Julia, I'd have to use repeat(), and so this is how I translated it. F=repeat([x/19], outer = [n