Re: [julia-users] parallel, through a script and the REPL

2015-03-08 Thread Amit Murthy
@sync @parallel for i=1:1000 assert(get("http://127.0.0.1:5000/";).http_code == 200) end @parallel without a reducer is asynchronous On Mon, Mar 9, 2015 at 4:36 AM, empty account wrote: > Hi, > > I am trying to time how long x amount of http requests take. > > using HTTPClient > > tic() >

[julia-users] Re: Running Julia on Google Cloud Compute / Managed VM

2015-03-08 Thread Viral Shah
I think it is a good idea to put out the Docker containers for download - as many people will find it useful. Is there a way to build them automatically? Certainly for 0.3, we can just upload what we have built for JuliaBox to the downloads page. -viral On Monday, March 9, 2015 at 7:23:26 AM U

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

2015-03-08 Thread Viral Shah
As Stefan has said before, we are happy to license the logos royalty-free, with all proceeds going to fund Julia/conference. The easiest thing to do is to send the proceeds to NumFocus, which is an umbrella foundation and includes Julia. However, someone will have to figure out all the details

[julia-users] parallel, through a script and the REPL

2015-03-08 Thread empty account
Hi, I am trying to time how long x amount of http requests take. using HTTPClient tic() @parallel for i=1:1000 assert(get("http://127.0.0.1:5000/";).http_code == 200) end toc() However, when I run as a script though the command line $ julia -p 2 conc.jl Only 9 requests are made, But all

[julia-users] Creating custom IJulia widgets

2015-03-08 Thread Avi Ruderman
Hi all, I spent the last couple of days building some custom IJulia widgets. I struggled to find a clear explanation online of how to do this. So I thought I would put together a small notebook with what I have learned along the way in case others may find this useful. http://nbviewer.ipython

Re: [julia-users] difficulty disabling multicore BLAS?

2015-03-08 Thread Steven G. Johnson
I seem to recall having similar problems last year too, so it may be an openblas thing.

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

2015-03-08 Thread David Smith
I would buy stickers. I need to replace my poetically faded and secretly embarrassing Matlab bumper sticker. On Wednesday, March 4, 2015 at 8:32:15 PM UTC-6, Sorami Hisamoto wrote: > > It would be nice if Julia T-shirt is on sale to fund JuliaCon 2015. I > guess there are a certain number of peo

[julia-users] Re: 2D plot in gadfly

