[julia-users] Re: Questions on parallelizing code - or how to deal with objects (and not just gathering data) in parallel.

2016-09-02 Thread Sleort
Thanks for the information! I will have a look into it and see if there is anything I can help with. Hmm... I must say I am a bit surprised that there is no such built-in functionality in Base..? Seems to be a rather basic parallel programming functionality to me. Is there something about

Re: [julia-users] Re: unable to connect to FTP using IP address

2016-09-02 Thread Yared Melese
Thanks for your help. On Aug 31, 2016 8:37 AM, "Samuel Massinon" wrote: > Hi Yared, > > Hopefully my last reply worked for you. > > If you have anymore questions about how to use FTPClient.jl or find other > issues, you are more than welcome to make an issue here >

[julia-users] Re: Is it better to call Julia from C++ or call C++ from Julia?

2016-09-02 Thread Steven G. Johnson
On Friday, September 2, 2016 at 8:51:21 PM UTC-4, K leo wrote: > > While the majority of my analytics are in Julia, I will need to use an > external event handling API which is implemented in C++. It looks that I > have two options: 1) write the main code in C++ with the API and call Julia >

[julia-users] Re: Is it better to call Julia from C++ or call C++ from Julia?

2016-09-02 Thread K leo
I need to add that the target OS is Ubuntu. On Saturday, September 3, 2016 at 8:51:21 AM UTC+8, K leo wrote: > > While the majority of my analytics are in Julia, I will need to use an > external event handling API which is implemented in C++. It looks that I > have two options: 1) write the

[julia-users] Is it better to call Julia from C++ or call C++ from Julia?

2016-09-02 Thread K leo
While the majority of my analytics are in Julia, I will need to use an external event handling API which is implemented in C++. It looks that I have two options: 1) write the main code in C++ with the API and call Julia function for analytics; 2) write the main code also in Julia that work

[julia-users] printf format for round-trip Floats

2016-09-02 Thread David P. Sanders
The simple solutions are often the most elusive!

RE: [julia-users] Re: Rescuing abandoned package

2016-09-02 Thread David Anthoff
Also, your PR is 10 days old. People go on vacation longer than that, so I would just give it a little more time before you fork. It looks as if the author was forking things 11 days ago, so I think it is premature to conclude that he/she disappeared. From: julia-users@googlegroups.com

[julia-users] Re: Rescuing abandoned package

2016-09-02 Thread Chris Rackauckas
You can fork, update it, and then put a PR in to METADATA which changes the url for the package. Someone like @tkelman will probably try to contact the author to make sure he/she's really disappeared. Open an issue on METADATA and see if the author shows up. On Friday, September 2, 2016 at

Re: [julia-users] Re: How to remove a column or row from a 2D contiguous array

2016-09-02 Thread Páll Haraldsson
2016-09-02 22:07 GMT+00:00 Steven G. Johnson : > > > On Friday, September 2, 2016 at 4:03:09 PM UTC-4, Páll Haraldsson wrote: >> >> I can't see that Julia couldn't be as fast as MATLAB, they chose however >> to not do this by default, as it is slow (for big arrays). >> > >

[julia-users] printf format for round-trip Floats

2016-09-02 Thread 'Greg Plowman' via julia-users
Yes, of course I can! Thanks David. That is embarrassingly simple.

[julia-users] Rescuing abandoned package

2016-09-02 Thread Evan Fields
I use the package GreatCircle for great circle distance calculations. On 0.4.x it generates depwarns, and it's incompatible with 0.5. I've opened a pull request with the tiny changes needed to use the package on 0.5, but there's been no response and

[julia-users] Re: How to remove a column or row from a 2D contiguous array

2016-09-02 Thread Steven G. Johnson
On Friday, September 2, 2016 at 4:03:09 PM UTC-4, Páll Haraldsson wrote: > > I can't see that Julia couldn't be as fast as MATLAB, they chose however > to not do this by default, as it is slow (for big arrays). > Deleting a row in Julia is no slower than in Matlab. Both require you to make a

[julia-users] Re: How to remove a column or row from a 2D contiguous array

