[julia-users] Re: VS code extension

2016-06-21 Thread Lyndon White
I would be happy to transfer https://github.com/oxinabox/julia-vim-completions to an Org. Though probably worth waiting til it is wrapped up into a form people who are not me can use. On Wednesday, 22 June 2016 06:26:52 UTC+8, David Anthoff wrote: > > Hi all, > > > > I’ve created a new

Re: [julia-users] Linux Build Error

2016-06-21 Thread AB
Thanks - I really appreciate all of the comments. I'll try a few more things and then maybe submit another more specific question about the issue in a few days. AB On Tuesday, June 21, 2016 at 5:09:46 PM UTC-5, Patrick Belliveau wrote: > > Henh, >I'm sorry, I'm not sure what's

[julia-users] Parallel computing: SharedArrays not updating on cluster

2016-06-21 Thread 'Greg Plowman' via julia-users
Yes. AFAIK, Shared arrays are shared across multiple processes on the same machine. Distributed arrays can be distributed across different machines.

[julia-users] Re: Let's Bridge the IRC and Gitter

2016-06-21 Thread Lyndon White
> > Alright, I have reset this up. >> > There has been a fair bit of shouting by new usered on IRC of the "Hell, anyone here" kind. So I figure the need. This is now running on a microVM (1core, 700MB of RAM) from https://nectar.org.au/ Which is from the Australian

[julia-users] Pkg operations hanging on Windows with Julia 0.4.6

2016-06-21 Thread Evan Fields
I upgraded from 0.4.5 to 0.4.6 today and did a little work with no issue. Then I ran Pkg.update() and apparently updated the cache of a few packages. When Pkg.update got to Conda, everything seemed to hang. After letting that run about 40 minutes I killed the Julia process, restarted, and tried

[julia-users] VS code extension

2016-06-21 Thread David Anthoff
Hi all, I've created a new github repo for a VS code extension https://github.com/davidanthoff/julia-vscode and it is published here https://marketplace.visualstudio.com/items?itemName=julialang.language-julia . Be5invis will delete the old julia extension from the marketplace because he is no

Re: [julia-users] Linux Build Error

2016-06-21 Thread Patrick Belliveau
Henh, I'm sorry, I'm not sure what's going on there. It's possible that this is a bug in the build system or that I'm wrong and you do in fact need gcc 4.7 when building with intel. I thought I'd done a purely intel build before but turns out I used the intel fortran compiler and gcc

Re: [julia-users] Linux Build Error

2016-06-21 Thread AB
Thanks again for your comment. I followed those instructions, but I am not sure I did everything right because it seems like it still is looking for GCC during the install. 'make' terminated with this set of errors. (On the 9th line it appears to be looking for gcc.) checking for C

[julia-users] Parallel computing: SharedArrays not updating on cluster

2016-06-21 Thread PMab
Hi everyone, I am using shared arrays and an @sync @parallel for loop to run computations on my university's cluster. The body of the loop takes a given line in a shared array, calls a function on it that uses a solver to return an array, and finally updates another shared array using the

Re: [julia-users] Linux Build Error

2016-06-21 Thread Patrick Belliveau
Yep, using that version of gcc definitely won't work. However, if you're using the intel compilers then you don't need gcc. If you haven't seen it, instructions for using the intel compilers are here . Cheers,

[julia-users] Re: Help with a macro

2016-06-21 Thread Mosè Giordano
2016-06-21 23:02 GMT+02:00 Kristoffer Carlsson: > > > Your macro should not evaluate anything per say. It should generate > expressions that when the code is run will call functions. > > Say a user types @uncertain log(x,y), what do you want the resulting > expression after macro expansion has

Re: [julia-users] Re: scope of do block, generalization to for block

2016-06-21 Thread Stefan Karpinski
Yes, although I think we should perhaps return a single object that holds both the fd and the process object. On Tue, Jun 21, 2016 at 4:34 PM, David van Leeuwen < david.vanleeu...@gmail.com> wrote: > Another case for open()!, I suppose, is the construction > > fd, process = open(`command`) > >

[julia-users] Re: Help with a macro

2016-06-21 Thread Kristoffer Carlsson
On Tuesday, June 21, 2016 at 4:35:09 PM UTC-4, Mosè Giordano wrote: > > Hi Kristoffer, > > 2016-06-21 22:19 GMT+02:00 Kristoffer Carlsson: >> >> Using @eval in a macro is generally the wrong thing to do. A macro should >> simply transform an expression to another expression. > > > Ok, that's

Re: [julia-users] Linux Build Error

