Re: [julia-users] Introducing Knet8: beginning deep learning with 100 lines of Julia!

2016-09-20 Thread Kevin Squire
Very cool! I look forward to testing this out. Cheers, Kevin On Tue, Sep 20, 2016 at 11:31 AM, Deniz Yuret wrote: > It has been a year and a half since I wrote the first version of this post > >

Re: [julia-users] Set Data Structure

2016-08-30 Thread Kevin Squire
Note that you can also write this as julia> s = Set([2,3,1]) Set([2,3,1]) julia> 2 in s true julia> s in 2 false Which might make it easier to understand why the second one fails. Cheers, Kevin On Mon, Aug 29, 2016 at 3:00 PM, Erik Schnetter wrote: > On Mon, Aug

Re: [julia-users] VideoIO failing to import in julia 0.4.6 (Fedora 24)

2016-08-10 Thread Kevin Squire
You could install an older version of ffmpeg. I've made progress in wrapping later versions, and just need time to finish it up. I'll post a WIP pull request soon, and hopefully finish it soon as well (but I've been saying that for a while). Cheers, Kevin On Wed, Aug 10, 2016 at 3:31 PM,

Re: [julia-users] How do I write `import Base.!` in julia 0.5?

2016-08-09 Thread Kevin Squire
t;b...@bartjanssens.org> wrote: > On Tue, Aug 9, 2016 at 7:21 AM Kevin Squire <kevin.squ...@gmail.com> > wrote: > >> Generally it's not a different syntax, and the error generated here is >> probably a consequence of recent parser changes to handle dot-operator >> overloading (a

Re: [julia-users] How do I write `import Base.!` in julia 0.5?

2016-08-08 Thread Kevin Squire
n0X7bSUlye0/Rz_QXz1ufaYJ>.) Cheers, Kevin On Mon, Aug 8, 2016 at 9:59 PM, Fengyang Wang <fengyangwa...@gmail.com> wrote: > On Monday, August 8, 2016 at 10:26:46 AM UTC-4, Kevin Squire wrote: >> >> Try >> >> import Base.(!) >> >> Cheers, >>

Re: [julia-users] How do I write `import Base.!` in julia 0.5?

2016-08-08 Thread Kevin Squire
Try import Base.(!) Cheers, Kevin On Monday, August 8, 2016, Scott T wrote: > In 0.4 I would write: import Base.! > The syntax Base.:! is not yet supported. > > In 0.5: > > julia> import Base.:! > ERROR: syntax: invalid "import" statement: expected identifier > >

Re: [julia-users] Changed broadcast semantics in 0.5?

2016-08-04 Thread Kevin Squire
On Wed, Aug 3, 2016 at 8:35 PM, Kevin Squire <kevin.squ...@gmail.com> wrote: > For completeness, PR #17389 was merged > <https://github.com/JuliaLang/julia/pull/17389>, and issue #17314 was > closed <https://github.com/JuliaLang/julia/issues/17314>. > ... and was ju

Re: [julia-users] Changed broadcast semantics in 0.5?

2016-08-03 Thread Kevin Squire
For completeness, PR #17389 was merged , and issue #17314 was closed . Cheers, Kevin On Mon, Aug 1, 2016 at 8:28 AM, Oliver Schulz wrote: > Thanks, Pablo. Uh, do you

Re: [julia-users] Select * for update using dictionary

2016-08-03 Thread Kevin Squire
It seems that no one has gotten back to you about your question, most probably because there isn't a good answer. The main Dict class in Julia isn't built for concurrent programming. Until v0.5 (about to be released), Julia only had multi-process parallelism with message passing and shared

Re: [julia-users] Re: New Package Looking for Contributors: VectorizedRoutines.jl

2016-07-14 Thread Kevin Squire
For easy reference: https://github.com/ChrisRackauckas/VectorizedRoutines.jl On Thu, Jul 14, 2016 at 4:58 PM, Chris Rackauckas wrote: > So far I've only gathered implementations of functions I know of. It would > also be nice to build a list of functions which should be

Re: [julia-users] Function returning an output: loss in performance?

