Re: [julia-users] Advice on (perhaps) chunking to HDF5

2016-09-13 Thread Ralph Smith
I have better luck with inds = fill(:,3) By the way, if anyone appropriate is watching, can we have a sticky post about how to format Julia code here? And is the comprehension form of a one-line "for" loop considered good style? I don't see it in the manual anywhere. On Tuesday, September

[julia-users] Re: julialang home page screenshot's notebook source

2016-09-13 Thread Steven G. Johnson
On Tuesday, September 13, 2016 at 6:48:11 PM UTC-4, Ken Massey wrote: > > Sorry for the crazy question ... > > On the julialang.org homepage, you'll find: > "Here is a screenshot of a web-based interactive IJulia Notebook > session, using Gadfly >

[julia-users] Re: IJulia documenation example produces ReferenceError: guide_background_mouseover is not defined

2016-09-13 Thread Steven G. Johnson
On Tuesday, September 13, 2016 at 8:14:11 PM UTC-4, Ken Massey wrote: > > Do you happen to remember which documentation you were looking at for that > example ? I see that code screenshoted on the julialang.org homepage, > but can't find the original notebook anywhere. > This is a pretty

[julia-users] Re: Priority queue - peek versus dequeue!

2016-09-13 Thread David P. Sanders
El martes, 13 de septiembre de 2016, 17:16:19 (UTC-4), Júlio Hoffimann escribió: > > Hi, > > Could you explain why "peek" returns the pair (key,value) whereas > "dequeue!" only returns the key? > > using Base.Collections > pq = PriorityQueue() > enqueue!(pq, key, value) > key, value =

Re: [julia-users] Advice on (perhaps) chunking to HDF5

2016-09-13 Thread Anandaroop Ray
Cool! The colons approach makes sense to me, followed by splatting. I'm unfamiliar with the syntax here but when I try to create a tuple in the REPL using inds = ((:) for i in 1:3) I get ERROR: syntax: missing separator in tuple On 13 September 2016 at 17:27, Erik Schnetter

[julia-users] Julia for Data Science book (Technics Publications)

2016-09-13 Thread Zacharias Voulgaris
Hi everyone, I’m fairly new in this group but I’ve been an avid Julia user since Ver. 0.2. About a year ago I decided to take the next step and start using Julia professionally, namely for data science projects (even if at that time I was a PM in Microsoft). Shortly afterwards, I started

[julia-users] Re: IJulia documenation example produces ReferenceError: guide_background_mouseover is not defined

2016-09-13 Thread Ken Massey
Do you happen to remember which documentation you were looking at for that example ? I see that code screenshoted on the julialang.org homepage, but can't find the original notebook anywhere. On Thursday, April 3, 2014 at 3:29:48 PM UTC-4, vfclists wrote: > > I am trying the documentation

[julia-users] julialang home page screenshot's notebook source

2016-09-13 Thread Ken Massey
Sorry for the crazy question ... On the julialang.org homepage, you'll find: "Here is a screenshot of a web-based interactive IJulia Notebook session, using Gadfly ." It seems like I had once actually visited the

[julia-users] Re: Vector Field operators (gradient, divergence, curl) in Julia

2016-09-13 Thread Steven G. Johnson
Both ForwardDiff and ReverseDiff source solve a different problem (taking the derivative of a user-supplied function f(x)). The Matlab and NumPy gradient functions, instead, take an array (not a function) and compute differences of adjacent elements of the array, returning a new array.

[julia-users] Re: show in 0.5

2016-09-13 Thread Steven G. Johnson
On Tuesday, September 13, 2016 at 5:00:48 PM UTC-4, Sheehan Olver wrote: > > I'm confused by the following in 0.5. In 0.4 I would override > Base.show(::IO,::MyType) to create the default output. What should be done > in 0.5? > The REPL calls show(io, MIME("text/plain"), x) [formerly

Re: [julia-users] Advice on (perhaps) chunking to HDF5

