Re: [julia-users] Comprehension Produces Any

2014-09-11 Thread Christoph Ortner
And here the OUTPUT: elapsed time: 0.110285914 seconds (80001120 bytes allocated, 59.36% gc time) Array{Float64,4} elapsed time: 0.079318859 seconds (80001120 bytes allocated, 43.25% gc time) Array{Float64,4}

Re: [julia-users] Comprehension Produces Any

2014-09-11 Thread Christoph Ortner
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) b1 = rand(10, 100, 100) c1 = rand(10, 100, 100) d1 = [] const a2 =

Re: [julia-users] Compiled R

2014-09-11 Thread John Myles White
This article is really good. Thanks for pointing it out. -- John On Sep 11, 2014, at 4:10 PM, asim Ansari wrote: > Hi > > This article by Duncan Temple Lang on Compiling R could be of interest. > Mentions Juila a few times. > > Asim > > http://arxiv.org/pdf/1409.3144.pdf

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

2014-09-11 Thread John Myles White
For future reference, I'd really appreciate you not referring to my writing as "quite erroneous" when the claims made are in fact correct. -- John On Sep 11, 2014, at 2:38 PM, Mohammed El-Beltagy wrote: > In a recent blog by John Myles White > http://www.johnmyleswhite.com/notebook/2014/09/

Re: [julia-users] Comprehension Produces Any

2014-09-11 Thread Jameson Nash
You are still trying to run in global scope. Put your code in a function before drawing conclusions. On Fri, Sep 12, 2014 at 12:58 AM, Christoph Ortner < christophortn...@gmail.com> wrote: > On Friday, 12 September 2014 02:24:15 UTC+1, gael@gmail.com wrote: > >> Wouldn't it be enough to put

Re: [julia-users] Comprehension Produces Any

2014-09-11 Thread Christoph Ortner
On Friday, 12 September 2014 02:24:15 UTC+1, gael@gmail.com wrote: > Wouldn't it be enough to put it in a local scope (let block or in a > function?). > > For more information, you can ask or look at the Performance tips part of > the manual. > I'd be interested in. Here is another code bloc

[julia-users] find function in sparse matrix

2014-09-11 Thread i . pallikarakis-11
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) find(x->x==true,A) ->0-element Array{Int64,1} find(x->x==true,full(A)) ->10-element Array{Int64,1}: 1 12

[julia-users] sparse matrix functions

2014-09-11 Thread i . pallikarakis-11
Hi, I am relatively new to Julia. I upgraded from 0.2.1 to 0.3.0 and had the following issue, the find function stopped working on Julia 0.3.0 on sparse matrices. I tried to find a quick look as for why this is happening but din't find anything. Example: A=speye(Bool,10) find(x->x==true,A) ->0

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

2014-09-11 Thread Jameson Nash
regarding 1 === 1, this is true of any immutable "isbits" type. Julia doesn't actually allocate an object for that in memory, it is simply a value (aka a value-type), and as such it is always compared by value, never by address. On Thu, Sep 11, 2014 at 8:47 PM, wrote: > > The binding of the arg

Re: [julia-users] Comprehension Produces Any

2014-09-11 Thread gael . mcdon
Wouldn't it be enough to put it in a local scope (let block or in a function?). For more information, you can ask or look at the Performance tips part of the manual.

Re: [julia-users] Image acquisition

2014-09-11 Thread Kevin Squire
Thanks, Simon! I'll try it out this evening. Right now, reading translates the raw input (usually yuv420p, or maybe yuv422) to RGB before handing it off. One of my hopes is that we could pass the raw image data directly to the GPU, decode it there, and eventually even apply filters or other proce

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

2014-09-11 Thread Bill Hart
I guess I figured it out. On 12 September 2014 01:12, Bill Hart wrote: > Yes. > > I notice that after building Nemo it is in a directory called nemo, not > Nemo. > > At the moment Nemo.jl simply builds Nemo by including deps/build.jl, since > this is what Cairo does. > > The code the user will b

[julia-users] Compiled R

2014-09-11 Thread Ethan Anderes
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 haven't landed the sale, as of yet, but I'm still working on it. My hope is that his knowledge of R development might help in the stats design??

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

2014-09-11 Thread gael . mcdon
> The binding of the argument to the function can never change, though the > values of that binding might. It you be more correct to say that a method cannot change the binding of its arguments. You can change bindings, you just can't do it inside of a method because of scoping rules. It's just