2015-03-08 Thread David Smith
I made this helper function a while back to display images using Gadfly: function imshow(x, title::String="", units::String="", args...) is, js, values = findnz(x) m, n = size(x) df = DataFrames.DataFrame(i=is, j=js, value=values) plot(df, x="j", y="i", color="value", Coord.c

[julia-users] Re: Running Julia on Google Cloud Compute / Managed VM

2015-03-08 Thread Pavel
DeclarativePackages.jl seems helpful, thanks. Will also try the dockerfiles from your other answer . On Sunday, March 8, 2015 at 6:36:09 PM UTC-7, Tony Kelman wrote: > > I don't think anyone has figured out the right way to do defa

[julia-users] Re: Running Julia on Google Cloud Compute / Managed VM

2015-03-08 Thread Tony Kelman
I don't think anyone has figured out the right way to do default packages yet, especially not private packages. Juno does some I think, and JuliaBox does a pretty big set. You could try using https://github.com/rened/DeclarativePackages.jl maybe? On Sunday, March 8, 2015 at 6:23:40 PM UTC-7, P

Re: [julia-users] Docker image for Julia?

2015-03-08 Thread Tony Kelman
Looks like this is the PPA setup that JuliaBox builds on top of: https://github.com/JuliaLang/JuliaBox/blob/master/docker/julia_v0.3/Dockerfile Alternately you can try this: https://gist.github.com/9db1ce5252adbe8c9803 On Sunday, March 8, 2015 at 5:59:32 PM UTC-7, Pavel wrote: > Just asked a si

[julia-users] Re: Running Julia on Google Cloud Compute / Managed VM

2015-03-08 Thread Pavel
I see now, thanks for clarifying. The next thought I had was to customize this tarball with additional packages (which live in private repos, no ssh keys on production server si git won't help) and include those in* /etc/julia/juliarc.jl* . Then repack the custom version and upload to GCloud. D

[julia-users] Re: Running Julia on Google Cloud Compute / Managed VM

2015-03-08 Thread Tony Kelman
The tarball that those instructions will download and extract has all the library dependencies included in it. Should just work (tm), whether or not you're using Docker. I think you'll need to manually install git for the package manager to work, that part will be distribution-dependent. We'll

Re: [julia-users] Docker image for Julia?

2015-03-08 Thread Pavel
Just asked a similar question about Google Cloud that is likely to be resolved if a Docker image/container for Julia is available. Jiahao could you point us to extracting the right parts of code in JuliaBox scripts and requiremen

[julia-users] Re: Running Julia on Google Cloud Compute / Managed VM

2015-03-08 Thread Pavel
I do want a stable v0.3 binary, but what about all the libraries/dependencies? My understanding is that there are quite a bit of those judging by the list of packages in Ubuntu repository on my development machine... Thought docker can create a bundle with everything needed, including custom Ju

[julia-users] Re: Juno question

2015-03-08 Thread Tony Kelman
Sorry, disregard my post. I skimmed over the "Julia runs" part too quickly. On Sunday, March 8, 2015 at 5:22:43 PM UTC-7, Tony Kelman wrote: > That error message may also happen if you downloaded the 64 bit version of > Juno and tried to run it on 32 bit Windows. Try > https://junolab.s3.am

[julia-users] Re: Juno question

2015-03-08 Thread Tony Kelman
That error message may also happen if you downloaded the 64 bit version of Juno and tried to run it on 32 bit Windows. Try https://junolab.s3.amazonaws.com/release/1.0.0/juno-windows-x32.zip instead. Juno may or may not work on XP, but the command-line REPL (should be included with Juno, or av

[julia-users] Re: Running Julia on Google Cloud Compute / Managed VM

2015-03-08 Thread Tony Kelman
Do you want to build Julia from source, or just run a binary? If you just want to run a binary, do the following: mkdir -p ~/julia curl -s -L https://status.julialang.org/stable/linux-x86_64 | \ tar -C ~/julia -x -z --strip-components=1 -f - export PATH="$PATH:$HOME/julia/bin" This is what we

[julia-users] Re: Docker image for Julia?

2015-03-08 Thread Tony Kelman
JuliaBox is the closest thing to an "official" image, though I think it just uses the PPA and most of the work is in setting up IJulia and other packages. I was playing with Docker last year setting up cross-compilation of Windows binaries from Linux, but hit some odd bug at the intersection of

Re: [julia-users] difficulty disabling multicore BLAS?

2015-03-08 Thread Tony Kelman
It's possible the ILP64 symbol renaming may have broken this, but the fact that the rest of the computational functionality seems to be working means that would surprise me a little. On Friday, March 6, 2015 at 7:40:05 PM UTC-8, Pontus Stenetorp wrote: > On 7 March 2015 at 01:57, Steven G. Joh

Re: [julia-users] Cost of composite types / Help with an algorithm.

2015-03-08 Thread Daniel Carrera
Thanks. I'll try with immutable types. On Sunday, 8 March 2015 20:05:01 UTC+1, Mauro wrote: > > Just use a 7x100 array? Otherwise, using an immutable instead of a type > should be as efficient if it is a bits-type, i.e. isbits returns true. > > On Sun, 2015-03-08 at 19:52, Daniel Carrera > wro

Re: [julia-users] Re: Equivalent of MATLAB's nargout in Julia

2015-03-08 Thread Pooya
Thanks for this interesting solution! Coming from MATLAB, where data is passed by value, this did not make much sense to me, however, when passing inputs to functions by reference, this works very well. Interesting that you mentioned about the case in optimization, as this is in fact what I'm d

Re: [julia-users] Re: Equivalent of MATLAB's nargout in Julia

2015-03-08 Thread Pooya
No, I don't have any particular reason. Steven's suggestion includes three functions which need different names, but are written basically for one goal, whereas mine needed only one function. I thought it might be more elegant. However, Steven and many others who have commented here are experts

Re: [julia-users] DataFramesMeta

2015-03-08 Thread Tom Short
What platform? It'd help to file an issue. On Mar 8, 2015 5:41 PM, wrote: > Hi > Using version Julia 0.3.6 and trying to run .. > using DataFramesMeta .. it just hangs! > Any ideas. > > Regards >

[julia-users] Running Julia on Google Cloud Compute / Managed VM

2015-03-08 Thread Pavel
While there is already a package that helps running Julia on Amazon EC2, Google Cloud does not seem to be widely used by the community. I did notice however that a fairly impressive JuliaBox system has some docker components in it along with the nginx ser

[julia-users] DataFramesMeta

2015-03-08 Thread pip7kids
Hi Using version Julia 0.3.6 and trying to run .. using DataFramesMeta .. it just hangs! Any ideas. Regards

Re: [julia-users] IJulia kernel problems

2015-03-08 Thread Ariel Keselman
fixed here: https://github.com/JuliaLang/ZMQ.jl/pull/72

Re: [julia-users] IJulia kernel problems

2015-03-08 Thread Ariel Keselman
(fixing a typo, the 403 line above has to be be actually 407)

Re: [julia-users] IJulia kernel problems

2015-03-08 Thread Ariel Keselman
OK, got it working just do the following on ZMQ.jl: change line 403 from: Message(m::ByteString) = Message(m, convert(Ptr{Uint8}, pointer(m.data)), sizeof(m)) to: Message(m::ByteString) = Message(m, Base.unsafe_convert(Ptr{Uint8}, pointer(m.data)), sizeof(m)) change line 500 from

Re: [julia-users] IJulia kernel problems

2015-03-08 Thread Ariel Keselman
The root cause seems to be the changes to the ccall api: https://groups.google.com/forum/?fromgroups=#!topic/julia-users/qi6HpMrAS_A I opened an issue on ZMQ.jl: https://github.com/JuliaLang/ZMQ.jl/issues/71 will try a quick fix later

Re: [julia-users] IJulia kernel problems

2015-03-08 Thread Jiahao Chen
I'm having the same problem in that IJulia no longer works on julia master.

[julia-users] Re: major ccall/cfunction changes

2015-03-08 Thread Ariel Keselman
This would explain my IJulia kernel problems (discussed in a separate thread opened a few minutes ago) seems this broke ZMQ.jl I'll try to fix later

[julia-users] major ccall/cfunction changes

2015-03-08 Thread Jameson Nash
There are some significant changes to the behavior of ccall and cfunction that are in the process of being merged into master. Most of it is backwards-compatible, although there a few important changes to note. If you are not a package maintainer, you may want to wait a week before attempting to u

[julia-users] Re: Beginner Issues

2015-03-08 Thread Joey Huchette
This code works for me in Julia v0.3.5 and v0.4. Can you provide the output of versioninfo() and Pkg.status()? Also, there is a julia-opt mailing list that is the best venue to ask questions specific to optimization in Julia. On Sunday, Mar

Re: [julia-users] IJulia kernel problems

2015-03-08 Thread Ariel Keselman
Doesn't help for me. I read all the threads on such issues, and this one seems different. For e.g. ZMQ.jl does contain a line Message(m::ByteString) = Message(m, convert(Ptr{Uint8}, m), sizeof(m)) This actually doesn't work in current Julia, and I'm using the latest ZMQ.jl etc.

Re: [julia-users] IJulia kernel problems

2015-03-08 Thread Andreas Noack
It sometimes helps to run Pkg.update(); Pkg.build("IJulia"). 2015-03-08 15:15 GMT-04:00 Ariel Keselman : > hi, > > I updated to current Julia nightly, and it is now causing the IJulia > kernel to crash. Some investigation lead to unmatched > convert(::Type{Ptr{Uint8}}, ::ASCIIString) etc. in ZMQ.

[julia-users] IJulia kernel problems

2015-03-08 Thread Ariel Keselman
hi, I updated to current Julia nightly, and it is now causing the IJulia kernel to crash. Some investigation lead to unmatched convert(::Type{Ptr{Uint8}}, ::ASCIIString) etc. in ZMQ.jl I tried to fix these but now I'm getting segfaults. Anybody experiencing the same? IPython works fine with a

[julia-users] Beginner Issues

2015-03-08 Thread Lauren Clisby
Just started using Julia, JuMP, Cbc, GLPK, and Gurobi this week for a class. Trying to solve a basic LP and compare Cbc, GLPK, and Gurobi for speed (as a class project). I've had a lot of issues trying to learn these from scratch (I've coded in VBA, HTML, and Java, and use MATLAB regularly)

Re: [julia-users] Cost of composite types / Help with an algorithm.

2015-03-08 Thread Mauro
Just use a 7x100 array? Otherwise, using an immutable instead of a type should be as efficient if it is a bits-type, i.e. isbits returns true. On Sun, 2015-03-08 at 19:52, Daniel Carrera wrote: > Hello everyone, > > I want to do n-body simulations with Julia. The number of particles is > small

[julia-users] Re: Cost of composite types / Help with an algorithm.

2015-03-08 Thread Daniel Carrera
Oh, one more thing. The reason why the subject says "cost of composite types" is that I was also meaning to ask whether there is a penalty for creating composite objects. Like, if I my code ends up constantly converting sets of values into a composite type, is that going to incur a penalty? fo

[julia-users] Cost of composite types / Help with an algorithm.

2015-03-08 Thread Daniel Carrera
Hello everyone, I want to do n-body simulations with Julia. The number of particles is small (10 to 100) but the simulation runs for tens of millions of orbits and I want to optimize them. The most natural way to implement this is to have one array for every particle property: x = Array(Float6

[julia-users] Re: Juno question

2015-03-08 Thread Johan Sigfrids
I believe Juno is built on top of Atom shell, which has as a minimum requirement Win7. It won't run on Win XP. All you can do is upgrade to a newer version of Windows, or use some other editor with Julia. On Sunday, March 8, 2015 at 7:18:04 PM UTC+2, Roger Hunter wrote: > > I have a dual core 2

Re: [julia-users] Juno question

2015-03-08 Thread mike . j . innes
Unfortunately, Atom-Shell doesn’t support older versions of Windows. I recommend upgrading or trying it out on Linux for the best experience. On Sun, Mar 8, 2015 at 5:18 PM, Roger Hunter wrote: > I have a dual core 2 processor running Win XP. > Installed Julia and Juno. Julia runs but XP says J

[julia-users] Re: Informal Call for a Julia π - day challenge

2015-03-08 Thread Simon Danisch
Any chance, that you'll write up your findings in a blog post or whatnot!? Am Samstag, 7. März 2015 18:59:47 UTC+1 schrieb Alan Edelman: > > With about a week left, I'd love to find out how many digits of π we can > get only from Julia. > > Perhaps we can coordinate a worldwide distributed comp

Re: [julia-users] Re: Informal Call for a Julia π - day challenge

2015-03-08 Thread Hans W Borchers
Yes, of course. I have to retrieve the code from a backup drive, so this will have to wait until I'm home and can search for it. Guess it will take until tomorrow evening. I have backuped all my Julia work and removed the files from the main drive. I will return to Julia only when version 0.4 i

[julia-users] Juno question

2015-03-08 Thread Roger Hunter
I have a dual core 2 processor running Win XP. Installed Julia and Juno. Julia runs but XP says Juno is not a Win 32 program. Fix? Roger

Re: [julia-users] Docker image for Julia?

2015-03-08 Thread Jiahao Chen
Have a look at https://github.com/JuliaLang/JuliaBox Thanks, Jiahao Chen Staff Research Scientist MIT Computer Science and Artificial Intelligence Laboratory

[julia-users] Re: 2D plot in gadfly

2015-03-08 Thread Tomas Lycken
There's also contour plots using Gadfly plot(layer(x=xgrid, y=ygrid, z=functionvalues, Geom.contour))

Re: [julia-users] Re: Informal Call for a Julia π - day challenge

2015-03-08 Thread Alan Edelman
Is this the one that can be parcelled out to all of us so we can distribute the work? I realize later digits take longer, so early folks can get more digits and later digit folks might only do fewer digits On Sun, Mar 8, 2015 at 11:43 AM, Hans W Borchers wrote: > I can provide an implementati

[julia-users] Docker image for Julia?

2015-03-08 Thread Erik Schnetter
I've recently found out about Docker, and was browsing for Julia images there. I see that there are 52 such images created by various people . Is there an official Julia image? Should there be one? (Or two -- stable and dev?) Installing docker is

Re: [julia-users] Re: Informal Call for a Julia π - day challenge

2015-03-08 Thread Hans W Borchers
I can provide an implementation of the "droplet" algorithm for computing pi, based on work by Borwein, Rabinowitz, and Wagon. It does neither use 'mpfr' nor big floats, only simple arithmetic. It will spit out about 50,000 digits one after the other -- with more digits it gets too slow. A speed

Re: [julia-users] Re: Informal Call for a Julia π - day challenge

2015-03-08 Thread Simon Byrne
Here's my nomination: unfortunately, it only works on 0.4 using LLVM >=3.5: function asmpi() Base.llvmcall("""%pi = call double asm "fldpi", "={st},~{dirflag},~{fpsr},~{flags}"() #0 ret double %pi""", Float64, ()) end

Re: [julia-users] Re: Informal Call for a Julia π - day challenge

2015-03-08 Thread Alan Edelman
314 ways? On Sun, Mar 8, 2015 at 10:10 AM, Simon Byrne wrote: > How about an ijulia notebook of 101 ways to compute pi in Julia, ideally > with accompanying graphics? > > > On Sunday, 8 March 2015 13:16:26 UTC, Johan Sigfrids wrote: >> >> Because calling out to mpfr is cheating here is a implem

[julia-users] Re: Informal Call for a Julia π - day challenge

2015-03-08 Thread Simon Byrne
How about an ijulia notebook of 101 ways to compute pi in Julia, ideally with accompanying graphics? On Sunday, 8 March 2015 13:16:26 UTC, Johan Sigfrids wrote: > > Because calling out to mpfr is cheating here is a implementation of > Gauss-Legendre in Julia calculating Pi to the desired number

[julia-users] Re: Informal Call for a Julia π - day challenge

2015-03-08 Thread Johan Sigfrids
Because calling out to mpfr is cheating here is a implementation of Gauss-Legendre in Julia calculating Pi to the desired number of digits (Still relying on BigFloats though). function gaussLegendrePi(d::Integer) prec = get_bigfloat_precision() set_bigfloat_precision(iceil(d*log(10)/log

Re: [julia-users] Re: Getting people to switch to Julia - tales of no(?) success

2015-03-08 Thread Joachim Dahl
The package is very similiar to Gloptipoly or SparsePOP, and it can be found here: https://github.com/joachimdahl/Polyopt.jl It was a design decision to keep the API close to the formulation of the Lasserre hierarchy, so that there is a close correspondence between the problem you specify and the

Re: [julia-users] Re: Getting people to switch to Julia - tales of no(?) success

2015-03-08 Thread Davide Lasagna
Joachim, would you share this toolbox for polynomial optimisation? Is it on GitHub? I guess you wrote something's equivalent to yalmip or sostools. Did you compare performances? Davide