2016-09-13 Thread Erik Schnetter
If you have a varying rank, then you should probably use something like `CartesianIndex` and `CartesianRange` to represent the indices, or possible tuples of integers. You would then use the splatting operator to create the indexing instructions: ```Julia indrange = CartesianRange(xyz)

[julia-users] Re: Help on building Julia with Intel MKL on Windows?

2016-09-13 Thread Zhong Pan
The "Can't open perl script "scripts/config.pl": No such file or directory" error has been solved. See: https://github.com/ARMmbed/mbedtls/issues/541 What I did was to open the CMakeList.txt file under "C:\Users\zpan\Documents\GitHub\julia\deps\srccache\mbedtls-2.3.0-gpl", and replaced

[julia-users] Priority queue - peek versus dequeue!

2016-09-13 Thread Júlio Hoffimann
Hi, Could you explain why "peek" returns the pair (key,value) whereas "dequeue!" only returns the key? using Base.Collections pq = PriorityQueue() enqueue!(pq, key, value) key, value = Collections.peek(pq) key = dequeue!(pq) I wanted to have a single line in which I retrieve both (key,value)

Re: [julia-users] Advice on (perhaps) chunking to HDF5

2016-09-13 Thread Anandaroop Ray
Many thanks for your comprehensive recommendations. I think HDF5 views are probably what I need to go with - will read up more and then ask. What I mean about dimension is rank, really. The shape is always the same for all samples. One slice for storage, i.e., one sample, could be chunked as

[julia-users] show in 0.5

2016-09-13 Thread Sheehan Olver
I'm confused by the following in 0.5. In 0.4 I would override Base.show(::IO,::MyType) to create the default output. What should be done in 0.5? *julia> **rand(5,5)* *5x5 Array{Float64,2}:* * 0.448531 0.570789 0.6983990.718604 0.118253* * 0.0953516 0.856834 0.0730664

[julia-users] Re: Help on building Julia with Intel MKL on Windows?

2016-09-13 Thread Zhong Pan
Tony, Thanks for your reply. I did solve the CMAKE_C_COMPILER issue - see my previous post (just 1 min after yours). However, it's not by appending to $PATH though - I had tried adding the gcc path to $PATH and the same error still showed up. Thanks for the hint about adding "lib" prefix. I

[julia-users] Re: Help on building Julia with Intel MKL on Windows?

2016-09-13 Thread Zhong Pan
Tony, Thanks for your reply. I did solve the CMAKE_C_COMPILER issue - see my previous post (just 1 min after yours). However, it's not by appending to $PATH though - I had tried adding the gcc path to $PATH and the same error still showed up. Thanks for the hint about adding "lib" prefix. I

[julia-users] Re: Help on building Julia with Intel MKL on Windows?

2016-09-13 Thread Zhong Pan
I realize I may be documenting a bunch of build issues that more experienced programmer may overcome more easily. Anyway since I started, please bear with me. :-) So I solved the problem of incorrect CMAKE_C_COMPILER. What I did was I found the make file that was causing Error 1:

[julia-users] Re: Help on building Julia with Intel MKL on Windows?

2016-09-13 Thread Tony Kelman
maybe better to just temporarily add gcc's location to your working path for the duration of the make (don't leave it there longer though). I think that linker error is from arpack. Try making a copy of mkl_rt.dll called libmkl_rt.dll and see if that helps. libtool isn't able to link against

[julia-users] Re: Pkg.add() works fine while Pkg.update() doesn't over https instead of git

2016-09-13 Thread Tony Kelman
Better to use a different branch name, not metadata-v2

[julia-users] Re: Vector Field operators (gradient, divergence, curl) in Julia

2016-09-13 Thread Christoph Ortner
Fast to implement, only moderately fast for execution; I switch to ReverseDiffSource

[julia-users] Re: Help on building Julia with Intel MKL on Windows?

2016-09-13 Thread Zhong Pan
OK my non-parallel build bumped into a different problem. It seems the CMAKE_C_COMPILER PATH was not understood. I am not sure what is the correct one, so I tried a few variations: C:/users/zpan/documents/github/julia/usr/x86_64-w64-mingw32/sys-root/mingw/bin/gcc.exe

Re: [julia-users] Re: Julia Users and First Customers

2016-09-13 Thread Chris Rackauckas
Thanks for weighing in. I'll stick to your lingo: solid and usable, but not with a guarantee of long term support until v1.0. That's what I've been meaning by alpha (I mean I use Julia everyday because it's solid and usable), but I won't continue to use that term because it seems to carry a

Re: [julia-users] debugging tips for GC?

2016-09-13 Thread Yichao Yu
On Tue, Sep 13, 2016 at 4:11 PM, Yichao Yu wrote: > I'm able to reproduce it in rr and found the issue. > > TL;DR the issue is at https://github.com/JuliaGraphics/Cairo.jl/blame/ > master/src/Cairo.jl#L625, where it passes the ownership of a cairo > pointer to julia, causing a

Re: [julia-users] debugging tips for GC?

2016-09-13 Thread Yichao Yu
I'm able to reproduce it in rr and found the issue. TL;DR the issue is at https://github.com/JuliaGraphics/Cairo.jl/blame/master/src/Cairo.jl#L625, where it passes the ownership of a cairo pointer to julia, causing a double free. Here's the rough process of my debugging, I'm not really sure how

Re: [julia-users] Re: Julia Users and First Customers

2016-09-13 Thread Stefan Karpinski
+1 to everything David said. And yes, we should put out an official statement on this subject. Julia has absolutely been released on four and very nearly five occasions: 0.1, 0.2, 0.3, 0.4 and any day now, 0.5. These are not alpha releases, nor are they unstable. They are very solid and usable.

Re: [julia-users] Advice on (perhaps) chunking to HDF5

2016-09-13 Thread Erik Schnetter
On Tue, Sep 13, 2016 at 11:27 AM, sparrowhawker wrote: > Hi, > > I'm new to Julia, and have been able to accomplish a lot of what I used to > do in Matlab/Fortran, in very little time since I started using Julia in > the last three months. Here's my newest stumbling

[julia-users] Re: Help on building Julia with Intel MKL on Windows?

2016-09-13 Thread Zhong Pan
Thank you Tony for the information. I still had some problem. I tried building Julia (release-0.5) using MinGW following the instructions here: https://github.com/JuliaLang/julia/blob/master/README.windows.md The only difference is, after creating the Make.user file, I edited it using a text

Re: [julia-users] Julia Users and First Customers

2016-09-13 Thread Stefan Karpinski
On Tue, Sep 13, 2016 at 10:21 AM, Adeel Malik wrote: > I would Like to ask few questions about Julia that I could not find it on > the internet. > > 1) Who were the very first few users of Julia ? > Julia was developed by Jeff Bezanson, Viral Shah and myself, funded

Re: [julia-users] debugging tips for GC?

2016-09-13 Thread Yichao Yu
On Tue, Sep 13, 2016 at 3:31 PM, Andreas Lobinger wrote: > Hello colleague, > > On Tuesday, September 13, 2016 at 7:25:38 PM UTC+2, Yichao Yu wrote: >> >> >> On Tue, Sep 13, 2016 at 12:49 PM, Andreas Lobinger >> wrote: >> >>> Hello colleagues, >>> >>> i'm

Re: [julia-users] debugging tips for GC?

2016-09-13 Thread Andreas Lobinger
Hello colleague, On Tuesday, September 13, 2016 at 7:25:38 PM UTC+2, Yichao Yu wrote: > > > On Tue, Sep 13, 2016 at 12:49 PM, Andreas Lobinger > wrote: > >> Hello colleagues, >> >> i'm trying to find out, why this >> ... >> > fails miserably. I guess, but cannot track it

[julia-users] Re: Advice on (perhaps) chunking to HDF5

2016-09-13 Thread sparrowhawker
I only found chunking information in the docs on HDF5, not JLD. Could you be more specific? Do you mean using custom serialization in JLD files? And will that get around my problem of the dimensions of the data to be chunked being of dimension specified only at runtime? On Tuesday, September

Re: [julia-users] hashing floating point zeroes

2016-09-13 Thread Stefan Karpinski
It has been discussed that hashing -0.0 and 0.0 the same, but this has an unfortunate interaction with sorting. See #9381 and #18485 , which I just opened. On Tue, Sep 13, 2016 at 10:41 AM, Steven G.

Re: [julia-users] Re: Re: 1st try julia, 2/3 speed of python/c++

2016-09-13 Thread Stefan Karpinski
Great. It seems like there's some low hanging fruit to speed it up even more :) On Tue, Sep 13, 2016 at 2:35 PM, Neal Becker wrote: > Stefan Karpinski wrote: > > > On Tue, Sep 13, 2016 at 1:23 PM, Neal Becker > > wrote: > > > >> > >> Thanks for the

[julia-users] Re: Re: 1st try julia, 2/3 speed of python/c++

2016-09-13 Thread Neal Becker
Stefan Karpinski wrote: > On Tue, Sep 13, 2016 at 1:23 PM, Neal Becker > wrote: > >> >> Thanks for the ideas. Here, though, the generated values need to be >> Uniform([0...2^N]), where N could be any number. For example [0...2^3]. >> So the output array itself would be

Re: [julia-users] Re: Julia Low Pass Filter much slower than identical code in Python ??

2016-09-13 Thread Stefan Karpinski
As an aside, most JIT runtimes actually don't compile code until after it has been run a few thousand times and seems hot – before that they interpret it. Julia is unusual in that it fully JIT compiles almost all code (except for some top-level expressions which are interpreted) before running it

Re: [julia-users] Re: 1st try julia, 2/3 speed of python/c++

2016-09-13 Thread Stefan Karpinski
On Tue, Sep 13, 2016 at 1:23 PM, Neal Becker wrote: > > Thanks for the ideas. Here, though, the generated values need to be > Uniform([0...2^N]), where N could be any number. For example [0...2^3]. > So the output array itself would be Array{Int64} for example, but the >

[julia-users] Re: 1st try julia, 2/3 speed of python/c++

2016-09-13 Thread Chris Rackauckas
A range is a type that essentially acts as an array, but really is only three numbers: start, end, and the step length. I.e. a=0:2^N would make a range where a[1]=0, a[i]==i-1, and a[end]=2^N. I haven't looked at the whole code, but if you're using rand([0...2^N]), then each time you do that

[julia-users] Re: 1st try julia, 2/3 speed of python/c++

2016-09-13 Thread Neal Becker
I'm not following you here. IIUC a range is a single scalar value? Are you suggesting I want an Array{range}? Chris Rackauckas wrote: > Do you need to use an array? That sounds better suited for a range. > > On Tuesday, September 13, 2016 at 10:24:15 AM UTC-7, Neal Becker wrote: >> >> Steven

[julia-users] Re: 1st try julia, 2/3 speed of python/c++

2016-09-13 Thread Chris Rackauckas
Do you need to use an array? That sounds better suited for a range. On Tuesday, September 13, 2016 at 10:24:15 AM UTC-7, Neal Becker wrote: > > Steven G. Johnson wrote: > > > > > > > > > On Monday, September 12, 2016 at 7:32:48 AM UTC-4, Neal Becker wrote: > >> > >> PnSeq.jl calls rand() to

[julia-users] electron framework / javascript / LLVM / Julia numerics?

2016-09-13 Thread Perrin Meyer
The github "electron" cross platform app framework looks pretty slick upon first inspection (chrome / v8 / node.js / javascript, llvm) However, last time I checked, the javascript numerical libraries i've looked at are alpha quality at best. Since julia is also LLVM based, would it be

Re: [julia-users] debugging tips for GC?

2016-09-13 Thread Yichao Yu
On Tue, Sep 13, 2016 at 12:49 PM, Andreas Lobinger wrote: > Hello colleagues, > > i'm trying to find out, why this > >_ >_ _ _(_)_ | A fresh approach to technical computing > (_) | (_) (_)| Documentation: http://docs.julialang.org >

[julia-users] Re: 1st try julia, 2/3 speed of python/c++

2016-09-13 Thread Neal Becker
Steven G. Johnson wrote: > > > > On Monday, September 12, 2016 at 7:32:48 AM UTC-4, Neal Becker wrote: >> >> PnSeq.jl calls rand() to get a Int64, caching the result and then >> providing >> N bits at a time to fill an Array. It's supposed to be a fast way to get >> an >> Array of small-width

Re: [julia-users] Re: Julia Users and First Customers

2016-09-13 Thread Chris Rackauckas
I agree that there are some qualifiers that have to go with it in order to get the connotation right, but the term "unstable but usable pre-release" is just a phrase for alpha. It's not misleading to characterize Julia as not having been released since the core dev group is calling v1.0 the

[julia-users] Advice on (perhaps) chunking to HDF5

2016-09-13 Thread sparrowhawker
Hi, I'm new to Julia, and have been able to accomplish a lot of what I used to do in Matlab/Fortran, in very little time since I started using Julia in the last three months. Here's my newest stumbling block. I have a process which creates nsamples within a loop. Each sample takes a long time

Re: [julia-users] Hard-to-debug deep inlining

2016-09-13 Thread Tim Wheeler
Yes, Julia 0.4 Great to hear that this is easier in 0.5! -Other Tim On Tuesday, September 13, 2016 at 9:49:38 AM UTC-7, Tim Holy wrote: > > Which version of julia? If you're not using 0.5, try it and you might be > pleased. > > You can also launch `julia --inline=no`, which occasionally still

Re: [julia-users] Hard-to-debug deep inlining

2016-09-13 Thread Tim Holy
Which version of julia? If you're not using 0.5, try it and you might be pleased. You can also launch `julia --inline=no`, which occasionally still remains useful. --Tim On Tuesday, September 13, 2016 8:55:58 AM CDT Tim Wheeler wrote: > Hi Julia Users, > > So I was looking at

[julia-users] debugging tips for GC?

2016-09-13 Thread Andreas Lobinger
Hello colleagues, i'm trying to find out, why this _ _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_)| Documentation: http://docs.julialang.org _ _ _| |_ __ _ | Type "?help" for help. | | | | | | |/ _` | | | | |_| | | | (_|

RE: [julia-users] Re: Julia Users and First Customers

2016-09-13 Thread David Anthoff
I find this characterization of julia as “not released” and “alpha” really not helpful. To the casual reader these terms signal low quality and lots of bugs, and in my experience (after 2.5 years of heavy use) those are the last two things that come to mind with respect to julia. On the

[julia-users] Re: 1st try julia, 2/3 speed of python/c++

2016-09-13 Thread Steven G. Johnson
On Monday, September 12, 2016 at 8:16:52 AM UTC-4, Steven G. Johnson wrote: > > > > On Monday, September 12, 2016 at 7:59:33 AM UTC-4, DNF wrote: >> >> function(p::pnseq)(n,T=Int64) >> >>> > Note that the real problem with this function declaration is that the type > T is known only at runtime,

[julia-users] Re: Pkg.add() works fine while Pkg.update() doesn't over https instead of git

2016-09-13 Thread Chris Rackauckas
You modified your METADATA. Did you make a package or something? The easiest thing to do would be to go to the v0.4/METADATA folder and use `git stash`. However, this will stash any of the changes you made. Did you make these changes for a reason, like you want to publish a new release for a

[julia-users] Re: Julia Users and First Customers

2016-09-13 Thread Chris Rackauckas
1. Jeff Bezanson and Stefan Karpinski. I kid (though that's true). It's the group of MIT students who made it. You can track the early issues and kind of see who's involved. Very early on that's probably a good

[julia-users] Re: 1st try julia, 2/3 speed of python/c++

2016-09-13 Thread Steven G. Johnson
On Monday, September 12, 2016 at 7:32:48 AM UTC-4, Neal Becker wrote: > > PnSeq.jl calls rand() to get a Int64, caching the result and then > providing > N bits at a time to fill an Array. It's supposed to be a fast way to get > an > Array of small-width random integers. > rand(T, n)

[julia-users] Hard-to-debug deep inlining

2016-09-13 Thread Tim Wheeler
Hi Julia Users, So I was looking at ConjugatePriors.jl and trying to resolve its problems with respect to the latest Distributions.jl. As discussed in issue 11 , testing ConjugatePriors after removing the REQUIRE bounds results in:

Re: [julia-users] Re: Tutorial Julia language brazilian portuguese

2016-09-13 Thread Phelipe Wesley
Criei o grupo no slack, para entrar é só acessar a url e um convite será enviado para o email. https://still-dawn-96640.herokuapp.com/ No dia 12 de setembro de 2016 às 18:59, escreveu: > olá felipe. É uma boa ideia. Se você criar eu compartilho com o pessoal da >

Re: [julia-users] How to make generic constructors with no arguments work?

2016-09-13 Thread Tom Breloff
julia> type A{T} item::Nullable{T} function A() new(Nullable{T}()) end end julia> A{Int}() A{Int64}(Nullable{Int64}()) You only need the name, and it uses the parameters from the type definition. On Tue, Sep 13, 2016 at 9:28 AM, SZubik

[julia-users] Re: Idea: Julia Standard Libraries and Distributions

2016-09-13 Thread Steven Sagaert
for me a distribution is more than just a gobbled together bunch of disparate packages: ideally it should have a common style and work with common datastructures for input/ouput (between methods) to exchange data. That's the real crux of the problem, not the fact that you need to manually

[julia-users] Julia Users and First Customers

2016-09-13 Thread Adeel Malik
I would Like to ask few questions about Julia that I could not find it on the internet. 1) Who were the very first few users of Julia ? 2) Who were the industrial customers of Julia when it was first released? Who are those industrial customers now? 3) How Julia found more users? 4) How

