[julia-users] Re: Meshgrid

2015-11-14 Thread Alex Ames
Julia loops are fairly low-impact when accessing arrays in column-major order (i.e. for j = 1:n; for i = 1:m; x[i,j]; end; end), so most of the cost will be in unnecessary memory all

Re: [julia-users] Julia 0.3 download link?

2015-11-14 Thread Viral Shah
On Saturday, November 14, 2015 at 8:30:32 PM UTC+5:30, Steven G. Johnson wrote: > > > > On Friday, November 13, 2015 at 3:50:09 PM UTC-5, Milan Bouchet-Valat > wrote: >> >> Le vendredi 13 novembre 2015 à 12:40 -0800, David Anthoff a écrit : >> > There is a link to “old releases” on the download

RE: [julia-users] Re: Read XLS files with Julia

2015-11-14 Thread David Anthoff
Try https://github.com/davidanthoff/ExcelReaders.jl. Best, David From: julia-users@googlegroups.com [mailto:julia-users@googlegroups.com] On Behalf Of Joshua Duncan Sent: Saturday, November 14, 2015 8:51 PM To: julia-users Subject: Re: [julia-users] Re: Read XLS files with Julia I'm attem

[julia-users] push! performance

2015-11-14 Thread Achu
So in Matlab there's a pretty big difference in performance between preallocating an array, and growing it in a loop with a=[a new_element]; How big is the performance difference in Julia between preallocating and using push! to grow the array in a loop? Thanks! Achu

Re: [julia-users] Re: Read XLS files with Julia

2015-11-14 Thread Joshua Duncan
I'm attempting to read an entire sheet, do you know if this functionality exists? It looks like you have to choose a specific range of the sheet to read in. Thanks, Josh On Thursday, June 26, 2014 at 8:34:31 AM UTC-5, Charles Santana wrote: > > Thank you guys, > > I have just installed Taro.jl.

Re: [julia-users] Re: indexing with non Integer Reals is deprecated

2015-11-14 Thread Eric Forgy
Thanks for confirming, Steven. Btw, this is also a really interesting read: https://github.com/JuliaLang/julia/pull/10525 On Sunday, November 15, 2015 at 9:48:54 AM UTC+8, Steven G. Johnson wrote: > > See also > > https://github.com/JuliaLang/julia/issues/10154 > > where a lot of this was di

[julia-users] Re: Meshgrid

2015-11-14 Thread digxx
To state it correctly...The amount of operations wont be different but Im wondering if it also takes time to jump to the next saved entry when using repmat or is it just the memory storage that makes it take so much longer than doing it with broadcast?

[julia-users] Re: Meshgrid

2015-11-14 Thread digxx
So is the broadcasting only faster in terms of memory or also in less operations?

Re: [julia-users] Re: indexing with non Integer Reals is deprecated

2015-11-14 Thread Steven G. Johnson
See also https://github.com/JuliaLang/julia/issues/10154 where a lot of this was discussed. Non-integer indices often indicate a mistake on the part of the programmer (e.g. using / rather than ÷, i.e. div), and it is more reliable to force the programmer to be explicit about what was inten

Re: [julia-users] Re: indexing with non Integer Reals is deprecated

2015-11-14 Thread Steven G. Johnson
On Saturday, November 14, 2015 at 7:39:28 PM UTC-5, Eric Forgy wrote: > > Although non-integer indexing is deprecated, am I still allowed to do it > if I build my own getindex? Or, put another way, will Grid.jl still work? > Yes.

Re: [julia-users] Re: indexing with non Integer Reals is deprecated

