[julia-users] problem adding Winston on OSX 10.10.3

2015-06-14 Thread K leo
Thanks for the message. While `brew install xz` had trouble, I found my /usr/local/include and /usr/local/lib are owned by 'root:wheel', which means I have no write permission. I am not sure why it is this way and what 'wheel' is. It might have happened when I installed OSXFuse as there are OSXF

[julia-users] How to know the size of a large array stored in a csv file (greater than RAM

2015-06-14 Thread paul analyst
How to know the size of a large array stored in a csv file (greater than RAM , I can not use readcsv. After that I want to apply the open (file, size, size) Paul

[julia-users] Does anyone see problems running the same Julia code across two OS'es?

2015-06-14 Thread K leo
I recently tried to configure Julia on the new MacBook Pro running OSX 10.10.3 but encountered problems. While I am trying to figure out the problems, I would like to use Julia on Xubuntu as a guest system installed on VirtualBox on the OSX host. I put my Julia code in the shared folder of Virtua

[julia-users] Re: how to move Julia packages from Ubuntu to OSX?

2015-06-14 Thread K leo
Adding Winston individually succeeded. But I still get the font problem. Looks the same as before. === julia> using Winston ploWarning: could not import Base.Text into Tkt julia> plot(1:3) (process:73606): Pango-WARNING **: dlopen(/usr/local/Cellar/pango/1.36.8/lib/pango/1.8.0/module

[julia-users] Re: Vienna Julia Meetup

2015-06-14 Thread Viral Shah
Please do submit to list the Meetup here: http://julialang.org/community/ -viral On Friday, June 12, 2015 at 5:48:55 AM UTC-4, René Donner wrote: > > Hi, > > are there any fellow Julia users in Vienna, Austria, which would be > interested in setting up a monthly meetup? > > There are current

Re: [julia-users] Current Performance w Trunk Compared to 0.3

2015-06-14 Thread Viral Shah
FWIW, I have seen a 25% regression from 0.3 to 0.4 on a reasonably complex codebase, but haven't been able to isolate the offending code. GC time in the 0.4 run is significantly smaller than 0.3, which means that if you discount GC, the difference is more like 40%. I wonder if this is some weir

[julia-users] Re: Monte Carlo examples using the MPI package

2015-06-14 Thread Viral Shah
Unless you really need to use some MPI functionality, why not use the built-in parallel processing capabilities? Does using MPI give a major performance benefit in your case? -viral On Friday, June 12, 2015 at 3:38:34 AM UTC-4, michael.cr...@gmail.com wrote: > > https://github.com/mcreel/JuliaM

[julia-users] Re: Simple Conjugate Gradients coded in Julia is much faster than cholfact

2015-06-14 Thread Viral Shah
FWIW, the julia sparse matrix vector multiplication is very simple. I expect that further speedups possible by using libraries such as OSKI or MKL. In the ideal world, we would have autotuning kernels in Julia itself. -viral On Monday, June 1, 2015 at 9:12:01 AM UTC-4, Eduardo Lenz wrote: > > H

[julia-users] How to Initialize a Composite Type

2015-06-14 Thread Ranjan Anantharaman
Hello, How do I initialize this composite type in Julia? type foo a::Int64 function boss() println("Hey, boss!") end end If I do f = foo(1), then I get the following error: ERROR: MethodError: `convert` has no method matching convert(::Type{foo}, ::Int64) This may have arisen from a

Re: [julia-users] Current Performance w Trunk Compared to 0.3

2015-06-14 Thread Tim Holy
git bisect? Perhaps the leading candidate is https://github.com/JuliaLang/julia/issues/11681 which may be fixed by https://github.com/JuliaLang/julia/pull/11683 --Tim On Sunday, June 14, 2015 02:58:19 AM Viral Shah wrote: > FWIW, I have seen a 25% regression from 0.3 to 0.4 on a reasonably comp

[julia-users] Re: How to Initialize a Composite Type

2015-06-14 Thread Simon Danisch
Julia is not object oriented, so you only put constructors inside the type definition, which are then inner constructors. Inner constructors overwrite the default constructor, so the function boss() replaces foo(::Int64). What you probably want is: type foo a::Int end function boss(::foo) p

[julia-users] Re: How to Initialize a Composite Type

2015-06-14 Thread David Gold
@Simon that was my original thought, too. But, this actually works for me: julia> type foo a::Int64 function boss() println("Hey, boss!") end end julia> f = foo(1) foo(1) @Ranjan, what version of Julia are you using? On Sunday, June 14, 2015 at

[julia-users] Re: How to Initialize a Composite Type

2015-06-14 Thread David Gold
Nvm, totally doesn't work for me. On Sunday, June 14, 2015 at 7:40:56 AM UTC-4, Simon Danisch wrote: > > Julia is not object oriented, so you only put constructors inside the type > definition, which are then inner constructors. > Inner constructors overwrite the default constructor, so the funct

[julia-users] Re: Monte Carlo examples using the MPI package

2015-06-14 Thread michael . creel
My reason for using MPI is simply that I'm used to MPI, and t is very easy for me to adapt existing Octave code that uses MPI to use Julia instead of Octave. For code such as these Monte Carlo examples, I doubt that it would make much difference if one were to use pmap, for example, instead of M

Re: [julia-users] Monte Carlo examples using the MPI package

2015-06-14 Thread Viral Shah
Thanks for the explanation. That does seem reasonable. We do go through a few hoops to make MPI work with Julia, but so long as it works fine for you - that is indeed great news! -viral > On 14-Jun-2015, at 8:15 am, michael.cr...@gmail.com wrote: > > My reason for using MPI is simply that I'

Re: [julia-users] Re: Errors while trying to use JuMP

2015-06-14 Thread Miles Lubin
What is the output of versioninfo() (at the Julia command line)? Also, try deleting your ~/.julia directory and reinstalling the packages you need. On Saturday, June 13, 2015 at 3:11:16 PM UTC+2, Kostas Tavlaridis-Gyparakis wrote: > > Here is the outcome of Pkg.status(): > > Pkg.status() > 5 re

Re: [julia-users] Re: Errors while trying to use JuMP

2015-06-14 Thread Kostas Tavlaridis-Gyparakis
The output of versioninfo() is the following: Julia Version 0.3.0-rc1+54 Commit 4e92487 (2014-07-17 05:40 UTC) Platform Info: System: Linux (x86_64-linux-gnu) CPU: Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz WORD_SIZE: 64 BLAS: libblas.so.3 LAPACK: liblapack.so.3 LIBM: libopenlibm I alr

Re: [julia-users] Re: ccall and vector from c++

2015-06-14 Thread Yichao Yu
On Sun, Jun 14, 2015 at 2:04 AM, Jan Strube wrote: > PPS: Sorry, the segfault actually is unrelated. Nevertheless, I can't > figure out the right ccall signature. > If you are on a new enough version, you can probably try Cxx.jl[1] Otherwise, you probably need to do the conversion yourself. Have

Re: [julia-users] Re: Errors while trying to use JuMP

2015-06-14 Thread Miles Lubin
You're using a prerelease version of 0.3 from nearly a year ago. Not sure how this came to be installed, but you'll need to update to 0.3.0 release or later. On Jun 14, 2015 2:38 PM, "Kostas Tavlaridis-Gyparakis" < kostas.tavlari...@gmail.com> wrote: > The output of versioninfo() is the following:

Re: [julia-users] Re: ccall and vector from c++

2015-06-14 Thread Jan Strube
Thank you for your suggestions. I haven't tried Cxx.jl, since that apparently requires some effort installing a new LLVM, which makes it harder to convince others to use the bindings. Your second suggestion is unfortunately going in the wrong direction, taking a Julia array and passing it to C.

Re: [julia-users] Re: ccall and vector from c++

2015-06-14 Thread Yichao Yu
On Sun, Jun 14, 2015 at 9:00 AM, Jan Strube wrote: > Thank you for your suggestions. > I haven't tried Cxx.jl, since that apparently requires some effort > installing a new LLVM, which makes it harder to convince others to use the > bindings. > Your second suggestion is unfortunately going in the

Re: [julia-users] Re: Errors while trying to use JuMP

2015-06-14 Thread Kostas Tavlaridis-Gyparakis
Ok, so after deleting all the julia files from my laptop and downloading the latest version from github ( git clone git://github.com/JuliaLang/julia.git ), when I try to run make in the terminal after a huge run of 50 minutes in the end the following msg is desplayed in my terminal: checking fo

Re: [julia-users] Re: Errors while trying to use JuMP

2015-06-14 Thread Kostas Tavlaridis-Gyparakis
Ok fixed that one, but now I have another installation problem, I receive the following error: /bin/sh: 2: cmake: not found make[1]: *** [libgit2/build/Makefile] Error 127 make: *** [julia-deps] Error 2 Once I do finally manage to sucessfully install julia I will come back to you! On Sunday, Jun

[julia-users] How to deploy Julia

2015-06-14 Thread Daniel Carrera
I never cease to be impressed by Julia's speed. I just wrote a test program in Julia and Fortran 90 (it computes the gravitational force between some planets). To my surprise, the Julia version was 7% faster than Fortran. So... apparently one can write N-body codes with Julia. Suppose I wrote a s

[julia-users] Re: How to deploy Julia

2015-06-14 Thread Kristoffer Carlsson
I think this is the issue you want to keep track of regarding static compilation: https://github.com/JuliaLang/julia/pull/8745 On Sunday, June 14, 2015 at 4:17:03 PM UTC+2, Daniel Carrera wrote: > > I never cease to be impressed by Julia's speed. I just wrote a test > program in Julia and Fortra

[julia-users] Re: How to deploy Julia

2015-06-14 Thread Andreas Lobinger
Hello colleague, On Sunday, June 14, 2015 at 4:17:03 PM UTC+2, Daniel Carrera wrote: > > I never cease to be impressed by Julia's speed. I just wrote a test > program in Julia and Fortran 90 (it computes the gravitational force > between some planets). To my surprise, the Julia version was 7% fa

[julia-users] Re: How to deploy Julia

2015-06-14 Thread Daniel Høegh
You can build an binary executable with this script: https://github.com/JuliaLang/julia/blob/master/contrib/build_executable.jl. It compiles the scripts main function into Julia's sysimg. I have used it myself to distribute a small program.

Re: [julia-users] Re: Organizing code around Jump models

2015-06-14 Thread Francois Gilbert
I understand and concur with your comment regarding the proper use of abstract types. And yes, defining appropriate abstractions is challenging. A few more iterations will likely be required for us. For now, most of my hesitations concern how to extend a given object and its functionality: say

Re: [julia-users] Re: ccall and vector from c++

2015-06-14 Thread Jan Strube
I had tried using this before, but incorrectly, I guess. Now this works for me # returns names for collections in event function getCollectionNameArray(event::Ptr{Void}) nameArray = String[] names = ccall((:lcevtgetcollectionnames, libName), Ptr{Ptr{Uint8}}, (Ptr{Void},), event) nNames = ccall((:

[julia-users] print_escaped / DataFrames.writetable: "invalid UTF-8 character index" error

2015-06-14 Thread Robert Feldt
I read in a csv file which has UTF-8 characters, filter it but when I try to write it back to disk with writetable I get: invalid UTF-8 character index in next at /Applications/Julia-0.3.8.app/Contents/Resources/julia/lib/julia/sys.dylib in need_full_hex at /Applications/Julia-0.3.8.app/Con

Re: [julia-users] print_escaped / DataFrames.writetable: "invalid UTF-8 character index" error

2015-06-14 Thread Milan Bouchet-Valat
Le dimanche 14 juin 2015 à 12:21 -0700, Robert Feldt a écrit : > I read in a csv file which has UTF-8 characters, filter it but when I > try to write it back to disk with writetable I get: > > invalid UTF-8 character index > in next at > /Applications/Julia-0.3.8.app/Contents/Resources/julia/lib

[julia-users] Re: How to deploy Julia

2015-06-14 Thread Peter Simon
You can install Julia on that cluster from the gzipped tar ball: https://julialang.s3.amazonaws.com/bin/linux/x64/0.3/julia-0.3.9-linux-x86_64.tar.gz into any directory for which you have write access. --Pete On Sunday, June 14, 2015 at 7:17:03 AM UTC-7, Daniel Carrera wrote: > > I never cease

Re: [julia-users] print_escaped / DataFrames.writetable: "invalid UTF-8 character index" error

2015-06-14 Thread Milan Bouchet-Valat
Le dimanche 14 juin 2015 à 22:01 +0200, Milan Bouchet-Valat a écrit : > Le dimanche 14 juin 2015 à 12:21 -0700, Robert Feldt a écrit : > > I read in a csv file which has UTF-8 characters, filter it but when I > > try to write it back to disk with writetable I get: > > > > invalid UTF-8 character i

Re: [julia-users] print_escaped / DataFrames.writetable: "invalid UTF-8 character index" error

2015-06-14 Thread Robert Feldt
Yes, thanks anyway. I sent a trimmed down version to John Myles White. Seems the file might contain non-valid UTF-8 but then it should not be possible to read it in via readtable imho since writetable will then fail. Might be something else though. Cheers, Robert Den söndag 14 juni 2015 kl. 2

Re: [julia-users] Re: Errors while trying to use JuMP

2015-06-14 Thread Tony Kelman
Check the list of required built tools here https://github.com/JuliaLang/julia#required-build-tools-and-external-libraries if you want to build from source. Note that unless you're contributing to Julia development, you should build from the release-0.3 stable branch. You shouldn't have to bui

[julia-users] Re: FFT performance compared to MATLAB

2015-06-14 Thread Juan Carlos Cuevas Bautista
Hi Everybody, I am new in Julia Programming. I have been following this post to optimize my code of time series in which I have big heavy files of data. I changed the line float32([1:38192]) by float64([1:38192]) but the script does not work, I know this is related with this method Base.FFTW.Pl

[julia-users] Can I define type aliases as described below?

2015-06-14 Thread Henri de Feraudy
Hi, pardon me if I'm not using quite the right terminology . I'll give you a practical problem I had in a C program (and I could have had it in Jula, it seems) : I was dealing with image processing, and as you know sometimes pixels are referenced by (row,col) but sometimes by (col,row), that is (

Re: [julia-users] Can I define type aliases as described below?

2015-06-14 Thread Tim Holy
You might be interested in contributing to the development of https://github.com/mbauman/AxisArrays.jl --Tim On Sunday, June 14, 2015 09:18:16 AM Henri de Feraudy wrote: > Hi, pardon me if I'm not using quite the right terminology > . > I'll give you a practical problem I had in a C program (and

[julia-users] How to deploy Julia

2015-06-14 Thread David P. Sanders
Out of interest, does your code use arrays (for positions if the particles etc?) If so, does it use standard Julia arrays? David

[julia-users] Index into an array with an IntSet

2015-06-14 Thread colintbowers
Hi all, In v0.3.x, I can't seem to do the following (I get a "no method exists" error): randn(10)[IntSet(2, 3, 4)] Is this possible in v0.4? If not, is there a reason why I shouldn't want the ability to do this? Cheers, Colin

[julia-users] Index into an array with an IntSet

2015-06-14 Thread Matt Bauman
No, this isn't implemented in 0.4, either. It is something I've thought about, but IntSet's current semantics aren't quite right for the job. See: https://github.com/JuliaLang/julia/pull/10065#issuecomment-93853097 It may be worth splitting that PR out into the IndexSet package for this purpose

[julia-users] Re: How to Initialize a Composite Type

2015-06-14 Thread Ranjan Anantharaman
But Simon, Julia allows me to define this composite type. There just doesn't seem to be any obvious way to create an object of that type. Additionally, writing the type that way results in the same error. On Sunday, 14 June 2015 17:10:56 UTC+5:30, Simon Danisch wrote: > > Julia is not object or

[julia-users] Re: How to Initialize a Composite Type

2015-06-14 Thread Ranjan Anantharaman
@David, What doesn't work for you? Do you mean you're getting the same error? On Monday, 15 June 2015 08:55:07 UTC+5:30, Ranjan Anantharaman wrote: > > But Simon, Julia allows me to define this composite type. There just > doesn't seem to be any obvious way to create an object of that type. > >

[julia-users] Re: How to deploy Julia

2015-06-14 Thread Huda Nassar
You shouldn't need root access. Just did this few weeks ago (downloaded and installed 0.3.8). Should work in any directory you have write access on. On Sunday, June 14, 2015 at 10:17:03 AM UTC-4, Daniel Carrera wrote: > > I never cease to be impressed by Julia's speed. I just wrote a test > prog

[julia-users] Re: How to deploy Julia

2015-06-14 Thread Daniel Carrera
Thanks! On Sunday, 14 June 2015 16:31:50 UTC+2, Kristoffer Carlsson wrote: > > I think this is the issue you want to keep track of regarding static > compilation: https://github.com/JuliaLang/julia/pull/8745 > > On Sunday, June 14, 2015 at 4:17:03 PM UTC+2, Daniel Carrera wrote: >> >> I never cea

[julia-users] Re: How to deploy Julia

2015-06-14 Thread Daniel Carrera
Thanks. I'll give it a try. On Sunday, 14 June 2015 16:51:40 UTC+2, Daniel Høegh wrote: > > You can build an binary executable with this script: > https://github.com/JuliaLang/julia/blob/master/contrib/build_executable.jl. > It compiles the scripts main function into Julia's sysimg. I have used

Re: [julia-users] Can I define type aliases as described below?

2015-06-14 Thread Mauro
I think what you mean has been discussed in https://groups.google.com/forum/#!msg/julia-dev/v8B1tI_NB5E/tk98D0iKopYJ https://github.com/JuliaLang/julia/issues/9821 So far, it hasn't gotten much support. M On Sun, 2015-06-14 at 18:18, Henri de Feraudy wrote: > Hi, pardon me if I'm not using quit

[julia-users] Re: How to deploy Julia

2015-06-14 Thread Daniel Carrera
Hi David, On Monday, 15 June 2015 00:30:40 UTC+2, David P. Sanders wrote: > > Out of interest, does your code use arrays (for positions if the particles > etc?) If so, does it use standard Julia arrays? > > David Yes, I use standard Julia arrays. To get Fortran-like performance I have to cod