[julia-users] Re: Julia talk at EuroSciPy 2014

2014-08-30 Thread Steven G. Johnson
On Friday, August 29, 2014 8:57:05 PM UTC-4, Don MacMillen wrote: I do have a question about macros that maybe you can answer. In your nb on metaprogramming you have the horner macro listed and it uses a temporary variable t. But this macro can be written without using a temporary

[julia-users] Re: Julia talk at EuroSciPy 2014

2014-08-30 Thread Steven G. Johnson
The answer is related to your splicing questions. What gets passed to the macro is not the value of the argument, but rather the symbolic expression of the argument. If I didn't use a temporary variable, that symbolic expression would get inserted multiple times into the polynomial

[julia-users] Re: Kronecker Delta functions and block matrices

2014-08-30 Thread Andrei Berceanu
This is what I came up with for the full matrix calculation: https://github.com/berceanu/notebooks/blob/master/julia/macros.ipynb I now have a macro for the elements of M, another for the elements of Q and yet another for the elements of L. In the end I define the genmatL function which loops

[julia-users] Re: Kronecker Delta functions and block matrices

2014-08-30 Thread Andrei Berceanu
On a more general note, I am thinking that with a bit of cleanup, this code could make a good Julia metaprogramming example, especially since I haven't seen many of those around :) //A On Saturday, August 30, 2014 10:52:49 AM UTC+2, Andrei Berceanu wrote: This is what I came up with for the

Re: [julia-users] what is Julia for R cut()

2014-08-30 Thread Florian Oswald
thanks john. say, I would find a comprehensive Julia dictionary for R users extremely helpful. your https://github.com/johnmyleswhite/JuliaVsR seems just the perfect place for this. would you accept PRs that add for example R julia cutDataArrays.cut to the readme.md? I realize you set

[julia-users] Re: best way to run parallel julia in batch mode?

2014-08-30 Thread Florian Oswald
sorry correct my call to julia -p 32 exper.jl myout.out (without the first , not sure that makes a difference) On Saturday, 30 August 2014 12:58:57 UTC+1, Florian Oswald wrote: @require should work for what you want. i usually run batch jobs like this julia -p 32 exper.jl myout.out

[julia-users] Re: Logging output in batch mode

2014-08-30 Thread Florian Oswald
try standard unix cat julia script.jl output.txt On Friday, 29 August 2014 17:12:37 UTC+1, Thomas Covert wrote: Suppose I wanted to run a julia script in batch mode, like this bash$ julia script.jl How would I tell julia to save the visual output of this to a text file? As far as I

[julia-users] Installing Julia on Mac

2014-08-30 Thread idontgetoutmuch
I am trying to install Julia using brew brew install --HEAD --64bit julia and getting == Using DSFMT: /Library/Caches/Homebrew/julia--dsfmt-2.2.tar.gz == make -C contrib -f repackage_system_suitesparse4.make prefix=/usr/local/Cellar/julia/HEAD USE clang++ -stdlib=libc++

[julia-users] ANN: Bindings to KyotoCabinet (key value storage)

2014-08-30 Thread Dmitry Semyonov
Hi all, I used KyotoCabinet http://fallabs.com/kyotocabinet/ key-value storage in some of my Python projects, but couldn't find bindings for Julia. So I wrote something by myself. Hope it might be useful for someone else. Here is the source: https://github.com/tuzzeg/kyotocabinet.jl I am

[julia-users] Re: Installing Julia on Mac

2014-08-30 Thread Florian Oswald
any reason you are using homebrew to install julia? both the build and precompiled binary are straightforward to install, I would go with that. On Saturday, 30 August 2014 10:26:34 UTC+1, idontgetoutmuch wrote: I am trying to install Julia using brew brew install --HEAD --64bit julia and

[julia-users] Re: sortperm(vec(F),rev=true) ; ERROR: stack overflow

2014-08-30 Thread Viral Shah
Could you file this as an issue? Which version of Julia are you using and what platform? It doesn't fail for me. -viral On Friday, August 29, 2014 11:54:16 PM UTC+5:30, paul analyst wrote: julia F 5932868x1 Array{Float64,2}: 0.00168482 -0.00408837 -0.00408837 -0.109945 -0.00408837

Re: [julia-users] Re: Installing Julia on Mac

2014-08-30 Thread Elliot Saba
The error here is: ld: file not found: /usr/local/lib/gcc/x86_64-apple-darwin13.3.0/4.9.1/ libgfortran.3.dylib This sounds like you have an old version of gcc installed and need to update. Try running `brew update`, and then install Julia again. Additionally, the `--64-bit` flag doesn't do

[julia-users] ANN: Bindings to KyotoCabinet (key value storage)

