Re: [julia-users] How can Julia find JAGS?

2014-08-02 Thread KK Sasa
Got it. Thank you. JAGS' command "exit" can go back to Julia REPL. Jameson於 2014年8月3日星期日UTC+8下午2時01分49秒寫道: > > disclaimer: I know *nothing* about JAGS > > if you exit the JAGS terminal, it should drop back to the Julia REPL > console > > if you want deeper integration, you may want to see what J

Re: [julia-users] How can Julia find JAGS?

2014-08-02 Thread Jameson Nash
disclaimer: I know *nothing* about JAGS if you exit the JAGS terminal, it should drop back to the Julia REPL console if you want deeper integration, you may want to see what JAGS has for a C-interface, and make a Julia package around providing access to that On Sun, Aug 3, 2014 at 1:52 AM, KK S

Re: [julia-users] How can Julia find JAGS?

2014-08-02 Thread KK Sasa
Thanks. run(`cmd /c jags`) directly goes into JAGS mode. After running my JAGS model, can it go back to Julia mode? Jameson於 2014年8月3日星期日UTC+8下午1時35分58秒寫道: > > run(`cmd /c jags`) -- the /c flag is needed to tell cmd to run the command > > run(`jags-terminal`) -- the batch script jags.bat sets a

Re: [julia-users] How can Julia find JAGS?

2014-08-02 Thread Jameson Nash
run(`cmd /c jags`) -- the /c flag is needed to tell cmd to run the command run(`jags-terminal`) -- the batch script jags.bat sets a few environment variables you would probably need to duplicate if you decide to go this route (e.g. ENV["VAR"] = "VALUE") On Sun, Aug 3, 2014 at 1:18 AM, KK Sasa w

Re: [julia-users] How can Julia find JAGS?

2014-08-02 Thread KK Sasa
Hi Jameson, 1) run(`cmd jags`) lets Julia go into command prompt, and then input jags will go into JAGS mode. Can it come back to Julia again? 2) run(`jags-terminal`) seems find JAGS but fails to load JAGS' modules, it says "module could not be found". Any suggestions? Thank you. Jameson於 20

Re: [julia-users] How can Julia find JAGS?

2014-08-02 Thread Jameson Nash
jags is distributed as jags.bat, but jags.bat is defined as not executable in windows. This is because Windows doesn't let you spawn arbitrary files. The command prompt implements various workarounds for this, but libuv has chosen not to try to duplicate them. It seems your options are either to s

[julia-users] How can Julia find JAGS?

2014-08-02 Thread KK Sasa
When the JAGS had been installed and added a path "C:\Program Files\JAGS\JAGS-3.4.0\x64\bin" to system variable on WIndows 7 x64, I turn Julia's REPL to shell mode and then command run(`jags`). But, it return error like "Error: could not spawn `jags`: no such file or directory (ENOENT)". I h

Re: [julia-users] Re: compile time conditional statements and julia?

2014-08-02 Thread Tim Holy
There's something else wrong. It makes no sense that the time hit should be so large; evaluating sin is _expensive_, much more than a conditional, especially since this one will work perfectly with the CPU's branch-point prediction. I tried it using @time rather than tic/toc, and the extra infor

Re: [julia-users] why no abstract 'set' type?

2014-08-02 Thread Jacob Quinn
See https://github.com/JuliaLang/julia/issues/5533 On Aug 2, 2014 9:51 PM, wrote: > Dear Julia Colleagues, > > I'm writing a balanced-tree library in Julia. Balanced trees can be used > to implement a sort-order dictionary, which is a particular implementation > of the "Associative" abstract typ

[julia-users] why no abstract 'set' type?

2014-08-02 Thread vavasis
Dear Julia Colleagues, I'm writing a balanced-tree library in Julia. Balanced trees can be used to implement a sort-order dictionary, which is a particular implementation of the "Associative" abstract type, so I write: type SortOrderDict{K,V} <: Associative{K,V} where SortOrderDict is my own

Re: [julia-users] Re: compile time conditional statements and julia?

