[julia-users] Re: RasterIO.jl

2015-09-02 Thread Yeesian Ng
Hey Marcio, There is a JuliaGeo organization , and we'll be happy to have you help out! >From what I see, the data field of the Raster object loads the raster to memory, rather than keeping a reference to the values. This is up for debate

Re: [julia-users] pmap - version to return reduced result only

2015-09-02 Thread David van Leeuwen
Hi Greg, On Friday, August 28, 2015 at 6:40:33 AM UTC+2, Greg Plowman wrote: > > Firstly, I hope it's OK to revive this thread. > > @parallel doesn't do dynamic load balancing. > So I'm still interested in a pmap_reduce() or equivalent which does > dynamic allocation to workers AND reduces on the

[julia-users] Re: IDE for Julia

2015-09-02 Thread Jeffrey Sarnoff
not knowing Fedora, but on linuxmint -- the best guidance I can give you is the entire process that worked for me -- the details really matter more than they should. I have both python 2.7 and python 3.4 installed (I use python 3.4, sometimes other stuff wants python 2.7--this is one of those oc

[julia-users] FYI: PackageEvaluator/pkg.julialang.org badge URL change

2015-09-02 Thread Iain Dunning
Hi all, In an effort to prepare for a reality where Julia 0.3, 0.4, and 0.5-dev will all be in the wild simultaneously, I had to change the PackageEvaluator badge URL scheme. I also took the opportunity to change the badge design to be more informative about what its showing exactly. I've fixe

[julia-users] Re: JuliaCon 2015 videos

2015-09-02 Thread Iain Dunning
Here is the slide deck: http://iaindunning.com/talks/JuliaCon15JuliaOpt.pdf I'll hopefully get the video fixed by providing the slides and timestamps, I've been putting it off due to how tedious that'd be. On Wednesday, September 2, 2015 at 2:40:57 AM UTC-4, Michele Zaffalon wrote: > > Any update

[julia-users] Re: Tk (Cairo) Canvas not scrollable?

2015-09-02 Thread Andreas Lobinger
Hello colleague, On Tuesday, September 1, 2015 at 8:17:18 PM UTC+2, Dömötör Gulyás wrote: > > I'm trying to build a scrollable Cario canvas in a Tk GUI, but I keep > getting "TclError("unknown option -xscrollcommand")" trying to add the > scrollbars, apparently the canvas is a frame ("winfo clas

Re: [julia-users] Re: JuliaCon 2015 videos

2015-09-02 Thread Viral Shah
The video guys have agreed to splice it in if we provide the slides. I did release a few more videos yesterday. -viral On Wed, Sep 2, 2015 at 1:19 PM, Iain Dunning wrote: > Here is the slide deck: > http://iaindunning.com/talks/JuliaCon15JuliaOpt.pdf > I'll hopefully get the video fixed by pro

Re: [julia-users] Re: JuliaCon 2015 videos

2015-09-02 Thread Michele Zaffalon
Excellent, thank you. On Wed, Sep 2, 2015 at 9:49 AM, Iain Dunning wrote: > Here is the slide deck: > http://iaindunning.com/talks/JuliaCon15JuliaOpt.pdf > I'll hopefully get the video fixed by providing the slides and timestamps, > I've been putting it off due to how tedious that'd be. > > On W

[julia-users] Define functions in loop

2015-09-02 Thread Robert DJ
Hi, I have a situation where a number of functions differ so little that it would make sense to define them by a loop. I don't know if I am using the correct jargon, but here is a small example to illustrate: type test A::Int B::Int end function A(T::test) T.A end fun

[julia-users] Define functions in loop

2015-09-02 Thread Patrick Kofod Mogensen
I'm in a train right now, but yes. Look up metaprogramming in the docs, or look at the blog entry on refactoring code in Twitter.jl http://randyzwitch.com/julia-metaprogramming-refactoring

[julia-users] Re: Define functions in loop

2015-09-02 Thread Simon Danisch
this case is pretty simple: for letter in [:A,:B] @eval begin function $letter(T::test) T.$letter end end end @eval == eval(quote end) == eval( :( ) ) Am Mittwoch, 2. September 2015 11:16:53 UTC+2 schrieb Robert DJ: > > Hi, > > I have a situation

[julia-users] Re: Define functions in loop

2015-09-02 Thread Robert DJ
Wow! It *was* really simple! Thanks a lot -- also for the blog post. On Wednesday, September 2, 2015 at 11:56:13 AM UTC+2, Simon Danisch wrote: > > this case is pretty simple: > for letter in [:A,:B] > @eval begin > function $letter(T::test) > T.$letter > end

[julia-users] Re: [ANN] Conda.jl: using conda package manager for Julia

2015-09-02 Thread Uwe Fechner
Julia does have a very good internal package manager, that can also install binary dependencies cross-platform. Why would you want to add another package manager? Am Dienstag, 1. September 2015 14:42:31 UTC+2 schrieb Luthaf: > > Hi Julians! > > I am happy to present you the Conda.jl >

[julia-users] Re: RasterIO.jl

2015-09-02 Thread Marcio Sales
Hello Yeesian Thank you for your answer. Yes, I would be glad to join the organization. How do I do it? Also, feel free to include this in the mailing list, and lets continue this discussion there.

Re: [julia-users] FYI: PackageEvaluator/pkg.julialang.org badge URL change

2015-09-02 Thread Pontus Stenetorp
On 2 September 2015 at 08:46, Iain Dunning wrote: > > In an effort to prepare for a reality where Julia 0.3, 0.4, and 0.5-dev will > all be in the wild simultaneously, I had to change the PackageEvaluator > badge URL scheme. I also took the opportunity to change the badge design to > be more infor

Re: [julia-users] Re: Define functions in loop

2015-09-02 Thread Erik Schnetter
Instead of defining functions in a loop, you can write a function that defines a function, and call this for all letters: makefun(letter) = @eval function $letter(T::test) T.$letter end makefun(:A) makefun(:B) This makes it easier to pass additional arguments to makefun if necessary, e.g. if ther

[julia-users] How do you distribute your Julia projects?

2015-09-02 Thread Leff Ivanov
How do you distribute your Julia projects these days? Do you require your end users to install Julia on their machines? Do they have to pass through the stdlib compilation part (which takes around 2 seconds on my machine) each time they want to run your product? What options do I have if I want

[julia-users] [freshman]Is there any julia user group in China?

2015-09-02 Thread Roger Luo
If not,I would like to start one in my university first. I just found this amazing language recently.And as a physics student,I often need to do numerical calculation and simulation, but as a freshman to julia,I think I need to learn more about it so if there is any other people who has alread

Re: [julia-users] Julia's text mining capabilities

2015-09-02 Thread Venkat Ramakrishnan
Thanks Mauro. Unfortunately, the video doesn't mention any performance benchmarks that they considered as compared to other languages, before they selected Julia. Nor their website mentioned in the video. Anyone else have clues/pointers to information? Regards, Venkat. On Wednesday, 2 September

[julia-users] Re: Tk (Cairo) Canvas not scrollable?

2015-09-02 Thread Andreas Lobinger
Hello colleagues, i was actually a little bit surprised that this using Gtk w = Gtk.@GtkWindow("a1",400,300) c = Gtk.@GtkCanvas(2300,2800); w2 = Gtk.@GtkScrolledWindow(c); push!(w,w2) show(w) show(c) show(w2) using Cairo

[julia-users] Re: Julia Docker images

2015-09-02 Thread André Lage
Hi, Any news on official Julia Docker images? Any chance of being one of these listed at Docker Hub? https://hub.docker.com/search/?q=juliabox&page=1&isAutomated=0&isOfficial=0&starCount=0&pullCount=0 We are using Julia, Docker and we plan to use JuliaBox as Web interface to test our research

[julia-users] Attention users of HTTPClient

2015-09-02 Thread Jonathan Malmaud
We are considering deprecating HTTPClient (a wrapper around libcurl) in favor of Requests.jl (a mostly pure-Julia implementation of the HTTP client-side protocol). Requests has recently gained support for features that currently only HTTPClient had (redirects, cookies, full utf8 support, multi

Re: [julia-users] Julia's text mining capabilities

2015-09-02 Thread Jonathan Malmaud
It really depends on what you mean by 'text processing' - if the critical section of your code is essentially a loop that iterates over characters/words of large strings, then Julia could be between 1 and 2 orders of magnitude faster. If you mean the performance of core string-processing libra

Re: [julia-users] How do you distribute your Julia projects?

2015-09-02 Thread Christof Stocker
On 2015-09-02 13:51, Leff Ivanov wrote: Is it possible or is it even planned to be able to create native standalone executables from Julia scripts? By standalone I mean that executable file can be used fully by the end user without the need to install Julia. By native I mean that Julia code is

Re: [julia-users] Julia's text mining capabilities

2015-09-02 Thread Venkat Ramakrishnan
Dear Jonathan, That's great to hear that you are actively contributing to Julia's text processing capabilities. My use case has all of the text functions that you mentioned, so, thanks for the info. It looks like the nearest competitor is Python, and Julia's performance is see-sawing compared to

Re: [julia-users] How do you distribute your Julia projects?

2015-09-02 Thread Isaiah Norton
Search for "build_executable.jl" for the current recommendation (it requires the Julia runtime and LLVM, so not stand-alone). It is unlikely that the runtime or LLVM requirements will go away in the near term. On Wed, Sep 2, 2015 at 10:12 AM, Christof Stocker < stocker.chris...@gmail.com> wrote:

Re: [julia-users] How do you distribute your Julia projects?

2015-09-02 Thread Páll Haraldsson
I didn't check. Is this from the Wikipedia page then wrong (to you not get on package with the runtime and LLVM included?): In version 0.4,[24] a standalone "executable that do

Re: [julia-users] How do you distribute your Julia projects?

2015-09-02 Thread Isaiah Norton
The executable produced by that script still links against libjulia, libLLVM, etc. (possibly statically on some platforms, but they are still required). On Wed, Sep 2, 2015 at 10:41 AM, Páll Haraldsson wrote: > I didn't check. > > Is this from the Wikipedia page then wrong (to you not get on pac

[julia-users] Re: Type stability (or not) in core stats functions

2015-09-02 Thread Andreas Noack
I think you are right that we should simply remove the mean keyword argument from cov and cor. If users want the efficient versions with user provided means then they can use corm and covm. Right now they are not exported, but we could consider doing it, although I'm in doubt if it is really ne

Re: [julia-users] How do you distribute your Julia projects?

2015-09-02 Thread Páll Haraldsson
That could be ok. I know Julia implementation is huge now, that is, with all the standards libraries (that are optional, at least the GPL ones, and if you want to hack more). The core, needed parts, libjulia and libLLVM or whatever might, not be too big (by todays standards..). And you need th

Re: [julia-users] Re: MongoDB and Julia

2015-09-02 Thread Tim Lebel
Sorry didn't have time to check this out yesterday... Yes, I had to fix the pointer conversion in LibBSON as well to get insert working. Wish the package maintainers would push new tags! On Tue, Sep 1, 2015 at 5:00 PM, Ferenc Szalma wrote: > Alright. So I had to checkout LibBSON and build it sep

Re: [julia-users] Re: MongoDB and Julia

2015-09-02 Thread Kevin Liu
Hi Ferenc. Thanks for posting this. I won't be able to get back to you until later. Hope you get help from the community, which is great. Take care. > On Sep 1, 2015, at 13:14, Ferenc Szalma wrote: > > Kevin, > > I also managed to get Pzion's Mongo.jl to work in Julia v0.3. Now, I am > tryi

Re: [julia-users] Tk (Cairo) Canvas not scrollable?

2015-09-02 Thread Jameson Nash
The Canvas object is not a proper Tk object since Tk doesn't support Cairo-based rendering and isn't very friendly to being extended. Switching to a more flexible framework like Gtk should help here. On Tue, Sep 1, 2015 at 2:17 PM Dömötör Gulyás wrote: > I'm trying to build a scrollable Cario c

Re: [julia-users] IDE for Julia

2015-09-02 Thread Scott Jones
No, I wish! I just heard about something to combine Emacs and IPython, I'll let you know if I find out anything more. I just run IJulia on one screen, Emacs on another. On Monday, August 31, 2015 at 10:52:08 PM UTC-4, Cedric St-Jean wrote: > > Scott, do you have a way to run the notebooks (IJulia

Re: [julia-users] Julia's text mining capabilities

2015-09-02 Thread Steven G. Johnson
On Wednesday, September 2, 2015 at 10:27:54 AM UTC-4, Venkat Ramakrishnan wrote: > > My use case has all of the text functions that you mentioned, so, thanks > for the info. It looks like the nearest competitor is Python, and Julia's > performance is see-sawing compared to Python in the regexp

Re: [julia-users] Julia's text mining capabilities

2015-09-02 Thread Steven G. Johnson
On Wednesday, September 2, 2015 at 12:19:33 PM UTC-4, Steven G. Johnson wrote: > > Note that regexps in Julia are implemented with the PCRE library. If you > google "PCRE vs Python" you'll find several comparisons. The upshot seems > to be that PCRE is about 2x slower than Python's regex imp

[julia-users] The new Dict syntax in 0.4 is very verbose

2015-09-02 Thread Michael Francis
With the change to 0.4 happening soon I'm finding the the new Dict syntax in 0.4 (removal of {}, []) is extremely verbose. I find myself interfacing with JSON APIs frequently, for example a configuration dictionary : data = { :displayrows => 20, :cols => [ {

Re: [julia-users] IDE for Julia

2015-09-02 Thread Ista Zahn
I've also been looking for a package for interacting with Jupyter from Emacs. Currently in Emacs land we have EIN[1] and ob-ipython[2]. The ob-ipython dev appears willing to add support for other jupyter backends but needs help[3]. https://github.com/gregsexton/ob-ipython/issues/9. Support in EIN i

Re: [julia-users] IDE for Julia

2015-09-02 Thread Michael Francis
In case anybody runs into the same problem - Atom currently has issues with mouse selection/dragging under a linux virtual machine. This is a known bug with the version of chromium that they are using (more recent versions of chromium do not have the issue.) Otherwise it works very well, I do

Re: [julia-users] The new Dict syntax in 0.4 is very verbose

2015-09-02 Thread Mike Innes
You might consider creating an alias, e.g. d(xs...) = Dict{Any, Any}(xs...) d(:a=>1, :b=>2) It's not as nice, but it's not awful either. You could also do macro d(xs...) for x in xs @assert x.head == :(=>) isa(x.args[1], Symbol) && (x.args[1] = Expr(:quote, x.args[1])) end :(Dict{

RE: [julia-users] The new Dict syntax in 0.4 is very verbose

2015-09-02 Thread David Anthoff
I have to admit that after having used the new syntax for a while now, I’m not a fan at all. It feels like I’m thrown back to my old C# days… I’m sure there was an excellent reason for this change, but I couldn’t find the relevant issue on github. If someone has the relevant link handy, I wou

Re: [julia-users] The new Dict syntax in 0.4 is very verbose

2015-09-02 Thread Tim Holy
Why not just Dict(:col => "l1")? --Tim On Wednesday, September 02, 2015 04:55:17 PM Mike Innes wrote: > You might consider creating an alias, e.g. > > d(xs...) = Dict{Any, Any}(xs...) > > d(:a=>1, :b=>2) > > It's not as nice, but it's not awful either. You could also do > > macro d(xs...) >

Re: [julia-users] The new Dict syntax in 0.4 is very verbose

2015-09-02 Thread Isaiah Norton
This issue was raised here: https://github.com/JuliaLang/julia/issues/6739#issuecomment-120149597 I believe the consensus was that nice JSON input syntax could be handled with a macro. Also, once the "[ a=>b, ...]" syntax deprecation goes away, I believe this: [ :col => "l1", :col => "l2", .

Re: [julia-users] The new Dict syntax in 0.4 is very verbose

2015-09-02 Thread Michael Francis
The arguments given in the thread that Dict 'isn't special' should also also apply to Vector and Array, I presume nobody wants to do away with literal syntax for them as well? There are many times when having a simple terse native (code editor aware) literal syntax for structured data is ver

[julia-users] Re: RasterIO.jl

2015-09-02 Thread Yeesian Ng
I have opened a thread for discussion regarding broader changes/involvement in the JuliaGeo organization: https://groups.google.com/d/msg/julia-geo/yfkJwtMG4fM/SrzqyaviAQAJ For discussions specific to RasterIO.jl (renaming, reference-versus-copy), I suggest opening an issue over at https://git

RE: [julia-users] FYI: PackageEvaluator/pkg.julialang.org badge URL change

2015-09-02 Thread David Anthoff
Is the idea that we have a separate badge for every julia version now, i.e. very soon three? Or is there also one badge that shows the aggregated information? From: julia-users@googlegroups.com [mailto:julia-users@googlegroups.com] On Behalf Of Iain Dunning Sent: Wednesday, September 2, 2015

Re: [julia-users] Re: [ANN] Conda.jl: using conda package manager for Julia

2015-09-02 Thread Luthaf
I do not want to replace the Base.Pkg package manager. Pkg does install binary dependencies in a cross-platform way, but only by the mean of BinDeps. And BinDeps uses for that the concept of provider. Some example of providers are Hombrew.jl on OSX, Pacman on arch-linux, Yum on centos/fedora di

Re: [julia-users] FYI: PackageEvaluator/pkg.julialang.org badge URL change

2015-09-02 Thread Iain Dunning
I'm not sure to be honest. We've never had one badge to aggregate it, I think it'd be too much to cram into a badge. I'm not sure I'll ever test 0.3, 0.4, and 0.5 simultaneously. I guess I'll just provide the results, and people can select what they think is relevant to users. On Wed, Sep 2, 2015

Re: [julia-users] The new Dict syntax in 0.4 is very verbose

2015-09-02 Thread Erik Schnetter
If I recall correctly, the two sets of ASCII bracketing operators ([] and {}) were deemed to be more usefully employed for arrays; apparently, arrays are used more often than dictionaries in Julia. However, I also recall the suggestion that some other kind of bracketing operators -- maybe non-ASCII

RE: [julia-users] FYI: PackageEvaluator/pkg.julialang.org badge URL change

2015-09-02 Thread David Anthoff
Sounds good to me! The visual is actually quite good with different badges, because you do get a sense which version of the package you get on which version of julia. From: julia-users@googlegroups.com [mailto:julia-users@googlegroups.com] On Behalf Of Iain Dunning Sent: Wednesday, Septembe

[julia-users] REQUIRE questions for package devs

2015-09-02 Thread David Anthoff
Hi all, couple of questions on best practices for package devs: 1) My package needs the Dates package on julia 0.3, but not on julia 0.4. I assume I just have to leave Dates in the REQUIRE file if I want both versions of julia supported, right? 2) Generally, how are people handling mini

[julia-users] Re: The new Dict syntax in 0.4 is very verbose

2015-09-02 Thread Jeffrey Sarnoff
This is an outcome of an underlying as-yet-unresolvedness, one all agree is important as it must shape some of the experience one has with Julia. Stefan makes good sense: "In Julia, [Dict is] just another data structure ... So having special syntax ends up being ... problematic and [un]helpfu

Re: [julia-users] FYI: PackageEvaluator/pkg.julialang.org badge URL change

2015-09-02 Thread Seth
Another suggestion would be to allow the package maintainer to specify which version of code s/he wants to test with each version. As an example, I will be tagging a version of my package that will be the final one that supports 0.3; it will make no sense for successive releases of the code to

[julia-users] Re: IDE for Julia

2015-09-02 Thread Oleg Mikulchenko
Thank you, Jeffrey. You pushed me to install python3.4.3/iPython/Jupiter/numpy/scipy/matplotlib and it works standalone and under atom. So I have two versions of Python working under atom and Julia - none. Tried different atom installations (with different default Pythons) – it doesn't change b

Re: [julia-users] FYI: PackageEvaluator/pkg.julialang.org badge URL change

2015-09-02 Thread Iain Dunning
This is automatically handled, as all PkgEval does is a Pkg.add() and a Pkg.test(). Thus is your REQUIRE/requires are correct, everything just works. Indeed, this way PkgEval catches if a package maintainer forgets this important step. On Wed, Sep 2, 2015 at 4:21 PM, Seth wrote: > Another sugges

Re: [julia-users] The new Dict syntax in 0.4 is very verbose

2015-09-02 Thread Phil Tomson
On Wednesday, September 2, 2015 at 11:21:35 AM UTC-7, Erik Schnetter wrote: > > If I recall correctly, the two sets of ASCII bracketing operators ([] and > {}) were deemed to be more usefully employed for arrays; > How has have the curly braces "{" and "}" been reused for arrays in 0.4? Curly

Re: [julia-users] The new Dict syntax in 0.4 is very verbose

2015-09-02 Thread Tim Holy
The amount we can re-use old syntax for new purposes is limited: we need one release in which the old syntax generates a warning, and then the new meaning can arrive in the next release. Otherwise, code that worked on 0.3 might exhibit surprising failures in the cases where the new meaning doesn

[julia-users] Re: [freshman]Is there any julia user group in China?

2015-09-02 Thread Eric Forgy
Hi Roger, Welcome to the group! I am still a Julia freshman too (but old in human years!) and former computational physicist (PhD from UIUC and two years at MIT/LL before moving to Wall Street in 2005). My financial technology startup in Hong Kong now has several junior quants/interns learning

[julia-users] Re: RasterIO.jl

2015-09-02 Thread Marcio Sales
Great. I just posted a new issue to start the discussions.

[julia-users] Re: IDE for Julia

2015-09-02 Thread Oleg Mikulchenko
ok, after careful dozen of installations/de-installations, atom-julia works for basic features. But it fails for graphics: UndefVarError: @generated not defined while loading .../ColorTypes/src/traits.jl . Any suggestions? Thanks.

Re: [julia-users] The new Dict syntax in 0.4 is very verbose

2015-09-02 Thread Marcio Sales
Made me remember the Mayor's decisions for new infrastructure in my city. "Just why?" :)

Re: [julia-users] pmap - version to return reduced result only

2015-09-02 Thread Greg Plowman
Hi David, Thanks for your reply. This seems to be exactly what I had in mind (as per my original post). My original concern was whether shared updates to a common variable within `@async` <`@async> would happen in an orderly way. In my case, its actually quite convenient to return results for e

Re: [julia-users] Re: [ANN] Conda.jl: using conda package manager for Julia

2015-09-02 Thread Tony Kelman
There was quite a bit of discussion on this at https://github.com/JuliaLang/METADATA.jl/pull/3238, and https://github.com/JuliaLang/BinDeps.jl/issues/151 before that. Conda.jl should be pretty useful as a BinDeps provider of binaries, especially if binaries of a library you're interested in are

[julia-users] Re: REQUIRE questions for package devs

2015-09-02 Thread Tony Kelman
We haven't been all that strict about inter-package version dependencies so far. You could determine the minimum supported version of your dependency that you need with a series of Pkg.pin and Pkg.test steps if you aren't sure about the most recent feature or bugfix you need. Otherwise I think

[julia-users] Differences between @async and @schedule?

2015-09-02 Thread Spencer Russell
From the docs I gather that `@schedule operation()` is equivalent to `schedule(@task operation())`, In that `operation()` will be wrapped in a task and added as a runnable item in the scheduler queue. `@async` says it wraps the expression in a closure rather than a task, but likewise adds it to

[julia-users] Re: IDE for Julia

2015-09-02 Thread Tony Kelman
You're probably trying to use an 0.4-only version of a package under Julia 0.3. On Wednesday, September 2, 2015 at 6:10:41 PM UTC-7, Oleg Mikulchenko wrote: > > ok, after careful dozen of installations/de-installations, atom-julia > works for basic features. But it fails for graphics: UndefVarE

Re: [julia-users] Define functions in loop

2015-09-02 Thread Joshua Ballanco
Out of curiosity, why use `@eval` directly instead of defining a macro? (I’m just trying to get a better feel for what’s more Julian.) On September 2, 2015 at 12:44:39, Patrick Kofod Mogensen (patrick.mogen...@gmail.com) wrote: I'm in a train right now, but yes. Look up metaprogramming in the

Re: [julia-users] The new Dict syntax in 0.4 is very verbose

2015-09-02 Thread Adrian Cuthbertson
Yeah, like a toll-gate has been introduced and we're not sure what the tax is being spent on :) On Thu, Sep 3, 2015 at 2:39 AM, Marcio Sales wrote: > Made me remember the Mayor's decisions for new infrastructure in my city. > "Just why?" :) >