Re: [julia-users] Values vs. Bindings: making sense of things

2014-09-12 Thread Stefan Karpinski
For the behavior of === you'll want to google Henry Baker EGAL. Essentially two values are === if and only if there is program that can distinguish them. There's no way to distinguish two instances of 1 since integers are immutable. I put instances in quotes because it's not even really

Re: [julia-users] Help needed with creating Julia package

2014-09-12 Thread Johan Sigfrids
Have you looked at http://Reexport.jlReexport.jl https://github.com/simonster/Reexport.jl? On Friday, September 12, 2014 1:57:06 AM UTC+3, Bill Hart wrote: OK, I can build Nemo. But how do I load modules from Nemo now that it is installed and built. For example using Nemo, using Rings,

Re: [julia-users] find function in sparse matrix

2014-09-12 Thread Milan Bouchet-Valat
Le jeudi 11 septembre 2014 à 20:12 -0700, i.pallikarakis...@alumni.lboro.ac.uk a écrit : Hi everyone, I am new to Julia and just upgraded from 0.2.1 to 0.3.0 and found the following issue : find function is no longer working on sparse matrices. For example A=speye(Bool,10)

Re: [julia-users] Re: Need help on Sublime-IJulia install on Windows, Julia 0.3.0-prerelease

2014-09-12 Thread RecentConvert
I ran into the ***Kernel Died*** error as well. My directories were correct but it turned out a space in the absolute Julia path caused the crash. I wasn't sure what the escape character for the space was so I just changed it to an underscore and it worked.

Re: [julia-users] Re: Need help on Sublime-IJulia install on Windows, Julia 0.3.0-prerelease

2014-09-12 Thread RecentConvert
Forgot to mention, I'm running it on Windows. Julia Version 0.3.0 Commit 7681878 (2014-08-20 20:43 UTC) Platform Info: System: Windows (x86_64-w64-mingw32) CPU: Intel(R) Core(TM) i5 CPU 670 @ 3.47GHz WORD_SIZE: 64 Microsoft Windows [Version 6.1.7601] uname:

Re: [julia-users] Re: self dot product of all columns in a matrix: Julia vs. Octave

