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

2016-07-31 Thread Eric Forgy
I mentioned to Prof. Edelman (only half jokingly) at an event in Singapore, 
that we should add Excel/VBA to the list of benchmarks. 

If I'm in a corporate setting and trying to sell Julia for some internal 
project, the person making the call has probably never heard of any of the 
languages in the Julia benchmark, but they have heard of Excel/VBA, so, as 
silly as it may seem, I actually think it could go a long way for Julia 
evangelists to see more comparisons to Excel/VBA.

On Monday, August 1, 2016 at 1:45:24 AM UTC+8, hustf wrote:
>
> It is nice to have a little check on speed from time to time. I still use 
> VBA for easy cooperation with less programming savvy colleguaes.
>
> Julia 1.17s.
> VBA (excel alt + f11):12 s.
>
> This is a bit unfair to neolithic man Joel Spolsky since no optimization 
> was performed:
>
> Sub benchmark()
> nsamples = 100
> Dim y() As Double
> ReDim y(1 To nsamples)
> x = y
> For i = 1 To nsamples
> x(i) = (i - 1) * 5 / (nsamples - 1)
> Next
> Debug.Print ("\nBrutal-force loops, 100 times:")
> sngtime = Timer
> For m = 1 To 100
> For n = 1 To nsamples
> y(n) = Cos(2 * x(n) + 5)
> Next
> Next
> Debug.Print Timer - sngtime
> End Sub
>
>

[julia-users] Re: web scraping with Julia

2016-07-31 Thread Eric Forgy
I once did some web scraping using Blink.jl.

With Blink, you can inject your own JS into any page. I posted a video 
 of me changing the logo of 
julialang.org (in my browser only of course) :)

Blink together with my Pages.jl  
should get you pretty far.

On Monday, August 1, 2016 at 6:23:07 AM UTC+8, Ivan Pandžić wrote:
>
> Hey, guys, I have already searched a lot online, but can't seem to get 
> anything working. I have tried LibCURL.jl, Requests.jl and HTTPClient.jl. 
> Basically, what I need is something that allows me to get the contents of a 
> website. What's the best way?
>
> Thanks!
>
> Ivan
>


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

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


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

2016-07-31 Thread Tony Kelman
No, I meant ssh:// or git:// url's for packages.


On Sunday, July 31, 2016 at 7:02:15 PM UTC-7, Daniel O'Malley wrote:
>
> Tony, thanks for the quick response and all the work you put into julia. 
> It would be great to have the package system working for Mac/Linux from 
> behind a proxy without needing to rebuild anything. If you need someone to 
> help test from behind a proxy, please let me know. I'd be happy to do it.
>
> When you say "ssh remotes", do you mean something like 
> addprocs(["machine1", "machine2"])? That does work for me, but I haven't 
> tried addprocs'ing to a machine outside our network.
>
> On Sunday, July 31, 2016 at 6:12:12 PM UTC-6, Tony Kelman wrote:
>>
>> I believe you need to build libgit2 against libcurl in order for proxies 
>> to work on linux and mac. We do not currently have it set up in our build 
>> system to do that in a self contained distributable way for binaries, but 
>> it might not be too hard to write the necessary makefile to make it work.
>>
>> We were prioritizing getting ssh remotes to work again for the first rc. 
>> Do ssh remotes work over proxies by any chance? I don't currently have 
>> immediate access to an environment behind a proxy to test this, but we had 
>> looked into setting one up that we could revisit.
>>
>

[julia-users] Tuples of Functions

2016-07-31 Thread Christoph Ortner
Consider the following code snippet which shows the following expect 
problem (on v0.5): if I form a tuple of functions, pass this tuple to 
another function, then julia cannot infer enough information about them and 
runs into a type instability. 

MY QUESTION is: is there a work-around?  I.e., can I form an array, tuple, 
etc of functions and call them without losing type stability?