2016-09-02 Thread Páll Haraldsson
On Tuesday, August 30, 2016 at 12:56:34 AM UTC, Miguel Goncalves wrote: > > There is a 2-year-old post > on > julia-dev hinting at potential new syntax for removing columns from a 2D > array. What is the current status on that? > >

[julia-users] printf format for round-trip Floats

2016-09-02 Thread David P. Sanders
Can't you just use string(x) where x is the Float64?

[julia-users] Re: Thread problem in 0.5.0-rc3+0

2016-09-02 Thread Viral Shah
Pretty sure this hasn't been tried - but do submit an issue. -viral On Friday, September 2, 2016 at 10:03:34 PM UTC+5:30, jean-pierre both wrote: > > The problem occurs when a function having a threaded loop calling another > function with > a threaded loop inside. > > here is a code sample

Re: [julia-users] memory allocation in matrix operations

2016-09-02 Thread Jong Wook Kim
Hi Steven and Daniel, thank you so much for the corrections and suggestions! > On Sep 2, 2016, at 9:17 AM, Steven G. Johnson wrote: > > Try: > > function foo_old!(a) > for i in 1:size(a, 2) > a[:, i] /= norm(a[:, i]) > end > return a > end > >

Re: [julia-users] IBM Power port

2016-09-02 Thread Paulito
Hi Viral, That is what I thought and read in the docs but if you run the code I attached, merely 'using' would spit some errors where the workers are not aware of the existence of certain function. It can be in the name resolution or is it because the function is inside the a macro? I thin

Re: [julia-users] IBM Power port

2016-09-02 Thread Viral Shah
That is quite a lot of work. If there was support with Travis or some other CI provider, at least this would be easier and authors who want to support Power could then do so. -viral On Friday, September 2, 2016 at 2:22:18 PM UTC+5:30, Paulito Palmes wrote: > > Hi All, > > I noticed that some

[julia-users] Re: Online live help with Julia.

2016-09-02 Thread Chris Rackauckas
It's free: https://gitter.im/JuliaLang/julia There's usually a few people on there. I try to be on whenever I'm working with Julia (~18-20 hours a day now. Woot woot PhD!). Just ask away, there's not really any judgement there. And another place to go is StackOverflow. Just post your questions

Re: [julia-users] IBM Power port

2016-09-02 Thread Viral Shah
You do not need @everywhere. `using` will load on all nodes. -viral On Friday, September 2, 2016 at 2:39:34 PM UTC+5:30, Paulito Palmes wrote: > > I also noticed (not specific to Power machines) that when you want to load > packages in Julia with several workers, I have to do the following to

Re: [julia-users] Is the master algorithm on the roadmap?

2016-09-02 Thread Kevin Liu
Thanks Tim. It's frustrating to see the community has very little experience with MLN, after all, this is the smartest group of people I know in computer science. Okay, the focus here will be on code. On Friday, September 2, 2016 at 1:16:56 PM UTC-3, Viral Shah wrote: > > I agree with John

[julia-users] Thread problem in 0.5.0-rc3+0

2016-09-02 Thread jean-pierre both
The problem occurs when a function having a threaded loop calling another function with a threaded loop inside. here is a code sample computing the mean of a random matrix. expected result 0.5 here is the code: ==

[julia-users] Re: SharedArray fails to gc() when called within a sequence of functions? 0.5.0-rc3

2016-09-02 Thread jean-pierre both
It seems to me that your code is correct BUT: allocating a SharedArray is a bit expensive, and should be done once. The follwowing modifications runs OK function chisq(A::SharedArray{Float64}) n=length(A) @sync @parallel for i in 1:n A[i]=(rand()-rand())^2 end sumsq=sum(A)

[julia-users] Online live help with Julia.