[julia-users] How to make generic constructors with no arguments work?

2016-09-13 Thread SZubik
Hi, For some reason I can't figure out the following, maybe someone encountered this before. For example I have the following type type A{T} item::Nullable{T} end and A{Int64}(2) returns A{Int64}(Nullable{2}) as expected. However I want to introduce a constructor with no parameters (so

[julia-users] Cannot add Instruments.jl

2016-09-13 Thread FelixFischer
Hello everybody! I hope someone here can help me. I'm a Julia-beginner and I have to connect several devices in the lab with Julia (Serial/GPIB). I searched for packages and found two: Instruments and SerialPorts. But while adding those, I just get errors. I tried to Pkg.build("Instruments") but

[julia-users] Pkg.add() works fine while Pkg.update() doesn't over https instead of git

2016-09-13 Thread Rahul Mourya
Hi, I'm using Julia-0.4.6. My machine is behind a firewall, thus configured git to use https: git config --global url."https://".insteadOf git://. Under this setting, I'm able to install packages using Pkg.add(), however, when I use Pkg.update(), I get following error: INFO: Updating

[julia-users] Re: Idea: Julia Standard Libraries and Distributions

2016-09-13 Thread Randy Zwitch
"Also, there's a good reason to ask "why fuss with distributions when anyone could just add the packages and add the import statements to their .juliarc?" (though its target audience is for people who don't know details like the .juliarc, but also want Julia to work seamlessly like MATLAB)." I

