[julia-users] Re: Cluster manager, change ssh

2016-08-01 Thread Dupont
Sorry for not being precise. What I meant is that the scheduler is OAR.

[julia-users] Re: How to make a variable length tuple with inferred type

2016-08-01 Thread Simon Danisch
How about: julia> @code_warntype ntuple( x -> 0, Val{3}) Variables: #self#::Base.#ntuple f::##1#2 #unused#::Type{Val{3}} Body: begin $(Expr(:static_parameter, 2)) # line 73: # meta: location tuple.jl _ntuple 80 # meta: location tuple.jl _ntuple 80 SSAValue(1) =

Re: [julia-users] Re: How to make a variable length tuple with inferred type

2016-08-01 Thread Sheehan Olver
Cool! Sent from my iPhone > On 1 Aug 2016, at 17:23, Simon Danisch wrote: > > How about: > julia> @code_warntype ntuple( x -> 0, Val{3}) > Variables: > #self#::Base.#ntuple > f::##1#2 > #unused#::Type{Val{3}} > > Body: > begin > $(Expr(:static_parameter, 2))

[julia-users] I'd like to see something like the Rust platform proposal in the Julia ecosystem

2016-08-01 Thread Steven Sagaert
see https://aturon.github.io/blog/2016/07/27/rust-platform/

[julia-users] Re: Goto code

2016-08-01 Thread Alexei Serdiuk
Thanks! > >

[julia-users] Re: Tuples of Functions

2016-08-01 Thread Kristoffer Carlsson
The problem is not with the return value of the passed functions, it is with inferring the type of `f`. Each function has it's own type and that in turn makes `f` bind to different types (first f1 then f2) in the loop i.e a type instability. On Monday, August 1, 2016 at 5:53:23 AM UTC+2,

[julia-users] Re: Pkg.init() problems on 0.5-rc0

2016-08-01 Thread Tony Kelman
You can use Pkg.setprotocol!("https"). On Windows libgit2 and libssh2 should be linking against the built-in native winhttp backend and they might not need libcurl for proxy support there, but I don't know how to configure them for proxy support. This is going to require some testing,

Re: [julia-users] Changed broadcast semantics in 0.5?

2016-08-01 Thread Oliver Schulz
So cases like broadcast((x,y,z)->..., A, B, C) can't be supported any longer? Darn. :-( I love the things you guys are doing in regard to fusing operations, but that was a very, very useful thing to have. Is there any other way to do this now? On Monday, August 1, 2016 at 2:22:07 PM UTC+2,

Re: [julia-users] Re: Interactive Animated PyPlot in IJulia

2016-08-01 Thread Christoph Ortner
Just played with the examples in GR.jl/examples. Works really well. Thank you! On Saturday, 30 July 2016 16:25:44 UTC+1, Josef Heinen wrote: > > The first animation (slide 10) updates a 3d surface frame by frame - the > noise added could also be the result of an intensive calculation or a >

[julia-users] How to set JULIA_NUM_THREADS for remote workers?

2016-08-01 Thread Oliver Schulz
Is it possible to pass on or explicitly set JULIA_NUM_THREADS for remote workers started via addprocs([host1, ...]) ?

Re: [julia-users] I'd like to see something like the Rust platform proposal in the Julia ecosystem