2016-06-21 Thread AB
Thanks for the feedback. I have been told that the version of gcc available on this system is a bit old. gcc --version returns: gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-16) I think version 4.7 is required for julia. The administrators of the cluster would like me to use the Intel

[julia-users] Re: Help with a macro

2016-06-21 Thread Mosè Giordano
Hi Kristoffer, 2016-06-21 22:19 GMT+02:00 Kristoffer Carlsson: > > Using @eval in a macro is generally the wrong thing to do. A macro should > simply transform an expression to another expression. Ok, that's probably what I'm missing, thank you! > If you give an example function body and

RE: [julia-users] Re: Julia 0.4.6 Windows 32bits not run

2016-06-21 Thread David Anthoff
I like to add a new-alias command to my Microsoft.PowerShell_profile.ps1 file that makes the “julia” command available in my powershell session. From: julia-users@googlegroups.com [mailto:julia-users@googlegroups.com] On Behalf Of Tony Kelman Sent: Tuesday, June 21, 2016 12:46 PM To:

Re: [julia-users] Re: scope of do block, generalization to for block

2016-06-21 Thread David van Leeuwen
Another case for open()!, I suppose, is the construction fd, process = open(`command`) which I wasn't able to fit in the do-block construction. ---david On Tuesday, June 21, 2016 at 5:43:36 PM UTC+2, Stefan Karpinski wrote: > > I was not aware that you could do multiple `as` clauses on a

[julia-users] Help with a macro

2016-06-21 Thread Kristoffer Carlsson
Using @eval in a macro is generally the wrong thing to do. A macro should simply transform an expression to another expression. If you give an example function body and what you want the macro to transform it to it would be easier to visualize what you want to do.

[julia-users] Help with a macro

2016-06-21 Thread Mosè Giordano
Hi all, in Measurements.jl , an uncertainty propagation library, I added a macro to propagate uncertainty for an arbitrary function. Here you can see some examples of use of the macro:

[julia-users] Re: Git-maggedon

2016-06-21 Thread Tony Kelman
With respect to Eric's original issue, I suspect this is due to some global git configuration setting change you may have made. Julia's embedded git might be reading from your system-wide global git configuration settings by default. Run `git config -l` and see if anything jumps out at you.

Re: [julia-users] Re: Git-maggedon

2016-06-21 Thread Tony Kelman
There's an issue on that, Pkg.rm doesn't actually delete the files, it moves them to a .trash folder. There are reasons for this but it's counterintuitive and can lead to issues, so in future refactorings of Pkg it will be revisited. The .cache is not shared between Julia versions on Windows.

[julia-users] Re: Julia 0.4.6 Windows 32bits not run

2016-06-21 Thread Tony Kelman
I disagree, adding Julia's bin/ directory to the Windows PATH is generally a bad idea. Any library that depends on the same set of libraries that Julia does, but wants them in a different configuration, can easily hit compatibility problems if Julia's dll's are all added to the path, and

Re: [julia-users] A question of style: type constructors vs methods

2016-06-21 Thread Gabriel Gellner
Ugh keyboard error. So lets say I have the type type Foo field1 field2 end So I have my nice constructors dealing with all the ways I want to create Foo types, but then I want a specialized Foo that has field2 set to some special value that has a special sub meaning from my default

RE: [julia-users] Re: Git-maggedon

2016-06-21 Thread David Anthoff
Ah, I see. On one hand that makes sense. On the other hand, I’ve been under the impression for more than two years now that if I remove a package via Pkg.rm and it doesn’t show up in Pkg.status, it is no longer on my disc. Doesn’t seem an unreasonable expectation, so maybe that is something to

Re: [julia-users] A question of style: type constructors vs methods

2016-06-21 Thread Gabriel Gellner
So going deeper into using my own types, and coding style in julia. Lets say I have the container type type Foo On Monday, June 20, 2016 at 7:10:15 AM UTC-7, Gabriel Gellner wrote: > > That was what I was feeling. That this was a legacy issue for lowercase > type "constructors". Thanks so

Re: [julia-users] Re: Git-maggedon

2016-06-21 Thread Stefan Karpinski
Yes, that's right. The cache is also shared between different Julia versions. On Tue, Jun 21, 2016 at 1:49 PM, David Anthoff wrote: > You mean when I completely uninstalled a package and then add it again? > > > > It wouldn’t be needed if I just switch to a different

RE: [julia-users] Re: Git-maggedon

2016-06-21 Thread David Anthoff
You mean when I completely uninstalled a package and then add it again? It wouldn’t be needed if I just switch to a different version of an installed package, right? From: stefan.karpin...@gmail.com [mailto:stefan.karpin...@gmail.com] On Behalf Of Stefan Karpinski Sent: Tuesday, June 21,