2015-11-14 Thread Steven G. Johnson
On Monday, March 16, 2015 at 3:48:47 AM UTC-4, ele...@gmail.com wrote: > > My question was "does Julia always use float64 even if its a 32 bit > build?" so that a real can be assumed to at least be that size. > Yes. Floating-point literals in Julia are always Float64. (The width of floating

Re: [julia-users] Re: indexing with non Integer Reals is deprecated

2015-11-14 Thread Steven G. Johnson
Every extant floating-point type represents 10 exactly, so that was a particularly bad example — even Float16 represents integers between ±2048 exactly. On Monday, March 16, 2015 at 12:15:51 AM UTC-4, ele...@gmail.com wrote: > > Stephan, do we know that a real is always float64? > >>

Re: [julia-users] Re: indexing with non Integer Reals is deprecated

2015-11-14 Thread Eric Forgy
Just a sanity check... I've been studying Grid.jl and one of the neat tricks there is to inherit from AbstractArray, which allows us to write our own getindex. However, the indices are not integers. I like this trick enough I am considering making it a commo

Re: [julia-users] Re: Julia and Spark

2015-11-14 Thread Christof Stocker
You are right. My tunnel vision strikes again. That's what happens when one works with a hammer all day; all I see is nails :-) On 2015-11-14 23:54, Andrei wrote: I wouldn't restrict big data analytics to machine learning - it also includes SQL queries and visualization, real-time data enrichme

Re: [julia-users] Re: Julia and Spark

2015-11-14 Thread Andrei
I wouldn't restrict big data analytics to machine learning - it also includes SQL queries and visualization, real-time data enrichment, ETL, etc. I don't think Julia ML ecosystem by itself will ever expand to these areas. On Sun, Nov 15, 2015 at 1:43 AM, Christof Stocker < stocker.chris...@gmail.c

Re: [julia-users] Re: Julia and Spark

2015-11-14 Thread Christof Stocker
A pure Julia ML ecosystem is something that is actively being worked on/towards. Naturally large problem sizes are one big reason that people are interested in working on this. It just takes time to flesh it out to something that people are used to from languages like python or R. As I see it,

Re: [julia-users] Re: Julia and Spark

2015-11-14 Thread Andrei
Small number of use cases is an important reason. I see many people interested in Julia & Spark integration, but almost nobody interested *enough* to invest time into its development. Another reason is that Julia infrastructure (and especially Julia-Java integration) is not mature enough to make i

[julia-users] Re: General question on indexing

2015-11-14 Thread hustf
I believe this work-in-progress type may be adapted? I wanted to make this faster by using tuples or immutable fixed vectors to store the data or whatnot, but I guess I'm currently stuck. Help wanted. Compared to looping unnecessarily over a full matrix, this speeds things up by around 35%. im

[julia-users] Re: run parallel code in two machine with julia

2015-11-14 Thread André Lage
Hi Mahdi, Just configure these machines with SSH passwordless login and run your code. More info at: http://docs.julialang.org/en/release-0.4/manual/parallel-computing/ A tutorial on Distributed Computing with Julia: https://github.com/proflage/2015-julia-hands-on André Lage. On Friday, Nov

[julia-users] Re: Meshgrid

2015-11-14 Thread Steven G. Johnson
See also the discussion here: https://github.com/JuliaLang/julia/issues/4093 There is a meshgrid (or ndgrid) example function available, but we decided against including it in Julia. Pretty much any time you are tempted to use meshgrid, you would be better off using broadcasting operations,

[julia-users] Julia REPL color background in command line windows

2015-11-14 Thread Gabriel Gellner
Julia messes up the background colors in the windows console -- that is -- it forces it to black. This boxed black background persists after julia is exited. Is there somewhere to look for why this is happening? Or a fix? Thanks so much.

[julia-users] Re: Boost.Python-like CppWrapper package

2015-11-14 Thread Bart Janssens
Hi Eric, The Boost C++ library covers a lot more ground than just the Python wrappers. It could be Boost.Julia if the C++ part were part of Boost, but it's not my ambition to attempt to get this into Boost. That said, there may be better names than CppWrapper, so I'm open to suggestions for new

[julia-users] Re: Meshgrid

2015-11-14 Thread Alex Ames
There's no built-in meshgrid function, the argument being (iirc) that it's simple to implement if needed, and most cases where it might be used would be better served by indexing into grid spacing vectors (of size n) instead of a dense 2d array (of size n^2). A one-liner implementation looks lik

[julia-users] Re: Meshgrid

2015-11-14 Thread digxx
> > Maybe repmat? > Or is there also something else?

[julia-users] Meshgrid

2015-11-14 Thread digxx
Is there an analogous function that makes a meshgrid out of x=0:0.1:1 y=0:0.1:2 [x,y]=meshgrid(x,y) which is the command in matlab

[julia-users] Re: Find

2015-11-14 Thread Steven G. Johnson
On Saturday, November 14, 2015 at 9:56:21 AM UTC-5, digxx wrote: > > Sorry I already deleted it since find(x.>3) just works... > Though in the manual it says its a 2 argument function > first argument the condition and second the array/vector... > The manual documents both the 2-argument and 1-

Re: [julia-users] linspace-like range generators and keyword ordering

2015-11-14 Thread MA Laforge
> > This looks like overengineering of what should be a simple problem. Why do > you want turn the keywords into arguments for dispatch? Dispatch is best > when you need different behavior for different types but here all your > input and output types are fixed. > I suppose there is some truth

[julia-users] Re: Write an array of tuple to csv

2015-11-14 Thread Steven G. Johnson
I've pushed a fix: https://github.com/JuliaLang/julia/pull/13989

[julia-users] Re: Write an array of tuple to csv

2015-11-14 Thread Steven G. Johnson
On Friday, November 13, 2015 at 8:26:07 PM UTC-5, Grey Marsh wrote: > > I've an array of tuples each having 3 integers as members. I am unable to > write it to a csv. I tried the following > > writecsv("file.csv",termite) > Hmm, this is probably a bug. For now, a workaround is: open("file.c

Re: [julia-users] Julia 0.3 download link?

2015-11-14 Thread Steven G. Johnson
On Friday, November 13, 2015 at 3:50:09 PM UTC-5, Milan Bouchet-Valat wrote: > > Le vendredi 13 novembre 2015 à 12:40 -0800, David Anthoff a écrit : > > There is a link to “old releases” on the download page (same level as > > the different platform downloads). I also couldn’t find it right >

[julia-users] Re: Find

2015-11-14 Thread digxx
Sorry I already deleted it since find(x.>3) just works... Though in the manual it says its a 2 argument function first argument the condition and second the array/vector... Am Samstag, 14. November 2015 15:54:10 UTC+1 schrieb Dan: > `x .> 3` is a bit-array. The function form, which is probably wh

[julia-users] Find

2015-11-14 Thread Dan
`x .> 3` is a bit-array. The function form, which is probably what fits, is `x->x.>3` (the back-ticks are for quotation, not part of the code).

[julia-users] Find

2015-11-14 Thread digxx
when trying x=[0,1,3,4,6,1] find(x.>3,x) I always get the error: ERROR: MethodError: `find` has no method matching find(::BitArray{1}, ::Array{Int64,1}) Closest candidates are: find(::Function, ::AbstractArray{T,N}) find(::BitArray{N}) find(::Union{DenseArray{T,N},SubArray{T,N,A<:

Re: [julia-users] using a JSON REST API from Julia

2015-11-14 Thread Jacob Quinn
You got it. Requests.jl is the current standard, unless you felt more comfortable calling a python library with PyCall. Requests.jl has gotten a lot of love lately from Jon Malmaud and is 0.4 ready. -Jacob On Sat, Nov 14, 2015 at 7:10 AM, Christof Stocker < stocker.chris...@gmail.com> wrote: >

[julia-users] using a JSON REST API from Julia

2015-11-14 Thread Christof Stocker
What is the current best practice to handle JSON and to use a REST API from Julia? From preliminary search I would assume JuliaLang/JSON.jl and JuliaWeb/Requests.jl, but I am unsure Doe anyone have any suggestions what to look at?

Re: [julia-users] Re: installing julia via cygwin

2015-11-14 Thread Tony Kelman
If you create an installer locally via make win-extras binary-dist then it should be more or less the same as the downloaded installer. In a source build we don't have the embedded git or juliarc file in the right places to use them yet.

Re: [julia-users] Re: installing julia via cygwin

2015-11-14 Thread digxx
Yep I'm using 0.4 not 0.4.1 Oddly enough its working when using the windows installer and then run it via cygwin...Though not when building it from the source :( Dont quite get the difference though... shouldnt it be the same? Probably one could figure it out in the files you mentioned (pkg.jl an

[julia-users] Set Path

2015-11-14 Thread digxx
When setting a path in the system environment variable is it taken over by Julia? e.g. the usual files included are in the Julia directory...But when i want to include a file without always specifying the entire Path how can I add this path in Julia? Thanks

Re: [julia-users] Re: installing julia via cygwin

2015-11-14 Thread Tony Kelman
You've been building the release-0.4 branch, correct? That is likely to be more stable in terms of working with packages and the like. Though if you build the master branch of Julia then Pkg can work without needing to use command-line Git. If you download the Julia 0.4.1 Windows installer (you

Re: [julia-users] Re: Julia and Spark

2015-11-14 Thread Christof Stocker
Personally, I think the most progress is made if some person has a huge interest in doing it. I for one have a big interest in using Julia for ML, but I myself am not particularly interested in using Spark from Julia. I just don't feel like it would be useful to me for anything. In the situatio

Re: [julia-users] Re: installing julia via cygwin

2015-11-14 Thread digxx
So yes thats basically what I want to achieve. Getting Julia Pkg running on cygwin which apparently needs Git. Do you have another possibility of getting Julia running via cygwin? I tried the generic Linux binaries but this doesnt work somehow? I actually just copied it and tried to run it via .

[julia-users] Re: Julia and Spark

2015-11-14 Thread Frank
Hi, I would have expected more interest in a Spark & Julia integration. Is the lack of interest due to a) missing use cases b) fact that both Spark and Julia are very new - relatively speaking What do you think? Thanks Frank On Wednesday, April 15, 2015 at 11:37:50 AM UTC+2, Tanmay K. Mohapatr

[julia-users] Re: build_executable.jl fails in OSX yosemite

2015-11-14 Thread Tom Lee
Success! Two lines were removed from the mac-specific code in this commit: https://github.com/JuliaLang/julia/commit/d45e430ceb79562bcd2b7e50566ee2910e257488#diff-aad9ab47160c145b4b5171d33b3064da For me, adding them back fixed things, see line 131 in contrib/build_sysimage.jl: if OS_NAME ==

Re: [julia-users] Re: installing julia via cygwin

2015-11-14 Thread Tony Kelman
It's been reported in a different thread that Julia with newer bundled git doesn't start in cygwin without some modifications, so the options here are either try to fix the Pkg git issue so it can work with cygwin's git for 0.4, or wait for 0.5 which no longer uses command line git for Pkg.