Re: [julia-users] hashing floating point zeroes

2016-09-13 Thread Steven G. Johnson
On Tuesday, September 13, 2016 at 10:07:49 AM UTC-4, Fengyang Wang wrote: > > This is an intuitive explanation, but the mathematics of IEEE floating > points seem to be designed so that 0.0 represents a "really small positive > number" and -0.0 represents "exact zero" or at least "an even

[julia-users] Re: Vector Field operators (gradient, divergence, curl) in Julia

2016-09-13 Thread Chris Rackauckas
For gradients, check out ForwardDiff. It'll give you really fast calculations. On Tuesday, September 13, 2016 at 4:29:59 AM UTC-7, MLicer wrote: > > Dear all, > > i am wondering if there exists Julia N-dimensional equivalents to Numpy > vector field operators like gradient, divergence and curl,

Re: [julia-users] code design question – best ideomatic way to define nested types?

2016-09-13 Thread Michael Krabbe Borregaard
"An hour", pfhh, I only wish I was that efficient. I really like it, also looking very much forward to reading the comments people will make on this. On Tue, Sep 13, 2016 at 4:16 PM, Tom Breloff wrote: > I stole an hour this morning and implemented this: https://github.com/ >

Re: [julia-users] code design question – best ideomatic way to define nested types?