Re: [julia-users] Re: Git-maggedon

2016-06-21 Thread Stefan Karpinski
The cache folders are just bare git repositories for packages. Keeping these around prevents having to hit the network to reinstall a package version that you've already fetched and installed before. On Tue, Jun 21, 2016 at 1:31 PM, David Anthoff wrote: > I’ve never

Re: [julia-users] Re: Git-maggedon

2016-06-21 Thread Stefan Karpinski
Normally installed packages are not supposed to (and never have been) on a branch – they are checked out to a specific commit for p package version. If you want to checkout a branch of a package, you can do Pkg.checkout("Foo") to checkout master or Pkg.checkout("Foo", "br") to checkout the "br"

RE: [julia-users] Re: Git-maggedon

2016-06-21 Thread David Anthoff
I’ve never understood the various .cache folders that hang around, but if you want to be sure to start from a clean .julia package folder you might want to make sure all the .cache folders are also removed. In particular I guess the .julia/.cache folder. And then retry the whole Pkg.init()

[julia-users] Re: Git-maggedon

2016-06-21 Thread Eric Forgy
Update: I went back and changed v0.4 -> v0.4_temp2 and did a Pkg.Init() and Pkg.add("JSON") using v0.4.5 just to see if it was related to upgrading. I see the exact same problem. I suspect my Git is corrupted somehow which is wreaking havoc with Pkg. That is just a guess. Any ideas? On

Re: [julia-users] Linux Build Error

2016-06-21 Thread Patrick Belliveau
It's not clear to me what's going on here but as a first attempt at troubleshooting, are you sure that you have up to date installations of all the required build tools and external libraries required to build Julia from source? In particular, you should check that make is using recent enough

[julia-users] Git-maggedon

2016-06-21 Thread Eric Forgy
I just upgraded to v0.4.6 on Windows, but I think this problem might predate the upgrade (I think the upgrade was partially in hopes of resolving this). I don't know if this is a Julia issue or a Git issue, but if I add any package, e.g. julia> Pkg.add("JSON") The package gets added to my

Re: [julia-users] Re: scope of do block, generalization to for block

2016-06-21 Thread Stefan Karpinski
I was not aware that you could do multiple `as` clauses on a single `with` line – that makes the construct considerably more useful since it reduces the indentation. However, it still doesn't address cases where you don't want to give the object to be finalized a name, e.g.

Re: [julia-users] Re: scope of do block, generalization to for block

2016-06-21 Thread David van Leeuwen
Hello, On Monday, June 20, 2016 at 5:38:04 PM UTC+2, Stefan Karpinski wrote: > > The reason as Cedric points out is that the do block syntax is just sugar > for an anonymous function body. There is a plan to provide a more > convenient mechanism for ensuring finalization: #7721 >

[julia-users] Re: Julia 0.4.6 Windows 32bits not run

2016-06-21 Thread Андрей Логунов
I had similar difficulties when having upgraded from 0.4.5 to 0.4.6 under Win10 x64. The REPL console did not run. But then i recalled that i'd added a value to the users's path variable, and it turned out to be the reason for the porblem in question for when i substituted 5 with 6 the problem

[julia-users] Re: Applied NLA course in Julia

2016-06-21 Thread Dawid Crivelli
@Chris: the Jacobi diagonalization is not included in IterativeSolvers, just the system solving one -- probably they're very close, but I'm not an expert on the topic

[julia-users] Re: Applied NLA course in Julia

2016-06-21 Thread Chris Rackauckas
@Crivelli You can a packaged form of these types of algorithms (like Jacobi iteration) at IterativeSolvers.jl Thanks for these teaching materials in Julia. They look great! On Tuesday, June 21, 2016 at 1:46:58 PM UTC+1, Dawid Crivelli wrote: > > Thanks for the notes, they look interesting. > >