2014-08-30 Thread Kevin Squire
Hi Dmitry, Thanks for announcing this! I have used other key value stores on projects, but I had never heard of KyotoCabinet. I'll have to check it out now. With a quick look, you code seems really clean. The only thing that caught my eye were your conversion to Uint for your constants. In

[julia-users] Re: Kronecker Delta functions and block matrices

2014-08-30 Thread Steven G. Johnson
On Saturday, August 30, 2014 4:52:49 AM UTC-4, Andrei Berceanu wrote: A few things that are still unclear: 1. Can this approach be optimized further? I can't help the feeling that it contains a fair amount of redundancy, especially looking at the quote $var end kind of expressions. I can

Re: [julia-users] ANN: Bindings to KyotoCabinet (key value storage)

2014-08-30 Thread Elliot Saba
Cool! I've used KyotoCabinet before, so it's nice to see this coming in to Julia! Your code looks really nice, the only thing I can think of to add is perhaps a notice to LICENSE.md that while your code is MIT-licensed, KyotoCabinet is not. It's free for personal use, but commercial use

Re: [julia-users] ANN: Bindings to KyotoCabinet (key value storage)

2014-08-30 Thread Kevin Squire
Hi Elliot, Just to clarify, the KyotoCabinet license is actually GPLv3, with the option to purchase a separate commercial license. (One has to download the source to actually see the license.) But I agree that it's a good idea to clarify the license situation. Cheers, Kevin On Sat, Aug

Re: [julia-users] ANN: Bindings to KyotoCabinet (key value storage)

2014-08-30 Thread Elliot Saba
Ah, I see, as long as your application is opensource and is licensed under one of the licenses they list, (BSD is listed there, so I imagine MIT is acceptable to them) you don't have to buy a commercial license. Good to know. -E On Sat, Aug 30, 2014 at 12:41 PM, Kevin Squire

[julia-users] Re: Installing Julia on Mac

2014-08-30 Thread idontgetoutmuch
Thanks for your response. No particular reason but I tend to use home-brew for most things as it sometimes gives flexibility when you need multiple compiler versions. I would have tried the pre-compiled binary next. On Saturday, 30 August 2014 15:34:07 UTC+1, Florian Oswald wrote: any reason

Re: [julia-users] ANN: Bindings to KyotoCabinet (key value storage)

2014-08-30 Thread Kevin Squire
Just curious where you saw BSD listed--I couldn't find it anywhere. If you download the tar ball ( http://fallabs.com/kyotocabinet/pkg/kyotocabinet-1.2.76.tar.gz), COPYING shows the license as GPL3. My understanding is that if you link to that library (which likely includes using it from

Re: [julia-users] Re: Installing Julia on Mac

2014-08-30 Thread idontgetoutmuch
Thanks. Yes that seemed to be the problem. I did have gcc-4.8 but for some reason that wasn't being picked up. Doing brew update and brew install seemed to pull down gcc-4.9 and then and the install of julia used that. On Saturday, 30 August 2014 16:05:22 UTC+1, Elliot Saba wrote: The error

Re: [julia-users] ANN: Bindings to KyotoCabinet (key value storage)

2014-08-30 Thread Elliot Saba
In the tarball, there is a file called FOSSEXCEPTION, here's a mirror on github https://github.com/UCSCReconGroup/kyotocabinet/blob/master/FOSSEXCEPTION. I don't pretend to understand all the linking subtleties going on here, but from this thread https://github.com/JuliaLang/julia/issues/1598,

Re: [julia-users] ANN: Bindings to KyotoCabinet (key value storage)

2014-08-30 Thread Kevin Squire
Thanks Elliot! I missed that. Cheers, Kevin On Sat, Aug 30, 2014 at 12:00 PM, Elliot Saba staticfl...@gmail.com wrote: In the tarball, there is a file called FOSSEXCEPTION, here's a mirror on github https://github.com/UCSCReconGroup/kyotocabinet/blob/master/FOSSEXCEPTION. I don't

Re: [julia-users] what is Julia for R cut()

2014-08-30 Thread John Myles White
I think we should find a better home for that material. There’s also a more up-to-date list in this Google Doc: https://docs.google.com/spreadsheet/ccc?key=0Ai9cmDERDCGgdDJ6VDQtQjBGWm5LTzh6R0lRNHY1RVEusp=sharing I’d prefer setting up a special website (possibly using Github Pages) that houses

[julia-users] Blas trsv documentation and function mismatch (?)

2014-08-30 Thread asim
It looks like the documentation for the trsv function shows a different set of function arguments from what the function actually expects. Attached is a notebook that details the problem. The function works with 5 arguments but not with the seven that the documentation describes. Asim

[julia-users] Blas trsv function: Argument mismatch between function and documentation (?)