2016-09-02 Thread Alysson M.Costa
Dear all, (This is not a technical question, but rather a resource-seeking post. Please feel free to delete if it violates any of the group's guidelines). I am a novice Julia programmer. I basically use it as an interface to linear programming solvers (such as GLPK, Gurobi, Cplex) with the

Re: [julia-users] Is the master algorithm on the roadmap?

2016-09-02 Thread Viral Shah
I agree with John here. This is totally unacceptable, and is making the experience poorer for others. -viral On Friday, September 2, 2016 at 8:48:44 PM UTC+5:30, John Myles White wrote: > > May I also point out to the My settings button on your top right corner > >> My topic email

Re: [julia-users] Is the master algorithm on the roadmap?

2016-09-02 Thread Tim Wheeler
@kevin: I seriously doubt that anyone has ill wishes concerning your desire to implement a great MLP package for Julia. The problem is that you don't seem to have a clear enough understanding of how to go about solving the problem, and noone here has been willing to divert their work towards

Re: [julia-users] Is the master algorithm on the roadmap?

2016-09-02 Thread Kevin Liu
The explicit message here with no implicit one is that the unsubscribe option exists for a reason. On Sep 2, 2016, at 12:18, John Myles White wrote: >> May I also point out to the My settings button on your top right corner > My >> topic email subscriptions >

Re: [julia-users] Re: Apparently I need to rebuild Julia?

2016-09-02 Thread Andre Bieler
All works fine if I download the binary from http://julialang.org/downloads/

Re: [julia-users] Re: Apparently I need to rebuild Julia?

2016-09-02 Thread Andre Bieler
I have the same problem for v0.4.6. I have Julia running for a while on my machine (Mint 17.2 --> Ubuntu 14.04), but now I get this error message on startup: WARNING: Error during initialization of module GMP: ErrorException("The dynamically loaded GMP library (version 6.1.0 with

Re: [julia-users] Is the master algorithm on the roadmap?

2016-09-02 Thread Chris Rackauckas
Two things. One, yes I am using a form of relational learning on that project. Interesting stuff is coming out of it. But two, I was just trying to help. You're clearly abusing the mailing list and are probably going to get banned if you don't stop. I suggest blogging these musings, and keeping

Re: [julia-users] Is the master algorithm on the roadmap?

2016-09-02 Thread John Myles White
> > May I also point out to the My settings button on your top right corner > > My topic email subscriptions > Unsubscribe from this thread, which would've > spared you the message. I'm sorry, but this kind of attitude is totally unacceptable, Kevin. I've tolerated your misuse of the mailing

Re: [julia-users] Is the master algorithm on the roadmap?

2016-09-02 Thread Kevin Liu
May I also point out to the My settings button on your top right corner > My topic email subscriptions > Unsubscribe from this thread, which would've spared you the message. On Friday, September 2, 2016 at 11:19:42 AM UTC-3, Kevin Liu wrote: > > Hello Chris. Have you been applying relational

Re: [julia-users] Is the master algorithm on the roadmap?

2016-09-02 Thread Kevin Liu
Hello Chris. Have you been applying relational learning to your Neural Crest Migration Patterns in Craniofacial Development research project? It could enhance your insights. On Friday, September 2, 2016 at 6:18:15 AM UTC-3, Chris Rackauckas wrote: > > This entire thread is a trip... a trip

Re: [julia-users] Re: Juila vs Mathematica (Wolfram language): high-level features

2016-09-02 Thread Steven G. Johnson
On Thursday, September 1, 2016 at 8:25:27 PM UTC-4, Erik Schnetter wrote: > > One of the strengths of Mathematica's pattern matching system is the > ability for structural matching, e.g. to match a list where the second > element is a real number. This is something that is not (yet?) possible

Re: [julia-users] memory allocation in matrix operations

2016-09-02 Thread Steven G. Johnson
Try: function foo_old!(a) for i in 1:size(a, 2) a[:, i] /= norm(a[:, i]) end return a end function foo_new!(a) for i in 1:size(a, 2) s = zero(eltype(a)) @simd for j = 1:size(a,1) @inbounds s += abs2(a[j, i]) end scale_factor = 1

Re: [julia-users] memory allocation in matrix operations

2016-09-02 Thread Jong Wook Kim
Yeah, that’s what I figured, I don’t even need the sin() julia> f() = 42 f (generic function with 1 method) julia> @time f() 0.001347 seconds (141 allocations: 10.266 KB) 42 julia> @time f() 0.02 seconds (4 allocations: 160 bytes) 42 julia> @time f() 0.02 seconds (4 allocations:

Re: [julia-users] memory allocation in matrix operations

2016-09-02 Thread Yichao Yu
On Fri, Sep 2, 2016 at 7:41 AM, Mauro wrote: > On Fri, 2016-09-02 at 13:34, Jong Wook Kim wrote: > > Hi Yichao, what a nice idea :) > > > > But even if I write in the C++ way, @time sqrt(1) yields 5 allocations > of 176 > > bytes, and in inner loops this

Re: [julia-users] memory allocation in matrix operations

2016-09-02 Thread Mauro
On Fri, 2016-09-02 at 13:34, Jong Wook Kim wrote: > Hi Yichao, what a nice idea :) > > But even if I write in the C++ way, @time sqrt(1) yields 5 allocations of 176 > bytes, and in inner loops this could be a bottleneck. Those are just allocations for the return value of sqrt.

Re: [julia-users] memory allocation in matrix operations

2016-09-02 Thread Jong Wook Kim
Hi Yichao, what a nice idea :) But even if I write in the C++ way, @time sqrt(1) yields 5 allocations of 176 bytes, and in inner loops this could be a bottleneck. Is this an inevitable overhead of using ccall, or is it just a bogus that I can ignore? Jong Wook > On Sep 2, 2016, at 7:14 AM,