(declaring return-type did not help, which surprised me since I thought 
that would give the additional information about what the two functions f1, 
f2 in the tuple do)


function test(N, ff)
r = 0.234; s = 0.0
for n = 1:N, f in ff
s = s + f(r)::Float64
end 
return s
end 


function test2(N, f1, f2)
r = 0.234; s = 0.0
for n = 1:N
s = s + f1(r) + f2(r)
end 
return s
end 


f1(r::Float64)::Float64 = r^3
f2(r::Float64)::Float64 = r^5


test(10, (f1,f2))
test(10, (f1,f1))
test2(10, f1,f2)


@time test(1_000_000, (f1,f2))# 0.079190 seconds (4.00 M allocations...
@time test2(1_000_000, f1, f2)# 0.002279 seconds (5 allocations: 176 
bytes)
@time test(1_000_000, (f1,f1))# 0.002664 seconds (5 allocations: 176 
bytes)





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

2016-07-31 Thread Sheehan Olver
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 

  unless (Base.sle_int)(n::Int64,0)::Bool goto 3

  return (Core.tuple)()::Tuple{}

  3: 

  unless (n::Int64 === 1)::Bool goto 6

  return (Core.tuple)($(QuoteNode(0)))::Tuple{Int64}

  6: 

  unless (n::Int64 === 2)::Bool goto 9

  return 
(Core.tuple)($(QuoteNode(0)),$(QuoteNode(0)))::Tuple{Int64,Int64}

  9: 

  unless (n::Int64 === 3)::Bool goto 12

  return 
(Core.tuple)($(QuoteNode(0)),$(QuoteNode(0)),$(QuoteNode(0)))::Tuple{Int64,Int64,Int64}

  12: 

  unless (n::Int64 === 4)::Bool goto 15

  return 
(Core.tuple)($(QuoteNode(0)),$(QuoteNode(0)),$(QuoteNode(0)),$(QuoteNode(0)))::Tuple{Int64,Int64,Int64,Int64}

  15: 

  unless (n::Int64 === 5)::Bool goto 18

  return 
