Re: [julia-users] Bug or feature? How does = decide whether to do a copy or deepcopy?

2014-01-25 Thread Ivar Nesje
It is nice that you raise this issue. I think most of the others working with Julia has experience from C or Python which also have the same semantics. I'll make an attempt to sum up how things work in this case. 1. `a += b` is just fancy syntax for `a = a + b`. If you look at

Re: [julia-users] julia unable to install on Ubuntu 13.10

2014-01-25 Thread Elliot Saba
Actually, we already have an issue, it's just something I haven't gotten around to building a workaround for yet. https://github.com/JuliaLang/julia/issues/4341 On Sat, Jan 25, 2014 at 12:26 AM, Viral Shah vi...@mayin.org wrote: We expect to fix this in the upcoming 0.3 release. Until then, it

[julia-users] ...array select rows that meet the condition...

2014-01-25 Thread paul analyst
As soon as possible: From an array select rows that meet the condition and use them to create a new array? The condition is such col3 0.5 Is loop and gluing the selected rows? Is there a ready command? In other words, a simple filter ...

[julia-users] Re: ...array select rows that meet the condition...

2014-01-25 Thread paul analyst
Thx Mauro I need opositly dimension , for row is thru this: julia a = rand(10,10) 10x10 Array{Float64,2}: ... julia a[a[:,3].0.5,:] Paul W dniu sobota, 25 stycznia 2014 12:18:01 UTC+1 użytkownik paul analyst napisał: As soon as possible: From an array select rows that meet the

[julia-users] pretty printing

2014-01-25 Thread Shoibal Chakravarty
Suppose I define a composite type T. type T xx::Int yy::Int end juliaT (xx,yy) I want to change what the repl prints when I do T[enter] on the command line. Which function should I change to to do this (the equivalent of T.__repr__() in Python). Thanks, Shoibal.

Re: [julia-users] pretty printing

2014-01-25 Thread John Myles White
You need to override Base.show(io::IO, foo:T) show()’s definition provides the basis for most other printing methods. — John On Jan 25, 2014, at 3:22 AM, Shoibal Chakravarty shoib...@gmail.com wrote: Suppose I define a composite type T. type T xx::Int yy::Int end juliaT

Re: [julia-users] Random comments on Julia and its manual

2014-01-25 Thread Spencer Russell
Regarding the `x::Int = 5` behavior, I just had a conversation with Jeff and Stefan yesterday where they helped me understand better how that works. My understanding certainly still may be flawed or incomplete, in which case I welcome corrections. The syntax `x::Int` can mean a few different

[julia-users] Re: Juila vs Mathematica (Wolfram language): high-level features

2014-01-25 Thread Mike Innes
I think what this question boils down to is this: All else being equal (performance, price, support), which language is ultimately nicer to program in? Mathematica is a fantastic - if not the best around - DSL for symbolic maths. It's term-rewriting paradigm is pretty much perfectly suited

Re: [julia-users] Random comments on Julia and its manual

2014-01-25 Thread David Piepgrass
You're right, I'm sorry for not numbering my thoughts or anything. Some of these, such as the arrow key thing, sound like they might be better as a github issue. I don't know what the expected behavior on windows is. The issue is process termination, but don't Shift+Arrow and Ctrl+Arrow work

[julia-users] Build Errors on Mac OS 10.8.2

2014-01-25 Thread Felix Boamah
make always ends in something like this make[2]: *** [/Users/felixzilla/codebox/julia/usr/lib/libfftw3f.dylib] Error 1 make[1]: *** [julia-release] Error 2 make: *** [release] Error 2 always with a different .dylib Eror 1 some are install_name_tool: object:

Re: [julia-users] Re: not loading python module

2014-01-25 Thread bp2012
Rajn, If I could make a recommendation, perhaps you might find more success with ubuntu 12.04 on a virtual machine on your windows machine. I have step by step instructions here: http://juliaforall.blogspot.com/2014/01/installation-and-configuration-vm.html Then to get matplotlib working these

[julia-users] Re: I have this error with PyCall, I need some help

2014-01-25 Thread Steven G. Johnson
The basic issue is that you can't overload function application in Julia (https://github.com/JuliaLang/julia/issues/2403). So, unless PyCall can detect that an object corresponds to a Function-like type, it doesn't automatically convert it to Function or make it callable.

[julia-users] Re: Juila vs Mathematica (Wolfram language): high-level features

2014-01-25 Thread Jason Merrill
Let's keep the conversation on the list. That way, people who know more about Julia than I do can tell me when I'm wrong. On Sat, Jan 25, 2014 at 1:29 AM, Акатер Дима ... wrote: Thank you. The biggest advantage of Julia over Mathematica is that Julia tries to make its semantics obvious

Re: [julia-users] julia unable to install on Ubuntu 13.10

2014-01-25 Thread Stefan Karpinski
Just do this: git clone https://github.com/JuliaLang/julia.git cd julia make It will take a while, but it will download all the things you need under the deps directory, configure them, compile them, and then compile julia using those versions. Later, if you don't want it anymore, just delete

[julia-users] Re: Juila vs Mathematica (Wolfram language): high-level features

2014-01-25 Thread Johan Sigfrids
On Saturday, January 25, 2014 9:24:17 PM UTC+2, Jason Merrill wrote: mma data = RandomReal[1.,1*^7]; min = .2; max = .3; mma Total@Unitize@Clip[data,{min,max},{0,0}] I claim that it takes *a lot* of experience to know that that is the code that is going to be fast, compared to the

Re: [julia-users] julia unable to install on Ubuntu 13.10

2014-01-25 Thread Ivar Nesje
If you install packages with Pkg.add() you will also need to delete the ~/.julia folder and The .julia_history and .julia_history2 files I think is obvious. kl. 20:37:03 UTC+1 lørdag 25. januar 2014 skrev Stefan Karpinski følgende: Just do this: git clone