2014-08-02 Thread Jameson Nash
constant propagation is almost implemented in inference.jl (it's quite similar to type propagation), but it isn't active now: https://github.com/JuliaLang/julia/issues/5560 On Sat, Aug 2, 2014 at 8:33 PM, wrote: > Dear Julia colleagues, > > I'm reviving this old thread because I am also trying t

[julia-users] Re: compile time conditional statements and julia?

2014-08-02 Thread vavasis
Dear Julia colleagues, I'm reviving this old thread because I am also trying to create two versions of my balanced-tree code, the fast version and the debug version, and I am trying to figure out the appropriate way for one source-code file to yield two versions. In C++, the usual technique is

Re: [julia-users] Re: ANN: EM algorithm for regularized L0 regression. More regreg Julia code out there?

2014-08-02 Thread Iain Dunning
The \ method may also be more numerically stable. On Saturday, August 2, 2014 3:49:10 PM UTC-4, Robert Feldt wrote: > > Just to close this off I did some more experiments and it is clear that > using the "\"-based solving is the main performance enhancement (2-25 times > faster for N & M in the

[julia-users] [Ann] JuliaOpt/ECOS.jl - lightweight solver for LPs + SOCPs

2014-08-02 Thread Iain Dunning
The JuliaOpt team is pleased to announce ECOS.jl , a wrapper for the linear program and second-order cone program solver ECOS . In METADATA now! Credit goes to João Felipe Santos (@jfsantos) for starting this particular ver

Re: [julia-users] sizehint for Set objects

2014-08-02 Thread Ed Scheinerman
Not a disappointment at all! I look forward to 0.3 being officially released. Thank you. On Saturday, August 2, 2014 4:00:12 PM UTC-4, Kevin Squire wrote: > > (Hope this isn't a disappointment, but this was implemented already in > v0.3.) > > > On Sat, Aug 2, 2014 at 10:59 AM, Ivar Nesje > wro

[julia-users] [ANN] SuffixArrays.jl

2014-08-02 Thread Jacob Quinn
Hey all, I finally got around to playing around with a suffix array implementation and wanted to share. It's a pure julia port of sais , by Yuta Mori and while not the bleeding edge fastest suffix array sorting algorithm out there, I personally think

Re: [julia-users] sizehint for Set objects

2014-08-02 Thread Kevin Squire
(Hope this isn't a disappointment, but this was implemented already in v0.3.) On Sat, Aug 2, 2014 at 10:59 AM, Ivar Nesje wrote: > Note that we're not lazy, but we know that contributing to Julia is highly > addictive. We want more people to look at Base with a critical eye in order > to discov

Re: [julia-users] Re: ANN: EM algorithm for regularized L0 regression. More regreg Julia code out there?

2014-08-02 Thread Robert Feldt
Just to close this off I did some more experiments and it is clear that using the "\"-based solving is the main performance enhancement (2-25 times faster for N & M in the 10:5000 range I've tested with!) while UniformScaling gives a rather small improvement (few percent) on top of that (expect

Re: [julia-users] Re: What's new in Julia 3.0?

2014-08-02 Thread Ivar Nesje
How come I did not notice. I hope we never make stupid enough mistakes in 1.0 that we will ever need a 2.X release (and even worse a 3.0 release). kl. 20:27:35 UTC+2 lørdag 2. august 2014 skrev Jacob Quinn følgende: > > Do note that the imminent release is **0.3**, not *3.0*. There's been a > l

Re: [julia-users] Re: What's new in Julia 3.0?

2014-08-02 Thread Jacob Quinn
Do note that the imminent release is **0.3**, not *3.0*. There's been a little confusion around about Julia's versioning, so just thought I'd clarify. On Fri, Aug 1, 2014 at 8:35 AM, Daniel Carrera wrote: > Thanks! > > > On 1 August 2014 14:04, Ivar Nesje wrote: > >> https://github.com/juliala

Re: [julia-users] Re: JuliaLang questions posted on #StackOverflow by month from January 2012 to end of July 2014.

2014-08-02 Thread Jacob Quinn
I guess that's what happens when you get up to trying 6-7 different implementations for a fix! :) It's definitely exciting to see Julia taking off more and more. I think 0.3's release will be another huge boost going forward. On Fri, Aug 1, 2014 at 5:00 PM, Ivar Nesje wrote: > Unfortunately lot

Re: [julia-users] Re: emacs ess julia trouble

2014-08-02 Thread Ross Boylan
On Sat, 2014-08-02 at 06:11 -0700, Sarvagnan Subramanian wrote: > Ah thanks! One last question, what should the input be for "(setq > inferior-julia-program-name)" in .emacs? Should this be the location > of the julia binary? It should be the complete path for the binary, e.g., (setq inferior-julia

Re: [julia-users] sizehint for Set objects

2014-08-02 Thread Ivar Nesje
Note that we're not lazy, but we know that contributing to Julia is highly addictive. We want more people to look at Base with a critical eye in order to discover inconsistencies like this. If you don't want to try, the fix will be committed within an hour. Ivar kl. 18:30:55 UTC+2 lørdag 2. au

Re: [julia-users] Best way to eliminate parameters from a parametric type

2014-08-02 Thread Jutho
Suppose I want to build a composite type type X{A<:AbstractArray} list::Vector{A} individual::A end Now, al the elements of the list should be of some concrete type of AbstractArray{T,N}, whereas individual is required to be of the same concrete type of AbstractArray, have the same T, but

Re: [julia-users] Best way to eliminate parameters from a parametric type

2014-08-02 Thread Leah Hanson
T{P1,P2,P3} is a family of types; each member specifies all three type parameters. There are no "super type" relationships within the family of T types; they are just all members of the same family (think "set") of types. Could you explain what you're trying to achieve? I don't think that making a

Re: [julia-users] can't add packages

2014-08-02 Thread Stefan Karpinski
Julia is just using the git program, so the problem here must be with git connecting to github.com over the git protocol. Can you try doing git clone -q -b metadata-v2 git://github.com/JuliaLang/METADATA.jl METADATA at the command line? Hopefully you can narrow it down to a failing case. On Sat

Re: [julia-users] sizehint for Set objects

2014-08-02 Thread Stefan Karpinski
Would you be willing to take a crack at making a pull request? This should be a one-liner, somewhere in the base/set.jl file with the obvious definition. On Sat, Aug 2, 2014 at 10:04 AM, Ed Scheinerman < edward.scheiner...@gmail.com> wrote: > I work a good deal with Set objects. When I found the

Re: [julia-users] Re: Strange LLVM error

2014-08-02 Thread Jason
> > I guess it won't take nothing to calculate the matrix. The problem is > printing or showing it. > Spot on Pablo, in fact the size of the matrix is only 4MB!

Re: [julia-users] Re: emacs ess julia trouble

2014-08-02 Thread Sarvagnan Subramanian
Thanks! On Saturday, August 2, 2014 7:23:20 PM UTC+5:30, Douglas Bates wrote: > > Yes.

[julia-users] Re: Joint Statistics Meeting in Boston

2014-08-02 Thread Ethan Anderes
Thanks Viral. I'm thinking that next year (it will be in Seattle I think) we should try and get a session going with some Julia talks. It would be good exposure. Cheers! On Friday, August 1, 2014 11:49:19 AM UTC-7, Viral Shah wrote: > > You could try drop by at Julia Central. Perhaps email Jiah

[julia-users] Re: Wavelets.

2014-08-02 Thread David A.
Yes, that package seems good, it has image decomposition and MIT license. Thanks, I'll check it out more indepth. On Saturday, August 2, 2014 5:42:55 AM UTC-3, Tobias Knopp wrote: > > Thanks for the link https://github.com/gummif/Wavelets.jl looks very good > and is MIT licensed. > > Am Samstag,

[julia-users] sizehint for Set objects

2014-08-02 Thread Ed Scheinerman
I work a good deal with Set objects. When I found the sizehint function, I thought this would be useful to use as the data structure supporting my sets would be pre-allocated to be large enough for what I anticipated putting therein. But sizehint doesn't apply to Set objects: julia> A = Set() S

Re: [julia-users] Re: emacs ess julia trouble

2014-08-02 Thread Douglas Bates
Yes.

Re: [julia-users] Re: emacs ess julia trouble

2014-08-02 Thread Sarvagnan Subramanian
Ah thanks! One last question, what should the input be for "(setq inferior-julia-program-name)" in .emacs? Should this be the location of the julia binary?

[julia-users] Best way to eliminate parameters from a parametric type

2014-08-02 Thread Jutho
Suppose I have some type T{P1,P2,P3} depending some parameters. I don't know which type exactly, except that it originates from a type hierarchy which has 3 parameters. What is the best way to construct, given e.g. a variable of type T{P1,P2,P3} with specific values for P1, P2, P3, to construct

[julia-users] Re: Finding common values in arrays.

2014-08-02 Thread Michael Hatherly
intersect(a, b) should work for that. It also can take a variable number of arrays/iterables. There’s also ∩ (type \cap at the REPL), which is the synonym for intersect if you like Unicode. — Mike ​

[julia-users] Finding common values in arrays.

2014-08-02 Thread Ben Ward
Given a variable number of arrays, or an array of arrays, what is the best Julian way to find the values that occur in all of them? So for a = [1,2,3,4,5] b = [6,7,3,4,9] would return 3 and 4? I thought about using .== for every possible pair of the N arrays but I wondered if there was a bette

[julia-users] Re: Run Julia job on several workers on a cluster

2014-08-02 Thread Florian Oswald
Hi Ken, sorry can i just ask you a question on this? Thibaut (post below) was actually able to use your function to set Julia up on our departmental SGE cluster and it works fine. That facility is down with a disk failure for the time being though, so I have been trying to get going on a differ

[julia-users] Re: Wavelets.

2014-08-02 Thread Tobias Knopp
Thanks for the link https://github.com/gummif/Wavelets.jl looks very good and is MIT licensed. Am Samstag, 2. August 2014 10:30:52 UTC+2 schrieb Tomas Krehlik: > > There are two packages and some general package is discussed in here >

[julia-users] Re: Wavelets.

2014-08-02 Thread Tomas Krehlik
There are two packages and some general package is discussed in here . The authors have also their own packages. I think the gummif's one does what you would like. Disclaimer: I am one of them... Best. On Saturday, 2 August 20

[julia-users] Re: Wavelets.

2014-08-02 Thread Tobias Knopp
I have some very simple Matlab code laying around that I have written myself. It is capable of doing 1D, 2D but potentially any dimension. The wavelet is given as a parameter and there are some defaults. I needed it as a sparsity transformation for some compressed sensing work I have done. So n