(Core.tuple)($(QuoteNode(0)),$(QuoteNode(0)),$(QuoteNode(0)),$(QuoteNode(0)),$(QuoteNode(0)))::Tuple{Int64,Int64,Int64,Int64,Int64}

  18: 

  unless (Base.slt_int)(n::Int64,16)::Bool goto 21

  return (Core._apply)(Core.tuple,$(Expr(:invoke, LambdaInfo for 
ntuple(::##5#6, ::Int64), :(Base.ntuple), :(f), 
:((Base.box)(Int64,(Base.sub_int)(n,5),(Core.tuple)($(QuoteNode(0)),$(QuoteNode(0)),$(QuoteNode(0)),$(QuoteNode(0)),$(QuoteNode(0)))::Tuple{Int64,Int64,Int64,Int64,Int64})
*::Tuple{Vararg{Any,N}}*

  21: 

  return $(Expr(:invoke, LambdaInfo for _ntuple(::Function, ::Int64), 
:(Base._ntuple), :(f), :(n)))

  end*::Tuple*

On Monday, August 1, 2016 at 10:34:30 AM UTC+10, David P. Sanders wrote:
>
>
>
> El domingo, 31 de julio de 2016, 20:16:04 (UTC-4), Sheehan Olver escribió:
>>
>> I'm doing the following:
>>
>>
>> immutable FooIterator{d} end
>>
>> Base.start(::FooIterator{d}) = tuple(zeros(Int,d)...)::NTuple{d,Int}
>>
>
>
> You can use the `ntuple` function, which constructs a tuple from a 
> function:
>
> julia> ntuple( x -> 0, 3)
> (0,0,0)
>
> julia> typeof(ans)
> Tuple{Int64,Int64,Int64}
>  
>
>>
>>
>> But is there a more elegant way of getting the type inferred?  I suppose 
>> I can override low order d directly:
>>
>> Base.start(::FooIterator{2}) = (0,0)
>> Base.start(::FooIterator{3}) = (0,0,0)
>>
>

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

2016-07-31 Thread Daniel O'Malley
Tony, thanks for the quick response and all the work you put into julia. It 
would be great to have the package system working for Mac/Linux from behind 
a proxy without needing to rebuild anything. If you need someone to help 
test from behind a proxy, please let me know. I'd be happy to do it.

When you say "ssh remotes", do you mean something like 
addprocs(["machine1", "machine2"])? That does work for me, but I haven't 
tried addprocs'ing to a machine outside our network.

On Sunday, July 31, 2016 at 6:12:12 PM UTC-6, Tony Kelman wrote:
>
> I believe you need to build libgit2 against libcurl in order for proxies 
> to work on linux and mac. We do not currently have it set up in our build 
> system to do that in a self contained distributable way for binaries, but 
> it might not be too hard to write the necessary makefile to make it work.
>
> We were prioritizing getting ssh remotes to work again for the first rc. 
> Do ssh remotes work over proxies by any chance? I don't currently have 
> immediate access to an environment behind a proxy to test this, but we had 
> looked into setting one up that we could revisit.
>


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

2016-07-31 Thread David P. Sanders


El domingo, 31 de julio de 2016, 20:16:04 (UTC-4), Sheehan Olver escribió:
>
> I'm doing the following:
>
>
> immutable FooIterator{d} end
>
> Base.start(::FooIterator{d}) = tuple(zeros(Int,d)...)::NTuple{d,Int}
>


You can use the `ntuple` function, which constructs a tuple from a function:

julia> ntuple( x -> 0, 3)
(0,0,0)

julia> typeof(ans)
Tuple{Int64,Int64,Int64}
 

>
>
> But is there a more elegant way of getting the type inferred?  I suppose I 
> can override low order d directly:
>
> Base.start(::FooIterator{2}) = (0,0)
> Base.start(::FooIterator{3}) = (0,0,0)
>


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

2016-07-31 Thread Tony Kelman
Another thing you could try is just rebuilding libgit2 locally on your system 
(instead of all of julia), or maybe using the build from homebrew if they link 
against libcurl, and replacing the copy of libgit2 included in julia with your 
rebuilt version (either overwrite the dylib, or move the old one out of the way 
and use the right DYLD_LIBRARY_PATH setting to load a different one).

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

2016-07-31 Thread Sheehan Olver
I'm doing the following:


immutable FooIterator{d} end

Base.start(::FooIterator{d}) = tuple(zeros(Int,d)...)::NTuple{d,Int}


But is there a more elegant way of getting the type inferred?  I suppose I 
can override low order d directly:

Base.start(::FooIterator{2}) = (0,0)
Base.start(::FooIterator{3}) = (0,0,0)


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

2016-07-31 Thread Tony Kelman
I believe you need to build libgit2 against libcurl in order for proxies to 
work on linux and mac. We do not currently have it set up in our build system 
to do that in a self contained distributable way for binaries, but it might not 
be too hard to write the necessary makefile to make it work.

We were prioritizing getting ssh remotes to work again for the first rc. Do ssh 
remotes work over proxies by any chance? I don't currently have immediate 
access to an environment behind a proxy to test this, but we had looked into 
setting one up that we could revisit.

[julia-users] Re: Announcing 0.5.0-rc0 and binaries available

2016-07-31 Thread Tony Kelman
Package authors can also test against this on Travis with a

julia:
  - 0.5

bullet in your .travis.yml. Right now that means the latest release candidate, 
and it will mean the latest 0.5.x point release after 0.5.0 final is released. 
The "release" entry will change meaning so I recommend you use version numbers 
0.4, 0.5 etc if you intend to continue supporting Julia 0.4 in your package. If 
you do not intend to continue supporting Julia 0.4, be sure to update thr 
minimum julia version in your REQUIRE file!

You can also use 0.5-latest url's directly (e.g. for appveyor).

On Sunday, July 31, 2016 at 3:27:29 PM UTC-7, Viral Shah wrote:
> Hello everyone,
> 
> 
> You may have noticed 0.5.0-rc0 being tagged last week. The binaries are now 
> all ready and available for testing. This is a good point for package 
> developers to make their packages ready for 0.5, and for users to test their 
> codes on the new release.
> 
> https://s3.amazonaws.com/julialang/bin/linux/arm/0.5/julia-0.5.0-rc0-linux-arm.tar.gz
> https://s3.amazonaws.com/julialang/bin/linux/x64/0.5/julia-0.5.0-rc0-linux-x86_64.tar.gz
> https://s3.amazonaws.com/julialang/bin/linux/x86/0.5/julia-0.5.0-rc0-linux-i686.tar.gz
> https://s3.amazonaws.com/julialang/bin/osx/x64/0.5/julia-0.5.0-rc0-osx10.7+.dmg
> https://s3.amazonaws.com/julialang/bin/winnt/x64/0.5/julia-0.5.0-rc0-win64.exe
> https://s3.amazonaws.com/julialang/bin/winnt/x86/0.5/julia-0.5.0-rc0-win32.exe
> https://s3.amazonaws.com/julialang/bin/checksums/julia-0.5.0-rc0.sha256
> https://s3.amazonaws.com/julialang/bin/checksums/julia-0.5.0-rc0.md5
> 
> 
> 
> We expect to have a new rc roughly every week until all the dust settles and 
> 0.5.0 is finally released. Follow the progress at:
> 
> 
> https://github.com/JuliaLang/julia/issues/17418
> 
> 
> 
> -viral



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

2016-07-31 Thread Daniel O'Malley
I'm having trouble getting the package system initialized on 0.5-rc0. I am 
on a Mac and behind a proxy (with http_proxy and https_proxy set 
appropriately). When I do Pkg.init(), I get

julia> Pkg.init()
INFO: Initializing package repository /homedir/.julia/v0.5
INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl
ERROR: GitError(Code:ERROR, Class:OS, Failed to connect to github.com: 
Operation timed out)
 in macro expansion at ./libgit2/error.jl:98 [inlined]
 in clone(::String, ::String, ::Base.LibGit2.CloneOptions) at ./libgit2/
repository.jl:191
 in #clone#105(::String,
 ::Bool, ::Ptr{Void}, ::Nullable{Base.LibGit2.AbstractPayload}, 
::Function, ::String, ::String) at ./libgit2/libgit2.jl:308
 in (::Base.LibGit2.#kw##clone)(::Array{Any,1}, ::Base.LibGit2.#clone, 
::String, ::String) at ./:0
 in (::Base.Pkg.Dir.##4#6{String,String})() at ./pkg/dir.jl:49
 in cd(::Base.Pkg.Dir.##4#6{String,String}, ::String) at ./file.jl:59
 in init(::String, ::String) at ./pkg/dir.jl:47
 in init() at ./pkg/pkg.jl:70

Running

git clone https://github.com/JuliaLang/METADATA.jl

from the command line succeeds, and the package system works fine for me on 
julia 0.4. There has been some discussion of this issue for 0.5 
(https://github.com/JuliaLang/julia/issues/14167 and the issues referenced 
therein), but as far as I can tell the workaround is to modify some julia 
build settings and rebuild. Is there a workaround where the prebuilt 
binaries can be used?

Any help would be much appreciated.

Thanks,
Dan


[julia-users] Announcing 0.5.0-rc0 and binaries available

2016-07-31 Thread Viral Shah
Hello everyone,

You may have noticed 0.5.0-rc0 being tagged last week. The binaries are now 
all ready and available for testing. This is a good point for package 
developers to make their packages ready for 0.5, and for users to test 
their codes on the new release.

https://s3.amazonaws.com/julialang/bin/linux/arm/0.5/julia-0.5.0-rc0-linux-arm.tar.gz
https://s3.amazonaws.com/julialang/bin/linux/x64/0.5/julia-0.5.0-rc0-linux-x86_64.tar.gz
https://s3.amazonaws.com/julialang/bin/linux/x86/0.5/julia-0.5.0-rc0-linux-i686.tar.gz
https://s3.amazonaws.com/julialang/bin/osx/x64/0.5/julia-0.5.0-rc0-osx10.7+.dmg
https://s3.amazonaws.com/julialang/bin/winnt/x64/0.5/julia-0.5.0-rc0-win64.exe
https://s3.amazonaws.com/julialang/bin/winnt/x86/0.5/julia-0.5.0-rc0-win32.exe
https://s3.amazonaws.com/julialang/bin/checksums/julia-0.5.0-rc0.sha256
https://s3.amazonaws.com/julialang/bin/checksums/julia-0.5.0-rc0.md5

We expect to have a new rc roughly every week until all the dust settles 
and 0.5.0 is finally released. Follow the progress at:

https://github.com/JuliaLang/julia/issues/17418

-viral



[julia-users] web scraping with Julia

2016-07-31 Thread Ivan Pandžić
Hey, guys, I have already searched a lot online, but can't seem to get 
anything working. I have tried LibCURL.jl, Requests.jl and HTTPClient.jl. 
Basically, what I need is something that allows me to get the contents of a 
website. What's the best way?

Thanks!

Ivan


[julia-users] Goto code

2016-07-31 Thread Daniel Høegh
Hi the goto needs to be defined within a function. The following works as 
intended

julia> function test()
h=-1

   @label p

   h+=1

   if h<3
   @goto p
   end

   println("Done")
   end
test (generic function with 1 method)

julia> test()
Done

Re: [julia-users] Re: How do I use @deprecate and depwarn ?

2016-07-31 Thread Daniel Carrera
Oh... is that what I was supposed to do? I honestly didn't know.

On 31 July 2016 at 18:02, Kristoffer Carlsson  wrote:

> Why didn't you delete the code for the deprecated function?
>
> On Sunday, July 31, 2016 at 2:31:56 AM UTC+2, Daniel Carrera wrote:
>>
>> Hello,
>>
>> I am trying to make a PR for JuliaStats and I have trouble figuring out
>> how to properly deprecate an old function. Apparently the @deprecate macro
>> redirects calls to the deprecated function into a new function. Ok, so I
>> can write an equivalent call using a new function. The problem is that now
>> the package fails the "Coverage" test. If all the calls to the old function
>> are redirected to some other function, the "coverage" of the package has
>> dropped... So I guess I'm still not doing the deprecation correctly. For
>> reference, this is the PR:
>>
>> https://github.com/JuliaStats/StatsBase.jl/pull/201
>>
>> I hope someone can help me figure out how to fix this and get the PR
>> passing all the tests.
>>
>> Cheers,
>> Daniel.
>>
>


[julia-users] Goto code

2016-07-31 Thread Alexei Serdiuk
Hi!

Please help me!

I try to implement the following code:
h=-1

@label p

h+=1

if h<3
@goto p
end

println("Done")

And get the following error:
ERROR: LoadError: syntax: label "p" referenced but not defined

Thanks!!!


[julia-users] Select * for update using dictionary

2016-07-31 Thread Uriel Carrasquilla
I have a dictionary from which I read a value based on a key, do some 
processing, and then update.  Now I need to parallel multiple processes that 
will need to update the dictionary.  How can I lock or serialize the updates?  
Something similar to MySQL select for update ... Update sequence.

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

2016-07-31 Thread hustf
It is nice to have a little check on speed from time to time. I still use 
VBA for easy cooperation with less programming savvy colleguaes.

Julia 1.17s.
VBA (excel alt + f11):12 s.

This is a bit unfair to neolithic man Joel Spolsky since no optimization 
was performed:

Sub benchmark()
nsamples = 100
Dim y() As Double
ReDim y(1 To nsamples)
x = y
For i = 1 To nsamples
x(i) = (i - 1) * 5 / (nsamples - 1)
Next
Debug.Print ("\nBrutal-force loops, 100 times:")
sngtime = Timer
For m = 1 To 100
For n = 1 To nsamples
y(n) = Cos(2 * x(n) + 5)
Next
Next
Debug.Print Timer - sngtime
End Sub



Re: [julia-users] Re: [ANN] Nemo 0.5 released

2016-07-31 Thread 'Bill Hart' via julia-users
Alternatively, you can remove the lines in Nemo/deps/build.jl that invoke
git. They aren't actually needed to run Nemo. They just download the source
code for the various modules, which are prebuilt anyway on Windows.

But I can't guarantee it'll work. We haven't worked on supporting rc0 yet.

Bill.

On 31 July 2016 at 18:32, Bill Hart  wrote:

> It's because git has been removed on Windows in rc0. We don't support it
> yet. You should be ok if you use Julia 0.4.6.
>
> Bill.
>
> On 31 July 2016 at 17:57, Chris Rackauckas  wrote:
>
>> Hey,
>>   I am really interested in trying Nemo since I want to use the ArbFloats
>> and ArbReals in DifferentialEquations.jl for "faster BigFloats". However, I
>> am getting the following error when trying to build Nemo:
>>
>> julia> Pkg.build("Nemo")
>> INFO: Building Nemo
>> WARNING: `@windows` is deprecated, use `@static is_windows()` instead
>>  in depwarn(::String, ::Symbol) at .\deprecated.jl:64
>>  in @windows(::Any, ::Any) at .\deprecated.jl:473
>>  in include_from_node1(::String) at .\loading.jl:426
>>  in evalfile(::String, ::Array{String,1}) at .\loading.jl:442 (repeats 2
>> times)
>>  in cd(::##2#4, ::String) at .\file.jl:48
>>  in (::##1#3)(::IOStream) at .\none:13
>>  in open(::##1#3, ::String, ::String) at .\iostream.jl:113
>>  in eval(::Module, ::Any) at .\boot.jl:234
>>  in process_options(::Base.JLOptions) at .\client.jl:239
>>  in _start() at .\client.jl:318
>> while loading C:\Users\Chris\.julia\v0.5\Nemo\deps\build.jl, in
>> expression starting on line 1
>>   % Total% Received % Xferd  Average Speed   TimeTime Time
>>  Current
>>  Dload  Upload   Total   SpentLeft
>>  Speed
>> 100 85504  100 855040 0   668k  0 --:--:-- --:--:-- --:--:--
>>  668k
>>   % Total% Received % Xferd  Average Speed   TimeTime Time
>>  Current
>>  Dload  Upload   Total   SpentLeft
>>  Speed
>> 100  672k  100  672k0 0  2690k  0 --:--:-- --:--:-- --:--:--
>> 2690k
>>   % Total% Received % Xferd  Average Speed   TimeTime Time
>>  Current
>>  Dload  Upload   Total   SpentLeft
>>  Speed
>> 100  450k  100  450k0 0  1925k  0 --:--:-- --:--:-- --:--:--
>> 1925k
>> [ ERROR: Nemo
>> ]=
>>
>> LoadError: chdir C:\Users\Chris\.julia\v0.5\Nemo\deps/antic: no such file
>> or directory (ENOENT)
>> while loading C:\Users\Chris\.julia\v0.5\Nemo\deps\build.jl, in
>> expression starting on line 121
>>
>>
>> 
>>
>> [ BUILD ERRORS
>> ]
>>
>> WARNING: Nemo had build errors.
>>
>>  - packages with build errors remain installed in
>> C:\Users\Chris\.julia\v0.5
>>  - build the package(s) and all dependencies with `Pkg.build("Nemo")`
>>  - build a single package by running its `deps/build.jl` script
>>
>>
>> 
>>
>> This is on v0.5-rc0 with Windows 10.
>>
>> On Saturday, July 30, 2016 at 6:33:17 PM UTC-7, Marcus Appelros wrote:
>>>
>>> The use case is similar to AlphaGo, ie deterministic full information
>>> game with a huge state space.
>>>
>>> That reinforcement package looks interesting, looking into it. Love to
>>> collaborate
>>>
>>
>


Re: [julia-users] Re: [ANN] Nemo 0.5 released

2016-07-31 Thread 'Bill Hart' via julia-users
It's because git has been removed on Windows in rc0. We don't support it
yet. You should be ok if you use Julia 0.4.6.

Bill.

On 31 July 2016 at 17:57, Chris Rackauckas  wrote:

> Hey,
>   I am really interested in trying Nemo since I want to use the ArbFloats
> and ArbReals in DifferentialEquations.jl for "faster BigFloats". However, I
> am getting the following error when trying to build Nemo:
>
> julia> Pkg.build("Nemo")
> INFO: Building Nemo
> WARNING: `@windows` is deprecated, use `@static is_windows()` instead
>  in depwarn(::String, ::Symbol) at .\deprecated.jl:64
>  in @windows(::Any, ::Any) at .\deprecated.jl:473
>  in include_from_node1(::String) at .\loading.jl:426
>  in evalfile(::String, ::Array{String,1}) at .\loading.jl:442 (repeats 2
> times)
>  in cd(::##2#4, ::String) at .\file.jl:48
>  in (::##1#3)(::IOStream) at .\none:13
>  in open(::##1#3, ::String, ::String) at .\iostream.jl:113
>  in eval(::Module, ::Any) at .\boot.jl:234
>  in process_options(::Base.JLOptions) at .\client.jl:239
>  in _start() at .\client.jl:318
> while loading C:\Users\Chris\.julia\v0.5\Nemo\deps\build.jl, in expression
> starting on line 1
>   % Total% Received % Xferd  Average Speed   TimeTime Time
>  Current
>  Dload  Upload   Total   SpentLeft
>  Speed
> 100 85504  100 855040 0   668k  0 --:--:-- --:--:-- --:--:--
>  668k
>   % Total% Received % Xferd  Average Speed   TimeTime Time
>  Current
>  Dload  Upload   Total   SpentLeft
>  Speed
> 100  672k  100  672k0 0  2690k  0 --:--:-- --:--:-- --:--:--
> 2690k
>   % Total% Received % Xferd  Average Speed   TimeTime Time
>  Current
>  Dload  Upload   Total   SpentLeft
>  Speed
> 100  450k  100  450k0 0  1925k  0 --:--:-- --:--:-- --:--:--
> 1925k
> [ ERROR: Nemo
> ]=
>
> LoadError: chdir C:\Users\Chris\.julia\v0.5\Nemo\deps/antic: no such file
> or directory (ENOENT)
> while loading C:\Users\Chris\.julia\v0.5\Nemo\deps\build.jl, in expression
> starting on line 121
>
>
> 
>
> [ BUILD ERRORS
> ]
>
> WARNING: Nemo had build errors.
>
>  - packages with build errors remain installed in
> C:\Users\Chris\.julia\v0.5
>  - build the package(s) and all dependencies with `Pkg.build("Nemo")`
>  - build a single package by running its `deps/build.jl` script
>
>
> 
>
> This is on v0.5-rc0 with Windows 10.
>
> On Saturday, July 30, 2016 at 6:33:17 PM UTC-7, Marcus Appelros wrote:
>>
>> The use case is similar to AlphaGo, ie deterministic full information
>> game with a huge state space.
>>
>> That reinforcement package looks interesting, looking into it. Love to
>> collaborate
>>
>


[julia-users] Re: How do I use @deprecate and depwarn ?

2016-07-31 Thread Kristoffer Carlsson
Why didn't you delete the code for the deprecated function?

On Sunday, July 31, 2016 at 2:31:56 AM UTC+2, Daniel Carrera wrote:
>
> Hello,
>
> I am trying to make a PR for JuliaStats and I have trouble figuring out 
> how to properly deprecate an old function. Apparently the @deprecate macro 
> redirects calls to the deprecated function into a new function. Ok, so I 
> can write an equivalent call using a new function. The problem is that now 
> the package fails the "Coverage" test. If all the calls to the old function 
> are redirected to some other function, the "coverage" of the package has 
> dropped... So I guess I'm still not doing the deprecation correctly. For 
> reference, this is the PR:
>
> https://github.com/JuliaStats/StatsBase.jl/pull/201
>
> I hope someone can help me figure out how to fix this and get the PR 
> passing all the tests.
>
> Cheers,
> Daniel.
>


[julia-users] Re: [ANN] Nemo 0.5 released

2016-07-31 Thread Chris Rackauckas
Hey,
  I am really interested in trying Nemo since I want to use the ArbFloats 
and ArbReals in DifferentialEquations.jl for "faster BigFloats". However, I 
am getting the following error when trying to build Nemo:

julia> Pkg.build("Nemo")
INFO: Building Nemo
WARNING: `@windows` is deprecated, use `@static is_windows()` instead
 in depwarn(::String, ::Symbol) at .\deprecated.jl:64
 in @windows(::Any, ::Any) at .\deprecated.jl:473
 in include_from_node1(::String) at .\loading.jl:426
 in evalfile(::String, ::Array{String,1}) at .\loading.jl:442 (repeats 2 
times)
 in cd(::##2#4, ::String) at .\file.jl:48
 in (::##1#3)(::IOStream) at .\none:13
 in open(::##1#3, ::String, ::String) at .\iostream.jl:113
 in eval(::Module, ::Any) at .\boot.jl:234
 in process_options(::Base.JLOptions) at .\client.jl:239
 in _start() at .\client.jl:318
while loading C:\Users\Chris\.julia\v0.5\Nemo\deps\build.jl, in expression 
starting on line 1
  % Total% Received % Xferd  Average Speed   TimeTime Time 
 Current
 Dload  Upload   Total   SpentLeft 
 Speed
100 85504  100 855040 0   668k  0 --:--:-- --:--:-- --:--:-- 
 668k
  % Total% Received % Xferd  Average Speed   TimeTime Time 
 Current
 Dload  Upload   Total   SpentLeft 
 Speed
100  672k  100  672k0 0  2690k  0 --:--:-- --:--:-- --:--:-- 
2690k
  % Total% Received % Xferd  Average Speed   TimeTime Time 
 Current
 Dload  Upload   Total   SpentLeft 
 Speed
100  450k  100  450k0 0  1925k  0 --:--:-- --:--:-- --:--:-- 
1925k
[ ERROR: Nemo 
]=

LoadError: chdir C:\Users\Chris\.julia\v0.5\Nemo\deps/antic: no such file 
or directory (ENOENT)
while loading C:\Users\Chris\.julia\v0.5\Nemo\deps\build.jl, in expression 
starting on line 121



[ BUILD ERRORS 
]

WARNING: Nemo had build errors.

 - packages with build errors remain installed in C:\Users\Chris\.julia\v0.5
 - build the package(s) and all dependencies with `Pkg.build("Nemo")`
 - build a single package by running its `deps/build.jl` script



This is on v0.5-rc0 with Windows 10.

On Saturday, July 30, 2016 at 6:33:17 PM UTC-7, Marcus Appelros wrote:
>
> The use case is similar to AlphaGo, ie deterministic full information game 
> with a huge state space.
>
> That reinforcement package looks interesting, looking into it. Love to 
> collaborate
>