Re: [julia-users] When to use Symbol instead of ASCIIString on function arguments?

2015-08-30 Thread Diego Javier Zea
Thanks! I didn't know about enum types!

Re: [julia-users] Delayed output

2015-08-30 Thread René Donner
Thanks for the info. I filed an issue with IJulia about this: https://github.com/JuliaLang/IJulia.jl/issues/347 Am 29.08.2015 um 22:12 schrieb Christoph Ortner christophortn...@gmail.com: Many thanks for this: * On 0.3.11, it works fine for me * On Version 0.4.0-dev+6297 (2015-07-27

[julia-users] Re: Performance between R, Julia and Cpp

2015-08-30 Thread Scott Jones
When benchmarking Julia, you must always run things twice (if you have something to control the number of iterations, then the first time, just run 1 iteration, so that all of the code is JIT compiled, and the second time the actual amount you wish to benchmark). That is because Julia is

Re: [julia-users] Always display all deprecation warnings (0.4)?

2015-08-30 Thread cormullion
Thanks Tim, that's useful (no more restarting). All I need now are these hooks https://github.com/JuliaLang/julia/issues/6445 (https://github.com/JuliaLang/julia/issues/6445)!

[julia-users] Re: Performance between R, Julia and Cpp

2015-08-30 Thread Michael Wang
Hi Kristoffer, I tried using your fast.jl code, and found a very interesting result. On my machine, the first time I test the code, the time is 4.362875 seconds (4.67 M allocations: 229.209 MB, 1.59% gc time) And the second time is 0.340492 seconds (825.38 k allocations: 52.617 MB, 4.49% gc

Re: [julia-users] Missing Ref{T}

2015-08-30 Thread Yichao Yu
On Sun, Aug 30, 2015 at 2:01 PM, Marcio Sales marciole...@hotmail.com wrote: Hi, I'm using Julia 0.3.10 and trying to understand C bindings. I'm trying to use a OGR C function that changes the value of one of the parameters: OGRErr OSRExportToWkt ( OGRSpatialReferenceH *hSRS*, char **

Re: [julia-users] Missing Ref{T}

2015-08-30 Thread Marcio Sales
Thanks, it works perfectly. Just had to use Ptr{Uint8} in the place of Ptr{Cchar}. Can you tell if the Array still works in 0.4?

Re: [julia-users] Missing Ref{T}

2015-08-30 Thread Yichao Yu
On Sun, Aug 30, 2015 at 3:28 PM, Marcio Sales marciole...@hotmail.com wrote: Thanks, it works perfectly. Just had to use Ptr{Uint8} in the place of Ptr{Cchar}. Can you tell if the Array still works in 0.4? It should always work. It might be harder to optimize out the allocation compare to Ref

[julia-users] Missing Ref{T}

2015-08-30 Thread Marcio Sales
Hi, I'm using Julia 0.3.10 and trying to understand C bindings. I'm trying to use a OGR C function that changes the value of one of the parameters: OGRErr OSRExportToWkt ( OGRSpatialReferenceH *hSRS*, char ** *ppszReturn* ) *ppszReturn *receives the results from this function. What do I

[julia-users] Re: Clarifying Package Development

2015-08-30 Thread andrew cooke
hi, as far as i know, you have to create the repo on github. the docs are correct, if you read them very carefully, but it's all a bit misleading. in particular, when the docs say will set an appropriate origin URL for you they man that the URL is set locally. not that anything is create don

Re: [julia-users] IJulia install error

2015-08-30 Thread Marcio Sales
Thanks It didnt mention any compiling problems. Also I dont think it is a firewall problem as I work in a home PC with basic windows security. This is weird... Em sábado, 29 de agosto de 2015 11:58:24 UTC-3, lawrence dworsky escreveu: I probably should also mention that this is all Windows.

Re: [julia-users] Always display all deprecation warnings (0.4)?

2015-08-30 Thread Cedric St-Jean
FWIW, I assume that those already exist for IJulia and are used by the AutoReload package, so you might look there. On Sunday, August 30, 2015 at 6:40:54 AM UTC-4, cormu...@mac.com wrote: Thanks Tim, that's useful (no more restarting). All I need now are these hooks

[julia-users] Re: Clarifying Package Development

2015-08-30 Thread Patrick Kofod Mogensen
The reason why .../FinOption.git is missing, is because your repo on github is called .../FinOption.jl, so your remote it needs to be .../FinOption.jl.git On Sunday, August 30, 2015 at 3:16:16 PM UTC+2, Sven Duve wrote: Hello, I would like to contribute a package and get more involved. The

[julia-users] Re: Clarifying Package Development

2015-08-30 Thread Patrick Kofod Mogensen
The reason why .../FinOption.git is missing, is because your repo on github is called .../FinOption.jl, so your remote needs to be .../FinOption.jl.git On Sunday, August 30, 2015 at 3:16:16 PM UTC+2, Sven Duve wrote: Hello, I would like to contribute a package and get more involved. The

Re: [julia-users] When to use Symbol instead of ASCIIString on function arguments?

2015-08-30 Thread René Donner
There is no difference. identity is defined as identity(x) = x, and this gets inlined by the compiler. You can also check, for example, the output of @code_native f(1) and compare it with g. Am 30.08.2015 um 16:06 schrieb Diego Javier Zea diego...@gmail.com: Thanks! One more question,

Re: [julia-users] When to use Symbol instead of ASCIIString on function arguments?

2015-08-30 Thread Diego Javier Zea
Thank René!

[julia-users] Clarifying Package Development

2015-08-30 Thread Sven Duve
Hello, I would like to contribute a package and get more involved. The functions of the package are done and working locally, but surely need testing and improvement. I have created a package FinOption: *julia **Pkg.generate(FinOption, MIT)* *INFO: Initializing FinOption repo:

Re: [julia-users] When to use Symbol instead of ASCIIString on function arguments?

2015-08-30 Thread Diego Javier Zea
Thanks! One more question, what is the difference between this two definitions: julia f(x) = x f (generic function with 1 method) julia g(x) = identity(x) g (generic function with 1 method) julia f(10) 10 julia g(10) 10

[julia-users] Re: help with parallelization

2015-08-30 Thread Seth
OK, following up: I have a function that calculates Dijkstra shortest paths for a vector of source vertices and will return a DijkstraState object for each vertex. This function runs in 15 seconds over 500 vertices on one thread. I wrote a function to split the source vertices into N different

[julia-users] Including JavaScript libraries for Jupyter Notebook/IJulia

2015-08-30 Thread Randy Zwitch
Hi all - I have an open issue on the IJulia tracker, but I didn't want to leave the burden to just Matthias. If you can help me re-add Jupyter Notebook support back to the Vega.jl master branch, it would be greatly appreciated. The current version of Vega on METADATA works through the

[julia-users] Memoization, macros and weak dictionaries

2015-08-30 Thread Cedric St-Jean
I tend to use memoization heavily in my mostly-functional code. Memoize.jl is neat, but it doesn't use a WeakKeyDict. 1. Is there any specific reason for that? Won't that code just hog the objects forever? 2. In SBCL, weak dictionaries and weak references had terrible O(N²) performance (I