[julia-users] Re: "using HDF5, JLD" fails suddenly

2014-10-11 Thread Daniel Høegh
Sorry for being unclear. I can see you Julia Dev version is build on the 29 September, if you download a new build from today's master and install it I think it might solve the problem.

Re: [julia-users] This week in Julia

2014-10-11 Thread Viral Shah
That is a huge deal, yes. -viral > On 11-Oct-2014, at 5:41 pm, Tony Kelman wrote: > > Very nice, hope you keep this up. > > You missed that Julia can now compile to a REPL with MSVC for the first time > (https://github.com/JuliaLang/julia/pull/7761), I'm biased but I think that's > a rela

Re: [julia-users] Should reshape be reshape!?

2014-10-11 Thread Kevin Squire
Does linear indexing not work with "a" directly? On Saturday, October 11, 2014, Stephan Buchert wrote: > Yes, this is nice. > > I had expected, that > > b=reshape(a, ...) > > is equivalent to > > b=reshape(copy(a), ...) > > i.e. changing the values in b wouldn't be visible in a. And that a > fun

[julia-users] changing return types with PyCall and PyPlot

2014-10-11 Thread Ethan Anderes
I’m seeing some strange behavior with PyCall and PyPlot. I think it’s a bug but I thought I would post it here, first, in case I’m doing something totally silly. The basic point is that after using the PyPlot command imshow a PyCall function goes from returning a Julia Array to returning a PyO

Re: [julia-users] SubEthaEdit Julia syntax colouring mode

2014-10-11 Thread Rob J. Goedman
Thanks a lot Sheehan, works great. Rob J. Goedman goed...@icloud.com > On Oct 11, 2014, at 6:31 PM, Sheehan Olver wrote: > > > I've made a Julia syntax colouring mode for SubEthaEdit v3.5.4 > (http://www.codingmonkeys.de/subethaedit/), which can be found as Julia.mode > in > > https://g

[julia-users] SubEthaEdit Julia syntax colouring mode

2014-10-11 Thread Sheehan Olver
I've made a Julia syntax colouring mode for SubEthaEdit v3.5.4 (http://www.codingmonkeys.de/subethaedit/), which can be found as Julia.mode in https://github.com/dlfivefifty/SO.jl

Re: [julia-users] Behaviour of expanduser is inconsistent between platforms.

2014-10-11 Thread Sean Marshallsay
> > I would argue that homedir should handle a user argument and provide all > of this functionality. Thus, expanduser should just deal with parsing the > path and calling homedir and homedir should do all the heavy lifting. > Was my thinking exactly. I've made a start at this, I'll create a WI

Re: [julia-users] Behaviour of expanduser is inconsistent between platforms.

2014-10-11 Thread Stefan Karpinski
I would argue that homedir should handle a user argument and provide all of this functionality. Thus, expanduser should just deal with parsing the path and calling homedir and homedir should do all the heavy lifting. I'm not sure if homedir should take a positional or keyword argument – it would

Re: [julia-users] About usage in Emacs (not display prompt of Julia)

2014-10-11 Thread kenichi sasagawa
Thank you. > > I don't know anything about Julia on Windows, and julia runs fine in > my emacs shell on Linux. But, if you want to run julia inside emacs I > highly recommend ESS -- just make sure melpa is in your package > archive list: > > (add-to-list 'package-archives > '("m

Re: [julia-users] PPA for Ubuntu 14.04 (Trusty Tahr)

2014-10-11 Thread Helios De Rosario
Hi Elliot. This is what I have done, with detailed output. I hope it helps to understand what is happening. (My Ubuntu is in Spanish, but I hope that the Spanish output lines are understandable anyway.) 1. Install Julia from the PPA repo helios@ubuntu-pc:~$ sudo apt-get install julia Leyendo list

Re: [julia-users] going back to old package version

2014-10-11 Thread tcs
Thanks a lot Elliot! I will file an issue. On Saturday, October 11, 2014 7:26:36 PM UTC-4, Elliot Saba wrote: > > Also, if something isn't working with the new version of HDF5, please do > make sure to report it here , > as I'm sure Tim Holy will want t

Re: [julia-users] going back to old package version

2014-10-11 Thread Elliot Saba
Also, if something isn't working with the new version of HDF5, please do make sure to report it here , as I'm sure Tim Holy will want to know about it. Once things are fixed enough for you to update to the latest version, don't forget to Pkg.free("HDF5")

Re: [julia-users] going back to old package version

2014-10-11 Thread Elliot Saba
You can use Pkg.pin() to force a certain package to a certain version. Check out the second listing for pin() in the documentation here . As an example, I'm currently at HDF5 v0.4.4. I can pin it to v0.4.3 as follows: julia> Pkg.pi

[julia-users] going back to old package version

2014-10-11 Thread tcs
Hi there, How can I go back to an old package version? I am having trouble with the new version of HDF5 and I need (pretty urgently) some data that I have saved this way. Many thanks, tcs

Re: [julia-users] Should reshape be reshape!?

2014-10-11 Thread Kevin Squire
Does linear indexing not work with "a" directly? On Saturday, October 11, 2014, Stephan Buchert wrote: > Yes, this is nice. > > I had expected, that > > b=reshape(a, ...) > > is equivalent to > > b=reshape(copy(a), ...) > > i.e. changing the values in b wouldn't be visible in a. And that a > fun

Re: [julia-users] PPA for Ubuntu 14.04 (Trusty Tahr)

2014-10-11 Thread Elliot Saba
Yep. We want this to be as compatible as possible. The output of /proc/cpuinfo would also be useful. Thanks! -E On Sat, Oct 11, 2014 at 2:46 PM, Helios De Rosario < helios.derosa...@gmail.com> wrote: > Hi, it is an old 32-bit machine. I had already uninstalled Julia 0.3.1 and > downgraded to t

Re: [julia-users] Re: ANN: Compat.jl

2014-10-11 Thread Stefan Karpinski
That would defeat the purpose. Compat needs to be as recent as the new syntax and features that it abstracts over. > On Oct 11, 2014, at 5:27 PM, Tony Fong wrote: > > Great! Shouldn't it be in Base? > >> On Sunday, October 12, 2014 1:17:38 AM UTC+7, Stefan Karpinski wrote: >> This announcemen

Re: [julia-users] Behaviour of expanduser is inconsistent between platforms.

2014-10-11 Thread Jameson Nash
For the current user (for any platform), `~` should expand to `Base.homedir()` to find the value for another user on windows (for users that are logged in?) it is apparently best to do an ldap query: http://www.geekshangout.com/node/27 On Sat, Oct 11, 2014 at 4:59 PM, Sean Marshallsay wrote: >

[julia-users] Re: "using HDF5, JLD" fails suddenly

2014-10-11 Thread tcs
Excuse my ignorance but do you mean to update to the nightly of the package or julia. The latter I have alerady done but it does not seem to work. I unfortunately wouldn't know how to do the former. On Saturday, October 11, 2014 5:02:55 PM UTC-4, Daniel Høegh wrote: > > I think if you update to

Re: [julia-users] PPA for Ubuntu 14.04 (Trusty Tahr)

2014-10-11 Thread Helios De Rosario
Hi, it is an old 32-bit machine. I had already uninstalled Julia 0.3.1 and downgraded to the 0.2.1 version from the Ubuntu repo, which does run smoothly. But I will give it another try and let you know. Thanks for the support. Helios On Fri, Oct 10, 2014 at 10:11 PM, Elliot Saba wrote: > What k

[julia-users] Re: ANN: Compat.jl

2014-10-11 Thread Tony Fong
Great! Shouldn't it be in Base? On Sunday, October 12, 2014 1:17:38 AM UTC+7, Stefan Karpinski wrote: > > This announcement is primarily for Julia package developers. Since there > is already some syntax breakage between Julia v0.3 and v0.4, and there will > be more, it's increasingly tricky to

[julia-users] Re: Should reshape be reshape!?

2014-10-11 Thread Stephan Buchert
Yes, this is nice. I had expected, that b=reshape(a, ...) is equivalent to b=reshape(copy(a), ...) i.e. changing the values in b wouldn't be visible in a. And that a function creating only a new binding to the same values would be reshape! Compare also with resize! But anyway, great. Now I

[julia-users] "using HDF5, JLD" fails suddenly

2014-10-11 Thread Daniel Høegh
I think if you update to a new nightly it will work because the library has changed to conform to the pull-request.

[julia-users] Re: "using HDF5, JLD" fails suddenly

2014-10-11 Thread tcs
Do you have any idea how I can get back to a working version? On Saturday, October 11, 2014 4:57:41 PM UTC-4, Daniel Høegh wrote: > > It is probably due to this merged pull-request. > https://github.com/JuliaLang/julia/pull/8521 > > When you are using 0.4 you should not expect that packages is wor

Re: [julia-users] Behaviour of expanduser is inconsistent between platforms.

2014-10-11 Thread Sean Marshallsay
The variable is %HOMEPATH% but I don't know what the equivalent to the password database is. I think for now it might be best just expanding to %HOMEPATH% and someone who is more experienced with Windows can weigh in later. On Saturday, 11 October 2014 18:54:03 UTC+1, Stefan Karpinski wrote: >

[julia-users] "using HDF5, JLD" fails suddenly

2014-10-11 Thread Daniel Høegh
It is probably due to this merged pull-request. https://github.com/JuliaLang/julia/pull/8521 When you are using 0.4 you should not expect that packages is working.

Re: [julia-users] About usage in Emacs (not display prompt of Julia)

2014-10-11 Thread Ista Zahn
On Fri, Oct 10, 2014 at 9:41 PM, kenichi sasagawa wrote: > Hello > I like Julia very much. I switched from Scheme. > By the way, please tell me usage in Emacs(on WIndows7). > I'm in trouble that prompt is not displayed in the Shell. > I'm guessing Julia display prompt without STDIO. > Yours sincer

[julia-users] "using HDF5, JLD" fails suddenly

2014-10-11 Thread tcs
I am on linux, Ubuntu and the julia version is 0.4.0-dev+820 (2014-09-29 02:58 UTC) I get the following error: ERROR: unsupported or misplaced expression => in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128 in include at ./boot.jl:245 in include_from_node1 at ./loading.jl

[julia-users] Re: Should reshape be reshape!?

2014-10-11 Thread Peter Simon
It's not necessary because you can assign the result of reshape to the same variable with virtually no overhead: julia> a = rand(1000,100,100); julia> @time a = reshape(a,prod(size(a))); elapsed time: 1.1732e-5 seconds (336 bytes allocated) --Peter On Saturday, October 11, 2014 1:20:13 PM UTC-

[julia-users] Should reshape be reshape!?

2014-10-11 Thread Stephan Buchert
julia> a=[1 2; 3 4; 5 6] 3x2 Array{Int64,2}: 1 2 3 4 5 6 julia> b=reshape(a, prod(size(a))); julia> b[3]=0 0 julia> a 3x2 Array{Int64,2}: 1 2 3 4 0 6

Re: [julia-users] Adding remote nodes using qsub

2014-10-11 Thread David van Leeuwen
ClusterManagers works well, and quite transparantly w.r.t. parallel execution in Julia. My only problems is that you can't specify the SGE queue name, so my jobs get killed if they last too long (the default queue has a 1h limit in our setup). ---david On Saturday, October 11, 2014 7:05:15

[julia-users] default display/print/show/summary in REPL?

2014-10-11 Thread David van Leeuwen
Hello, I am trying to get my package NamedArrays compatible again with v0.4 and beyond. I am running into the same problem I seem to be having over and over again, and that is that I don't know which function signature I need to overload in order to display my type in the REPL. In 0.2-0.3 I

Re: [julia-users] Issue with Pkg.add

2014-10-11 Thread Elliot Saba
What version of Julia are you using? -E On Sat, Oct 11, 2014 at 10:45 AM, Bruno Gomes wrote: > Hi, I have a problem. When I call Pkg.add I get the following > > Pkg.add("RDatasets") > error: `convert` has no method matching convert(::Type{UTF8String}, :: > ASCIIString) > > I tried > > Pkg.add(as

Re: [julia-users] Re: GSoC: Julia IDE Progress update

2014-10-11 Thread Mike Innes
That sounds like a bug – if you can it'd be great to open an issue with more info (perhaps a screenshot/example) so I can look into it. On 11 October 2014 15:20, Raul Durand wrote: > It works ok for me. Only issue is that Juno does not point the source line > where an error occurs. It just point

[julia-users] ANN: Compat.jl

2014-10-11 Thread Stefan Karpinski
This announcement is primarily for Julia package developers. Since there is already some syntax breakage between Julia v0.3 and v0.4, and there will be more, it's increasingly tricky to make packages to work on both versions. The Compat package was just crea

Re: [julia-users] Behaviour of expanduser is inconsistent between platforms.

2014-10-11 Thread Stefan Karpinski
That seems like a reasonable strategy. I guess the question for Windows is what the equivalents to the HOME environment variable and the password database are. On Sat, Oct 11, 2014 at 5:54 AM, Sean Marshallsay wrote: > I've only had a quick look but basically for just a tilde it looks for > $HOM

[julia-users] Issue with Pkg.add

2014-10-11 Thread Bruno Gomes
Hi, I have a problem. When I call Pkg.add I get the following Pkg.add("RDatasets") error: `convert` has no method matching convert(::Type{UTF8String}, :: ASCIIString) I tried Pkg.add(ascii("RDatasets")) but the same occurs. Thanks in advance.

Re: [julia-users] Adding remote nodes using qsub

2014-10-11 Thread Isaiah Norton
Have you tried ClusterManagers? It appears to have qsub support: https://github.com/JuliaLang/ClusterManagers.jl/blob/master/src/qsub.jl On Sat, Oct 11, 2014 at 12:40 PM, Kapil wrote: > Hi > > I am using a cluster in which jobs are started on remote nodes are using > qsub. > How can I add these

Re: [julia-users] Re: Installing Julia Studio properly on Windows 7 - Step by Step Instructions

2014-10-11 Thread Isaiah Norton
JuliaStudio will probably accept pull requests to support 0.3 if you can debug the problem. Otherwise, it is best to try a different option such as IJulia, Juno/LightTable, or Sublime-IJulia. On Fri, Oct 10, 2014 at 5:35 AM, wrote: > Thanks Iain. So then how could I fix it? > > On Wednesday, Nov

Re: [julia-users] remote_call not defined

2014-10-11 Thread Andreas Noack
I couldn't see a date on the article, but maybe it is a bit old. It is very likely that is has been fine a while ago. Med venlig hilsen Andreas Noack 2014-10-11 12:31 GMT-04:00 Kapil : > Okay, I'll use the official documentation. The link is on julialang.org, > so I thought it was a tutorial ac

Re: [julia-users] Weird errors when overloading +

2014-10-11 Thread Isaiah Norton
If you are on master (looks like Ubuntu nightly?) then this is probably related to: https://github.com/JuliaLang/julia/pull/8521 The docs were updated with that pr, but the default doc link on the homepage is to the release-0.3 branch, so you have to manually select `latest` with the popup in the

Re: [julia-users] Re: Structure and Interpretation of Classical Mechanics

2014-10-11 Thread Francesco Bonazzi
On Saturday, October 11, 2014 4:49:50 PM UTC+2, Erik Schnetter wrote: > > > No, they only know the types with which the function is called. In > general, the types of new expressions that are generated cannot be > known until they are evaluated. > I'm wondering about some construction like th

[julia-users] Adding remote nodes using qsub

2014-10-11 Thread Kapil
Hi I am using a cluster in which jobs are started on remote nodes are using qsub. How can I add these nodes while running Julia from the head node ? Also, each node has multiple cores, so I need to make use of those cores as well. Regards, Kapil Agarwal ᐧ

[julia-users] Weird errors when overloading +

2014-10-11 Thread Christian Stucchio
So I've got a type Predicate{T}. It has the following methods defined: function or{T}(first::Predicate{T}, rest::Predicate{T}...) ... create and simplify a predicate by oring them together... end +{T}(b1::Predicate{T}, b::Predicate{T}...) = begin println("+ called") or(b1, b...) end

Re: [julia-users] Re: GSoC: Julia IDE Progress update

2014-10-11 Thread Raul Durand
It works ok for me. Only issue is that Juno does not point the source line where an error occurs. It just points the file name. Great work though.

Re: [julia-users] remote_call not defined

2014-10-11 Thread Kapil
Okay, I'll use the official documentation. The link is on julialang.org, so I thought it was a tutorial accepted by the julia-dev. ᐧ Regards, Kapil Agarwal On Sat, Oct 11, 2014 at 12:27 PM, Andreas Noack < andreasnoackjen...@gmail.com> wrote: > You'll have to fetch the remote reference, i.e. rem

Re: [julia-users] remote_call not defined

2014-10-11 Thread Andreas Noack
You'll have to fetch the remote reference, i.e. remotecall(2, +, 1, fetch(r)). Any reason not to use the official documentation? Med venlig hilsen Andreas Noack 2014-10-11 12:24 GMT-04:00 Kapil : > > Going from the same link, I perform the following operations- > > r = remotecall(2, +, 2, 2) >

Re: [julia-users] remote_call not defined

2014-10-11 Thread Kapil
Going from the same link, I perform the following operations- r = remotecall(2, +, 2, 2) s = remotecall(2, +, 1, r) I get the following errors- exception on 2: ERROR: `+` has no method matching +(::Int64, ::RemoteRef) in anonymous at multi.jl:819 in run_work_thunk at multi.jl:592 in run_work_

Re: [julia-users] remote_call not defined

2014-10-11 Thread Kapil
Okay, I went to this link http://www.admin-magazine.com/HPC/Articles/Parallel-Julia-Jumping-Right-In which is listed in the Julia learning resources where it is written as remote_call. Maybe the link should be fixed. ᐧ Regards, Kapil Agarwal On Sat, Oct 11, 2014 at 12:18 PM, Andreas Noack < andr

Re: [julia-users] remote_call not defined

2014-10-11 Thread Andreas Noack
It is "remotecall" without the underscore. Med venlig hilsen Andreas Noack 2014-10-11 12:10 GMT-04:00 Kapil Agarwal : > Hi > > I started Julia with 'julia -q -p 2' and then ran 'r = remote_call(2, +, > 2, 2)' and I get 'ERROR: remote_call not defined'. > > Please help me solve the issue. > > I

[julia-users] remote_call not defined

2014-10-11 Thread Kapil Agarwal
Hi I started Julia with 'julia -q -p 2' and then ran 'r = remote_call(2, +, 2, 2)' and I get 'ERROR: remote_call not defined'. Please help me solve the issue. I am using a machine with 16 cores. Kapil

Re: [julia-users] more implementations of convert()

2014-10-11 Thread Milan Bouchet-Valat
Looks like this debate is similar to https://github.com/JuliaLang/julia/issues/8450 Regards Le vendredi 10 octobre 2014 à 13:36 -0700, Tim Holy a écrit : > I think the problem is in deciding "when do I use the equivalent of map?" and > "when do I convert as a whole object?" For example, if I sa

Re: [julia-users] Re: Structure and Interpretation of Classical Mechanics

2014-10-11 Thread Erik Schnetter
On Sat, Oct 11, 2014 at 10:10 AM, Francesco Bonazzi wrote: > > On Saturday, October 11, 2014 3:07:48 PM UTC+2, Erik Schnetter wrote: >> >> (1) Staged functions are evaluated when the function's types are >> known. They are somewhat in between macros and functions, but still >> operate on expressio

[julia-users] Re: Code slower if not enclosed in a function?

2014-10-11 Thread Patrick O'Leary
On Saturday, October 11, 2014 9:44:39 AM UTC-5, David Smith wrote: > > Thanks! I still don't understand why something this simple, even in the > global scope, can't be optimized. > Because the type can be changed out from under the optimizer. If you make the variables const, that should also wo

[julia-users] Re: Code slower if not enclosed in a function?

2014-10-11 Thread David Smith
Thanks! I still don't understand why something this simple, even in the global scope, can't be optimized. Also, any idea why the regression in run time from 0.3 to 0.4? On Friday, October 10, 2014 11:05:02 PM UTC-5, Patrick O'Leary wrote: > > > http://julia.readthedocs.org/en/release-0.3/manu

Re: [julia-users] Re: Structure and Interpretation of Classical Mechanics

2014-10-11 Thread Francesco Bonazzi
On Saturday, October 11, 2014 3:07:48 PM UTC+2, Erik Schnetter wrote: > > (1) Staged functions are evaluated when the function's types are > known. They are somewhat in between macros and functions, but still > operate on expressions instead of values. > > Are staged functions able to get the w

Re: [julia-users] DataFrames: convert categorical variables to dummy ones?

2014-10-11 Thread Andrei Zh
I found it convenient in some cases to flatten categorical variables into separate new columns instead of wrapping them into PooledDataArray or CategoricalVariables. Here's some functions for doing this: function getdummy{R}(df::DataFrame, cname::Symbol, ::Type{R}) darr = df[cname] vals

Re: [julia-users] Re: Structure and Interpretation of Classical Mechanics

2014-10-11 Thread Erik Schnetter
On Sat, Oct 11, 2014 at 8:01 AM, Francesco Bonazzi wrote: > > > On Friday, October 10, 2014 3:44:53 PM UTC, Erik Schnetter wrote: >> >> >> What do you mean by "constructor for symbolic manipulation"? Julia >> does support symbolic manipulation; this is e.g. used in macros, and >> there is a class

[julia-users] Re: This week in Julia

2014-10-11 Thread Tony Kelman
Very nice, hope you keep this up. You missed that Julia can now compile to a REPL with MSVC for the first time (https://github.com/JuliaLang/julia/pull/7761), I'm biased but I think that's a relatively big deal. On Friday, October 10, 2014 7:30:11 PM UTC-7, Matt Bauman wrote: > > This is an ex

Re: [julia-users] Re: Structure and Interpretation of Classical Mechanics

2014-10-11 Thread Francesco Bonazzi
On Friday, October 10, 2014 3:44:53 PM UTC, Erik Schnetter wrote: > > > What do you mean by "constructor for symbolic manipulation"? Julia > does support symbolic manipulation; this is e.g. used in macros, and > there is a class "Expr" that holds unevaluated expressions. However, > there are n

[julia-users] Re: Multi-OS (Linux + Mac) testing in Travis

2014-10-11 Thread Tony Kelman
You're very welcome Jeff. More testing of more packages on more platforms is a good thing. Keep an eye on (and share your opinion in) https://github.com/JuliaLang/julia/issues/7364 for how to possibly simplify the installation code. Might put up a single script with all the OS logic so you coul

Re: [julia-users] Behaviour of expanduser is inconsistent between platforms.

2014-10-11 Thread Sean Marshallsay
I've only had a quick look but basically for just a tilde it looks for $HOME, if there is no $HOME or there was a username appended it looks in the password database otherwise it returns the string unchanged. On Friday, 10 October 2014 20:23:45 UTC+1, Stefan Karpinski wrote: > > How does bash ha

Re: [julia-users] ANN: GeometricalPredicates.jl

2014-10-11 Thread Ariel Keselman
Good questions, I think I have some answers: 1) The problem using an integer lattice is that Int64s would regularly overflow. In order to not overflow, for the 2D case, you would need to use at most 16-bits for coordinate information. Of course it is worse for the 3D case. So a fast and simple