2016-09-13 Thread Tom Breloff
I stole an hour this morning and implemented this: https://github.com/tbreloff/ConcreteAbstractions.jl It's pretty faithful to my earlier description, except that the macros names are `@base` and `@extend`. Comments/criticisms welcome! On Tue, Sep 13, 2016 at 9:57 AM, Michael Krabbe Borregaard

Re: [julia-users] Re: 1st try julia, 2/3 speed of python/c++

2016-09-13 Thread Páll Haraldsson
On Monday, September 12, 2016 at 7:01:05 PM UTC, Yichao Yu wrote: > > On Sep 12, 2016 2:52 PM, "Páll Haraldsson" > wrote: > > > > On Monday, September 12, 2016 at 11:32:48 AM UTC, Neal Becker wrote: > >> > >> Anyone care to make suggestions on this code, how to make it

Re: [julia-users] hashing floating point zeroes

2016-09-13 Thread Fengyang Wang
This is an intuitive explanation, but the mathematics of IEEE floating points seem to be designed so that 0.0 represents a "really small positive number" and -0.0 represents "exact zero" or at least "an even smaller really small negative number"; hence -0.0 + 0.0 = 0.0. I never understood this

[julia-users] Re: Idea: Julia Standard Libraries and Distributions

2016-09-13 Thread Páll Haraldsson
On Tuesday, September 13, 2016 at 8:39:15 AM UTC, Chris Rackauckas wrote: > > > This could be a terrible idea, I don't know. > I don't think so. In the download page there is already a choice of (two extra.. when JuliaBox is thought of as such) "distributions", if you will: "We provide

