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
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
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
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
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
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
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
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++
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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:
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
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
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,
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
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,
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:
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:
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
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
Thanks very much!
37 matches
Mail list logo