2016-08-01 Thread Tony Kelman
The vision I personally have for this would be something more like SUSE Studio (https://susestudio.com/) where it's just a few clicks, or a configuration file in the build system, that could give you a set of default-installed packages of your choosing, and make installers for your own custom

[julia-users] Changed broadcast semantics in 0.5?

2016-08-01 Thread Oliver Schulz
Hi, sorry if this is already covered somewhere - have the semantics of broadcast changed in Julia 0.5? In 0.4, I can do broadcast(muladd, rand(5), rand(5), rand(5)) But in 0.5 (0.5.0-rc0+86), I get ERROR: MethodError: no method matching muladd(::Float64, ::Float64) Closest candidates are:

Re: [julia-users] Changed broadcast semantics in 0.5?

2016-08-01 Thread Yichao Yu
On Mon, Aug 1, 2016 at 8:15 PM, Oliver Schulz wrote: > Hi, > > sorry if this is already covered somewhere - have the semantics of broadcast > changed in Julia 0.5? Essentially https://github.com/JuliaLang/julia/issues/17314 The promote_op basically assumes

Re: [julia-users] Changed broadcast semantics in 0.5?

2016-08-01 Thread Oliver Schulz
> Not before the bug is fixed and this is also orthogonal to loop fusion. Sure, I get that. But that means then that bug is fixed, things like broadcasting with (e.g.) muladd will be possible again? That would be wonderful! On Monday, August 1, 2016 at 2:47:44 PM UTC+2, Yichao Yu wrote: > >

Re: [julia-users] Changed broadcast semantics in 0.5?

2016-08-01 Thread Pablo Zubieta
This should work if https://github.com/JuliaLang/julia/pull/17389 gets merged. On Monday, August 1, 2016 at 3:06:36 PM UTC+2, Oliver Schulz wrote: > > > Not before the bug is fixed and this is also orthogonal to loop fusion. > > Sure, I get that. But that means then that bug is fixed, things

Re: [julia-users] Changed broadcast semantics in 0.5?

2016-08-01 Thread Yichao Yu
On Mon, Aug 1, 2016 at 8:41 PM, Oliver Schulz wrote: > So cases like > > broadcast((x,y,z)->..., A, B, C) > > can't be supported any longer? Darn. :-( I love the things you guys are > doing in regard to fusing operations, but that was a very, very useful thing > to

Re: [julia-users] Re: A Very Simple Benchmark for Brutal-force Loops in Several Languages: revised, Julia is fast!

2016-08-01 Thread Sisyphuss
Julia is not as "mature" as VBA, which prevents "analysts" of large firms adopting it. In addition, they will be happier to continue using global variables. On Monday, August 1, 2016 at 8:14:37 AM UTC+2, Eric Forgy wrote: > > I mentioned to Prof. Edelman (only half jokingly) at an event in >

Re: [julia-users] I'd like to see something like the Rust platform proposal in the Julia ecosystem

2016-08-01 Thread Steven Sagaert
is more than just a webpage with a list of packages... for starters the concept of metapackage. On Monday, August 1, 2016 at 10:25:33 AM UTC+2, Tamas Papp wrote: > > Maybe you already know about it, but there is a curated list of packages > at https://github.com/svaksha/Julia.jl > > On Mon,

Re: [julia-users] I'd like to see something like the Rust platform proposal in the Julia ecosystem

2016-08-01 Thread Tim Holy
module MyMetaPackage using Reexport @reexport using PackageA @reexport using PackageB ... end Best. --Tim On Monday, August 1, 2016 1:48:47 AM CDT Steven Sagaert wrote: > is more than just a webpage with a list of packages... for starters the > concept of metapackage. > > On Monday, August

[julia-users] Re: web scraping with Julia

2016-08-01 Thread STAR0SS
I used HTTPClient to get the page and Gumbo to parse it some time ago (near v0.3) https://github.com/porterjamesj/Gumbo.jl I was doing things like that, it's probably not the most elegant way of doing it, but it was working fine: function get_hrefs(body::HTMLElement) links = String[]

Re: [julia-users] Re: Tuples of Functions

2016-08-01 Thread Yichao Yu
On Mon, Aug 1, 2016 at 4:15 PM, Kristoffer Carlsson wrote: > The problem is not with the return value of the passed functions, it is with > inferring the type of `f`. Each function has it's own type and that in turn > makes `f` bind to different types (first f1 then f2) in

[julia-users] Re: I'd like to see something like the Rust platform proposal in the Julia ecosystem

2016-08-01 Thread Andreas Lobinger
My first reaction was: Just go forward and do it. Then i started to read the comments in https://internals.rust-lang.org/t/proposal-the-rust-platform/3745/35

Re: [julia-users] I'd like to see something like the Rust platform proposal in the Julia ecosystem

2016-08-01 Thread Tamas Papp
Maybe you already know about it, but there is a curated list of packages at https://github.com/svaksha/Julia.jl On Mon, Aug 01 2016, Steven Sagaert wrote: > see https://aturon.github.io/blog/2016/07/27/rust-platform/

[julia-users] Re: Pkg.init() problems on 0.5-rc0

2016-08-01 Thread Andreas Lobinger
So do i understand correctly that the current win64 build doesn't include git/ssh via proxy? Or is just the setting in (where?) missing? Is there a counterpart to the https-insteadof-git setting available? I know it's not helpful, but i get (behind a company http/https proxy) the same error

[julia-users] ANN: DifferentialEquations.jl

2016-08-01 Thread Chris Rackauckas
I am pleased to announce the first release of DifferentialEquations.jl . An accompanying blog post explains the motivation and philosophy of the package in more detail.

[julia-users] Re: Pkg.init() problems on 0.5-rc0

2016-08-01 Thread Daniel O'Malley
Oh, sorry for the mixup. Doing a git clone ssh://g...@github.com:/JuliaLang/METADATA.jl.git from a shell succeeds. I haven't had success trying to change the protocol with Pkg.setprotocol! though. Whether I do Pkg.setprotocol!("ssh"), Pkg.setprotocol!("git"), or

Re: [julia-users] I'd like to see something like the Rust platform proposal in the Julia ecosystem

2016-08-01 Thread Stefan Karpinski
There's a fair amount of discussion of the Rust Platform proposal over here: https://internals.rust-lang.org/t/proposal-the-rust-platform/3745 In short there's a lack of agreement to this in Rust. Moreover, in Rust, different versions of libraries are much more closely locked to each other,

[julia-users] Embedding Multiple Indipendent Julia Intreperters within a C++ Program

2016-08-01 Thread Akila Wajirasena
Hi All, I am working on integrating julia to our software where we will have multiple threads (p_threads) within our program. We need to create multiple independent julia interpreters; one for each thread and let them work independently. I have found following answers in the users groups and

Re: [julia-users] Re: Tuples of Functions

2016-08-01 Thread Christoph Ortner
thank you Kristoffer for the explanation and Yichao for pointing that package. I will give it a try; as I need it (or, would like to have it) in a very limited context, hopefully it will solve my problem.

Re: [julia-users] I'd like to see something like the Rust platform proposal in the Julia ecosystem

2016-08-01 Thread Steven Sagaert
I think the most important part of it is the idea of having a second (beyond the standard lib that comes with the runtime) larger, optional layer of curated libs that are known to work together. That together with the metapackage idea for easy inclusion ( maybe with possible overrides as in

Re: [julia-users] Changed broadcast semantics in 0.5?

2016-08-01 Thread Oliver Schulz
Thanks, Pablo. Uh, do you think that PR will make it into 0.5? On Monday, August 1, 2016 at 3:41:23 PM UTC+2, Pablo Zubieta wrote: > > This should work if https://github.com/JuliaLang/julia/pull/17389 gets > merged. > > On Monday, August 1, 2016 at 3:06:36 PM UTC+2, Oliver Schulz wrote: >> >> >

Re: [julia-users] I'd like to see something like the Rust platform proposal in the Julia ecosystem

2016-08-01 Thread Steven Sagaert
When I say "work well together" I don't just mean that their versions technically work together without errors, but also that they match stylistically and that the datastructures that they expect as input/output match so that no excessive translation and/or copying of data is needed which is

[julia-users] Re: How to make a variable length tuple with inferred type

2016-08-01 Thread Kristoffer Carlsson
Nope. nuple(::Function, ::Int) is not type stable because the return type depends on the value of the integer. On Monday, August 1, 2016 at 5:17:10 PM UTC+2, mmh wrote: > > Is this a known bug/regression? > > On Sunday, July 31, 2016 at 10:53:11 PM UTC-4, Sheehan Olver wrote: >> >> It still

[julia-users] Re: Pkg.init() problems on 0.5-rc0

2016-08-01 Thread Tony Kelman
That could be considered a bug, Pkg.init should probably respect the Pkg.setprotocol! setting, at least when using the DEFAULT_META value. You should also be able to do Pkg.init("ssh://g...@github.com:/ JuliaLang/METADATA.jl.git") as a workaround to avoid having to go through command-line git.

[julia-users] Re: Pkg.init() problems on 0.5-rc0

2016-08-01 Thread Daniel O'Malley
I tried the Pkg.init("ssh://...") a couple different ways, but neither worked. Pkg.init("ssh://g...@github.com:/JuliaLang/METADATA.jl.git") gave GitError(Code:EINVALIDSPEC, Class:Net, Malformed URL 'ssh://g...@github.com:/JuliaLang/METADATA.jl.git').

[julia-users] Re: web scraping with Julia

2016-08-01 Thread Avik Sengupta
This may be a good opportunity to introduce our CSS Selector library in Julia, Cascadia.jl : https://github.com/Algocircle/Cascadia.jl The code is based on the Cascadia GO library by Andy Balhom. Cascadia.jl uses the Gumbo.jl html parser, and allows querying of the resulting parse tree with

[julia-users] Re: How to make a variable length tuple with inferred type

2016-08-01 Thread mmh
Is this a known bug/regression? On Sunday, July 31, 2016 at 10:53:11 PM UTC-4, Sheehan Olver wrote: > > It still doesn't infer the type in 0.5: > > *julia> **@code_warntype ntuple( x -> 0, 3)* > > Variables: > > #self#::Base.#ntuple > > f::##5#6 > > n::Int64 > > > Body: > > begin > >

[julia-users] Re: web scraping with Julia

2016-08-01 Thread Alex Mellnik
Ivan, What sort of contents do you need to get? For simple things Requests.jl may work, but for more complex scrapes I would suggest using Selenium. You can install the Python package and call it with something like using PyCall @pyimport selenium.webdriver as webdriver driver =

[julia-users] Anonymous Functions in 0.5 - Performance

2016-08-01 Thread Christopher Alexander
Hi all! I am wondering if perhaps I am getting the syntax wrong with respect to the proper way to do anonymous functions in 0.5. I am not seeing any performance increase when using them as I expected. For example: *k = rand(1000)* *@time map((x::Float64) -> x^2, k)*0.025886 seconds (12.55

[julia-users] Anonymous Functions in 0.5 - Performance

2016-08-01 Thread David P. Sanders
Don't do benchmarks in global scope. Wrap everything in a function.

[julia-users] Re: Pkg.init() problems on 0.5-rc0

2016-08-01 Thread Tony Kelman
I think Pkg.add should obey setprotocol!, it's likely a bug that Pkg.init doesn't. The extra colon after .com probably is malformed so isn't the first error correct? The second issue might be fixed by some authentication changes that Keno just merged a few minutes ago, there should be binaries

[julia-users] Error in installing Mongo package on Mac OS

2016-08-01 Thread Tony Kelman
Does Pkg.checkout("Homebrew") and restarting Julia make any difference? If not, go back to the tagged release with Pkg.free("Homebrew")

[julia-users] issue with setdiff

2016-08-01 Thread Joris Bierkens
I a seemingly ok Julia installation, version 0.4.6 (2016-06-19 17:16 UTC), I try the command julia> setdiff(Set(1,2,3,4),Set(2,3,5)) and I get the following error: ERROR: MethodError: `convert` has no method matching convert(::Type{Set{T}}, ::Int64, ::Int64, ::Int64, ::Int64) This may have

[julia-users] Re: issue with setdiff

2016-08-01 Thread Joris Bierkens
Thank you Tim, that works, julia> setdiff(Set([1,2,3,4]),Set([2,3,5])) Set([4,1]) has the expected behaviour, as well as julia> setdiff(Set{Int}([1,2,3,4]),Set{Int}([2,3,5])) Set([4,1]) On Monday, August 1, 2016 at 6:52:57 PM UTC+1, Tim Wheeler wrote: > > Your Set constructor is incorrect. >

Re: [julia-users] I'd like to see something like the Rust platform proposal in the Julia ecosystem

2016-08-01 Thread 'Tobias Knopp' via julia-users
I think that Steven has a point here. Technically we have all in place and Tims "Reexport" snipped is indeed the solution for creating Matlab like toolboxes. Its quite interesting that nobody has yet done such a metapackage. Maybe its because those users knowing the packages like the

[julia-users] Re: Anonymous Functions in 0.5 - Performance

2016-08-01 Thread Christopher Alexander
Yup, that did it. And wow is it fast. *function testing(k::Vector)* *return map((x::Float64) -> x^2, k)* *end* *@time testing(k)*0.07 seconds (7 allocations: 8.125 KB) On Monday, August 1, 2016 at 12:25:59 PM UTC-4, David P. Sanders wrote: > > Don't do benchmarks in global scope.

[julia-users] Error in installing Mongo package on Mac OS

2016-08-01 Thread Roger Whitney
I am new to Julia and am trying to use the Mongo package. I am using Julia 0.4.6 on Mac OS 10.11.6. When I try to add (or build) the package using Pkg.add("Mongo") or Pkg.build("Mongo")I get the error: "Error: Cannot install mongo-c because conflicting formulae are installed. libbson:

[julia-users] Slides/notebook of Amit Murthy's presentation at Juliacon 2016?

2016-08-01 Thread Arrigo Benedetti
Unfortunately around min 44 in the video of Amit Murthy's presentation at the Juliacon 2016 Parallel Programming workshop the slide panel is totally out of focus so I was wondering if the slides or notebook are available somewhere. thanks! -Arrigo

[julia-users] Unexpected Performance Behaviour

2016-08-01 Thread Christoph Ortner
Below are two tests, in the first a simple polynomial is "hard-coded", in the second it is passed as a function. I would expect the two to be equivalent, but the second case is significantly faster. Can anybody explain what is going on? @code_warntype doesn't show anything that would explain

[julia-users] Re: Unexpected Performance Behaviour

2016-08-01 Thread 'Greg Plowman' via julia-users
I get timing/allocations the other way around. (test1, hard-coded version is fast without allocation) @code_warntype for test2 shows type-instability for s (because return type cannot be inferred for f1) On Tuesday, August 2, 2016 at 2:33:24 PM UTC+10, Christoph Ortner wrote: > Below are two

[julia-users] Re: Unexpected Performance Behaviour

2016-08-01 Thread Eric Forgy
I still don't understand the details of the new functions in v0.5. but I'd be inclined to think this test depends on whether you're on v0.4.6 or v0.5.0. On Tuesday, August 2, 2016 at 12:53:27 PM UTC+8, Greg Plowman wrote: > > I get timing/allocations the other way around. (test1, hard-coded

[julia-users] Re: issue with setdiff

2016-08-01 Thread Tim Wheeler
Your Set constructor is incorrect. Try Set{Int}([1,2,3,4]) instead.

Re: [julia-users] Slides/notebook of Amit Murthy's presentation at Juliacon 2016?

2016-08-01 Thread Islam Badreldin
Hi ArrigoI know that the JuliaCon 2016 Parallel Workshop notebooks are hosted in this repository  https://github.com/andreasnoack/ParallelWorkshop/tree/e662628637654b4ac2727ccdf7d686d08e4115ee Are you looking for the ArrayFire Tutorial notebook located in there?   -Islam

Re: [julia-users] Slides/notebook of Amit Murthy's presentation at Juliacon 2016?

2016-08-01 Thread Islam Badreldin
Correction: link to the master branch not to a specific commithttps://github.com/andreasnoack/ParallelWorkshop/tree/master   -Islam _ From: Islam Badreldin Sent: Monday, August 1, 2016 9:25 PM Subject: Re: [julia-users]

Re: [julia-users] Re: Tuples of Functions

2016-08-01 Thread Christoph Ortner
Yichao: your FunctionWrappers.jl package is really helpful - thank you. For anybody interested, I posted a gist comparing performance of hard-coded functions with functions in a tuple (factor 10 worse performance) and