[julia-users] Performance of Kernel Inlining

2016-10-28 Thread Jared Crean
I'm working on an high dimensional finite difference code, and I got a strange performance result. I have a kernel function that computes the stencil at a given point, and an outer function, outer_func, that loops over the dimensions and calls the kernel function at every grid point. I created

Re: [julia-users] Re: so many plotting packages

2016-10-28 Thread Isaiah Norton
> > the julia community would benefit by collecting all these packages in one > place. > There are only 3 or 4 of those packages that should be recommended for general use. If someone wants to help users decide what package to use, write up a comparison page with examples. It could be linked from

[julia-users] Re: so many plotting packages

2016-10-28 Thread Ben Arthur
i wasn't looking for recommendations. am happily using gadfly. started out with pyplot three years ago. rather, i just think the julia community would benefit by collecting all these packages in one place. since tbreloff appears to want to keep an iron grip

[julia-users] Re: so many plotting packages

2016-10-28 Thread Chris Rackauckas
Just use Plots.jl. JuliaPlots and Plots.jl is essentially a metapackage/org which puts this all together into one convenient package. It works very well and should be recommended as the standard plotting package to almost everyone. On Friday, October 28, 2016 at 12:17:56 PM UTC-7, Ben Arthur

[julia-users] Re: ANN: ParallelAccelerator v0.2 for Julia 0.5 released.

2016-10-28 Thread Chris Rackauckas
1) Won't that have bad interactions with pre-compilation? Since macros apply at parse time, the package will stay in the "state" the it precompiles in: so if one precompiles the package and then adds ParallelAccelerator, wouldn't that not be used? And the other way around, if one removes

Re: [julia-users] Parsing complex numbers

2016-10-28 Thread Jérémy Béjanin
How easy would it be to make one assuming the standard julia notation 3+4im? On Friday, October 28, 2016 at 3:58:08 PM UTC-4, Yichao Yu wrote: > > On Fri, Oct 28, 2016 at 3:53 PM, Jérémy Béjanin > wrote: > > I've noticed that parsing a string representing a real number

[julia-users] Re: ANN: ParallelAccelerator v0.2 for Julia 0.5 released.

2016-10-28 Thread Todd Anderson
Looks like version 0.2.1 has been merged now. On Wednesday, October 26, 2016 at 5:13:38 PM UTC-7, Todd Anderson wrote: > > Okay, METADATA with ParallelAccelerator verison 0.2 has been merged so if > you do a standard Pkg.add() or update() you should get the latest version. > > For native

[julia-users] Re: package reproducibility

2016-10-28 Thread Robin Deits
For my own work, I'm using a simple tool that I wrote: https://github.com/rdeits/juliet which allows you to specify git URLs and commit SHAs inside your REQUIRE file. Internally, it just uses Julia's built-in Pkg module to do most of the work, but automates checking out the specified revision

Re: [julia-users] Parsing complex numbers

2016-10-28 Thread Yichao Yu
On Fri, Oct 28, 2016 at 3:53 PM, Jérémy Béjanin wrote: > I've noticed that parsing a string representing a real number yields a real > number, but parsing a string representing a complex number yields an > expression that must subsequently be evaluated. Is there a reason

[julia-users] Parsing complex numbers

2016-10-28 Thread Jérémy Béjanin
I've noticed that parsing a string representing a real number yields a real number, but parsing a string representing a complex number yields an expression that must subsequently be evaluated. Is there a reason for that behaviour? I'd like to avoid that behaviour considering I am reading

Re: [julia-users] so many plotting packages

2016-10-28 Thread Cameron McBride
There is some work on this. On your list is Plots.jl, which is a unifying package that is backend agnostic. Specifically, http://github.com/tbreloff/Plots.jl Also, see: https://github.com/JuliaPlots Some seriously great stuff in there (and I say that as a user that has been plotting in Julia for

[julia-users] so many plotting packages

2016-10-28 Thread Ben Arthur
would be nice to have an organization to contain all of these. as @StefanKarpinski pointed out (i forget where exactly), it would help to encourage developers to work together. it would also help new users of julia figure out which package they want to

Re: [julia-users] anonymous function

2016-10-28 Thread Stefan Karpinski
You can write function (x) # body # goes # here end On Fri, Oct 28, 2016 at 3:00 PM, Yichao Yu wrote: > On Fri, Oct 28, 2016 at 2:59 PM, digxx wrote: > > I didnt see it > > > > > f = function () > > end > > > > defines an anonymous

Re: [julia-users] anonymous function

2016-10-28 Thread Yichao Yu
On Fri, Oct 28, 2016 at 2:59 PM, digxx wrote: > I didnt see it > f = function () > end > > defines an anonymous function and assigns it to a variable f.