Re: [julia-users] Re: Deepcopy of BigInt and BigFloat (#16999)

2016-06-21 Thread Chris Rackauckas
Will do. I just need to take the time to find out exactly what it fails with. I'll open some issues soon. Have a good time at JuliaCon! On Monday, June 20, 2016 at 11:15:28 PM UTC+1, Stefan Karpinski wrote: > > If you hit issues with DoubleDouble and/or generic math algorithms in > Julia's

[julia-users] [JuliaCon] Preferred wireless network?

2016-06-21 Thread Kristoffer Carlsson
FWIW, I have no problems with git on eduroam.

Re: [julia-users] [JuliaCon] Preferred wireless network?

2016-06-21 Thread Keno Fischer
Just get on MIT, it's better an MIT-Guest and doesn't have access control either. On Tue, Jun 21, 2016 at 8:56 AM, Douglas Bates wrote: > I don't think there is a separate discussion forum for JuliaCon so I am > posting here. > > I am using the eduroam network in the building

[julia-users] [JuliaCon] Preferred wireless network?

2016-06-21 Thread Douglas Bates
I don't think there is a separate discussion forum for JuliaCon so I am posting here. I am using the eduroam network in the building and can't use the command line git - the connection times out. I remember this happening a couple of years ago too. It is recommended to use the MIT-Guest

[julia-users] Re: Applied NLA course in Julia

2016-06-21 Thread Dawid Crivelli
Thanks for the notes, they look interesting. The Jacobi algorithm coded in Julia by someone competent is also very welcome - I heard it's perfect for tracking the evolution of eigenvalues when a matrix is continuously transformed, but I was too lazy to implement it myself! Probably a dedicated

[julia-users] Applied NLA course in Julia

2016-06-21 Thread Ivan Slapnicar
I'm will be lecturing the course Modern Applications of Numerical Linear Algebra at IIT Indore, June 24- July 5. The three modules are Short Julia Course, Eigenvalue and Singular Value Decompositions, and Applications. The lecture notes are all Jupyter notebooks, see

[julia-users] Re: Julia 0.4.6 Windows 32bits not run

2016-06-21 Thread Tony Kelman
Please provide more information. Exactly what error do you get? Can you try to run julia.exe from inside a command prompt if that provides more of an error message? On Tuesday, June 21, 2016 at 6:03:58 AM UTC-4, alx wrote: > > > > Hello, > > Julia 0.4.6 Windows 32bits, is installed correctly

[julia-users] Re: Julia 0.4.6 Windows 32bits not run

2016-06-21 Thread Андрей Логунов
Try to manually change/add paths in Control Panel > System & Security > System > Options... вторник, 21 июня 2016 г., 20:03:58 UTC+10 пользователь alx написал: > > > > Hello, > > Julia 0.4.6 Windows 32bits, is installed correctly but does not run, Wrong > configuration > > Windows XP >

[julia-users] Re: Julia does not run after upgrading to 0.4.6 (Win10 x64)

2016-06-21 Thread Андрей Логунов

Re: [julia-users] Replacing values in a DataFrame

2016-06-21 Thread Tamas Papp
let d=Dict(:yes => 1, :no => 2, :mixed => 3) df1[:y] = map(elt->d[elt], df1[:y]) end On Tue, Jun 21 2016, akrun wrote: > If the DataFrame is > > > using DataFrames > srand(2) > df1 = DataFrame(x=rand(5), y = rand([:yes, :no, :mixed], 5)) > > > I can replace an element say

[julia-users] Re: Julia 0.4.6 Windows 32bits not run

2016-06-21 Thread Андрей Логунов
Same with Win10 x64. See my post above. вторник, 21 июня 2016 г., 20:03:58 UTC+10 пользователь alx написал: > > > > Hello, > > Julia 0.4.6 Windows 32bits, is installed correctly but does not run, Wrong > configuration > > Windows XP >

[julia-users] Julia does not run after upgrading to 0.4.6 (Win10 x64)

2016-06-21 Thread Андрей Логунов
Oddly enough, but repl console does not start off after upgrading to 0.4.6 from 0.4.5. Tried installing different ways: side-by-side and from-scratch, to default path C:\Users\user\AppData\Local\Julia-0.4.6 and just C:\Julia-0.4.6, restart or no restart )) By the way, after deinstall Windows

[julia-users] Julia 0.4.6 Windows 32bits not run

2016-06-21 Thread alx
Hello, Julia 0.4.6 Windows 32bits, is installed correctly but does not run, Wrong configuration Windows XP

[julia-users] @task as generator, macro weirdness

2016-06-21 Thread David van Leeuwen
Hello, I think I want to use the `@task` idiom for a generator, but I can't wrap my head around macros, so I don't understand where this goes wrong: linebyline(file::IO) = @task while !eof(file) produce(readline(file)) end linebyline(file::AbstractString) = open(file) do fd

[julia-users] Replacing values in a DataFrame

2016-06-21 Thread akrun
If the DataFrame is using DataFrames srand(2) df1 = DataFrame(x=rand(5), y = rand([:yes, :no, :mixed], 5)) I can replace an element say 'yes' with 1 using map df1[:y] = map(e -> replace(string(e), "yes", 2), df1[:y]) and can do How do I replace all the elements ,