[julia-users] PyCall not working in Julia Studio or in .jl

2014-01-25 Thread Zach Bickel
So I've gotten everything up and running with Julia and Python but PyCall isn't working from either Julia Studio or when I run a script from Terminal. It works when I use it interactively but otherwise will just sit there forever and produce on output and I have to stop it manually.

Re: [julia-users] Re: not loading python module

2014-01-25 Thread Rajan Gurjar
Hi Stefan, I having more trouble with Linux as you will see from my other post (concerning Linux issues) and that is because I have R installed - so some issues with RMath library. Instead why I tried to build it myself from the Git it gives a crash status. Found out some issues with Xubuntu. That

Re: [julia-users] Re: not loading python module

2014-01-25 Thread Rajan Gurjar
Hi Bert, I also have a virtual Xubuntu. However, when I tried building Julia from Github it did not work. So I am guessing that even virtual Xubuntu will not work. However, I should try Virtual Ubuntu 12.04 as you suggested. Thanks On Sat, Jan 25, 2014 at 3:31 PM, Rajan Gurjar

Re: [julia-users] julia unable to install on Ubuntu 13.10

2014-01-25 Thread Rajan Gurjar
Hi Stefan, This is what I tried when I printed out the error in my last post to which you have probably responded. I am sorry I was not precise. Or may be not - I actually cloned from http and not https. Would that make a difference? Is that what you are suggesting? And Ivar I am not sure what you

Re: [julia-users] julia unable to install on Ubuntu 13.10

2014-01-25 Thread Rajan Gurjar
Sorry, I cannot figure how to edit my messages once I post them and then find a mistake... Anyway, Stefan, I am sorry - I has used git:\ instead of https. I am right now trying your suggestion Will post the results. On Sat, Jan 25, 2014 at 3:38 PM, Rajan Gurjar rjngrj2...@gmail.com wrote: Hi

Re: [julia-users] julia unable to install on Ubuntu 13.10

2014-01-25 Thread Ivar Nesje
Sorry, I see that it might be unclear what I talked about. Stefan said that you would just have to delete the directory you compiled julia in to get rid of everything. I just listed the folder (and files) that julia might leave behind if you want to get rid of it. kl. 21:38:49 UTC+1 lørdag

Re: [julia-users] ijulia parallel

2014-01-25 Thread Jiahao Chen
ERROR: StateError(Resource temporarily unavailable) This error was recently fixed. Try running Pkg.update() and restarting IJulia. Additionally, I'd like to be able to use the ijulia analog of julia --machinefile fn Is there something I need to add to my ipython julia profile to make this

Re: [julia-users] julia unable to install on Ubuntu 13.10

2014-01-25 Thread Rajan Gurjar
This is what I get when I do what Stefan suggested. LINK usr/bin/julia-readline CC ui/repl-basic.o LINK usr/bin/julia-basic osutils.jl Illegal instruction (core dumped) make[1]: *** [/home/rajan/julia/usr/lib/julia/sys0.bc] Error 132 make: *** [release] Error 2 and ./julia System image

Re: [julia-users] julia unable to install on Ubuntu 13.10

2014-01-25 Thread bp2012
Is there a specific reason that you must build julia from source? I use the nightly builds and haven't had many issues. I've built a project that makes use of matplotlib and calls out to 3rd party apis and haven't found any instances where using the nightly builds has been an obstacle. On

[julia-users] what happened when running julia?

2014-01-25 Thread jidong029
1、when we run julia through command “julia”,Which parts is invoked?how julia worked?where is the entry functions? 2、when we run julia through command “julia --machine file test.jl ” ,which parts is invoked? Thanks

Re: [julia-users] ijulia parallel

2014-01-25 Thread Madeleine Udell
I tried running Pkg.update() and restarting IJulia, with the same error. I'm using the Julia installed from github two days ago. Any other ideas what might be going on? On Saturday, January 25, 2014 1:59:55 PM UTC-8, Jiahao Chen wrote: ERROR: StateError(Resource temporarily unavailable)

Re: [julia-users] ijulia parallel

2014-01-25 Thread Amit Murthy
This was the fix in Julia (2 days ago) that corrected it - https://github.com/JuliaLang/julia/commit/390f466d23798b47ba6be40ee5777e21642569bb Yo may want to pull the latest Julia and try again. On Sun, Jan 26, 2014 at 9:36 AM, Madeleine Udell madeleine.ud...@gmail.comwrote: I tried running

[julia-users] Using SharedArray with pmap

2014-01-25 Thread Madeleine Udell
When using SharedArrays with pmap, I'm getting an increase in memory usage and time proportional to the number of tasks. This doesn't happen when using @parallel. What's the right way to pass shared arrays to workers using functional syntax? (code for file q3.jl pasted below and also attached;

Re: [julia-users] [Parallel] Using shared memory + parallel maps elegantly

2014-01-25 Thread Madeleine Udell
That works great. Thanks! On Thu, Jan 23, 2014 at 8:39 PM, Amit Murthy amit.mur...@gmail.com wrote: The SharedArray object ha a field loc_shmarr which represents the backing array. So S.loc_shmarr should work everywhere. But you are right, we need to ensure that the SharedArray can be used

Re: [julia-users] ijulia parallel

2014-01-25 Thread Madeleine Udell
great, thanks! that works. On Saturday, January 25, 2014 9:25:28 PM UTC-8, Amit Murthy wrote: This was the fix in Julia (2 days ago) that corrected it - https://github.com/JuliaLang/julia/commit/390f466d23798b47ba6be40ee5777e21642569bb Yo may want to pull the latest Julia and try again.