Re: [julia-users] anonymous function

2016-10-28 Thread digxx
I didnt see it

Re: [julia-users] anonymous function

2016-10-28 Thread digxx
sry u must have written when I was writing...

Re: [julia-users] Parameteric Function of Types

2016-10-28 Thread Isaiah Norton
On Fri, Oct 28, 2016 at 12:07 PM, Derek Gaston wrote: > I can't quite seem to get the right syntax for creating methods that are > keyed off of subtypes (as a parameter). > > Say I have: > > abstract foo > abstract bar <: foo > > I want to create a function that is like so: >

Re: [julia-users] Re: MersenneTwister, srand

2016-10-28 Thread Isaiah Norton
> > So what is the difference between srand and merseentwister? Per doc link, srand uses MT by default. and also how do I get my random numbers rand() for floats less than 1 by default, or specify a set to choose from: help?> rand search: rand randn rand! randn! randexp randperm randjump

Re: [julia-users] anonymous function

2016-10-28 Thread Yichao Yu
On Fri, Oct 28, 2016 at 2:30 PM, digxx wrote: > ok: > > f(x)=x^2 is not an anonymous function > however > f=x->x^2 is an anonymous function > > unfortunately my function is not just one line so I cant use f=x->x^2 and I > have to use something like > > function f(x) > > >

Re: [julia-users] anonymous function

2016-10-28 Thread digxx
ok: f(x)=x^2 is not an anonymous function however f=x->x^2 is an anonymous function unfortunately my function is not just one line so I cant use f=x->x^2 and I have to use something like function f(x) end this however is not anonymous... Is there something like that with function ... end

Re: [julia-users] anonymous function

2016-10-28 Thread Michele Zaffalon
Thank you for the clarification. On Fri, Oct 28, 2016 at 8:23 PM, Yichao Yu wrote: > On Fri, Oct 28, 2016 at 2:19 PM, Michele Zaffalon > wrote: > > I have read somewhere that your second approach is doing two things at > the > > same time:

Re: [julia-users] anonymous function

2016-10-28 Thread Yichao Yu
On Fri, Oct 28, 2016 at 2:19 PM, Michele Zaffalon wrote: > I have read somewhere that your second approach is doing two things at the > same time: defining an anonymous function and assigning the name f to it. No it's not. It defines a function named `f` f = function

Re: [julia-users] anonymous function

2016-10-28 Thread Michele Zaffalon
I have read somewhere that your second approach is doing two things at the same time: defining an anonymous function and assigning the name f to it. On Fri, Oct 28, 2016 at 8:12 PM, digxx wrote: > So an anonymous function I can write like this > > f=x->x^2 > > is it

Re: [julia-users] anonymous function

2016-10-28 Thread Yichao Yu
On Fri, Oct 28, 2016 at 2:12 PM, digxx wrote: > So an anonymous function I can write like this > > f=x->x^2 > > is it also possible to make an anonymous function out of this: > > function f(x) > > x^2 > > end No. What are you trying to do?

[julia-users] anonymous function

2016-10-28 Thread digxx
So an anonymous function I can write like this f=x->x^2 is it also possible to make an anonymous function out of this: function f(x) x^2 end

Re: [julia-users] Re: MersenneTwister, srand

2016-10-28 Thread digxx
Sorry but that doesn't answer my question. That's where I have the calling from but it does not explain the output and what it means...

Re: [julia-users] Re: VS code extension

2016-10-28 Thread Zac
Will do. On Friday, October 28, 2016 at 5:17:38 PM UTC, David Anthoff wrote: > > Yes, PRs to the main repo are welcome. It would be great if you could > write up a short issue describing how this code goes about things. There > are quite a number of strategies on how to achieve things in VS

Re: [julia-users] Re: Comprehension (generator) with statement IF and the number of true

2016-10-28 Thread Gregory Salvan
Yes I'm using 0.4. Thank you for these infos. 2016-10-27 21:29 GMT+02:00 Steven G. Johnson : > > > On Thursday, October 27, 2016 at 1:23:47 PM UTC-4, DNF wrote: >> >> All higher-order functions? I thought it was mainly anonymous functions. >> Either way, that's a seriously

[julia-users] Reducing complexity of OffsetArrays

2016-10-28 Thread Bob Portmann
TL;DR I think the type system should take care of converting between different types of arrays and thus free the user to code against the type of array they want (OneTo, ZeroTo, Offset, etc). Maybe I have a deep mis-understanding of how the new generalized offset arrays are suppose to work in

[julia-users] Parameteric Function of Types

2016-10-28 Thread Derek Gaston
I can't quite seem to get the right syntax for creating methods that are keyed off of subtypes (as a parameter). Say I have: abstract foo abstract bar <: foo I want to create a function that is like so: function doStuff(::Type{foo}) end in such a way that I can call it with "Type{bar}".