Re: [julia-users] Re: create a matrix dynamically with Julia

2014-09-11 Thread Charles Novaes de Santana
Thank you very much, Douglas, for your great suggestions! Best, Charles On Thu, Sep 11, 2014 at 7:38 PM, Douglas Bates wrote: > The short answer is vcat, as in > > julia> A = Array(Int,(0,2)) > 0x2 Array{Int64,2} > > julia> vcat(A,[1,2]') > 1x2 Array{Int64,2}: > 1 2 > > Note that the ' is im

Re: [julia-users] Re: What wrong , help ;0

2014-09-11 Thread gael . mcdon
BTW, if what you want to achieve is the concatenation of a few arrays, you may want to do it from the start instead of putting them in different variables first to concatenate them afterwards.

[julia-users] What wrong , help ;0

2014-09-11 Thread gael . mcdon
Why are you using metaprogramming stuff instead of a dict or an array? It's not what creates the problem, but at least with a dict, it should be easier for you to keep everything perfectly clear in your head. So instead of generating symbols on the fly to @eval them, create a dict with "p2" and

Re: [julia-users] Re: ANN: ApproxFun v0.0.3 with general linear PDE solving on rectangles

2014-09-11 Thread Sheehan Olver
Chebfun is a lot more full featured, and ApproxFun is _very_ rough around the edges. ApproxFun will probably end up a very different animal than chebfun: right now the goal is to tackle PDEs on a broader class of domains, something I think is beyond the scope of Chebfun due to issues w

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

2014-09-11 Thread Bill Hart
Yes. I notice that after building Nemo it is in a directory called nemo, not Nemo. At the moment Nemo.jl simply builds Nemo by including deps/build.jl, since this is what Cairo does. The code the user will be interested in is in Rings.jl and Fields.jl. How do they load those? Bill. On 12 Septe

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

2014-09-11 Thread Leah Hanson
Does your Nemo.jl contain ~~~ module Nemo end ~~~ ? On Thu, Sep 11, 2014 at 5:56 PM, 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", "using Fields" all fail, > complaining that it c

Re: [julia-users] Comprehension Produces Any

2014-09-11 Thread Jiahao Chen
You may be interested in issue #7258 and the julia-dev thread linked to in there. Thanks, Jiahao Chen Staff Research Scientist MIT Computer Science and Artificial Intelligence Laborator

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

2014-09-11 Thread Bill Hart
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", "using Fields" all fail, complaining that it can't find the modules. I must be missing a step somewhere. Bill. On 12 September 2014 00:47, Bill Hart wrote: >

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

2014-09-11 Thread Bill Hart
It's ok, I got it. Pkg.build() Bill. On 12 September 2014 00:38, Bill Hart wrote: > I had a go at making a preliminary package which should vaguely build on > Linux when "using Nemo" is run from within the src/ directory. > > I checked this works on my machine at least. > > I also checked that

[julia-users] Compiled R

2014-09-11 Thread asim Ansari
Hi This article by Duncan Temple Lang on Compiling R could be of interest. Mentions Juila a few times. Asim http://arxiv.org/pdf/1409.3144.pdf

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

2014-09-11 Thread Bill Hart
I had a go at making a preliminary package which should vaguely build on Linux when "using Nemo" is run from within the src/ directory. I checked this works on my machine at least. I also checked that Pkg.clone("https://github.com/wbhart/nemo.git";) clones the Nemo repository from within Julia. B

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

2014-09-11 Thread Michael Hatherly
Yeah, that's how I had be rationalising it to myself, I'm glad it wasn't just me. -- Mike

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

2014-09-11 Thread Leah Hanson
Oh, I missed that. That's totally the approach I would take, and I don't really see it as a problem to use a separate channel to document the documentation functions/macros. It seems like a messiness related more to bootstrapping (documenting using the system you're writing) rather than a design pr

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

2014-09-11 Thread Michael Hatherly
I'm doing it using an internal macro `@docref` [1] to track the line number and then in `src/doc.jl` I store the documentation in `__METADATA__` along with the line and source file found using `@docref`. A bit hacky, but it's only for a couple of docs. [1] https://github.com/MichaelHatherly/Do

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

2014-09-11 Thread Mohammed El-Beltagy
In a recent blog by John Myles White http://www.johnmyleswhite.com/notebook/2014/09/06/values-vs-bindings-the-map-is-not-the-territory/ it was suggested that Julia make strong distinction between values and binding. For example a = [1, 2, 3] function foo!(a) a[1] = 10 return end a

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

2014-09-11 Thread Leah Hanson
Could you manually add the `@doc` documentation to the _METDATA_ object? The macro edits a variable, which you should be able to do outside the macro as well, right? -- Leah On Thu, Sep 11, 2014 at 4:28 PM, Michael Hatherly wrote: > I am committed to continuing work on this, though other work c

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

2014-09-11 Thread Michael Hatherly
I am committed to continuing work on this, though other work can limit the amount of time I have. There's still some rough edges, and I'm not sure how to overcome some difficulties such as `@doc` not being able to document itself. -- Mike

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

2014-09-11 Thread Michael Hatherly
Docile.jl author here, When I began writing it had some Steven's ideas in mind from one of the earlier discussion here (or GitHub issues list perhaps). I had initially though of following go's use of comments above code objects to document them, but that doesn't allow for interpolating data fr

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

2014-09-11 Thread Peter Simon
Ah! I had a look at the source code for `Pkg.init` and see that its default first argument is DEFAULT_META, which is initialized to "git://github.com/JuliaLang/METADATA.jl". So `Pkg.init` is used to point the package manager to the global METAFILE package directory. This is definitely not wh

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

2014-09-11 Thread Tim Holy
I hadn't looked at Docile in a long time, and from the commit history clearly there has been a lot of recent development. Based on a very brief look, I'd say it's so much better than what we (don't) have that, as long as Michael says he's committed to continuing its development, I'd favor mergi

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

2014-09-11 Thread Keno Fischer
It's just a question of calling Pkg.init("YOUR URL HERE") before doing anything else. Of course, if you want to distribute custom binaries, you can edit DEFAULT_META. I don't see any problems with windows. On Thu, Sep 11, 2014 at 4:48 PM, Peter Simon wrote: > Thanks for the suggestion, Keno. I h

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

2014-09-11 Thread Peter Simon
Thanks for the suggestion, Keno. I have a couple of follow-on questions: 1. How do I make the package manager attend to the local METADATA file rather than try to grab/update it from GitHub? Would I edit the definition of DEFAULT_META in pkg.jl? Does this require recompiling Julia? 2. Some

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

2014-09-11 Thread Keno Fischer
The best thing I can think of is to have a company-local METADATA that you periodically update withe METADATA from GitHub. On Thu, Sep 11, 2014 at 4:34 PM, Peter Simon wrote: > I've introduced several packages at work for my coworkers' use. I expect > more to be added in the future, both from my

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

2014-09-11 Thread Peter Simon
I've introduced several packages at work for my coworkers' use. I expect more to be added in the future, both from myself and other Julia users. These packages must be considered proprietary to our company, and so cannot be hosted on GitHub nor listed in the GitHub-hosted METADATA. Some of t

Re: [julia-users] Re: What wrong , help ;0

2014-09-11 Thread Leah Hanson
do you have a variable named p2? On Thu, Sep 11, 2014 at 3:12 PM, Paul Analyst wrote: > julia> efy > 4x1 Array{Int64,2}: > 1 > 7 > 8 > 10 > > W dniu 2014-09-11 o 20:27, Jake Bolewski pisze: > > what is efy? Your example is not reproducible. > > On Thursday, September 11, 2014 2:22:31 PM

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

2014-09-11 Thread Leah Hanson
If I understand correctly, Docile.jl is a macro-based implementation of SGJ's suggestion, right? So if we're in agreement about non-comment-based documentation, we could start using that now, and later switch from "@doc" to the keyword "doc" when it's implemented. Are any packages documented with

Re: [julia-users] Re: What wrong , help ;0

2014-09-11 Thread Paul Analyst
julia> efy 4x1 Array{Int64,2}: 1 7 8 10 W dniu 2014-09-11 o 20:27, Jake Bolewski pisze: what is efy? Your example is not reproducible. On Thursday, September 11, 2014 2:22:31 PM UTC-4, paul analyst wrote: julia> i 2 julia> pp=[]; julia> target=25; julia> for i i

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

2014-09-11 Thread Jason
> > Why is begin...end better than """""" ? > For block documentation they are equivalent, but the triple quotes are heavy for lots of single line comments. Eg: look at the average comment length of this randomly chosen Haskell source file

[julia-users] Comprehension Produces Any

2014-09-11 Thread Christoph Ortner
Here is a short code snippet, that got me puzzled. [Julia Version 0.3.0, Commit 7681878* (2014-08-20 20:43 UTC), Darwin (x86_64-apple-darwin13.3.0)] a = rand(3,3) b = rand(3,3) println(typeof( [a[i,j]*b[i,j] for i = 1:3, j=1:3])) println(typeof(a .* b)) Array{Any,2} Array{Float64

[julia-users] Re: Image acquisition

2014-09-11 Thread Simon Danisch
Very nice library!! I made a little example for the usage of VideoIO with GLPlot. On my PC, its a lot faster than VideoIO.viewcam(), and you can use real time filterig https://gist.github.com/SimonDanisch/fa3993176a015215092c Hope you like it! Best, Simon Am Montag, 8. September 2014 18:06:45 U

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

2014-09-11 Thread Tim Wheeler
Hello Julia-Users! I have found the LaTeX code in latex.jl from PyPlot pretty useful. I imagine anyone working with LaTeX from Julia would have a need for it, but not everyone needs PyPlot at the same time. Is anyone considering making latex.jl a standalone LaTeX package so we don't have to rely

Re: [julia-users] 0.4 Roadmap for DataFrames, DataArrays, etc...

2014-09-11 Thread Viral Shah
I don't have the codes handy, as they would usually involve trying to play around with data in csv files. I have run into performance problems for the most part. However, I have at times also run into cases where I felt things were not as expressive as I would have liked. These cases are probably b

Re: [julia-users] 0.4 Roadmap for DataFrames, DataArrays, etc...

2014-09-11 Thread John Myles White
Viral, Can you give specific examples where NA caused troubles for you? Were they performance problems or something else? If we get multi-theading really solid halfway to 0.4, we can probably use it in some of the NullableArrays code to speed up operations on vectors. -- John On Sep 11, 2014

[julia-users] Re: What wrong , help ;0

2014-09-11 Thread Jake Bolewski
what is efy? Your example is not reproducible. On Thursday, September 11, 2014 2:22:31 PM UTC-4, paul analyst wrote: > > julia> i > 2 > julia> pp=[]; > julia> target=25; > julia> for i in efy; >var_name = symbol("p" * string(i)); >pp=vcat(pp,@eval $var_name[1:target]); >

[julia-users] What wrong , help ;0

2014-09-11 Thread paul analyst
julia> i 2 julia> pp=[]; julia> target=25; julia> for i in efy; var_name = symbol("p" * string(i)); pp=vcat(pp,@eval $var_name[1:target]); #println(sum(@eval $var_name[1:target])) end; ERROR: p2 not defined in anonymous at no file:3 julia> Paul

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

2014-09-11 Thread Steven G. Johnson
> > > The primary difference to me is the ease of expansion that comes along > with comments. Ie, if there is already one line of comments, I just hit > newline in my editor, and it automatically adds a new comment leader and I > can add an additional thought to the comment. Whereas with string

[julia-users] Re: create a matrix dynamically with Julia

2014-09-11 Thread Douglas Bates
The short answer is vcat, as in julia> A = Array(Int,(0,2)) 0x2 Array{Int64,2} julia> vcat(A,[1,2]') 1x2 Array{Int64,2}: 1 2 Note that the ' is important as it cause the column vector [1,2] to be reshaped into a 1 by 2 matrix. You may find it more effective to create the columns separately u

[julia-users] create a matrix dynamically with Julia

2014-09-11 Thread Charles Novaes de Santana
Dear all, I would like to create dynamically a matrix with two columns and N rows (where N can be any number between 0 and 1000). I thought I could do it by using the function "cat", but I am facing some problems with this. My code: A=[]; (...) A=cat(1,A,[1 2]); Is it a good way to create a matr

Re: [julia-users] issue with Ijulia/BinDep after Pkg.update()

2014-09-11 Thread Elliot Saba
Cool, glad it got worked out for you! -E On Thu, Sep 11, 2014 at 9:41 AM, Nima Dehghani wrote: > actually, there was a wrong symbolic link to prerelease v0.3 in my sys > aliases that fixed the issue...now it installed fine. Thx > > On Thursday, September 11, 2014 12:24:03 PM UTC-4, Keno Fischer

Re: [julia-users] issue with Ijulia/BinDep after Pkg.update()

2014-09-11 Thread Elliot Saba
Hey Nima, what is the exact output of versioninfo() from within Julia? On Thu, Sep 11, 2014 at 9:23 AM, Keno Fischer wrote: > Hmm, that's pretty bad. > > Elliot, any idea what's going on? > > On Thu, Sep 11, 2014 at 12:19 PM, Nima Dehghani > wrote: > > Keno, it is the latest version that I inst

Re: [julia-users] issue with Ijulia/BinDep after Pkg.update()

2014-09-11 Thread Nima Dehghani
actually, there was a wrong symbolic link to prerelease v0.3 in my sys aliases that fixed the issue...now it installed fine. Thx On Thursday, September 11, 2014 12:24:03 PM UTC-4, Keno Fischer wrote: > > Hmm, that's pretty bad. > >

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

2014-09-11 Thread Jason
> > I don't have a strong opinion on this topic, but I really don't understand > why this is better than using directly: > > @doc "This is a doc string: 1 + 2 = $(1+2)" > > What is lost when using a string compared to comments? > The primary difference to me is the ease of expansion that comes alo

[julia-users] Re: Array Performance

2014-09-11 Thread Jimmie Houchin
On 09/11/2014 09:12 AM, Steven G. Johnson wrote: On Wednesday, September 10, 2014 10:37:30 PM UTC-4, Jimmie Houchin wrote: It is very nice to reduce the number of times dropping down into C/C++ will be required. It is required any time you need to connect to a C/C++ library.

Re: [julia-users] issue with Ijulia/BinDep after Pkg.update()

2014-09-11 Thread Nima Dehghani
Keno, it is the latest version that I installed and caused the issue. This one: https://s3.amazonaws.com/julialang/bin/osx/x64/0.3/julia-0.3.0-osx10.7+.dmg On Thursday, September 11, 2014 12:10:58 PM UTC-4, Keno Fischer wrote: > > You probably have a version of julia that is > 0.2.1 but < 0.3,

Re: [julia-users] Re: BeagleBone Black

2014-09-11 Thread Steve Kelly
Okay I am on GCC 4.9. I will try to get the build running on Wheezy as well. On Thu, Sep 11, 2014 at 12:02 PM, Viral Shah wrote: > I am using GCC 4.8 and building LLVM 3.5 as part of the build. > > -viral > On 11 Sep 2014 21:21, "Steve Kelly" wrote: > >> Viral, I started the build on our BBB on

Re: [julia-users] issue with Ijulia/BinDep after Pkg.update()

2014-09-11 Thread Keno Fischer
Hmm, that's pretty bad. Elliot, any idea what's going on? On Thu, Sep 11, 2014 at 12:19 PM, Nima Dehghani wrote: > Keno, it is the latest version that I installed and caused the issue. This > one: > https://s3.amazonaws.com/julialang/bin/osx/x64/0.3/julia-0.3.0-osx10.7+.dmg > > On Thursday, Sep

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

2014-09-11 Thread Ivar Nesje
If code in a comment has side effects, the whole thing seems like a very bad idea, because code that was commented out, might be executed. kl. 18:12:44 UTC+2 torsdag 11. september 2014 skrev Rafael Fourquet følgende: > > > Then one could use the existing Julia syntax for substituting values into

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

2014-09-11 Thread Rafael Fourquet
> Then one could use the existing Julia syntax for substituting values into > the documentation, like: > > # This is a comment. 1 + 2 = $(1 + 2) > I don't have a strong opinion on this topic, but I really don't understand why this is better than using directly: @doc "This is a doc string: 1 + 2 =

Re: [julia-users] issue with Ijulia/BinDep after Pkg.update()

2014-09-11 Thread Keno Fischer
You probably have a version of julia that is > 0.2.1 but < 0.3, please update to 0.3. On Thu, Sep 11, 2014 at 11:14 AM, Nima Dehghani wrote: > hi, > I update julia packages on my Osx. After the update, I got an error about > building "zmq" and "nettle"...it could not build them again. So, I remov

Re: [julia-users] Re: BeagleBone Black

2014-09-11 Thread Viral Shah
I am using GCC 4.8 and building LLVM 3.5 as part of the build. -viral On 11 Sep 2014 21:21, "Steve Kelly" wrote: > Viral, I started the build on our BBB on master. We are running Debian sid > with the stock BBB > kernel. I tried running the build with the stock arm-make3 branch on > Monday and

Re: [julia-users] Re: BeagleBone Black

2014-09-11 Thread Steve Kelly
Viral, I started the build on our BBB on master. We are running Debian sid with the stock BBB kernel. I tried running the build with the stock arm-make3 branch on Monday and the LLVM build failed. I tried to use the system 3.5 but that failed as well. Are you using Clang or GCC? On Thu, Sep 11,

[julia-users] issue with Ijulia/BinDep after Pkg.update()

2014-09-11 Thread Nima Dehghani
hi, I update julia packages on my Osx. After the update, I got an error about building "zmq" and "nettle"...it could not build them again. So, I removed .julia directory and re-installed from scratch and noticed that when I add IJulia, during its installation, it reaches the build of zmq and net

Re: [julia-users] Re: How to build Julia in a portable way (for compute farm deployment)?

2014-09-11 Thread Elliot Saba
Your approach is correct, unfortunately our Makefiles are not yet smart enough to set OPENBLAS_DYNAMIC_ARCH=0 if you have overridden OPENBLAS_TARGET_ARCH, so you need to set that as well in order for your OPENBLAS_TARGET_ARCH flag to have any meaning

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

2014-09-11 Thread Steven G. Johnson
On Tuesday, September 9, 2014 1:36:08 PM UTC-4, Ross Boylan wrote: > > How would documentation handle type information for the arguments to a > method? There are 3 possible sources: the comments, the text of the > function arguments (e.g. someArg::FooType), and the compiler. > Also handled b

[julia-users] Re: ANN: ApproxFun v0.0.3 with general linear PDE solving on rectangles

2014-09-11 Thread Steven G. Johnson
This is great! At this point, what are the major differences in functionality between ApproxFun and Chebfun?

[julia-users] Re: Array Performance

2014-09-11 Thread Steven G. Johnson
On Wednesday, September 10, 2014 10:37:30 PM UTC-4, Jimmie Houchin wrote: > > It is very nice to reduce the number of times dropping down into C/C++ > will be required. It is required any time you need to connect to a C/C++ > library. Actually, it's never required to drop down to C just to cal

Re: [julia-users] Re: ANN: revamped Images based on Color, FixedPointNumbers

2014-09-11 Thread Tim Holy
Great to hear! I'll look forward to seeing the demo someday, and of course any comments you have about the API. Best, --Tim On Thursday, September 11, 2014 01:19:11 PM Stefan Karpinski wrote: > Btw, I got everything to work and it made a great demo. People love > transformations of monkey faces.

Re: [julia-users] Re: Type parameter trouble (bug?)

2014-09-11 Thread Tim Holy
You can get triangular dispatch using the trick here: https://github.com/JuliaLang/julia/issues/2345#issuecomment-54537633 --Tim On Thursday, September 11, 2014 05:47:29 AM Magnus Lie Hetland wrote: > Answering my own question here: I guess just adding a type declaration on > the relevant paramet

Re: [julia-users] Why do bools have functions like abs and sign defined?

2014-09-11 Thread Simon Kornblith
But then the question is why we define specialized versions for Bool rather than using the methods for Real in number.jl. For all but abs LLVM is smart enough to optimize the methods for Real to no-ops. Simon On Thursday, September 11, 2014 5:27:10 AM UTC-4, Tim Holy wrote: > > It's because >

Re: [julia-users] Re: Type parameter trouble (bug?)

2014-09-11 Thread Magnus Lie Hetland
Answering my own question here: I guess just adding a type declaration on the relevant parameter of the inner constructor is a way to go?

Re: [julia-users] Re: Type parameter trouble (bug?)

2014-09-11 Thread Magnus Lie Hetland
I see the issue is that I'm forgetting the ubiquity of dispatch here ;-) I don't really need to dispatch on the more specific type, I think. I primarily want the type checking, and I guess I can get that in an internal constructor. But how would I best go about doing that? I mean, I could just

Re: [julia-users] Re: Type parameter trouble (bug?)

2014-09-11 Thread Magnus Lie Hetland
Ah, thanks.

Re: [julia-users] Re: Type parameter trouble (bug?)

2014-09-11 Thread Andreas Noack
Regarding your first question. I have been bit by that one as well. Have a look at https://github.com/JuliaLang/julia/issues/6620 Med venlig hilsen Andreas Noack 2014-09-11 8:18 GMT-04:00 Magnus Lie Hetland : > On a semi-related note, could I use an abstract class as an aggregate of > type par

[julia-users] Re: How to use plan_fft

2014-09-11 Thread Jim Christoff
Thanks , that was the problem. On Wednesday, September 10, 2014 3:45:28 PM UTC-4, Jim Christoff wrote: > > I have used Jullia's default fft for several months and have had no > problems. I recently decided to try plan_fft to improve performance. > I seem to a problem using the plan_fft method. A

[julia-users] Re: Type parameter trouble (bug?)

2014-09-11 Thread Magnus Lie Hetland
On a semi-related note, could I use an abstract class as an aggregate of type parameters, somehow? That is, if I have something like abstract X{T} t{T}(x::X{T}) = T and I have another type that takes a type parameter Y <: X, could I use t(Y) in the declaration of fields? It seems I can't use

[julia-users] Type parameter trouble (bug?)

2014-09-11 Thread Magnus Lie Hetland
Is this something that should work (i.e., is it a bug)? abstract AbstractX{N} type A{T} end type B{T, N, X <: AbstractX{N}} x::X t::NTuple{N, A{T}} end I get the error message *ERROR: N not defined* The line in question is the type declaration for B. I certainly get that this

Re: [julia-users] Re: BeagleBone Black

2014-09-11 Thread Viral Shah
Could you try building master on the BBB again? It should hopefully have a comparable CPU as the Chromebook. It also helps if it is running Ubuntu, to install various dependencies to cut down the build time. -viral On Thursday, September 4, 2014 11:14:18 AM UTC+5:30, Steve Kelly wrote: > > I ca

Re: [julia-users] Re: 0.4 Roadmap for DataFrames, DataArrays, etc...

2014-09-11 Thread Viral Shah
The state of NA has always been where I stop using DataFrames - and I think this roadmap is perfect to coincide with the 0.4 release. What are your thoughts on multi-threading, should we be able to land that in 0.4? Perhaps we can speed up some easily parallelizable operations. -viral On Sunda

[julia-users] Re: How to use plan_fft

2014-09-11 Thread Viral Shah
I think you want to do something like: p = plan_fft(data,1,FFTW.MEASURE) or p = plan_fft(data,(1,2),FFTW.MEASURE) -viral On Thursday, September 11, 2014 1:15:28 AM UTC+5:30, Jim Christoff wrote: > > I have used Jullia's default fft for several months and have had no > problems. I recently de

[julia-users] Re: How to build Julia in a portable way (for compute farm deployment)?

2014-09-11 Thread Viral Shah
I assume it is on linux. If it is ubuntu, you could just use the binaries from our APT repository. -viral On Thursday, September 11, 2014 7:47:01 AM UTC+5:30, Glen Hertz wrote: > > Hi, > > I'm trying to deploy Julia to users in a compute farm environment with > many machines running on differen

Re: [julia-users] Re: ANN: revamped Images based on Color, FixedPointNumbers

2014-09-11 Thread Stefan Karpinski
Btw, I got everything to work and it made a great demo. People love transformations of monkey faces. > On Sep 9, 2014, at 2:44 PM, Stefan Karpinski wrote: > > Yes, but now I'm wrestling with Tk. Should have gotten this working way > earlier. > > >> On Tue, Sep 9, 2014 at 2:39 PM, Tim Holy w

Re: [julia-users] Rationale for colon quote syntax

2014-09-11 Thread Stefan Karpinski
It's a bit of a pun on the Ruby symbol syntax :foo. Since the symbol :foo is the quoted form of the identifier foo, the idea is that : generalizes that syntax to arbitrary expressions. I have now and then wished that `` was the syntax for that, that's how you quote code in Markdown and we often wri

Re: [julia-users] Why do bools have functions like abs and sign defined?

2014-09-11 Thread Tim Holy
It's because julia> super(Bool) Integer julia> super(Integer) Real and you'd expect these to be defined for Integers. If this weren't the case then function myalgorithm{T<:Real}(x::AbstractArray{T}) # do something involving abs end would fail if the user supplied an array of Bools. I coul