Re: [julia-users] Re: calling files in Julia

2016-03-24 Thread Tim Holy
On Thursday, March 24, 2016 11:42:53 AM new to Julia wrote: > Thank you very much for your reply. I am wondering that if I put two > functions in two files (same as Matlab did), does it slow the coding speed? > If not, how can I use variables already defined in one function? You can't generally

Re: [julia-users] Re: calling files in Julia

2016-03-24 Thread Uwe Fechner
Hello, do not try to use variables, that you have defined in one function within another function. I would suggest the following approach, if you need to modify variables in multiple functions: ``` # if you need to modify multiple variables in multiple functions, # define a data type that

Re: [julia-users] ANN: Quantumoptics.jl - a quantum optics toolbox for julia

2016-03-24 Thread Sebastian Krämer
Okay, thanks again. I also followed your advice and renamed the project from Quantumoptics.jl to QuantumOptics.jl The links to the github page still work but the github-pages (where the documentation is hosted) is apparently case sensitive which means that the links changed. Examples:

Re: [julia-users] Re: calling files in Julia

2016-03-24 Thread new to Julia
Thank you very much for your reply. I am wondering that if I put two functions in two files (same as Matlab did), does it slow the coding speed? If not, how can I use variables already defined in one function? On Thursday, March 24, 2016 at 1:34:08 PM UTC-5, Tim Holy wrote: > > We usually talk

Re: [julia-users] Re: calling files in Julia

2016-03-24 Thread Tim Holy
We usually talk about calling "functions" rather than "files." If you're coming from a Matlab background, one thing to note about julia is that you can put multiple functions in one file: square_and_mult_by_c(x, c) = c*x*x smc(X::AbstractVector, c) = [square_and_mult_by_c(x, c) for x

Re: [julia-users] How to copy a DataFrame structure in an empty DataFrame

2016-03-24 Thread Tom Short
Feel free to file issues for missing documentation or (even better) pull requests. On Thu, Mar 24, 2016 at 2:24 PM, Fred wrote: > Thank you Milan for this useful link. > This website contains more informations than mine, but it does not seems > to contains all the

Re: [julia-users] How to copy a DataFrame structure in an empty DataFrame

2016-03-24 Thread Fred
Thank you Milan for this useful link. This website contains more informations than mine, but it does not seems to contains all the functions available for dataframes. For example I did not manage to find that I have to use append! instead of push! to add a row to a dataframe.

Re: [julia-users] How to copy a DataFrame structure in an empty DataFrame

2016-03-24 Thread Milan Bouchet-Valat
Le jeudi 24 mars 2016 à 11:05 -0700, Fred a écrit : > Thank you very much Milan ! > When I searched a solution in DataFrame documentation I did not found > the keyword "similar". Is there an equivalent for Julia of this > website for Perl for example ?  Well, it's listed here in the brand new

RE: [julia-users] Announcing JuDE: autocomplete and jump to definition support for Atom

2016-03-24 Thread David Anthoff
Very nice! Any chance that this could just become part of julia-client at some point? From: julia-users@googlegroups.com [mailto:julia-users@googlegroups.com] On Behalf Of James Dang Sent: Sunday, March 20, 2016 11:58 AM To: julia-users Subject:

Re: [julia-users] How to copy a DataFrame structure in an empty DataFrame

2016-03-24 Thread Fred
Thank you very much Milan ! When I searched a solution in DataFrame documentation I did not found the keyword "similar". Is there an equivalent for Julia of this website for Perl for example ? julia> df = readtable("test2.tsv") 4x4

Re: [julia-users] Test code taking forever to start

2016-03-24 Thread 'Bill Hart' via julia-users
I did a little bit more bisecting to try and find the most recent regression, but I'm not sure if I nailed it or not. All the data is now summarised in the ticket here: https://github.com/JuliaLang/julia/issues/15615

Re: [julia-users] ANN: Quantumoptics.jl - a quantum optics toolbox for julia

2016-03-24 Thread Stefan Karpinski
There's a number of people who moderate posts and maybe someone pushed the wrong moderation button and approved your post but didn't also switch your moderation to auto-approve. I checked and you are now set for automatic approval. On Thu, Mar 24, 2016 at 1:07 PM, Sebastian Krämer

[julia-users] GSoC Application Deadline Approaching

2016-03-24 Thread Mike Innes
Hey All, The GSoC application deadline is approaching and submissions will close in just over 24 hours. Thanks to all who have submitted draft proposals so far – I highly recommend getting a "final" PDF proposal in as soon as possible and well before the deadline. Before the deadline you can also

[julia-users] GSoC 2016 Proposal

2016-03-24 Thread 李博约
Dear Julia developers, I have shared my draft through GSoC system, could anyone please comment on it and help me to improve? Thanks!

Re: [julia-users] ANN: Quantumoptics.jl - a quantum optics toolbox for julia

2016-03-24 Thread Sebastian Krämer
Thank you! Just a quick question about the julia-users group moderation. Since it took some time for this post to appear I guess you had to manually approve it? I'm curious because it's my second post to this list (see https://groups.google.com/forum/#!topic/julia-users/MIouqlzywsY) and it

Re: [julia-users] How to copy a DataFrame structure in an empty DataFrame

2016-03-24 Thread Milan Bouchet-Valat
Le jeudi 24 mars 2016 à 09:35 -0700, Fred a écrit : > Hi, > > I have a DataFrame "df" and I would like to create a new DataFrame > "m" with  the same colnames than df.   > And then, append to "m" the rows of "df" matching a complex set of > conditions, so I need to test many conditions for each

[julia-users] How to copy a DataFrame structure in an empty DataFrame

2016-03-24 Thread Fred
Hi, I have a DataFrame "df" and I would like to create a new DataFrame "m" with the same colnames than df. And then, append to "m" the rows of "df" matching a complex set of conditions, so I need to test many conditions for each row. The problem I have is to create an empty dataframe "m"

[julia-users] Re: calling files in Julia

2016-03-24 Thread new to Julia
Got it. Thank you so much. I am wondering that what about variable? I may need to define it in the function, right? How to make it be called by other files? On Thursday, March 24, 2016 at 1:30:26 AM UTC-5, Uwe Fechner wrote: > > If c is a constant, that you want to define in the file test.jl,

[julia-users] [ANN] new tagged version of GLVisualize

2016-03-24 Thread Simon Danisch
Hi, there is a new version of *GLVisualize* and I also improved the website . improvements include various bug fixes, a new vertex color mesh type and better performance. The website contains 3 more examples

Re: [julia-users] Test code taking forever to start

2016-03-24 Thread 'Bill Hart' via julia-users
Rather than trying to nail down the remaining regressions, I think I am just going to give the data I've collected, which illustrates a problem, namely that in a very short space there can be massive improvements, immediately followed by massive regressions. This essentially violates the git

Re: [julia-users] Test code taking forever to start

2016-03-24 Thread Stefan Karpinski
Thanks for taking the time and effort to track these down, Bill. We should try to distill some tests for each of these regressions so that we can guard against performance regressions for the same sorts of tasks in the future. On Thu, Mar 24, 2016 at 9:20 AM, 'Bill Hart' via julia-users <

Re: [julia-users] Re: performace of loops Julia vs Blas

2016-03-24 Thread Yichao Yu
On Thu, Mar 24, 2016 at 9:26 AM, Erik Schnetter wrote: > Using only SSE2 instead of AVX is slower by a factor of two. > > You can try a newer version of Julia (0.4.5?) that should build > against LLVM 3.7.1 instead of LLVM 3.3. IIRC the 0.4.* binaries should be built with

Re: [julia-users] Re: performace of loops Julia vs Blas

2016-03-24 Thread Erik Schnetter
Using only SSE2 instead of AVX is slower by a factor of two. You can try a newer version of Julia (0.4.5?) that should build against LLVM 3.7.1 instead of LLVM 3.3. -erik On Thu, Mar 24, 2016 at 8:54 AM, Yichao Yu wrote: > On Thu, Mar 24, 2016 at 3:22 AM, Igor Cerovsky >

Re: [julia-users] Test code taking forever to start

2016-03-24 Thread 'Bill Hart' via julia-users
The third regression is: 6382116 Jameson Nash <...@gmail.com> implement recursive type-inference It's about a 25% regression. There are some other much smaller regressions (~7%) before that which I skipped over. Still trying to track down a potential fourth regression. Bill.

[julia-users] Re: Shuffle matrix in julia

2016-03-24 Thread Tomas Lycken
What do you want to achieve - shuffling along a dimension (i.e. shuffling rows or columns), or just shuffling all the numbers? For the latter, it can be achieved pretty easily by reshaping to a vector and back. This has the added benefit that it generalizes well to arbitrary dimensions:

Re: [julia-users] ANN: Quantumoptics.jl - a quantum optics toolbox for julia

2016-03-24 Thread Stefan Karpinski
Very nice! Gorgeously documented. I don't know anything about quantum optics, but I still enjoy browsing the equations. Btw, the norm for Julia packages is to capitalize separate words, which would mean capitalizing this as QuantumOptics. This is totally up to you, however, and just a suggestion.

[julia-users] Re: Shuffle matrix in julia

2016-03-24 Thread 'Tobias Knopp' via julia-users
*shuffle!(vec(u))* *will do what you want if **inlace shuffling is ok. Otherwise simply make a copy before.* Am Donnerstag, 24. März 2016 14:09:36 UTC+1 schrieb Arundhyoti Sarkar: > > > > Is there a way to shuffle matrix in julia like we do in matlab? > I know shuffle(v) shuffles the vector

[julia-users] Shuffle matrix in julia

2016-03-24 Thread Arundhyoti Sarkar
Is there a way to shuffle matrix in julia like we do in matlab? I know shuffle(v) shuffles the vector v of type Array{Any,1}. But doesnot work with matrices.

[julia-users] Issues using the R package corpcor with RCall in Julia

2016-03-24 Thread Maxwell
Hi folks, I am trying to play around with RCall by calling some R packages from Julia. Then I run into this issue (see below) using RCall @rimport highmean as highmean ## Import the package highmean from r @rusing highmean srand(1234) Y1 = randn(5,10) Y2 = rand(5,10) julia> pval =

[julia-users] ANN: Quantumoptics.jl - a quantum optics toolbox for julia

2016-03-24 Thread Sebastian Krämer
I'm happy to announce Quantumoptics.jl, a framework that can be used to simulate various kinds of quantum mechanical systems. It's inspired by the Matlab quantum optics toolbox and its python successor QuTiP and whenever possible tries to use the same naming conventions. However, beyond

Re: [julia-users] Re: performace of loops Julia vs Blas

2016-03-24 Thread Yichao Yu
On Thu, Mar 24, 2016 at 3:22 AM, Igor Cerovsky wrote: > I cannot find ymm instuctions in the assembly code. Does > LLVM libLLVM-3.3 supports AVX2 instruction set? Disabled due to llvm bug. The nightly binary is probably also compiled without it.

[julia-users] Re: npm, left_pad and julia

2016-03-24 Thread Tomas Lycken
I guess there's an interesting discussion lurking here too, on what license requirements should be applied to all packages that we register in METADATA. One of the reasons that npm could just restore left-pad to the package repositories without consent from the author, is that the code was

Re: [julia-users] Test code taking forever to start

2016-03-24 Thread Kristoffer Carlsson
These should imo all be on the issue tracker. AFAIU most of these commits where supposed to speed up type inference. On Thursday, March 24, 2016 at 12:46:07 PM UTC+1, Bill Hart wrote: > > I'm sorry, please ignore that merge commit. I think that git bisect > screwed up due to the fact that there

Re: [julia-users] Test code taking forever to start

2016-03-24 Thread 'Bill Hart' via julia-users
I'm sorry, please ignore that merge commit. I think that git bisect screwed up due to the fact that there are in fact a couple of major regressions in the range I was bisecting. The first of these is at the following commit: 8f4238a do type-inference using a work queue It's about a 35%

[julia-users] npm, left_pad and julia

2016-03-24 Thread Tony Kelman
We have a JuliaPackageMirrors organization that automatically mirrors git repositories of registered packages. If someone deleted their repositories on github, we can adjust the metadata url to point to the mirror.

[julia-users] New Juno Atom Bundle for Windows

2016-03-24 Thread Yao Lu
Please see https://github.com/YaoLuCNS/Juno-Bundle-for-Windows. I'm not sure if this would work for others but your could check this.

Re: [julia-users] CUDArt.jl - segfaults after updating Julia

2016-03-24 Thread Matthew Pearce
Hi Stefan - thanks for the advice. Think I'm getting there with 0.4.5 - a few packages I relied on didn't work at first but it seems `Compat` sorted things out. I'm not sure yet whether the issue that caused me to update 0.5 in the first place is present in 0.4.5 though (#14445). Cheers

[julia-users] Re: IDE for Julia

2016-03-24 Thread Jerzy Głowacki
Agree. Rodeo looks very promising and it is open source. I would be grateful if anybody ported it to Julia. On Friday, October 30, 2015 at 4:03:52 PM UTC+1, Tomas Mikoviny wrote: > > maybe someone with more javascript insight can get inspired by this python > IDE one day :) > >

[julia-users] npm, left_pad and julia

2016-03-24 Thread andrew cooke
i guess people are aware of the fuss with npm and left_pad (if not, see https://www.metafilter.com/158105/Ive-liberated-my-modules for a summary). since julia's package system is based around github i wondered if it could also suffer from similar problems? if so, is this being addressed

Re: [julia-users] Test code taking forever to start

2016-03-24 Thread 'Bill Hart' via julia-users
The second bad commit is: 7facd20 Merge pull request #15300 from JuliaLang/jn/typeinfq However this is only about a 60% regression. There is still a third commit that is bad. I will try to bisect it today if I can. There is also a fourth smaller regression of about 10% somewhere, but I didn't

Re: [julia-users] Re: performace of loops Julia vs Blas

2016-03-24 Thread Igor Cerovsky
I cannot find ymm instuctions in the assembly code. Does LLVM libLLVM-3.3 supports AVX2 instruction set?

Re: [julia-users] Re: performace of loops Julia vs Blas

2016-03-24 Thread Igor Cerovsky
assembler code is attached. versioninfo() Julia Version 0.4.3 Commit a2f713d (2016-01-12 21:37 UTC) Platform Info: System: Windows (x86_64-w64-mingw32) CPU: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell) LAPACK:

[julia-users] Re: calling files in Julia

2016-03-24 Thread Uwe Fechner
If c is a constant, that you want to define in the file test.jl, than you can define it e.g. at the top of the file OUTSIDE of the function like this: const c=2 On Thursday, March 24, 2016 at 5:42:24 AM UTC+1, new to Julia wrote: > > > Thank you so much for your reply. I am still not very clear