Re: [julia-users] Re: MersenneTwister, srand

2016-10-28 Thread Isaiah Norton
http://docs.julialang.org/en/latest/stdlib/numbers/?highlight=global_rng#random-numbers On Fri, Oct 28, 2016 at 1:23 PM, digxx wrote: > With number in my head I meant, that I expected to see random number > arrays of size 624 since as far as I know they are created >

RE: [julia-users] [ANN] DataStreams v0.1: Blog post + Package Release Notes

2016-10-28 Thread David Anthoff
Thanks, this is really super cool work! Let me also point out that Query.jl works great with DataStream sources and sinks. For example, let’s say you want to load some code from a SQLite database, apply some filtering and transformations and write the result out as a CSV file, you can do

[julia-users] Re: MersenneTwister, srand

2016-10-28 Thread digxx
With number in my head I meant, that I expected to see random number arrays of size 624 since as far as I know they are created simultaneously,right?

RE: [julia-users] Re: VS code extension

2016-10-28 Thread David Anthoff
Yes, PRs to the main repo are welcome. It would be great if you could write up a short issue describing how this code goes about things. There are quite a number of strategies on how to achieve things in VS code (language server protocol vs everything in typescript vs mixed language solutions)

[julia-users] MersenneTwister, srand

2016-10-28 Thread digxx
So what is the difference between srand and merseentwister? when I do: r=srand(0) I get the same as r=MersenneTwister(0) and also how do I get my random numbers what do the different fields mean? e.g. julia> r.(1) 1-element Array{UInt32,1}: 0x julia> r.(2)

Re: [julia-users] Re: Input a data from the console

2016-10-28 Thread Ismael Venegas Castelló
IMO the parametric method with multiple dispatch is more Julian.

[julia-users] Re: VS code extension

2016-10-28 Thread Zac
Ok then, https://github.com/ZacLN/julia-vscode . I'll look into trying to make a pull request on the main repo. On Friday, October 28, 2016 at 3:29:17 PM UTC, Tony Kelman wrote: > > The repo's MIT licensed, so unless this person changed the license of > their additions, yes. Best to

[julia-users] Re: VS code extension

2016-10-28 Thread Tony Kelman
The repo's MIT licensed, so unless this person changed the license of their additions, yes. Best to preserve git authorship attribution if you can. Pull requests to the JuliaEditorSupport repository are encouraged, I imagine. On Friday, October 28, 2016 at 3:31:56 AM UTC-7, Zac wrote: > > Hi,

[julia-users] Re: Pkg.add("IJulia") fails

2016-10-28 Thread bker
Thanks Joungmin, that worked. For the record, that file was located in d:\emacs\.julia\WinRPM\sources.list for some reason. On Friday, October 28, 2016 at 10:12:54 AM UTC-4, Joungmin Lee wrote: > > I had the same problem when installing in Windows 7. > > I don't know the exact reason, but the

[julia-users] Unit Testing: should I use Base.Test instead of FactCheck?

2016-10-28 Thread Florian Oswald
I know there are many testing packages out there. I have been using FactCheck, but have seen it's been relegated to the JuliaArchive. I take that as a sign it's a good moment to use something else. There is 1 thing I sorely miss from Base.Test coming from FactCheck, and that is the ability to

[julia-users] IJulia often in trouble

2016-10-28 Thread Joungmin Lee
After upgrading to v0.5, IJulia don't response during executing codes VERY often. When using Python in Jupyter or using Julia v0.4, such a problem doesn't occur. Trying to reproduce the problem, I found that there's something in autocomplete; when I tapped quickly several times before

[julia-users] Re: Pkg.add("IJulia") fails

2016-10-28 Thread Joungmin Lee
I had the same problem when installing in Windows 7. I don't know the exact reason, but the problem solved by changing url in C:\Users\\.julia\v0.5\WinRPM\source.list. Try again after deleting "https://cache.julialang.org /" in

[julia-users] jl_stat_ctime

2016-10-28 Thread Brandon Taylor
Right now in base jl_stat_ctime looks like this: JL_DLLEXPORT double jl_stat_ctime(char *statbuf) { uv_stat_t *s; s = (uv_stat_t*)statbuf; return (double)s->st_ctim.tv_sec + (double)s->st_ctim.tv_nsec * 1e-9; } And it's called with ccall(:jl_stat_ctime, Float64, (Ptr{UInt8},),

Re: [julia-users] Re: Sparse arrays in Julia

2016-10-28 Thread Júlio Hoffimann
Thank you Kristoffer, good to know about the package :) -Júlio

Re: [julia-users] CPU_CORES is deprecated