Re: [julia-users] code design question – best ideomatic way to define nested types?

2016-09-13 Thread Michael Krabbe Borregaard
First, apologies, I didn't mean that you wanted to 'subvert' ( http://www.merriam-webster.com/dictionary/subvert) julia. As a non-native speaker the finer nuances of English sometimes slip. The word I was looking for was perhaps 'sidestep'. Also I see your point that as long as the Abstract type

[julia-users] Re: Idea: Julia Standard Libraries and Distributions

2016-09-13 Thread mmh
What about sysimage for these pkgs out of base? On Tuesday, September 13, 2016 at 4:39:15 AM UTC-4, Chris Rackauckas wrote: > > I think one major point of contention when talking about what should be > included in Base due to competing factors: > > >1. Some people would like a "lean Base"

[julia-users] walkdir

2016-09-13 Thread adrian_lewis
Both the functions pwd() and walkdir() are defined in the filesystem package, but: julia> VERSION v"0.4.6" julia> pwd() "/Users/aidy" julia> walkdir(".") ERROR: UndefVarError: walkdir not defined Aidy

Re: [julia-users] Re: equivalent of numpy newaxis?

2016-09-13 Thread DNF
Oh, yeah. I forgot that .+, .-, etc are not along for the ride yet. I understand it is pretty much ready for inclusion in 0.6. There is also a one extra allocation, namely y.', which would not be necessary in a loop. But this is hardly worse than numpy, right? On Tuesday, September 13, 2016

