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
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,
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)
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.
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:
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
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
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
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
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]
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
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
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
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))
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
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 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
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:
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
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
From my experience, I've wished at times that latex strings were also included
in PyCall and not just PyPlot.
-Ethan.
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
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
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.
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
@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.
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 |
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
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
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
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
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/
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.
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
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
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
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.
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)
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μ
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
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
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
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
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
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...
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
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
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
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
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
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
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.
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;
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
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
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
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
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
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,
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
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
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
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
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,
Oh, I wasn't thinking of that. Good point. A mutating OrderedDict constructor
would allow reuse, but isn't as generic.
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
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,
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
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
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,
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
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
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
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
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
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
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
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
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
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
That is useful to know - thanks.
81 matches
Mail list logo