2016-10-28 Thread Yichao Yu
https://github.com/JuliaLang/julia/blob/master/NEWS.md#library-improvements-1 On Fri, Oct 28, 2016 at 8:27 AM, Yichao Yu wrote: > Sys.CPU_CORES > > On Fri, Oct 28, 2016 at 8:14 AM, Nils Gudat wrote: >> As the title says - getting a warning but the

Re: [julia-users] CPU_CORES is deprecated

2016-10-28 Thread Yichao Yu
Sys.CPU_CORES On Fri, Oct 28, 2016 at 8:14 AM, Nils Gudat wrote: > As the title says - getting a warning but the constant still exist. There's > none of the ususal "use ... instead" in the warning, what's the replacement > (if any) for this in 0.5?

[julia-users] CPU_CORES is deprecated

2016-10-28 Thread Nils Gudat
As the title says - getting a warning but the constant still exist. There's none of the ususal "use ... instead" in the warning, what's the replacement (if any) for this in 0.5?

[julia-users] Re: Sparse arrays in Julia

2016-10-28 Thread Kristoffer Carlsson
Take a look at https://github.com/JuliaComputing/IndexedTables.jl "This package provides a table data structure where some of the columns form a sorted index. This structure is equivalent to an N-dimensional sparse array, and follows the array API to the extent possible." On Friday, October

[julia-users] Re: package reproducibility

2016-10-28 Thread Steven G. Johnson
Since all Julia packages are managed via git, it would be easy to write a tool that collects all of the commits of the current packages into a list so that you can install the same commits on another system. I don't think there is an existing tool that automates this, though?

Re: [julia-users] Re: Nemo AcbField error

2016-10-28 Thread 'Bill Hart' via julia-users
We'll consider changing it. It's mainly supposed to be for us developers so we can build the binaries, but if people want to actually use it, I guess we should maintain it a bit more carefully. Bill. On 28 October 2016 at 12:34, Jeffrey Sarnoff wrote: > Bill, >

Re: [julia-users] Re: Nemo AcbField error

2016-10-28 Thread Jeffrey Sarnoff
Bill, Consider distributing windows_build.txt ready to use with 64-bit machines and giving the changes to be made for 32-bit machines in comments. That reverses the current orientation, and fits more of the likely user base. I think that change gives you this: Note that windows_build.txt

[julia-users] Re: VS code extension

2016-10-28 Thread Zac
Hi, I'm using a fork of this that implements completions, function parameter hints, documentation hovers, linting and definitions. I pulled it from another fork that has subsequently disappeared (github.com/novatena). This Given that someone else did most of the work is it ok to share it

Re: [julia-users] Re: Nemo AcbField error

2016-10-28 Thread 'Bill Hart' via julia-users
64 bit Windows will run 32 bit Windows binaries, yes. Of course we recommend the 64 bit ones. On 28 October 2016 at 10:52, digxx wrote: > Yes but when I do not manually change i686 and ABI=32 to the x64 it is >> running the 32bit version, right? >> You mean windows 64

Re: [julia-users] Re: Nemo AcbField error

2016-10-28 Thread digxx
> > Yes but when I do not manually change i686 and ABI=32 to the x64 it is > running the 32bit version, right? > You mean windows 64 can still cope with 32bit stuff? > I mean changing in the windows_build.txt By Pkg.build("Nemo") I do not run any executable, right?

Re: [julia-users] Re: Nemo AcbField error

2016-10-28 Thread digxx
> > Both should work. If you use a 64 bit Julia executable it sould build the > 64 bit version. Otherwise it should build the 32 bit version. > > Bill. > Yes but when I do not manually change i686 and ABI=32 to the x64 it is running the 32bit version, right? You mean windows 64 can still

[julia-users] Re: package reproducibility

2016-10-28 Thread Tim Wheeler
Hi Kevin, You can use Pkg.pin("Stats",v"0.2.5"). -Tim On Friday, October 28, 2016 at 9:24:14 AM UTC+2, Kevin Kunzmann wrote: > > Hey, > > I was just wondering whether Julia has a checkpoint-like functionality (R > checkpoint-package >

[julia-users] package reproducibility

2016-10-28 Thread Kevin Kunzmann
Hey, I was just wondering whether Julia has a checkpoint-like functionality (R checkpoint-package ) for using a specific checkpoint of the package ecosystem. With quick development happening this would improve reproducibility

[julia-users] [ANN] DataStreams v0.1: Blog post + Package Release Notes

2016-10-28 Thread Jacob Quinn
Hey everyone, Just wanted to put out the announcement of the release of DataStreams v0.1. (it was actually tagged a few weeks ago, but I've been letting a few last things shake out before announcing). I've written up a blog post on the updates and release here: