Re: [julia-users] problem plotting with Gadfly/Cairo

2013-12-21 Thread John Myles White
You haven’t installed Cairo yet it seems. Or at least Julia isn’t finding Cairo installed where it expects to find it. — John On Dec 21, 2013, at 2:26 AM, Laksh Gupta glaks...@gmail.com wrote: Hi I am running 64 bit Julia Studio 0.4.3 on Windows 8. I installed Gadfly and Cairo but is

Re: [julia-users] Composite Types With Initialized Fields

2013-12-21 Thread John Myles White
Assigning default values to fields of a composite type is not yet supported. Your inner constructor is also a little un-Julian, since `MyType() = new()` doesn’t assign any values to those fields. — John On Dec 21, 2013, at 4:37 AM, Marcus Urban math...@gmail.com wrote: I am a little

Re: [julia-users] Performance of varargs indexing

2013-12-26 Thread John Myles White
Hi Milan, Have you looked at the many table-like functions already in existence? We have xtabs, xtab and table already. Would be nice to shrink everything down to one high-performance function. -- John On Dec 26, 2013, at 6:05 AM, Milan Bouchet-Valat nalimi...@club.fr wrote: Hi! I've

Re: [julia-users] Re: Modules, Closures and Methods

2013-12-28 Thread John Myles White
Haven’t had time to read through this in depth, but is your concern that abstract types can’t contain fields? That is likely to get fixed at some point in the future. — John On Dec 28, 2013, at 9:31 AM, andrew cooke and...@acooke.org wrote: thanks. i've done almost exactly the same thing

Re: [julia-users] Why should map be avoided (for performance)?

2013-12-29 Thread John Myles White
My understanding (which may be out-of-date) is that the current version of map frequently doesn’t get the type of its input correct. That may have been fixed since I developed the habit of not using map. — John On Dec 29, 2013, at 11:58 AM, andrew cooke and...@acooke.org wrote: From the

[julia-users] ccall confusion