2014-08-30 Thread asim
Hi The Blas trsv function is described as needing 7 arguments in the documentation. However, it only appears to work with 5 arguments. The attached notebook illustrates the behavior Asim trsvNotebook.pdf Description: Adobe PDF document

Re: [julia-users] Blas trsv function: Argument mismatch between function and documentation (?)

2014-08-30 Thread John Myles White
Hi Asim, It’s a little hard to work with PDF’s. Would you consider using Gists? (https://gist.github.com) — John On Aug 30, 2014, at 1:47 PM, asim yahooans...@gmail.com wrote: Hi The Blas trsv function is described as needing 7 arguments in the documentation. However, it only appears

Re: [julia-users] Blas trsv function: Argument mismatch between function and documentation (?)

2014-08-30 Thread asim
Would this help? Asim On Saturday, August 30, 2014 4:49:23 PM UTC-4, John Myles White wrote: Hi Asim, It’s a little hard to work with PDF’s. Would you consider using Gists? ( https://gist.github.com) — John On Aug 30, 2014, at 1:47 PM, asim yahoo...@gmail.com javascript: wrote:

Re: [julia-users] Blas trsv function: Argument mismatch between function and documentation (?)

2014-08-30 Thread John Myles White
I can’t speak for others, but I’m very hesitant to download any kind of files from mailing lists. — John On Aug 30, 2014, at 2:00 PM, asim yahooans...@gmail.com wrote: Would this help? Asim On Saturday, August 30, 2014 4:49:23 PM UTC-4, John Myles White wrote: Hi Asim, It’s a

[julia-users] Re: Julia talk at EuroSciPy 2014

2014-08-30 Thread Don MacMillen
Perfect Steve, many thanks for the explanation. But just to be sure I understand, the multiple eval of input expression, your begin println(hello); 3 end would only occur during macro expansion? Also, just to beat this poor dead horse into the ground, to get the behavior I wanted, get rid

Re: [julia-users] Re: Julia talk at EuroSciPy 2014

2014-08-30 Thread Jameson Nash
calling eval in a macro doesn't do what you think it does, so it doesn't do what you want On Sat, Aug 30, 2014 at 5:05 PM, Don MacMillen don.macmil...@gmail.com wrote: Perfect Steve, many thanks for the explanation. But just to be sure I understand, the multiple eval of input expression,

Re: [julia-users] Re: Julia talk at EuroSciPy 2014

2014-08-30 Thread John Myles White
This might need to be part of the Zen of Julia. — John On Aug 30, 2014, at 2:11 PM, Jameson Nash vtjn...@gmail.com wrote: calling eval in a macro doesn't do what you think it does, so it doesn't do what you want On Sat, Aug 30, 2014 at 5:05 PM, Don MacMillen don.macmil...@gmail.com

Re: [julia-users] Re: Julia talk at EuroSciPy 2014

2014-08-30 Thread Don MacMillen
There you have it... Zen was never my thing. So I find the previous two comments cryptic. The macro _seemed_ to be doing what I wanted it to. Is there some documentation that speaks to calling (or rather not calling) eval from inside a macro? On Saturday, August 30, 2014 2:15:54 PM UTC-7,

[julia-users] Re: sortperm(vec(F),rev=true) ; ERROR: stack overflow

2014-08-30 Thread Iain Dunning
Works for me too on julia versioninfo() Julia Version 0.3.0 Commit 7681878* (2014-08-20 20:43 UTC) Platform Info: System: Darwin (x86_64-apple-darwin13.3.0) CPU: Intel(R) Core(TM) i7-4960HQ CPU @ 2.60GHz WORD_SIZE: 64 On Saturday, August 30, 2014 10:35:44 AM UTC-4, Viral Shah wrote:

Re: [julia-users] what is Julia for R cut()

2014-08-30 Thread Florian Oswald
ok sounds good! that gh-page would be awesome. On 30 August 2014 21:38, John Myles White johnmyleswh...@gmail.com wrote: I think we should find a better home for that material. There’s also a more up-to-date list in this Google Doc:

[julia-users] Structuring parallel algorithm that iterates on elements of array

2014-08-30 Thread Spencer Lyon
I often solve fixed point problems where I apply a contraction mapping to an array and`` iterate until convergence. There is nothing in the algorithm that requires the new value at one array index to depend on neighboring indices — only on values obtained at the same index on the previous

Re: [julia-users] Re: Installing Julia on Mac

2014-08-30 Thread ronubi
I didn't know there was a Homebrew Tap for Julia. But thanks to this post, I found it: *brew tap staticfloat/julia* So that's really cool. I prefer to have all my add-on software managed via Homebrew, if possible. So I tried installing gcc Julia, as per above, but seem to be missing a

Re: [julia-users] Julia for general scripting and automation?

2014-08-30 Thread Ariel Katz
Thanks very much!