[julia-users] Julia TCP server and connection

2016-09-13 Thread Karli Kund
Hi, I posted question in stackoverflow with no answers: http://stackoverflow.com/questions/39448808/julia-tcp-server-and-connection Maybe from here.

[julia-users] Re: equivalent of numpy newaxis?

2016-09-13 Thread Neal Becker
So you're saying that abs2.(x .- y.') will not allocate a 2d array and then pass to abs2? That's great! But how would I know that? DNF wrote: > For your particular example, it looks like what you want is (and I am just > guessing what mag_sqr means): > dist = abs2.(x .- y.') > The performance

Re: [julia-users] code design question – best ideomatic way to define nested types?

2016-09-13 Thread Tom Breloff
To be clear...I'm not trying to subvert anything! Just to make it easier and more natural to choose the best option. :) if it wasn't clear from my example, AbstractFoo would NOT be a concrete type, and couldn't be constructed. On Tuesday, September 13, 2016, Michael Borregaard

[julia-users] Re: Vector Field operators (gradient, divergence, curl) in Julia

2016-09-13 Thread Steven G. Johnson
See https://github.com/JuliaLang/julia/issues/16113

[julia-users] Vector Field operators (gradient, divergence, curl) in Julia

2016-09-13 Thread MLicer
Dear all, i am wondering if there exists Julia N-dimensional equivalents to Numpy vector field operators like gradient, divergence and curl, for example: np.gradient(x) Thanks so much, Cheers!