2013-12-29 Thread John Myles White
I’m trying to use ccall to access the following function from the SQLite3 API: int sqlite3_table_column_metadata( sqlite3 *db,/* Connection handle */ const char *zDbName,/* Database name or NULL */ const char *zTableName, /* Table name */ const char

Re: [julia-users] ccall confusion

2013-12-30 Thread John Myles White
, notnull, primarykey, autoinc) On Mon, Dec 30, 2013 at 12:00 AM, John Myles White johnmyleswh...@gmail.com wrote: I’m trying to use ccall to access the following function from the SQLite3 API: int sqlite3_table_column_metadata( sqlite3 *db,/* Connection handle

Re: [julia-users] Random.rand must be explicitly imported to be extended

2013-12-30 Thread John Myles White
It’s fine to punt on things. You can either not include those methods at all or include them as skewness(d::HarryDist) = error(“Not yet implemented”) — John On Dec 30, 2013, at 2:15 PM, Harry Southworth harry.southwo...@gmail.com wrote: Thanks for the tip. Another question, and possibly

Re: [julia-users] create a type for points on n-dimensional simplex

2013-12-31 Thread John Myles White
I think you’d need a family of types to do that. You might look at https://github.com/twadleigh/ImmutableArrays.jl and try to extend it. — John On Dec 31, 2013, at 7:13 AM, Christian Groll groll.christian@gmail.com wrote: I already know how I could implement this for a given

Re: [julia-users] Re: Style Guideline

2013-12-31 Thread John Myles White
not belong in a style guide. This sort of thing belongs in either the documentation for the module, or on some tutorial about numerical computation. Cheers, Daniel. On Tuesday, 31 December 2013 10:01:23 UTC-5, John Myles White wrote: One of the things that I really like about working

Re: [julia-users] Style Guideline

2013-12-31 Thread John Myles White
object that we're iterating over, then I use in. Examples: for i = 1:n # blah, blah end for obj in collection # blah, blah, blah end On Tue, Dec 31, 2013 at 10:01 AM, John Myles White johnmyleswh...@gmail.com wrote: One of the things that I really like about working

Re: [julia-users] Re: Style Guideline

2013-12-31 Thread John Myles White
#sec225 and also Ada, which allows with/use inside of blocks. Is there a reason that a similar feature wouldn't work well with Julia too? -- Brian On Tuesday, December 31, 2013 7:01:23 AM UTC-8, John Myles White wrote: One of the things that I really like about working with the Facebook

Re: [julia-users] Style Guideline

2014-01-02 Thread John Myles White
Thanks everyone for the feedback. Going to try to synthesize responses this weekend. Been distracted by a major push to add more database support to Julia. — John On Jan 2, 2014, at 6:02 AM, Keith Campbell keithcc1...@gmail.com wrote: +1 for Eric's proposal for a 100 character line length.

Re: [julia-users] Declaring types that are special cases of already existing composite types

2014-01-02 Thread John Myles White
Concrete types can't be subtyped because you need to know exactly how much memory space they occupy. -- John On Jan 2, 2014, at 10:01 AM, Mauro mauro...@runbox.com wrote: Only abstract types can be subtyped (and if I recall correctly this is going to stay that way for some

Re: [julia-users] Declaring types that are special cases of already existing composite types

2014-01-02 Thread John Myles White
that it could work with subtyping the AbstractDataFrame type, but I didn't get this running. Any tips on whether / how this would work? Alternatively, I also found somewhere else a code snippet of John Myles White about a redirect or delegate macro: macro redirect(t, comp, fname) t = esc(t

Re: [julia-users] A small performance puzzle

2014-01-04 Thread John Myles White
Hopefully Jeff will chime in (or someone else with the required expertise), but I’ve heard Jeff warn against splatting tuples lots of times. — John On Jan 4, 2014, at 4:44 PM, Milan Bouchet-Valat nalimi...@club.fr wrote: Hi! I'd like propose you a small game about performance. In the

Re: [julia-users] Add packages as root?

2014-01-05 Thread John Myles White
I believe there is a Julia environment variable that lets you control where packages will be located, but I can’t seem to recall what it is. If you knew that variable, you could have every user specify in the .juliarc that packages should be loaded from this alternative location. — John On

[julia-users] Ambiguity warnings re. Diagonal{T}

2014-01-05 Thread John Myles White
Anyone have a sense why Diagonal{T} is now ambiguous with DataArray, but only for subtraction?

Re: [julia-users] Interpreting flat format profiler reports

2014-01-06 Thread John Myles White
AM, Brendan O'Connor breno...@gmail.com wrote: On Sunday, January 5, 2014 8:54:08 PM UTC-5, John Myles White wrote: Looking at this now, what are the types of the variables on the bolded lines? If they’re specific real-valued types, I’m surprised they’re so slow. They're all Float64

Re: [julia-users] Ambiguity warnings re. Diagonal{T}

2014-01-06 Thread John Myles White
these things need a serious cleanup. - Dahua On Sunday, January 5, 2014 11:13:27 AM UTC-6, John Myles White wrote: Anyone have a sense why Diagonal{T} is now ambiguous with DataArray, but only for subtraction?

Re: [julia-users] Announcing AudioIO.jl - Simple Audio I/O for Julia

2014-01-07 Thread John Myles White
a custom formula that will download a portaudio binary, and request that it be added to https://github.com/staticfloat/homebrew-juliadeps. For now you can do a brew install portaudio -s On Mon, Jan 6, 2014 at 9:00 PM, John Myles White johnmyleswh...@gmail.com wrote: This sounds really

Re: [julia-users] Julia and Python languages

2014-01-08 Thread John Myles White
I think part of the appeal of dot-notation OO is that it reads left-to-right, which helps to make the code seem to read in the same order as the sequence of actions taken. — John On Jan 8, 2014, at 7:45 AM, Tobias Knopp tobias.kn...@googlemail.com wrote: Would be interesting to see some use

Re: [julia-users] API inconsistency in `ismatch` vs `contains`

2014-01-09 Thread John Myles White
. -Mike On Thu, Jan 9, 2014 at 7:40 PM, John Myles White johnmyleswh...@gmail.com wrote: It would break a bunch of code, but I also think ismatch(string, regex) would make sense than the current design. -- John On Jan 9, 2014, at 4:39 PM, Daniel Carrera dcarr...@gmail.com wrote

[julia-users] Repeating names in inner constructors?

2014-01-11 Thread John Myles White
I’ve noticed that a lot of people to use different field names when writing inner constructors, so that you see code like: type Foo a::Int function Foo(alpha::Int) magic(alpha) new(alpha) end end Would this ever be necessary to avoid

Re: [julia-users] Repeating names in inner constructors?

2014-01-11 Thread John Myles White
Great. That is really nice. — John On Jan 11, 2014, at 5:34 PM, Stefan Karpinski stefan.karpin...@gmail.com wrote: Nope. This is one of the nice things about the design. On Jan 11, 2014, at 8:16 PM, John Myles White johnmyleswh...@gmail.com wrote: I’ve noticed that a lot of people

Re: [julia-users] Incorrect behaviour defining methods with different argument definitions in separate modules? (using method in module Main conflicts with an existing identifier)

2014-01-12 Thread John Myles White
Freddy, This is definitely one of the more confusing things about Julia, but it’s the best current solution anyone has proposed. The problem with your example is that methods can only be extended to work on new types if you make their provenance clear. In your example, you would do something

Re: [julia-users] ANN: LibGit2 bindings

2014-01-12 Thread John Myles White
This seems really awesome. Amazing work, Jake! — John On Jan 11, 2014, at 9:56 PM, Jake Bolewski jakebolew...@gmail.com wrote: Link https://github.com/jakebolewski/LibGit2.jl On Sunday, January 12, 2014 12:55:27 AM UTC-5, Jake Bolewski wrote: Hi everyone, I've been working on LibGit2

Re: [julia-users] New method definition not being picked up

2014-01-12 Thread John Myles White
This is one of the main outstanding quirks about Julia that will get resolved at some point in the nearish future. See https://github.com/JuliaLang/julia/issues/265 for more details. — John On Jan 12, 2014, at 4:02 PM, Andrew Burrows burro...@gmail.com wrote: Hi I'm rather new to Julia,

Re: [julia-users] A few questions I couldn't answer by myself

2014-01-12 Thread John Myles White
1. I think this is not possible, but I might be wrong. 2. Tuples have gotten a lot more efficient recently. Others will have to comment more on their relative merits vs. immutable composite types, which I prefer for explicitness and simpler integration with the dispatch system. 3. No idea

Re: [julia-users] Edit Distance?

2014-01-14 Thread John Myles White
Thanks! I'll have to check that out. I was able to translate some of the Wikipedia code fast enough to get something working for my purposes. -- John On Jan 14, 2014, at 3:18 PM, Matthias BUSSONNIER bussonniermatth...@gmail.com wrote: Le 14 janv. 2014 à 15:08, John Myles White a écrit

Re: [julia-users] Can I write a macro that defines a function?

2014-01-14 Thread John Myles White
To be honest, I don’t fully understand what goes wrong here, but this way of doing it does work: macro bar(num) ex = Expr(:(=), esc(Expr(:call, :foo, :x)), esc(num)) return ex end @bar 5 foo(1) I suspect that, in your example, there’s an attempt to evaluate the

Re: [julia-users] Re: A few questions I couldn't answer by myself

2014-01-14 Thread John Myles White
I think a new Python interpreter session might not be the closest comparison for Julia since Python loads almost nothing by default, whereas Julia imports a ton of functionality by default. R is much more like Julia in this regard. Consistent with that hypothesis, on my machine, R uses 38 MB

Re: [julia-users] Re: Julia computational efficiency vs C vs Java vs Python vs Cython

2014-01-15 Thread John Myles White
The arguments against changing are pretty strong, but I’d really like it if Julia did a bit less automatic promotion. For example, it would be great if sum(x::T…) returned a value of type T. — John On Jan 15, 2014, at 5:32 AM, Stefan Karpinski ste...@karpinski.org wrote: We already provide

Re: [julia-users] New install on OSX 10.9 GLM package does not work

2014-01-15 Thread John Myles White
We've unfortunately done a bad job of keeping those packages compatible with 0.2. I'll try to fix as much as I can today. -- John On Jan 15, 2014, at 8:48 AM, Corey Sparks corey.sparks.u...@gmail.com wrote: Dear List, I just installed Julia 0.2.0 last night and was trying to get the GLM

Re: [julia-users] Julia computational efficiency vs C vs Java vs Python vs Cython

2014-01-15 Thread John Myles White
+1 for Iain’s point of view. — John On Jan 15, 2014, at 5:16 PM, Iain Dunning iaindunn...@gmail.com wrote: From a philosophical POV alone, I think its inconsistent that we a) Don't save people from overflows, but b) Silently do Int32 math as Int64 behind the scenes to presumably save

Re: [julia-users] duplicate a type

2014-01-17 Thread John Myles White
I don’t know offhand how to do this, but I’d look at the code for xdump, which shows that the necessary introspection operations exist: Foo::DataType : Any a::Int64::DataType : Signed b::Float64::DataType : FloatingPoint — John On Jan 17, 2014, at 10:16 AM, Simon Byrne

[julia-users] DataFrames / DataArrays updated

2014-01-18 Thread John Myles White
As a consequence of renaming Stats to StatsBase, I’ve had to update DataFrames and DataArrays. This means that everyone working with those libraries is now in sync with master again. That brings with it a lot of changes that may break some code. To help minimize breakage, here are the most

[julia-users] UTF8 byte indexing

2014-01-18 Thread John Myles White
I suspect I’m missing something, but this seems odd to me: julia s = string('ñ') ñ julia s[2] ERROR: invalid UTF-8 character index julia s[2:2] “ — John

Re: [julia-users] How to install a Package from a github branch

2014-01-20 Thread John Myles White
My fork of SQLite is very different from master. It represents most of my work pushing for Julia to have a DBI module that lets us write generic code for database access. I’m hoping to finish my work on writing a DBI package plus drivers for SQLite and MySQL very soon. I would hold off on

Re: [julia-users] Re: Higher order derivatives in Calculus

2014-01-20 Thread John Myles White
I would love to see lots of improvements in the Calculus package. The interface is kind of wonky and there’s probably a lot of places where we’re getting less than ideal results. But I currently own far too many of Julia’s packages at the moment. If other people want to take some of them over,

Re: [julia-users] How to install a Package from a github branch

2014-01-20 Thread John Myles White
Keyword arguments seem like a much better approach. — John On Jan 20, 2014, at 11:23 AM, Stefan Karpinski ste...@karpinski.org wrote: This makes me wonder if the API should change. Maybe keyword arguments for both the package name and branch? On Mon, Jan 20, 2014 at 1:25 PM, Ivar Nesje

[julia-users] Ambiguity Warnings

2014-01-20 Thread John Myles White
The recent SharedArray change to Base created some new ambiguity warnings for DataFrames. Warning: New definition getindex(AbstractArray{T,1},Indexer) at /Users/johnmyleswhite/.julia/DataFrames/src/indexing.jl:195 is ambiguous with: getindex(SharedArray{T,N},Any...) at

[julia-users] New Year's resolutions for DataArrays, DataFrames and other packages

2014-01-20 Thread John Myles White
As I said in another thread recently, I am currently the lead maintainer of more packages than I can keep up with. I think it’s been useful for me to start so many different projects, but I can’t keep maintaining most of my packages given my current work schedule. Without Simon Kornblith,

Re: [julia-users] Ambiguity Warnings

2014-01-20 Thread John Myles White
generated for SharedArray too On Tue, Jan 21, 2014 at 1:04 AM, John Myles White johnmyleswh...@gmail.com wrote: The recent SharedArray change to Base created some new ambiguity warnings for DataFrames. Warning: New definition getindex(AbstractArray{T,1},Indexer) at /Users

Re: [julia-users] Higher order derivatives in Calculus

2014-01-21 Thread John Myles White
Just to chime in: the biggest problem with the Calculus isn’t the absence of usable functionality, it’s that the published interface isn’t a very good one and the more reliable interface, including things like finite_difference_hessian, isn’t exported. To fix this, we need someone to come in

Re: [julia-users] New Year's resolutions for DataArrays, DataFrames and other packages

2014-01-21 Thread John Myles White
I agree with everything on this list, including my always neglected DataStreams project. I think it would be nice to get rid of expression-based indexing + select and focus on getting something like LINQ working. For another interesting perspective, check out the nearly created query function

Re: [julia-users] New Year's resolutions for DataArrays, DataFrames and other packages

2014-01-21 Thread John Myles White
have written here, and really appreciate that you've taken the lead in cleaning things up and getting us on track. Cheers! Kevin On Mon, Jan 20, 2014 at 1:57 PM, John Myles White johnmyl...@gmail.com wrote: As I said in another thread recently, I am currently

Re: [julia-users] Higher order derivatives in Calculus

2014-01-21 Thread John Myles White
me know when this 'management position'(?) has been taken. On Tuesday, January 21, 2014 4:44:37 PM UTC+1, John Myles White wrote: Just to chime in: the biggest problem with the Calculus isn’t the absence of usable functionality, it’s that the published interface isn’t a very good one

Re: [julia-users] Higher order derivatives in Calculus

2014-01-22 Thread John Myles White
want to do it get some indication that I've done my analytic calculation of the gradient correctly. Computing all 10^6 components is horrifically slow, and usually not necessary. --Tim On Wednesday, January 22, 2014 08:28:05 AM John Myles White wrote: Yes, it would. I just don’t know who’s

Re: [julia-users] New Year's resolutions for DataArrays, DataFrames and other packages

2014-01-22 Thread John Myles White
was on the chopping block. What is left after all this? I can see how axing these features would make DataFrames.jl easier to maintain, but I found the expression stuff to present a rather nice interface. --Blake On Tuesday, January 21, 2014 11:51:03 AM UTC-5, John Myles White wrote: Can you

Re: [julia-users] New Year's resolutions for DataArrays, DataFrames and other packages

2014-01-22 Thread John Myles White
support for this in the language. -- John On Jan 22, 2014, at 2:48 PM, Kevin Squire kevin.squ...@gmail.com wrote: Maybe I misinterpreted the term expression-based interface. On Wed, Jan 22, 2014 at 2:33 PM, John Myles White johnmyleswh...@gmail.com wrote: My impression is that Pandas

Re: [julia-users] New Year's resolutions for DataArrays, DataFrames and other packages

2014-01-22 Thread John Myles White
...@gmail.com wrote: Got it. I was thinking of the more verbose (but still useful) df[(df[colA] 4) !isna(df[colB]), :] Kevin On Wed, Jan 22, 2014 at 3:10 PM, John Myles White johnmyleswh...@gmail.com wrote: The idealized expression interface offers things like (up to reordering

Re: [julia-users] Re: Why isn't typeof(Float64[]) : typeof(Real[]) true?

2014-01-22 Thread John Myles White
I thought this was in the performance tips, but I couldn’t find it in a quick read. Definitely worth putting in there, because this is a really, really subtle point despite being so important. — John On Jan 22, 2014, at 4:01 PM, Kevin Squire kevin.squ...@gmail.com wrote: Thanks a lot for

Re: [julia-users] New Year's resolutions for DataArrays, DataFrames and other packages

2014-01-23 Thread John Myles White
Yeah, at some point in the future I’d like to see if we can imitate the experimental query() and eval() methods from Pandas. It’s the fact that those methods were just recently introduced which made me decide we needed to stop spending time on getting them working right now. We’re way behind

Re: [julia-users] New Year's resolutions for DataArrays, DataFrames and other packages

2014-01-23 Thread John Myles White
I think that’s probably because you need to do using DataArrays now. — John On Jan 23, 2014, at 2:08 AM, Jon Norberg jon.norb...@ecology.su.se wrote: is this why I get this on latest julia studio on mac with recently updated packages: julia using DataFrames julia using RDatasets julia

Re: [julia-users] New install on OSX 10.9 GLM package does not work

2014-01-23 Thread John Myles White
to be fixed, so a bump on Dahua Lin and John Myles White might be what is needed. kl. 21:32:14 UTC+1 torsdag 23. januar 2014 skrev Cgast følgende: Any update on this? Having similar problems on Windows 7 with a fresh install just this morning. Seems to be related to some renaming of Stats vs

Re: [julia-users] Re: Error: no method display(DataFrame)

2014-01-23 Thread John Myles White
A couple of points that expand on Tom’s comments: (1) We need to add Tom’s definition of countna(a::Array) = 0 to show() wide DataFrame’s that contain any columns that are Vector’s. I never use DataFrame’s like that, so I forgot that others might. It’s also impossible to produce such a

Re: [julia-users] New install on OSX 10.9 GLM package does not work

2014-01-23 Thread John Myles White
probably put in some effort towards building it myself, and wait for 0.3 binaries. Thanks for the help, Chris On Thursday, January 23, 2014 5:35:16 PM UTC-8, John Myles White wrote: Hi Chris, Unfortunately it’s very difficult for us to support 0.2 anymore because of the badly

Re: [julia-users] Re: Error: no method display(DataFrame)

2014-01-23 Thread John Myles White
example I can think of. We wouldn't want to try to autoconvert a huge HDF5 column to a DataVector. On Thu, Jan 23, 2014 at 8:58 PM, John Myles White johnmyleswh...@gmail.com wrote: A couple of points that expand on Tom’s comments: (1) We need to add Tom’s definition of countna(a::Array

Re: [julia-users] New Year's resolutions for DataArrays, DataFrames and other packages

2014-01-23 Thread John Myles White
, 2014 10:17:40 AM UTC-5, John Myles White wrote: Yeah, at some point in the future I’d like to see if we can imitate the experimental query() and eval() methods from Pandas. It’s the fact that those methods were just recently introduced which made me decide we needed to stop spending time

Re: [julia-users] Re: Error: no method display(DataFrame)

2014-01-23 Thread John Myles White
. On Thu, Jan 23, 2014 at 8:58 PM, John Myles White johnmyl...@gmail.com wrote: A couple of points that expand on Tom’s comments: (1) We need to add Tom’s definition of countna(a::Array) = 0 to show() wide DataFrame’s that contain any columns that are Vector’s. I never use

Re: [julia-users] Re: Error: no method display(DataFrame)

2014-01-23 Thread John Myles White
Garborg sean.garb...@gmail.com wrote: My first thought was a Vector{Bool}. On Thursday, January 23, 2014 10:05:25 PM UTC-6, John Myles White wrote: Ok. I’m coming around to this. How would you do I/O? If we make DataFrames expose a nullable property, we could plausibly produce vectors

Re: [julia-users] New Year's resolutions for DataArrays, DataFrames and other packages

2014-01-24 Thread John Myles White
I think they’re uncorrelated, but you’d have to ask Wes to know for sure. — John On Jan 24, 2014, at 12:19 AM, Matthias BUSSONNIER bussonniermatth...@gmail.com wrote: Le 24 janv. 2014 à 04:51, Jonathan Malmaud a écrit : Sounds reasonable. As a temporary measure for people who want that

Re: [julia-users] Bug or feature? How does = decide whether to do a copy or deepcopy?

2014-01-24 Thread John Myles White
Hi Eric, I think you’re being confused by the distinction between the bindings of variables and values, which can be bound to variables. If w is an Array, then an expression like w = [1, 2, 3] assigns a value (namely the value of an array containing 1, 2 and 3) to the variable w. In

Re: [julia-users] pretty printing

2014-01-25 Thread John Myles White
You need to override Base.show(io::IO, foo:T) show()’s definition provides the basis for most other printing methods. — John On Jan 25, 2014, at 3:22 AM, Shoibal Chakravarty shoib...@gmail.com wrote: Suppose I define a composite type T. type T xx::Int yy::Int end juliaT

Re: [julia-users] Implementing a special Array{Float64, 2}

2014-01-26 Thread John Myles White
documented after Julia stabilizes, but for now I’ve used trial-and-error to figure out what needs to be implemented. — John On Jan 26, 2014, at 9:50 AM, Jesse van den Kieboom jesse...@gmail.com wrote: On Sunday, January 26, 2014 5:59:03 PM UTC+1, John Myles White wrote: Right now

Re: [julia-users] Merging dataframes

2014-01-26 Thread John Myles White
This is quite close to being possible, but we’re missing a few things. Daniel Jones recently added an append! method to DataArrays, which would let you do this column-by-column. To help you out, we need to add an append! method to DataFrames as well. I’ve wanted that badly myself lately. I

Re: [julia-users] General Licensing Question

2014-01-26 Thread John Myles White
Hi Hans, (1) The GPL makes it impossible for users of Julia to embed Julia as part of a closed source product. We’d prefer not to impose that restriction. The BSD and MIT licenses are largely identical: the major difference is that the BSD license comes in several flavors, not all of which are

Re: [julia-users] Natural language processing in Julia

2014-01-27 Thread John Myles White
. - Dahua On Tuesday, October 22, 2013 7:35:57 PM UTC-5, John Myles White wrote: There's a package called TextAnalysis.jl that has stemming and very basic tokenization. Patches to do POS tagging would be very welcome. -- John On Oct 22, 2013, at 5:29 PM, Jonathan Malmaud mal...@gmail.com

[julia-users] DBI: Generic database access in Julia

2014-01-27 Thread John Myles White
I've been intentionally holding off on announcing this work (because it's not even close to being ready for practical use yet), but I've been working with Eric Davies on a generic database access module in Julia called DBI: https://github.com/johnmyleswhite/DBI.jl The goal of DBI is to provide

Re: [julia-users] General Licensing Question

2014-01-27 Thread John Myles White
Yes, the main LICENSE file for Julia should contain more details about the legal status of subsets of the code and also about the distribution as an entirety. -- John On Jan 27, 2014, at 9:52 AM, Hans W Borchers hwborch...@gmail.com wrote: Yes, but this is not downloaded with the source.

Re: [julia-users] General Licensing Question

2014-01-28 Thread John Myles White
I would not have done this. Am Montag, 27. Januar 2014 22:21:31 UTC+1 schrieb John Myles White: Yes, the main LICENSE file for Julia should contain more details about the legal status of subsets of the code and also about the distribution as an entirety. -- John On Jan 27, 2014

Re: [julia-users] Can't manage packages

2014-01-28 Thread John Myles White
Try doing Pkg.rm(“Stats”). — John On Jan 28, 2014, at 6:47 PM, Carlos Lesmes carlosles...@gmail.com wrote: Hi, I'm on mac 10.7 Julia 0.2.0, today I updated but found this: julia Pkg.update() INFO: Updating METADATA... INFO: Updating cache of Stats... INFO: Updating cache of StatsBase...

Re: [julia-users] Can't manage packages

2014-01-28 Thread John Myles White
Good to know. — John On Jan 28, 2014, at 7:53 PM, Shaun Walbridge shaun.walbri...@gmail.com wrote: I had the same issue today, and blowing away Stats was insufficient, but deleting recreating ~/.julia did fix it. On Tue, Jan 28, 2014 at 9:56 PM, John Myles White johnmyleswh

Re: [julia-users] Type stability of eig

2014-01-28 Thread John Myles White
How much worse would performance be if we “upgraded” all results to complex matrices? — John On Jan 28, 2014, at 8:38 PM, Jiahao Chen jia...@mit.edu wrote: The reason is primarily for performance and secondarily for numerical stability. eig() on a Matrix implements a polyalgorithm depending

[julia-users] DataFrames changes

2014-01-29 Thread John Myles White
As we continue trying to prune DataFrames down to the essentials that we can reasonably commit to maintaining for the long-term future, we've decided to start using only symbols for the names of columns and remove all uses of strings. This change will go live on master today, so please don't

Re: [julia-users] Matlab versus Julia for loop timing

2014-01-29 Thread John Myles White
Can you show the call to @time / @elapsed so we know exactly what's being timed? -- John On Jan 29, 2014, at 9:28 AM, Rajn rjngrj2...@gmail.com wrote: Now it takes even longer i.e., ~1 minute Does this make sense. Also I am running this loop only once. I do not understand why writing in

Re: [julia-users] How to reload?

2014-01-29 Thread John Myles White
I don't think it's possible to redo the importing of names that `using` performs: julia module Foo export a a = 1 end julia using Foo julia a 1 julia module Foo export a a = 2 end Warning: replacing module Foo julia a 1 julia using Foo Warning:

Re: [julia-users] DBI: Generic database access in Julia

2014-01-29 Thread John Myles White
required here as well? On Monday, January 27, 2014 12:30:22 PM UTC-5, John Myles White wrote: I've been intentionally holding off on announcing this work (because it's not even close to being ready for practical use yet), but I've been working with Eric Davies on a generic database

Re: [julia-users] DBI: Generic database access in Julia

2014-01-29 Thread John Myles White
That would be great. -- John On Jan 29, 2014, at 12:19 PM, Stephen Pope stephen.p...@predict.com wrote: I cannot commit to anything at this moment, but surely if no one else implements Oracle.jl my hand will be forced to do it :-)

[julia-users] Re: DBI: Generic database access in Julia

2014-01-29 Thread John Myles White
, John Myles White johnmyleswh...@gmail.com wrote: I've been intentionally holding off on announcing this work (because it's not even close to being ready for practical use yet), but I've been working with Eric Davies on a generic database access module in Julia called DBI: https://github.com

Re: [julia-users] Can't manage packages

2014-01-29 Thread John Myles White
:25 in rm at pkg.jl:18 On Tuesday, January 28, 2014 9:56:16 PM UTC-5, John Myles White wrote: Try doing Pkg.rm(“Stats”). — John On Jan 28, 2014, at 6:47 PM, Carlos Lesmes carlos...@gmail.com wrote: Hi, I'm on mac 10.7 Julia 0.2.0, today I updated but found this: julia

Re: [julia-users] Re: DataFrames changes

2014-01-29 Thread John Myles White
, John Myles White wrote: As we continue trying to prune DataFrames down to the essentials that we can reasonably commit to maintaining for the long-term future, we've decided to start using only symbols for the names of columns and remove all uses of strings. This change will go live

Re: [julia-users] Matlab versus Julia for loop timing

2014-01-30 Thread John Myles White
of the code will be essentially equivalent to this. It will take some compiler cleverness, but it's certainly doable. It would be interesting to hear how each of these versions performs on your data. On Wed, Jan 29, 2014 at 12:30 PM, John Myles White johnmyl...@gmail.com wrote: Can you

Re: [julia-users] Matlab versus Julia for loop timing

2014-01-30 Thread John Myles White
That's true. Sorry for misstating the core issue, which is memory allocation related to the current definition of array indexing. -- John On Jan 30, 2014, at 8:55 AM, Tim Holy tim.h...@gmail.com wrote: On Thursday, January 30, 2014 07:32:18 AM John Myles White wrote: This is pretty standard

Re: [julia-users] DataFrames changes

2014-01-30 Thread John Myles White
row with non-valid Julia identifiers? On Wednesday, January 29, 2014 10:03:39 PM UTC-5, John Myles White wrote: Please go ahead and add deprecation warnings. — John On Jan 29, 2014, at 6:51 PM, Simon Kornblith si...@simonster.com wrote: I believe two identical symbols are the same

Re: [julia-users] Re: How to write a macro that can substitute variable values into an expression

2014-02-01 Thread John Myles White
If you want to do this, the easiest way is to define your own implementation of the @~ macro that the latest version Julia uses to parse expressions that look like R’s formulas. That will give you access to the quoted expressions you’d need to manipulate to do your analysis. Given those

Re: [julia-users] Re: Gadfly installation problem... ERROR: DenseArray not defined

2014-02-01 Thread John Myles White
, 2014 at 3:20 PM, John Myles White johnmyleswh...@gmail.com wrote: I went into METADATA and updated the requires files, then submitted a new commit. I actually did this for one release of NumericExtensions which would reliably crash when loading on the 0.2 release. — John On Feb 1

Re: [julia-users] printing from IJulia notebook

2014-02-02 Thread John Myles White
Is asking them to print PDF’s using the notebook export tools too onerous? — John On Feb 2, 2014, at 8:33 AM, j verzani jverz...@gmail.com wrote: Is there an easy way to print an IJulia notebook? I'm using julia in a lab setting and am providing notebooks for students to fill out and turn

Re: [julia-users] Julia Parallel Computing Optimization

2014-02-03 Thread John Myles White
One potential performance issue here is that the array indexing steps like S[:,i][my] currently produce copies, not references, which would slow things down. Someone with more expertise in parallel programming might have better suggestions than that. Have you tried profiling your code?

Re: [julia-users] Julia Parallel Computing Optimization

2014-02-03 Thread John Myles White
= zeros(Int64,length(iy),length(ix)); mx = broadcast(+,ix',mg); my = broadcast(+,iy,mg); S = rfft(data,1)./24000; @time (AB, C) = expensive_hat(S,mx,my) On Mon, Feb 3, 2014 at 6:59 AM, John Myles White johnmyleswh...@gmail.com wrote: One potential performance issue here is that the array

Re: [julia-users] How to write a macro that can substitute variable values into an expression

2014-02-03 Thread John Myles White
To make sure everyone’s on the same page, Walking Sparrow’s approach is completely standard for R. The way that R treats certain DataFrames as an additional scope in which to search for variable bindings is something R users have been taught to expect, even though it is an extremely un-Julian

Re: [julia-users] Sorting Index

2014-02-04 Thread John Myles White
I think you want sortperm. — John On Feb 4, 2014, at 6:24 AM, RecentConvert giz...@gmail.com wrote: Is there an easier method to obtain the sorting index given a column of data? In Matlab you can add a second output and it'll give you an index which you can apply to other related arrays.

Re: [julia-users] Gadfly installation problem... ERROR: DenseArray not defined

2014-02-04 Thread John Myles White
Yes, assuming we can get the builds working smoothly, it would be really great to offer stable and unstable binaries right on the main downloads page. — John On Feb 4, 2014, at 11:52 AM, Eric Davies iam...@gmail.com wrote: On Tuesday, 4 February 2014 12:35:19 UTC-6, Sung Soo Kim wrote: I

Re: [julia-users] Gadfly installation problem... ERROR: DenseArray not defined

2014-02-04 Thread John Myles White
I’m sure you are. :) — John On Feb 4, 2014, at 6:37 PM, Elliot Saba staticfl...@gmail.com wrote: We're working on it, I promise. :) On Feb 4, 2014 6:01 PM, John Myles White johnmyleswh...@gmail.com wrote: Yes, assuming we can get the builds working smoothly, it would be really great

Re: [julia-users] Re: operators and basic mathematical functions for DataFrames

2014-02-05 Thread John Myles White
This is definitely on purpose. Quick summary: * DataMatrix is a mathematical object * DataFrame is a database We're going to encourage use of colwise for some of these use cases. But for many of them we're going to encourage the use of DataMatrix instead. -- John On Feb 5, 2014, at 5:07 AM,

Re: [julia-users] Move Clustering.jl to JuliaStats

2014-02-05 Thread John Myles White
, 2014 2:54:36 AM UTC+1, John Myles White wrote: Hi all, Over the coming weekend, I am going to move Clustering.jl to JuliaStats. I hope the move will go smoothly, but am always wary about changing repo URL’s. — John

Re: [julia-users] Re: If (in my system) Int is an alias for Int32, then why there is no Float alias for Float32/64?

2014-02-07 Thread John Myles White
FYI, this claim about the safety of symbols is actually not true. You can reassign the bindings of sym just as easily as you can reassign the bindings of a variable bound to a. -- John On Feb 7, 2014, at 8:00 AM, Felix dotfel...@gmail.com wrote: Ismeal VC check the julia docs at

Re: [julia-users] Re: Multiple plots in one (pdf) file?

2014-02-07 Thread John Myles White
Isn't the behavior Daniel described how ggplot2 works? Certainly it's how ggsave works. -- John On Feb 7, 2014, at 9:41 AM, G. Patrick Mauroy gpmau...@gmail.com wrote: Ouch! In my opinion, this may be a major stumbling block for Julia adoption. I, and I am sure many, find it typical

[julia-users] DBI / DBDSQLite

2014-02-09 Thread John Myles White
I’ve just moved DBI.jl to JuliaDB, the organization that I’m hoping will house Julia’s emerging database packages. In the interest of getting some eyes on the DBI library without breaking Jacob Quinn’s substantially more stable SQLite.jl package, I’ve created a new DBDSQLite.jl package that

  1   2   3   4   5   6   7   8   >