Re: [julia-users] memory allocation in matrix operations

2016-09-02 Thread Yichao Yu
On Fri, Sep 2, 2016 at 7:03 AM, Jong Wook Kim wrote: > Hi, > > I'm using Julia 0.4.6 on OSX El Capitan, and was trying to normalize each > column of matrix, so that the norm of each column becomes 1. Below is a > isolated and simplified version of what I'm doing: > > function

[julia-users] memory allocation in matrix operations

2016-09-02 Thread Jong Wook Kim
Hi, I'm using Julia 0.4.6 on OSX El Capitan, and was trying to normalize each column of matrix, so that the norm of each column becomes 1. Below is a isolated and simplified version of what I'm doing: function foo1() local a = rand(1000, 1) @time for i in 1:size(a, 2) a[:,

Re: [julia-users] Is the master algorithm on the roadmap?

2016-09-02 Thread Chris Rackauckas
This entire thread is a trip... a trip which is not really relevant to julia-users. You may want to share these musings in the form of a blog instead of posting them here. On Friday, September 2, 2016 at 1:41:03 AM UTC-7, Kevin Liu wrote: > > Princeton's post: >

Re: [julia-users] IBM Power port

2016-09-02 Thread Paulito Palmes
I also noticed (not specific to Power machines) that when you want to load packages in Julia with several workers, I have to do the following to have successful loading of packages: nprocs()==1 && addprocs() using Knet @everywhere using Knet using RDatasets @everywhere using RDatasets using

Re: [julia-users] IBM Power port

2016-09-02 Thread Paulito Palmes
Hi All, I noticed that some of the packages are not aware that Julia has power port now and when you install those packages, they include some compiler directives specific to Intel processor such as SSE. In the Makefile, I removed this extra option and the package compiles. However, if I do

Re: [julia-users] Is the master algorithm on the roadmap?

2016-09-02 Thread Kevin Liu
Princeton's post: http://www.nytimes.com/2016/08/28/world/europe/france-burkini-bikini-ban.html?_r=1 Only logic saves us from paradox. - Minsky On Thursday, August 25, 2016 at 10:18:27 PM UTC-3, Kevin Liu wrote: > > Tim Holy, I am watching your keynote speech at JuliaCon 2016 where you >

Re: [julia-users] IBM Power port

2016-09-02 Thread Viral Shah
Can you try this one? I believe this error is addressed now. http://s3.amazonaws.com/julianightlies/bin/linux/ppc64le/julia-latest-linuxppc64.tar.gz Also, Elliot enabled the nightlies: https://build.julialang.org/builders/package_tarballppc64le -viral > On Sep 2, 2016, at 4:15 AM, James