2014-09-12 Thread Ján Dolinský
Finally, I found that Octave has an equivalent to sumabs2() called sumsq(). Just for sake of completeness here are the timings: Octave X = rand(7000); tic; sumsq(X); toc; Elapsed time is 0.0616651 seconds. Julia v0.3 @time X = rand(7000,7000); elapsed time: 0.285218597 seconds (392000160 bytes

Re: [julia-users] How to manage local, propretary packages

2014-09-12 Thread Ivar Nesje
Peter If you end up with a workable solution, please share your experiences. It is definitely an interesting use case. kl. 22:54:34 UTC+2 torsdag 11. september 2014 skrev Keno Fischer følgende: It's just a question of calling Pkg.init(YOUR URL HERE) before doing anything else. Of course, if

Re: [julia-users] How to manage local, proprietary packages

2014-09-12 Thread Ivar Nesje
I would not say that the documentation is wrong. It is just confusing and fails to mention the optional arguments. As we have standardized on ~/.julia, we should probably mention where we will end up creating files. If you think you got a grip of how the function works, you can suggest

Re: [julia-users] Re: self dot product of all columns in a matrix: Julia vs. Octave

2014-09-12 Thread Andreas Noack
I think the reason for the slow down in rand since 2.1 is this https://github.com/JuliaLang/julia/pull/6581 Right now we are filling the array one by one which is not efficient, but unfortunately it is our best option right now. In applications where you draw one random variate at a time there

[julia-users] issue with hist

2014-09-12 Thread K Leo
Sometimes hist does not output the right number of elements. Why is this? e, h = hist(c, 10) println(e, , h) -8.0:2.0:4.0 [1,6,76,805,193,2]

[julia-users] how to push!(::DataFrame,::DataFrameRow) or append!(::DataFrame,::DataFrameRow) ?

2014-09-12 Thread Florian Oswald
i'm trying to do this: using DataFrames df = DataFrame(a=[hi,there],x = rand(2)) df2 = DataFrame(a=[oh,yeah],x = rand(2)) for e in eachrow(df) append!(df2,e) end ERROR: `append!` has no method matching append!(::DataFrame, ::DataFrameRow{DataFrame}) in anonymous at no file:2 or julia for i

Re: [julia-users] Re: self dot product of all columns in a matrix: Julia vs. Octave

2014-09-12 Thread Ján Dolinský
Yes, 6581 sounds like it. Thanks for the clarification. Jan Dňa piatok, 12. septembra 2014 14:12:46 UTC+2 Andreas Noack napísal(-a): I think the reason for the slow down in rand since 2.1 is this https://github.com/JuliaLang/julia/pull/6581 Right now we are filling the array one by one

Re: [julia-users] How to manage local, proprietary packages

2014-09-12 Thread Peter Simon
I will have a chance to play with this over the weekend, and will be happy to share any positive results. I will also see if I can improve the documentation. --Peter On Friday, September 12, 2014 3:27:13 AM UTC-7, Ivar Nesje wrote: I would not say that the documentation is wrong. It is just

Re: [julia-users] how to push!(::DataFrame,::DataFrameRow) or append!(::DataFrame,::DataFrameRow) ?

2014-09-12 Thread Leah Hanson
Have you tried append!(df2,df)? ~~~ julia using DataFrames julia df = DataFrame(a=[hi,there],x = rand(2)) 2x2 DataFrame |---|-|--| | Row # | a | x| | 1 | hi| 0.862957 | | 2 | there | 0.101378 | julia df2 = DataFrame(a=[oh,yeah],x = rand(2))

Re: [julia-users] how to push!(::DataFrame,::DataFrameRow) or append!(::DataFrame,::DataFrameRow) ?

2014-09-12 Thread Florian Oswald
yeah I wasn't very clear in that example. i really need to append one row at a time. On 12 September 2014 14:50, Leah Hanson astriea...@gmail.com wrote: Have you tried append!(df2,df)? ~~~ julia using DataFrames julia df = DataFrame(a=[hi,there],x = rand(2)) 2x2 DataFrame

[julia-users] convert symbol to Function ?

2014-09-12 Thread Ben Arthur
is there a way to convert a symbol to a function. right now i'm resorting to: julia names(Base)[1] :isexecutable julia methods(names(Base)[1]) ERROR: `methods` has no method matching methods(::Symbol) julia eval(parse(methods(*string(names(Base)[1])*))) # 2 methods for generic function

[julia-users] Re: convert symbol to Function ?

2014-09-12 Thread Jake Bolewski
julia getfield(Base, :println)(Hello) Hello On Friday, September 12, 2014 10:18:11 AM UTC-4, Ben Arthur wrote: is there a way to convert a symbol to a function. right now i'm resorting to: julia names(Base)[1] :isexecutable julia methods(names(Base)[1]) ERROR: `methods` has no

[julia-users] Gadfly/pango critical error using Julia version 0.3

2014-09-12 Thread cormullion
Trying to create a Gadfly plot, I saw this message: (process:8158): Pango-CRITICAL **: No modules found: No builtin or dynamically loaded modules were found. PangoFc will not work correctly. This probably means there was an error in the creation of:

[julia-users] Re: Pull latex.jl out from PyPlot

2014-09-12 Thread Steven G. Johnson
I had thought about it, but it seemed like such a trivial package that I wasn't sure whether it would be worth it. On Thursday, September 11, 2014 2:47:24 PM UTC-4, Tim Wheeler wrote: Hello Julia-Users! I have found the LaTeX code in latex.jl from PyPlot pretty useful. I imagine anyone

[julia-users] Julia strange behaviour with GC

2014-09-12 Thread gael . mcdon
A few days ago, Ján Dolinský posted some microbenchmark https://groups.google.com/d/topic/julia-users/n3LfteWJAd4/discussions about Julia being slower than Octave for squaring quite large matrices. At that time, I wanted to answer with the traditional *microbenchmarks are evil*™ type of

[julia-users] Re: Pull latex.jl out from PyPlot

2014-09-12 Thread Ethan Anderes
From my experience, I've wished at times that latex strings were also included in PyCall and not just PyPlot. -Ethan.

Re: [julia-users] Does Julia have something similar to Python's documentation string?

2014-09-12 Thread Francesco Bonazzi
Given my experience with Python's docstrings, I wish there could be an easy way to execute the docstring examples inside the REPL, especially when they are of the form: some-code return-value If the documentation is an object, and not a string, the *return-value* could be generated

Re: [julia-users] Pkg.add(Cairo) does not work (on a fresh Julia-0.3.0 installation)

2014-09-12 Thread Ravi S
I'm on a Mac OS X 10.6.8 using python 2.7 and ran into this while installing Pango/Cairo. The Python installation I have is not a homebrew install, but it appears to be looking for python-config file in the python installation directory. Regards, Ravi INFO: Building Cairo == Installing pango

[julia-users] Solve transpose(A)*x=b with sparse LU factors of A

2014-09-12 Thread Stéphane Mottelet
Hello, How do you solve transpose(A)*x=b (without refactoring) when A is sparse and has been factored ? UMFPack allows this in other implementations (e.g. Scilab). Thanks for help S.

Re: [julia-users] Solve transpose(A)*x=b with sparse LU factors of A

2014-09-12 Thread Andreas Noack
I believe that if Af = lufact(A) for sparse A then Af\b will give you what you want. The expression is parsed such that the transpose is not actually computed. Instead it calls the methods Ac_ldiv_B which calls the right solver in UMFPack. Med venlig hilsen Andreas Noack 2014-09-12 9:55

Re: [julia-users] Comprehension Produces Any

2014-09-12 Thread gael . mcdon
@time(begin for n = 1:10 d1 = Float64[ a1[a,b,i,j] .* b1[a,i,j] .* c1[b,i,j] for a = 1:10, b = 1:10, i=1:100,j=1:100 ] end end) For the sake of completeness, begin ... end blocks are not local. I thought let blocks would but it appears they don't.

Re: [julia-users] how to push!(::DataFrame,::DataFrameRow) or append!(::DataFrame,::DataFrameRow) ?

2014-09-12 Thread Leah Hanson
Oh, I didn't realize that. So, `eachrow(df)` is giving you `[(:a,hi),(:x,0.703943)]` when you need `[hi,0.703943]` to use `push!`. ~~~ julia df = DataFrame(a=[hi,there],x = rand(2)) 2x2 DataFrame |---|-|--| | Row # | a | x| | 1 | hi| 0.703943 | | 2 |

Re: [julia-users] Compiled R

2014-09-12 Thread John Myles White
I'd love it if Duncan were to start working on Julia. His ideas would be invaluable. -- John On Sep 11, 2014, at 6:49 PM, Ethan Anderes ethanande...@gmail.com wrote: For the past year I've been trying to get Duncan to jump to our side of the tracks and join in on Julia development. I

[julia-users] Re: sparse matrix functions

2014-09-12 Thread Ivar Nesje
This looks like a bug to me, and it was caused by c330b1d64 https://github.com/JuliaLang/julia/commit/c330b1d64efa566911cdd20921ca9419e58bacf9 and it links to #987 https://github.com/JuliaLang/julia/issues/987. The bug is silent because there already was a generic function that could find

[julia-users] Re: Pull latex.jl out from PyPlot

2014-09-12 Thread Tomas Lycken
I've wished to use them in other contexts as well (e.g. with other plotting libraries). Lifting latex.jl out and making it its own package will probably make it a lot easier for other visualization packages to re-use the functionality. Also, I've wanted to use it as a standalone thing, to be

Re: [julia-users] Values vs. Bindings: making sense of things

2014-09-12 Thread gael . mcdon
For the behavior of === you'll want to google Henry Baker EGAL. Essentially two values are === if and only if there is program that can distinguish them. There's no way to distinguish two instances of 1 since integers are immutable. I put instances in quotes because it's not even really

[julia-users] Re: Julia strange behaviour with GC

2014-09-12 Thread Patrick O'Leary
On Friday, September 12, 2014 10:11:13 AM UTC-5, gael@gmail.com wrote: lots of detailed analysis A lot of this has potential for further improving the output from Benchmark.jl: https://github.com/johnmyleswhite/Benchmark.jl/

Re: [julia-users] Values vs. Bindings: making sense of things

2014-09-12 Thread Patrick O'Leary
On Friday, September 12, 2014 11:20:27 AM UTC-5, gael@gmail.com wrote: Actually, a = 1 a[1] is also valid. But a = 1 a[1] = 2 is not: is `1` an array or not? Iterability, immutability, and array-ness are separate properties.

Re: [julia-users] Values vs. Bindings: making sense of things

2014-09-12 Thread Tomas Lycken
Correct me if I’m wrong, but a[1] begin valid even after a = 1 isn’t really a sign of array-ness in Julia - it’s valid exactly because there’s a method getindex(::Int) defined somewhere. So you really need to add *index-ability* to your list of properties that a value can have. // Tomas On

Re: [julia-users] Values vs. Bindings: making sense of things

2014-09-12 Thread Stefan Karpinski
I didn't say they must, just that they are and why. I didn't think that having iterable scalars was a good idea initially, but others felt it was useful and it does seem to be handy quite often. In any case, I'm not sure what that had to do with EGAL. Clearly 1 and the zero-dimensional array

[julia-users] Re: issue with hist

2014-09-12 Thread Ivar Nesje
http://docs.julialang.org/en/release-0.3/stdlib/base/?highlight=hist#Base.hist Compute the histogram of v, optionally using approximately n bins hist uses the histrange http://docs.julialang.org/en/release-0.3/stdlib/base/?highlight=hist#Base.histrange function to get more pretty ranges. Ivar

Re: [julia-users] Values vs. Bindings: making sense of things

2014-09-12 Thread Stefan Karpinski
It's gonna be a long list... On Sep 12, 2014, at 6:36 PM, Tomas Lycken tomas.lyc...@gmail.com wrote: Correct me if I’m wrong, but a[1] begin valid even after a = 1 isn’t really a sign of array-ness in Julia - it’s valid exactly because there’s a method getindex(::Int) defined somewhere.

Re: [julia-users] Comprehension Produces Any

2014-09-12 Thread Douglas Bates
On Friday, September 12, 2014 12:41:49 AM UTC-5, Christoph Ortner wrote: That did work - thank you, see code below. To explain: this came from a bottleneck in a bigger code, so my problem there must be a different one. -- Christoph function testtime() a1 = rand(10, 10, 100, 100)

[julia-users] Re: Julia strange behaviour with GC

2014-09-12 Thread Simon Kornblith
You're right that microbenchmarks often do not reflect real-world performance, but in defense of using the sample mean for benchmarking, it's a good estimator of the population mean (provided the distribution has finite variance), and if you perform an operation n times, it will take about nμ

Re: [julia-users] Julia strange behaviour with GC

2014-09-12 Thread Stefan Karpinski
That's a nice in depth analysis. The bumps are likely due to GC slowing down every third execution. The overall slowness is due to Julia not special casing this exponent. On Sep 12, 2014, at 5:11 PM, gael.mc...@gmail.com wrote: A few days ago, Ján Dolinský posted some microbenchmarks about

Re: [julia-users] Gadfly/pango critical error using Julia version 0.3

2014-09-12 Thread Elliot Saba
How did you install pango? On Sep 12, 2014 7:28 AM, cormull...@mac.com wrote: Trying to create a Gadfly plot, I saw this message: (process:8158): Pango-CRITICAL **: No modules found: No builtin or dynamically loaded modules were found. PangoFc will not work correctly. This probably means

[julia-users] Re: Suprises with for loops

2014-09-12 Thread Tony Fong
Lint v0.1.2 starts to track variables' type locally within a function declaration. So your case will correctly trigger a lint warning. Tony On Thursday, September 11, 2014 4:32:09 AM UTC+7, Wilfred Hughes wrote: On Monday, 8 September 2014 14:54:50 UTC+1, Tony Fong wrote: @snotskie looped

Re: [julia-users] Re: Julia strange behaviour with GC

2014-09-12 Thread John Myles White
One point worth making: it's often much harder to estimate the tails of a distribution than the mean. The most natural example of this is estimating the mean of a normal distribution. From theory we know that the population median and the population mean are the same quantity, so we could use

Re: [julia-users] Suprises with for loops

2014-09-12 Thread John Myles White
As Lint keeps improving, I feel like we should probably highlight it more aggressively in the manual. -- John On Sep 12, 2014, at 10:56 AM, Tony Fong tony.hf.f...@gmail.com wrote: Lint v0.1.2 starts to track variables' type locally within a function declaration. So your case will correctly

Re: [julia-users] Gadfly/pango critical error using Julia version 0.3

2014-09-12 Thread cormullion
On Friday, September 12, 2014 5:52:38 PM UTC+1, Elliot Saba wrote: How did you install pango? I didn't/haven't - first I've heard of it. I thought it must have been installed along with Gadfly/Cairo whatever...

[julia-users] Re: Image acquisition

2014-09-12 Thread Simon Danisch
GStreamer has some shaders for the conversion: http://cgit.freedesktop.org/gstreamer/gst-plugins-gl/tree/gst-libs/gst/gl/gstgldownload.czz So I'd say we're not very far away from this goal, as the rest is already on the GPU ;) Am Montag, 8. September 2014 18:06:45 UTC+2 schrieb Miguel Belbut

Re: [julia-users] how to push!(::DataFrame,::DataFrameRow) or append!(::DataFrame,::DataFrameRow) ?

2014-09-12 Thread John Myles White
We really need to standardize on a single type that reflects a single row of a tabular data structure that gets used both by DBI and by DataFrames. DataFrameRow is really nice because it's a zero-copy operation for DataFrames, but we can't provide zero-copy semantics when pulling rows out of a

Re: [julia-users] Re: Image acquisition

2014-09-12 Thread Leah Hanson
I just wanted to say that I copied the code from Simon's gist, and once I had all the packages installed, it was really exciting to see video from the webcam via Julia. :) -- Leah On Fri, Sep 12, 2014 at 12:19 PM, Simon Danisch sdani...@gmail.com wrote: GStreamer has some shaders for the

Re: [julia-users] Gadfly/pango critical error using Julia version 0.3

2014-09-12 Thread Elliot Saba
Can you give me more information about your computer? What OS version, etc? On Sep 12, 2014 10:08 AM, cormull...@mac.com wrote: On Friday, September 12, 2014 5:52:38 PM UTC+1, Elliot Saba wrote: How did you install pango? I didn't/haven't - first I've heard of it. I thought it must have been

Re: [julia-users] Gadfly/pango critical error using Julia version 0.3

2014-09-12 Thread cormullion
On Friday, September 12, 2014 6:08:47 PM UTC+1, cormu...@mac.com wrote: On Friday, September 12, 2014 5:52:38 PM UTC+1, Elliot Saba wrote: How did you install pango? I didn't/haven't - first I've heard of it. I thought it must have been installed along with Gadfly/Cairo whatever... I

[julia-users] Re: Image acquisition

2014-09-12 Thread Simon Danisch
I'm quite excited too! Especially, as I started integrating Leap Motion (Image Stream and Skeleton), occulus is on the way, web-cam seems to work fine and maybe we can get Kinect V2 at some point! The Kinect should work especially well with GLPlot :) I looked into the state of the Kinect V2 open

Re: [julia-users] Comprehension Produces Any

2014-09-12 Thread Kevin Squire
On Friday, September 12, 2014, Douglas Bates dmba...@gmail.com wrote: On Friday, September 12, 2014 12:41:49 AM UTC-5, Christoph Ortner wrote: That did work - thank you, see code below. To explain: this came from a bottleneck in a bigger code, so my problem there must be a different one.

[julia-users] Re: Pull latex.jl out from PyPlot

2014-09-12 Thread Steven G. Johnson
On Friday, September 12, 2014 11:14:41 AM UTC-4, Ethan Anderes wrote: From my experience, I've wished at times that latex strings were also included in PyCall and not just PyPlot. It actually has nothing to do with Python... Should be easy enough to make a standalone LaTeXStrings package;

[julia-users] Re: Julia strange behaviour with GC

2014-09-12 Thread gael . mcdon
You're right that microbenchmarks often do not reflect real-world performance, but in defense of using the sample mean for benchmarking, it's a good estimator of the population mean (provided the distribution has finite variance), and if you perform an operation n times, it will take

Re: [julia-users] Re: Julia strange behaviour with GC

2014-09-12 Thread gael . mcdon
In general, it's important to account for uncertainty. This is the biggest failing of Benchmark.jl. If I were to rewrite that package today, I would place much more emphasis on reporting confidence intervals and I might not even provide point estimates at all. Amen

Re: [julia-users] how to push!(::DataFrame,::DataFrameRow) or append!(::DataFrame,::DataFrameRow) ?

2014-09-12 Thread Gray Calhoun
It seems like standardizing on convert would be a natural approach when one needs to go from one to the other. I don't know the DBI semantics, but myrow = convert(Dict, mydataframerow) myrow2 = convert(OrderedDict, mydataframerow), etc is transparent and lets different data storage objects

Re: [julia-users] Gadfly/pango critical error using Julia version 0.3

2014-09-12 Thread cormullion
I'm on the latest MacOS release (Mavericks), on an iMac. 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) i5-2500S CPU @ 2.70GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT

[julia-users] ANN: NIDAQ.jl

2014-09-12 Thread Ben Arthur
national instruments data acquisition package now available. it's still a work in progress, but the skeleton is there and working: https://github.com/JaneliaSciComp/NIDAQ.jl i'm open to all comments... ben

[julia-users] Re: Pull latex.jl out from PyPlot

2014-09-12 Thread Steven G. Johnson
Okay, it's done. Pkg.update(); Pkg.add(LaTeXStrings) to get it. Note also that in the new version you don't have to type the $...$ if your string contains only an equation; they are added automatically if no unescaped dollar sign is found. (The only point of using this is for equations,

Re: [julia-users] ANN: NIDAQ.jl

2014-09-12 Thread Tim Holy
Hooray! That's fantastic news. Best, --Tim On Friday, September 12, 2014 01:08:21 PM Ben Arthur wrote: national instruments data acquisition package now available. it's still a work in progress, but the skeleton is there and working: https://github.com/JaneliaSciComp/NIDAQ.jl i'm open

Re: [julia-users] how to push!(::DataFrame,::DataFrameRow) or append!(::DataFrame,::DataFrameRow) ?

2014-09-12 Thread John Myles White
I'm not sure that losing zero copy semantics is actually a big performance hit in most pipelines. I think much more important is that you can't write generic code right now because the abstractions aren't linked in any way. The rows you fetch from a database using DBI aren't mutable, whereas

[julia-users] Re: Pull latex.jl out from PyPlot

2014-09-12 Thread Tim Wheeler
Awesome! On Friday, September 12, 2014 1:12:53 PM UTC-7, Steven G. Johnson wrote: Okay, it's done. Pkg.update(); Pkg.add(LaTeXStrings) to get it. Note also that in the new version you don't have to type the $...$ if your string contains only an equation; they are added automatically if no

Re: [julia-users] how to push!(::DataFrame,::DataFrameRow) or append!(::DataFrame,::DataFrameRow) ?

2014-09-12 Thread Gray Calhoun
Probably not in most, you're right. Can't you get generic code as long as a method to convert to OrderedDict is supplied, though? When you don't need anything more specific, convert the dataframe row to an OrderedDict, then either work with that object or convert it into a more appropriate

Re: [julia-users] how to push!(::DataFrame,::DataFrameRow) or append!(::DataFrame,::DataFrameRow) ?

2014-09-12 Thread John Myles White
Doing a convert(OrderedDict, DataFrameRow) seems like it's going to be a much worse performance hit than copying everything into a specific OrderedDict that's reused, because you're going to allocate memory for a new OrderedDict object on every iteration. -- John On Sep 12, 2014, at 2:44 PM,

Re: [julia-users] how to push!(::DataFrame,::DataFrameRow) or append!(::DataFrame,::DataFrameRow) ?

2014-09-12 Thread Gray Calhoun
Oh, I wasn't thinking of that. Good point. A mutating OrderedDict constructor would allow reuse, but isn't as generic.

Re: [julia-users] how to push!(::DataFrame,::DataFrameRow) or append!(::DataFrame,::DataFrameRow) ?

2014-09-12 Thread Florian Oswald
Leah: yeah that works. but i think i almost prefer my previous solution, instead of this push!(df2,[v for (_,v) in e]) that: push!(df2,array(e)) not sure about the performance implications though. On 12 September 2014 22:18, Gray Calhoun gcalh...@iastate.edu wrote: Oh, I wasn't

Re: [julia-users] how to push!(::DataFrame,::DataFrameRow) or append!(::DataFrame,::DataFrameRow) ?

2014-09-12 Thread John Myles White
What does that mean? A DataFrameRow can't be easily created without reference to an existing DataFrame, so this seems like it's either a mechanism for transferring rows from one DataFrame to another very slowly or a mechanism for inserting duplicate rows. -- John On Sep 12, 2014, at 3:37 PM,

Re: [julia-users] Re: citing Julia

2014-09-12 Thread Spencer Russell
Off-topic LaTeX comment: I'm citing some of these for an extended abstract I'm submitting, and I noticed that when I open the PDFs on my linux machine I get lots of brightly-colored boxes around the links within the document. My understanding is that the hyperref package adds the boxes, but

Re: [julia-users] how to push!(::DataFrame,::DataFrameRow) or append!(::DataFrame,::DataFrameRow) ?

2014-09-12 Thread Florian Oswald
oh, i didnt' know it's slow. yes in my case it's a way of transferring a row from one df to another. what's a better way of doing this? On 12 September 2014 22:39, John Myles White johnmyleswh...@gmail.com wrote: What does that mean? A DataFrameRow can't be easily created without reference to

Re: [julia-users] Help needed with creating Julia package

2014-09-12 Thread Bill Hart
One hint I have is that I keep getting the error message couldnt make stderr distinct from stdout. Even if I build from a naked ,sys2 sh invoked without any decoration from the Windows command prompt, everything builds fine. Although I can't detect any differences in the versions of gcc,

[julia-users] Re: ANN: NIDAQ.jl

2014-09-12 Thread Tony Kelman
Very very cool. As someone who always disliked Labview (but was somehow able to stand Matlab for about 8 years), this is something I really hope whoever my future employer ends up being will let me use. On Friday, September 12, 2014 1:08:21 PM UTC-7, Ben Arthur wrote: national instruments

Re: [julia-users] Comprehension Produces Any

2014-09-12 Thread Stefan Karpinski
You can declare them outside the loop with the local keyword – that a better option and less likely to lead to type inference issues. On Sep 12, 2014, at 11:59 PM, Christoph Ortner christophortn...@gmail.com wrote: The point was to be able to access d1, d2 outside the loop to check their

Re: [julia-users] Help needed with creating Julia package

2014-09-12 Thread Tony Kelman
Bill, Shelling out in Julia on Windows currently calls into the bundled Git-bash, for the purposes of the package manager. That will hopefully change in 0.4 by replacing the bundled Git-bash with libgit2 bindings, but PR 7339 is currently a bit stalled for lack of anyone who understands the

Re: [julia-users] Does Julia have something similar to Python's documentation string?

2014-09-12 Thread Michael Hatherly
Hi Francesco, Docile.jl partially covers what I think you're wanting out of your docstrings, namely testing examples for correctness. I've been thinking about exporting the docstrings to ijulia notebooks which might provide a more interactive experience in some cases. Running examples from

[julia-users] Re: dispatch based on expression head

2014-09-12 Thread Gray Calhoun
Thanks, those are both nice improvements. On Wednesday, September 10, 2014 12:00:53 PM UTC-5, Patrick O'Leary wrote: On Wednesday, September 10, 2014 11:20:59 AM UTC-5, Gray Calhoun wrote: Hi everyone, I'm writing code using expressions fairly heavily (mainly as a learning exercise), and am

Re: [julia-users] Help needed with creating Julia package

2014-09-12 Thread Bill Hart
Hi Tony, I'm worried about the legality of downloading binaries for users, since the packages involved, GMP/MPIR, MPFR and FLINT are (L)GPL. I see now that Julia adds things to the system PATH, which is why it is picking up things in the GitBash bundled in Julia. If I can figure out how to get

[julia-users] Re: dispatch based on expression head

2014-09-12 Thread Gray Calhoun
On Wednesday, September 10, 2014 11:50:44 AM UTC-5, Steven G. Johnson wrote: On Wednesday, September 10, 2014 12:20:59 PM UTC-4, Gray Calhoun wrote: Are there better ways to do this in general? For this kind of expression-matching code, you may find the Match.jl package handy

Re: [julia-users] Help needed with creating Julia package

2014-09-12 Thread Bill Hart
I should mention that there are some complications. Flint needs to be built in situ because it needs a large .txt file at runtime which contains data it uses (Conway polynomials). The only way to tell flint where it will be is through the build system, and the only way to know where it will be is

Re: [julia-users] Help needed with creating Julia package

2014-09-12 Thread Tony Kelman
I'm worried about the legality of downloading binaries for users, since the packages involved, GMP/MPIR, MPFR and FLINT are (L)GPL. Quite a few packages rely on (L)GPL code. The GPL is a long confusing document, and limits commercial application of some code, that's for sure, but to the best

Re: [julia-users] Help needed with creating Julia package

2014-09-12 Thread Tony Kelman
The library cross-compiles okay (at least at the last released version, I can try git master if you've made changes that are necessary), see https://build.opensuse.org/package/show/home:kelman/mingw32-flint and https://build.opensuse.org/package/show/home:kelman/mingw64-flint It was made a

Re: [julia-users] Comprehension Produces Any

2014-09-12 Thread Christoph Ortner
That is useful to know - thanks.