[julia-users] Re: Idea: Julia Standard Libraries and Distributions

2016-09-13 Thread Steven Sagaert
I' m in favor of this. In fact I asked for the same thing in https://groups.google.com/forum/#!topic/julia-users/3g8zXaXfQqk although in a more cryptic way :) BTW: java already has something like this: next to the 2 big standard distributions javaSE & javaEE (there's also a third specialized

[julia-users] Idea: Julia Standard Libraries and Distributions

2016-09-13 Thread Chris Rackauckas
I think one major point of contention when talking about what should be included in Base due to competing factors: 1. Some people would like a "lean Base" for things like embedded installs or other low memory applications 2. Some people want a MATLAB-like "bells and whistles"

Re: [julia-users] code design question – best ideomatic way to define nested types?

2016-09-13 Thread Michael Borregaard
Thanks for the enlightening discussion. The emerging consensus is to use example #2, but perhaps use macros to make the syntax easier to read and maintain. Alternatively, it looks like my idea with having a FoobarData object as a field would do the job (but would require

[julia-users] Re: Workflow question - reloading modules

2016-09-13 Thread Michael Borregaard
Maybe this is useful: https://github.com/JunoLab/atom-julia-client/blob/master/manual/workflow.md

[julia-users] Re: Slow Performance Compared to MATLAB

2016-09-13 Thread Michael Borregaard
That is a pretty massive script to ask people to look at for performance :-) Try profiling it and identify the most expensive code and post that, that will be much easier to give feedback on.

Re: [julia-users] Strange behavior of push! and pop! for an array of array elements

2016-09-13 Thread Tamas Papp
No need, you were not rude in any way. On Tue, Sep 13 2016, Michele Zaffalon wrote: > Apologies, I did not want to insult or be rude. Thank you again for the > clear explanation. > > On Tue, Sep 13, 2016 at 8:38 AM, Tamas Papp wrote: > >> Please don't put words in my mouth, I

Re: [julia-users] Re: Julia Low Pass Filter much slower than identical code in Python ??

2016-09-13 Thread Matjaz Licer
Makes sense, thanks :-) On 12 September 2016 at 17:17, Stefan Karpinski wrote: > JIT = Just In Time, i.e. the first time you use the code. > > On Mon, Sep 12, 2016 at 6:52 AM, MLicer wrote: > >> Indeed it does! I thought JIT compilation takes place

Re: [julia-users] Strange behavior of push! and pop! for an array of array elements

2016-09-13 Thread Michele Zaffalon
Apologies, I did not want to insult or be rude. Thank you again for the clear explanation. On Tue, Sep 13, 2016 at 8:38 AM, Tamas Papp wrote: > Please don't put words in my mouth, I did not say that. In general, I > find "use case" an elusive concept. I prefer simple building

Re: [julia-users] Strange behavior of push! and pop! for an array of array elements

2016-09-13 Thread Tamas Papp
Please don't put words in my mouth, I did not say that. In general, I find "use case" an elusive concept. I prefer simple building blocks with clear semantics that I can combine easily to solve problems. Also, whether something "makes sense" is also somewhat subjective and depends on your

Re: [julia-users] Strange behavior of push! and pop! for an array of array elements

2016-09-13 Thread Michele Zaffalon
Thank you for your explanation. In practice you are saying that consistency has led to this consequence even though there is no use case, and therefore it makes little sense? I am not trying to provoke, it is that I find it easier to internalize the concept, once I know the reason behind that