2016-07-14 Thread Kevin Squire
(To expand on Yichao's comment: Remove the comma in both for loops) On Thursday, July 14, 2016, Yichao Yu wrote: > On Thu, Jul 14, 2016 at 6:49 AM, Michele Giugliano > wrote: > > Julia newbie here! > > > > I noticed a performance loss (by

Re: [julia-users] Fast Dispatch on Metrics and Features

2016-07-11 Thread Kevin Squire
Hi Tim, My recommendation would be to code up your first example (at least) and see where the bottlenecks actually are. It certainly is true that iterating over an array of abstract values is almost always slower than iterating over an array of the same type. But it could also be true that any

Re: [julia-users] MathProgBase Conic problem specifying dual

2016-07-09 Thread Kevin Squire
Hi, it's probably worth asking this question on the julia-opt list. Cheers, Kevin On Saturday, July 9, 2016, steven Varga wrote: > > Is it possible to specify the dual of an SOCP/SDP using MathProgBase > interface? > > It is well documented how to specify primal

Re: [julia-users] New Variational Bayes Topic Modeling Pkg

2016-07-02 Thread Kevin Squire
TopicModels.jl (https://github.com/slycoder/TopicModels.jl ) has an implementation of LDA. Cheers, Kevin On Saturday, July 2, 2016, esproff wrote: > thanks! > > So I know there is a Java implementation of

Re: [julia-users] Kernerk dead

2016-06-24 Thread Kevin Squire
Hello, Marco, Something you're doing is crashing Julia. This is bad, but without more information, it's impossible to tell what's going on or where the problem is--it could be a bug in Julia, ZMQ.jl, IJulia.jl (maybe), or somewhere else entirely. Can you post the code you're trying to run (or

Re: [julia-users] Re: Defining a new numeric type with minimal effort

2016-06-11 Thread Kevin Squire
Hi Kevin, As you're gleaming, you will need to implement a set of basic functions, and that set isn't tiny. That said, once you implement this minimal set, your type should be usable everywhere else that a Real is accepted (even when that doesn't always make sense). For some idea of what is

Re: [julia-users] ORB code in Julia

2016-06-10 Thread Kevin Squire
Hello Ira, I suggest copy and pasting the code itself (and the error), instead of posting them as images. That makes it much easier for others to see what's happening, try things themselves, and suggest fixes. Cheers, Kevin On Fri, Jun 10, 2016 at 8:32 AM, Ira wrote: >

Re: [julia-users] Why is "collect" better than "[]"?

2016-06-06 Thread Kevin Squire
For reference: https://github.com/JuliaLang/julia/issues/3737 https://github.com/JuliaLang/julia/pull/8599 https://github.com/JuliaLang/julia/issues/10290 Cheers! Kevin On Mon, Jun 6, 2016 at 8:11 AM, Mauro wrote: > This was discussed at length on github, have a look

Re: [julia-users] Re: field name aliases

2016-05-28 Thread Kevin Squire
See also the last comment in that issue, which offers a macro solution. On Fri, May 27, 2016 at 8:22 PM, Anonymous wrote: > interesting, well I'll look forward to it (hopefully) in the future then. > > >

Re: [julia-users] Symbolic mathematics language v 0.0.6

2016-05-16 Thread Kevin Squire
Hi Rob, You'll need to install the `mpmath` package for python. If you use `pip`, you should just be able to run `pip install mpmath`. Otherwise, you'll have to find and install the package using your preferred method. (I also ran into this. John, you should probably mention this in the

Re: [julia-users] Re: following down the chain of dispatch

2016-05-14 Thread Kevin Squire
The error you ran into is because of this PR: https://github.com/JuliaLang/julia/pull/16235 Gallium was updated for this, but those updates haven't made their way into a tagged release yet, so if you want to run on a Julia more recent than the above commit, as Tim pointed out, you'll need to get

Re: [julia-users] Macro as decorators

2016-05-09 Thread Kevin Squire
Possibly. Do you have a specific example in mind? That will probably get you a less ambivalent answer. :-) Cheers, Kevin On Monday, May 9, 2016, Ford Ox wrote: > Is it possible to write macro that will work as python decorator?

Re: [julia-users] Why does julia use END for block end?

2016-05-07 Thread Kevin Squire
7, 2016, Didier Verna <didier.ve...@gmail.com> wrote: > Kevin Squire <kevin.squ...@gmail.com <javascript:;>> wrote: > > > That said, when it comes to opinions and holy wars, we very much like > > it more peaceful around here. > > That message was a

Re: [julia-users] Why does julia use END for block end?

2016-05-07 Thread Kevin Squire
Hi Didier, I appreciate your recent interest in Julia, and especially that you've uncovered a few inconsistencies/bugs that have been addressed, and I've found many of your questions thought provoking. That said, when it comes to opinions and holy wars, we very much like it more peaceful around

Re: [julia-users] Re: Creating symbols

2016-04-21 Thread Kevin Squire
Off topic from the original, but note that ÷ is integer division in Julia. julia> 5/2 2.5 julia> 5÷2 2 Cheers, Kevin On Thu, Apr 21, 2016 at 9:13 AM, Henri Girard wrote: > Thanks it's better than / > > > Le mercredi 20 avril 2016 16:12:31 UTC+2, Didier Verna a

Re: [julia-users] 'do' notation in documentation?

2016-04-17 Thread Kevin Squire
Hello, Andreas, see: http://docs.julialang.org/en/release-0.4/manual/functions/#do-block-syntax-for-function-arguments Cheers, Kevin On Sunday, April 17, 2016, Andreas Lobinger wrote: > Hello colleagues, > > although it's around and found in some/many lines, where is

Re: [julia-users] Creating a subtype of IO that wraps an IOBuffer

2016-04-06 Thread Kevin Squire
Have you seen https://github.com/BioJulia/BufferedStreams.jl? Is that close to what you're trying to do? Cheers, Kevin On Wed, Apr 6, 2016 at 7:23 AM, Daniel Arndt wrote: > Great! that *seems* to work in my extremely limited testing so far, thanks > Milan! > > Please

Re: [julia-users] git help needed

2016-03-08 Thread Kevin Squire
Hi Douglas, You should just do `git push -f origin glmms`. This is a force push, and will replace origin/glmms with your local glmms branch. Cheers, Kevin On Tuesday, March 8, 2016, Douglas Bates wrote: > Thanks, Andreas. Unfortunately, I am still in trouble. Sorry to

Re: [julia-users] Algorithm performance comparison with python

2016-03-08 Thread Kevin Squire
Hi Jérémy, Have you had the chance to read through the Julia performance tips yet? http://docs.julialang.org/en/release-0.4/manual/performance-tips/ Cheers, Kevin On Tuesday, March 8, 2016, Jérémy Béjanin wrote: > Hello, > > By curiosity, I have translated a

Re: [julia-users] Re: Nullable{Date}

2016-02-08 Thread Kevin Squire
To be fair, writing code like this is perfectly fine, if you're not concerned about performance (in the area of code that this is written in). I find for my own code that I'll typically write something in a clean but possibly inefficient way, and the profile and optimize where I find bottlenecks.

Re: [julia-users] Color.jl - Colors.jl?

2016-02-07 Thread Kevin Squire
Hi Andreas, Colors.jl is meant as a complete replacement for Color.jl. The latter is not installable on Julia v0.4 and above. See this julia-users post for more information. I'm not sure why Issues were disabled on

Re: [julia-users] Re: Outer constructors for type aliases overwriting each other

2016-02-06 Thread Kevin Squire
If you remove the typealias line (typealias TypeB SomeType), you can still define an outer function that is, essentially, a constructor for SomeType. The name won't also be an alias, of course. Cheers, Kevin On Sat, Feb 6, 2016 at 7:29 AM, Tim Holy wrote: > Int64,

Re: [julia-users] Re: Convert ASCIIString to Uint8

2016-02-06 Thread Kevin Squire
Also: convert(Vector{UInt8},"hello Julia") On Sat, Feb 6, 2016 at 6:43 PM, Fengyang Wang wrote: > collect(UInt8, "hello world") > > should do the trick. > > > On Saturday, February 6, 2016 at 8:31:19 PM UTC-5, icebl...@gmail.com > wrote: >> >> Hello, >> >> I m trying

Re: [julia-users] Memory allocation free array slices ?

2016-02-05 Thread Kevin Squire
> > julia> @time bar > 0.01 seconds (3 allocations: 144 bytes) > bar (generic function with 1 method) > I think this needs to be @time bar(A). I get julia> @time bar(A) 0.000269 seconds (5 allocations: 176 bytes) 20010.937886591404

Re: [julia-users] Re: how to undefine variable in composite types

2016-02-05 Thread Kevin Squire
An easier path forward might be to mimic python types with dictionaries and macros (and containers for the dictionaries). On Fri, Feb 5, 2016 at 7:04 AM, Stefan Karpinski wrote: > Even assuming feasibility, implementing this in Julia is a total nightmare > – you'd have to

Re: [julia-users] rref in 0.4.3

2016-02-04 Thread Kevin Squire
Hi Linus, There are suggestions in that pull request for alternatives to rref. Alternatively, you can simply copy the function yourself from that pull request and, e.g., include it in your .juliarc.jl file. Cheers, Kevin On Thu, Feb 4, 2016 at 4:47 AM, Linus Härenstam-Nielsen

Re: [julia-users] Parametric Types with Incomplete Initialization

2016-02-04 Thread Kevin Squire
, >> that it would just be the same as if I hadn't used a parametric type at all >> and just set the type of "a" to the abstract type. >> >> Thanks! >> >> Chris >> >> On Thursday, February 4, 2016 at 11:50:07 AM UTC-5, Kevin Squire wrote: >

Re: [julia-users] Parametric Types with Incomplete Initialization

2016-02-04 Thread Kevin Squire
No, `a` is the (concrete) type `T`, which is a subtype of `ABC` (and a new type `B{T}` is created for each `T`). So you shouldn't lose performance because of this. Cheers, Kevin On Thu, Feb 4, 2016 at 8:10 AM, Christopher Alexander wrote: > Let's say I have the

Re: [julia-users] AVL Trees - SortedSet?

2016-02-03 Thread Kevin Squire
Not in a place where I can look at that link, but yes, SortedSet and SortedDict are base on AVL trees. Cheers, Kevin On Wednesday, February 3, 2016, Ben Ward wrote: > Hi, > > I'm looking to implement a C library in Julia which makes use of another > library which

Re: [julia-users] Elapsed CPU time in Julia?

2016-02-03 Thread Kevin Squire
Benchmarks is great! JMW, any chance you can register it as an official package (and deprecate Benchmark.jl). (I guess I could file an issue.) Cheers, Kevin On Wednesday, February 3, 2016, Stefan Karpinski wrote: > You may want to check out Benchmarks.jl >

Re: [julia-users] DateTime business days, Wall Street days, ...

2016-01-28 Thread Kevin Squire
Hi Michael, I haven't used it, but does https://github.com/felipenoris/BusinessDays.jl suit your needs? Kevin On Thu, Jan 28, 2016 at 6:52 AM, Michael Landis wrote: > Maybe I'm missing something, but the one thing I want from DateTime is the > ability to determine

Re: [julia-users] Why can't function passing be unrolled?

2016-01-24 Thread Kevin Squire
There are a lot of exciting possibilities still in store for Julia, but as you alluded, only so many qualified person-hours to go around. It was good to see a pull request from you--who knows, maybe you'll be the one to contribute the next big thing. Cheers, Kevin On Sunday, January 24,

Re: [julia-users] randperm run time is slow

2016-01-23 Thread Kevin Squire
Hi Dan, It would also be good if you deleted that post (or edited it and removed the code), for the same reason Viral mentioned: if someone reads the post and then creates a pull request for changing the Julia implementation, it could be argued that that implementation was derived from GPL

Re: [julia-users] Optimizing Function Injection in Julia

2016-01-22 Thread Kevin Squire
I have noticed that I've had to approve more than one post by Bryan. Bryan, have you been using the same email address when you post here? Kevin On Friday, January 22, 2016, Viral Shah wrote: > Only the first post is moderated, to prevent spammers from getting > through. > >

Re: [julia-users] Bug in eigfact and svd for large odd-size matrices

2016-01-18 Thread Kevin Squire
Hi Steven, This seems to be a problem with specific machines--I don't run into it, for example. Are you on a Mac? If so, check out https://github.com/JuliaLang/julia/issues/14507 and https://github.com/staticfloat/homebrew-julia/issues/194 and see if they're the same issue. If they are, can

Re: [julia-users] strange error

2016-01-18 Thread Kevin Squire
Hi Fabrizio, You didn't really provide enough information for anyone to help you here. Your best bet would be to provide a short snippet of code which has the problem. Cheers, Kevin On Mon, Jan 18, 2016 at 10:39 AM, Fabrizio Lacalandra < fabrizio.lacalan...@gmail.com> wrote: > Does anyone

Re: [julia-users] Julia way of filling columns of a matrix

2016-01-18 Thread Kevin Squire
As long as each row has a fixed, known size, you could do a = [] for i=1:n append!(a, [1,2,3]) end A = reshape(a, 3, n) The 1-D array grows as needed, and reshape still points to the original data, so no copying is done. Cheers, Kevin On Mon, Jan 18, 2016 at 12:48 PM, Júlio Hoffimann

Re: [julia-users] Re: Why was pipeline symbol deprecated?

2016-01-17 Thread Kevin Squire
I don't have an answer, but there's a long chain of discussion at https://github.com/JuliaLang/julia/pull/14476 that might shed some light. Cheers, Kevin On Sun, Jan 17, 2016 at 8:19 PM, Wilton Basse wrote: > > > On Sunday, January 17, 2016 at 8:16:11 PM UTC-6,

Re: [julia-users] Re: Linking values in composite type and array?

2016-01-12 Thread Kevin Squire
Hi Jon, On Tue, Jan 12, 2016 at 8:53 AM, David P. Sanders wrote: > El martes, 12 de enero de 2016, 10:36:50 (UTC-6), Jon Norberg escribió: >> >> I would like to create a composite type and then also create an array >> that has values from this type by reference. The

Re: [julia-users] Difference between {a b; c d} and Any[a b; c d]

2016-01-11 Thread Kevin Squire
Hi Jerry, Can you file an issue? This is something that is supposed to work. Cheers, Kevin On Mon, Jan 11, 2016 at 6:14 AM, Jerry Xiong wrote: > > > Seems that Any[...] is not exactly equal to {...} in Julia 0.4. What is > the best way to rewrite {a b;c d} ? > >

Re: [julia-users] ArgParse @add_arg_table not recognized

2016-01-08 Thread Kevin Squire
2016 at 7:09:47 PM UTC-5, Uthsav Chitra wrote: >> >> I opened Julia in Terminal, made a file with that text called 'arg.jl', >> and ran >> >> include("arg.jl"). >> >> On Thursday, January 7, 2016 at 4:34:00 PM UTC-5, Kevin Squire wrote: >>>

Re: [julia-users] ArgParse @add_arg_table not recognized

2016-01-07 Thread Kevin Squire
Hello Uthsav, Works for me: $ julia0.3 argparse_example3.jl --opt1 1 2 3 Parsed args: arg1 => {"2","3"} karma => 0 arg2 => {"no_arg_given"} opt1 => 1 How are you trying to run that code? On Thu, Jan 7, 2016 at 12:36 PM, Uthsav Chitra wrote: > I'm

Re: [julia-users] Re: Why does this code never return?

2016-01-05 Thread Kevin Squire
Presumably, it would just parse (and run?) the code within `module Foo ... end`, and ignore anything outside of that. On Mon, Jan 4, 2016 at 9:03 AM, Stefan Karpinski wrote: > What would it mean to reload a module rather than a file? > > On Sun, Jan 3, 2016 at 4:19 AM,

Re: [julia-users] how to get a max priority queue (and how would I know?)

2016-01-05 Thread Kevin Squire
Yep, that's definitely not well documented. "ord" is an Ordering object which is used mostly in sorting, albeit often behind the scenes. There are a couple of basic orderings (Forward, Reverse), as well as a few that allow for different types of comparison or sorts (e.g., permutations,

Re: [julia-users] Re: How to organise (float) data in Julia?

2016-01-03 Thread Kevin Squire
Hi Tero, Would you (or anyone else following this thread) be able to update the documentation with the information here and submit a pull request? More information is available here: https://github.com/JuliaLang/julia/blob/master/CONTRIBUTING.md#improving-documentation Cheers, Kevin On Sat,

Re: [julia-users] Why does this code never return?

2016-01-02 Thread Kevin Squire
Consider the following code which is in the file Foo.jl > > module Foo > > > function bar(x, y) > x + y > end > > > end > > reload("Foo") > > > Then, at the REPL: > > julia> include("Foo.jl") > > Julia does not return. Can someone help me understand what is happening > here? Is the module

Re: [julia-users] Re: Only two days left: TRIPLE your support for your favorite open source projects!

2016-01-02 Thread Kevin Squire
I guess valid 3 for 1 offers aren't very common around here... ;-) On Sat, Jan 2, 2016 at 11:10 AM, Stefan Karpinski < stefan.karpin...@gmail.com> wrote: > Google groups decided that this was spam, so it's too late for this. > Thanks, Google. > > > On Saturday, January 2, 2016 at 2:09:09 PM

Re: [julia-users] Re: How to organise (float) data in Julia?

2016-01-01 Thread Kevin Squire
Just for clarification: 1D arrays (i.e., Vectors) in Julia are already growable in the same way as your growable arrays--the backing array doubles in size when it grows beyond its limit. But you cannot do the same thing for 2D (or greater) arrays. A couple of ways around the current limitation:

Re: [julia-users] Type mismatch: MethodError, !Matched::Int64, etc...

2015-12-31 Thread Kevin Squire
I think you meant "...instead of Int64, you can try Integer". Int is a type alias for Int64 (on 64 bit platforms) or Int32 (on 32 bit platforms). Cheers, Kevin On Thursday, December 31, 2015, Eric Forgy wrote: > Hi Charles, > > Like Yichao says, you probably don't want

Re: [julia-users] Why does the subtypes method produce an array rather than a set?

2015-12-27 Thread Kevin Squire
Ray, thanks for the clarification--makes sense. In fact, for introspection code like 'subtypes', performance is probably the wrong argument--it's unlikely that it occurs in performance-critical code. I think it's really that arrays are just simpler. One aesthetic change I could imagine would be

Re: [julia-users] Why does the subtypes method produce an array rather than a set?

2015-12-27 Thread Kevin Squire
?t=https%3A%2F%2Ftwitter.com%2Frichitsolution=4656540167962624=cbed75c9-c818-4cc7-b26c-aa1d7cf16134> > <javascript:_e(%7B%7D,'cvml','conta...@richit.com.mx');> > > Tel. 6718 1818 > richit.com.mx > > 2015-12-27 18:06 GMT-06:00 Kevin Squire <kevin.squ...@gmail.com > &l

Re: [julia-users] Why does the subtypes method produce an array rather than a set?

2015-12-27 Thread Kevin Squire
ed, and it is ridiculously unlikely to change. > > I just think of unordered collections as sets. I don't think anyone would > or should ever write code that takes advantage of the fact that this array > is sorted, though. :) > > Thanks for the responses > > Ray > > &g

Re: [julia-users] Why does the subtypes method produce an array rather than a set?

2015-12-26 Thread Kevin Squire
On Saturday, December 26, 2015, Ray Toal wrote: > I noticed that > > *julia> **subtypes(Type)* > > *3-element Array{Any,1}:* > > * DataType * > > * TypeConstructor* > > * Union * > > and was wondering if there was any significance in the order of the > subtypes. If not,

Re: [julia-users] Call by name

2015-10-15 Thread Kevin Squire
It's a little different, but macro invocation is similar to pass by name semantics, in that variables are substituted directly into an expression at compile time. Cheers, Kevin On Wednesday, October 14, 2015, Stefan Karpinski wrote: > No, Julia only supports one

Re: [julia-users] Re: SharedArray have less constructors than Array

2015-10-09 Thread Kevin Squire
It was probably an oversight. Why don't you open an issue, and perhaps a pull request? Note that there are deeper/cleaner ways to solve the problem than simply falling back on SharedArray(T,x). The goal is to move away from that type of construct, I believe. That said, a pull request with that

Re: [julia-users] Re: Fastest way to get # of bits of an integer value in Julia?

2015-10-07 Thread Kevin Squire
It should be floor(log2(n))+1 (excluding zero). On Tue, Oct 6, 2015 at 9:45 AM, Scott Jones wrote: > Also, ceil(log2(n)) doesn't get the correct answer - it gets 31 instead of > 32. > (my value of x was 2^31) > > > On Tuesday, October 6, 2015 at 11:50:19 AM UTC-4,

Re: [julia-users] Is there a way to replace f(object, args...) with object.f(args...)?

2015-10-07 Thread Kevin Squire
Hi Cheng, Just so you know, this type of call has been discussed a number of times in the past (on my phone, so searching julia-users and julia-dev is hard right now). The general response has been that, while this may be more familiar to programmers coming from some languages, Julia's focus on

Re: [julia-users] PSA: New package registration requirements

2015-10-01 Thread Kevin Squire
Just as a point of note, 2-factor authentication (TFA) is currently broken when using Pkg.publish(), so authors using TFA will have to publish manually (although I've found it works best if one runs Pkg.tag(), Pkg.publish(), let it fail, and then submit a pull request from the resulting METADATA

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

2015-09-29 Thread Kevin Squire
Hi Dom, It would be useful to include a short description when announcing a package. Cheers, Kevin On Tuesday, September 29, 2015, Dom Luna wrote: > Hey all, > > I started this a couple of months back but ran into a couple of issues and > sort of just had it on the

Re: [julia-users] Will Julia likely ever allow negative indexing of arrays

2015-09-27 Thread Kevin Squire
An older attempt at this can be found here: https://gist.github.com/alsam/8283205 On Sunday, September 27, 2015, Tom Breloff wrote: > Do you need the bracket notarion 'x[-5]'? This would be best implemented > as a package with explicit get/set, as Matt implied... As otherwise

Re: [julia-users] Implementing printf() and sprintf() in Julia.

2015-09-27 Thread Kevin Squire
How about submitting a patch to Formatting.jl? On Sunday, September 27, 2015, Michael Hatherly wrote: > As mentioned in the other thread, > https://groups.google.com/d/msg/julia-users/hBbEGEopi0A/OX4ZEhFnBgAJ and >

Re: [julia-users] Re: The new Dict syntax in 0.4 is very verbose

2015-09-03 Thread Kevin Squire
Relevant Julia issues: * Reintroduce concise syntax for Dict construction? #12930 * Dict syntax is getting me down #6739 On Thu, Sep 3, 2015 at 7:38 AM, Jeff Bezanson

Re: [julia-users] IDE for Julia

2015-08-31 Thread Kevin Squire
Hi Viral, just curious who is working on that development? Your post seems to imply an officially supported effort, but that doesn't mean that development on other IDEs will be discouraged, I presume? :-) (Not that I'm aware of other IDEs being worked on...) Cheers, Kevin On Monday, August

Re: [julia-users] IJulia install error

2015-08-29 Thread Kevin Squire
Which compiler did you download (for Windows)? On Saturday, August 29, 2015, lawrence dworsky m...@lawrencedworsky.com wrote: I don't know. I got a specific error message that said it couldn't find a C++ compiler and when I downloaded a compiler everything went fine.​ On Sat, Aug 29, 2015 at

Re: [julia-users] Types and the Liskov Substitution Principle

2015-08-23 Thread Kevin Squire
If the type hierarchy is implemented well, functions for `Dict` would ideally be written to work with `super(Dict)` (i.e., `Associative`). And in fact, some are--e.g., `in`, `haskey`, `show`, `keys`, `values`, etc. See `base/dict.jl` for the implementation. Now, it could be argued that the type

Re: [julia-users] Defining composite types with fields that include each other

2015-08-22 Thread Kevin Squire
In particular, this comment has a work-around: https://github.com/JuliaLang/julia/issues/269#issuecomment-68421745 On Saturday, August 22, 2015, Stefan Karpinski ste...@karpinski.org wrote: https://github.com/JuliaLang/julia/issues/269 On Sat, Aug 22, 2015 at 1:33 AM, Paul Thompson

Re: [julia-users] Computer Vision Package

2015-08-09 Thread Kevin Squire
I'll second everything that Tim says, except that, for reading video, VideoIO.jl would probably be more appropriate. My general workflow has been to read in images using VideoIO, and then manipulate them using Images.jl. I'll add that Tim has spent a lot of time considering how to make Images.jl

Re: [julia-users] why is storing 0 in IntSet deprecated?

2015-08-08 Thread Kevin Squire
Steve, I would suggest adding to the discussion in the issue on GitHub. Kevin On Saturday, August 8, 2015, vava...@uwaterloo.ca wrote: Isaiah, It seems to me that this change may break a lot of existing code. Could I suggest that the change be rolled back, and instead the proposed new

Re: [julia-users] Merge partitions

2015-08-06 Thread Kevin Squire
In the Iterators.jl package, there is a chain(...) function, which chains multiple iterators together. On Thu, Jul 23, 2015 at 9:22 PM, Michele Zaffalon michele.zaffa...@gmail.com wrote: What should the outcome of the merge operation be? Not a simple concatenation, I imagine. On Tue, Jul

Re: [julia-users] Re: MongoDB and Julia

2015-08-01 Thread Kevin Squire
recommend instead? Thanks! On Wednesday, July 29, 2015 at 8:23:56 PM UTC-3, Kevin Squire wrote: Good luck! On Thu, Jul 30, 2015 at 1:01 AM, Kevin Liu kevinl...@gmail.com wrote: Haha this is my first major project, period! Thanks a lot for putting in the time and effort into guiding. I come

Re: [julia-users] Re: MongoDB and Julia

2015-07-29 Thread Kevin Squire
the Julia side, very little. Changed it to CMongo.jl. Clang.jl will be of great help (I had bookmarked it, but didn't realize it was a wrapper). On Wed, Jul 29, 2015 at 3:47 AM, Kevin Squire kevin.squ...@gmail.com wrote: I would suggest CMongo.jl (when renaming this, be careful if you're

Re: [julia-users] Re: MongoDB and Julia

2015-07-29 Thread Kevin Squire
:10 PM, Kevin Liu kevinliu2...@gmail.com wrote: Hey Kevin, That's great. Thanks for the advice. On it right now. Cheers! On Tue, Jul 28, 2015 at 7:50 PM, Kevin Squire kevin.squ...@gmail.com wrote: Hi Kevin, If you plan to make this a Julia package (and I encourage you to do so

Re: [julia-users] Re: MongoDB and Julia

2015-07-29 Thread Kevin Squire
! On Wed, Jul 29, 2015 at 6:50 PM, Kevin Squire kevin.squ...@gmail.com wrote: Hi Kevin, I'm sorry to hear (and see) that you haven't gotten much help on the Julia mailing list. It's probably just that your request hasn't fallen on the ears of anyone who has interest in both Mongo and Julia

Re: [julia-users] Re: MongoDB and Julia

2015-07-28 Thread Kevin Squire
Hi Kevin, If you plan to make this a Julia package (and I encourage you to do so), it would be good to look at the Julia package naming conventions http://julia.readthedocs.org/en/latest/manual/packages/#guidelines-for-naming-a-package. You might consider choosing a different name, generating a

Re: [julia-users] In what version is Julia supposed to mature?

2015-07-28 Thread Kevin Squire
Stefan, are you trolling again? ;-P http://julialang.org/blog/2012/02/why-we-created-julia/ On Tue, Jul 28, 2015 at 12:41 PM, Stefan Karpinski ste...@karpinski.org wrote: Version 1.0 will be released around this time next year. On Tue, Jul 28, 2015 at 3:27 PM, Pileas

Re: [julia-users] Iterating over Dicts

2015-07-21 Thread Kevin Squire
(SortedDict is already in DataStructures.jl. To be added are SortedMultiDict and SortedSets.) Cheers! On Tue, Jul 21, 2015 at 4:43 PM, Yichao Yu yyc1...@gmail.com wrote: On Tue, Jul 21, 2015 at 7:37 PM, Benjamin Deonovic bdeono...@gmail.com wrote: A few clarifying questions. I believe that

Re: [julia-users] Error when installing package DataFrames

2015-07-20 Thread Kevin Squire
On Mon, Jul 20, 2015 at 4:39 PM, Yichao Yu yyc1...@gmail.com wrote: On Mon, Jul 20, 2015 at 7:31 PM, Kevin Squire kevin.squ...@gmail.com wrote: Since first posts are moderated, Serge probably posted once, didn't see his post arrive, and posted again a little later. I thought julia-user

Re: [julia-users] Error with package DataFrames

2015-07-20 Thread Kevin Squire
Try using Dataframes with a small u, instead of Using DataFrames. Cheers! Kevin On Mon, Jul 20, 2015 at 3:52 PM, Serge Santos serge.san...@gmail.com wrote: Hi all, I have just installed Julia 0.3-10 and Juno. I am trying to install the DataFrames package and it works with

Re: [julia-users] Error when installing package DataFrames

2015-07-20 Thread Kevin Squire
Since first posts are moderated, Serge probably posted once, didn't see his post arrive, and posted again a little later. There isn't really any good solution to this. 1. We want to moderate, to eliminate spam. 2. There are always times that moderators won't catch new posts right away, so it's

Re: [julia-users] PSA: JLD split from HDF5---must add package

2015-07-17 Thread Kevin Squire
It might be a good idea for HDF.jl to load and provide JLD.jl for a short deprecation period. On Friday, July 17, 2015, Matt Bauman mbau...@gmail.com wrote: How should packages that depend upon JLD update their REQUIRE files? Should they just tag a new version that requires JLD instead (or in

Re: [julia-users] Re: is the highlight color in docs selectable

2015-07-17 Thread Kevin Squire
Can you point out the specific pages/types you're talking about? I see that strings are in red--is that it? Kevin On Fri, Jul 17, 2015 at 5:25 PM, ele...@gmail.com wrote: Is also a poor choice for the ~10% of males with red/green colour deficiency. On Saturday, July 18, 2015 at 7:19:20 AM

Re: [julia-users] PSA: JLD split from HDF5---must add package

2015-07-17 Thread Kevin Squire
Holy tim.h...@gmail.com wrote: On Friday, July 17, 2015 09:17:58 AM Kevin Squire wrote: It might be a good idea for HDF.jl to load and provide JLD.jl for a short deprecation period. How would this work precisely? Put something in the build script like if !Pkg.installed(JLD) warn

Re: [julia-users] Re: Constructing tuples using Tuple

2015-07-10 Thread Kevin Squire
To clarify what I think Yichao is trying to say: julia Tuple{Int64,Int64}((2,3)) === (2,3) true Do you have a need to construct a tuple with the first syntax that can't be done with the second? On Fri, Jul 10, 2015 at 8:07 AM, Yichao Yu yyc1...@gmail.com wrote: On Fri, Jul 10, 2015 at 11:02

Re: [julia-users] Re: is there compile-time dispatch on constants from a v0.4 @enum

2015-07-10 Thread Kevin Squire
It actually exists in Julia v0.4, as the `Val` type: julia @enum Fruit apple orange banana julia apple apple::Fruit julia isbits(apple) true julia function what_am_i{T}(::Val{T}) println(I'm a $T, of type $(typeof(T))) end what_am_i (generic function with 1 method) julia

Re: [julia-users] length in irfft

2015-07-08 Thread Kevin Squire
Hi Michele, would you be able to open an issue, or better, a pull request with the fix? Cheers! On Wednesday, July 8, 2015, Michele Zaffalon michele.zaffa...@gmail.com wrote: Hi, in http://docs.julialang.org/en/release-0.3/stdlib/math/#Base.irfft, d should be d ==

Re: [julia-users] Possible ways to avoid confusability issues with using superscripts in variable names

2015-07-03 Thread Kevin Squire
Lint.jl would be a good place to add appropriate warnings. Cheers, Kevin On Friday, July 3, 2015, Scott Jones scott.paul.jo...@gmail.com wrote: I would rather have them as well defined operators, rather than allowed as parts of identifiers, which would have been more consistent with other

Re: [julia-users] Possible ways to avoid confusability issues with using superscripts in variable names

2015-07-03 Thread Kevin Squire
on an issue that had been raised because of me in the first place. Will Lint.jl be able to detect all of the cases that I pointed out? (I haven't tried it yet, been meaning to) On Friday, July 3, 2015 at 11:27:34 AM UTC-4, Kevin Squire wrote: Lint.jl would be a good place to add appropriate

Re: [julia-users] Re: Any function to generate code in String from Expr?

2015-06-21 Thread Kevin Squire
There is no such function right now. In Julia, the common paradigm for manipulating code is to manipulate the expression itself. You can, of course, output the expression, and it often looks better than what David posted above (e.g., this is what parse outputs). Perhaps you can discuss a

Re: [julia-users] Re: Composite types with many fields

2015-06-21 Thread Kevin Squire
Posts from first timers are moderated to eliminate spam. If someone doesn't get to it right away, the poster often thinks that it didn't go through and posts it again. We might make it a policy that if someone sees redundant posts from the same individual when moderating, that they only post one

Re: [julia-users] when running julia --code-coverage, where is the *.cov file?

2015-06-18 Thread Kevin Squire
(sorry, was responding to Scott's comment, but I should have changed the title, as this isn't related to code coverage). Cheers, Kevin On Thu, Jun 18, 2015 at 7:25 AM, Kevin Squire kevin.squ...@gmail.com wrote: There has been some discussion about moving to cmake, which should enable

  1   2   3   4   5   >