Re: [julia-users] Julia previous versions download

2015-01-15 Thread Kevin Squire
There's also Rmath.jl, which provides the actual dnorm function. This would be the easiest quick-fix, although I would recommend following Mauro's and Elliot's advice above. Cheers, Kevin On Thursday, January 15, 2015, Mauro wrote: > Yep, it's hidden in the text. Maybe the link could be a b

Re: [julia-users] Where Clauses

2015-01-16 Thread Kevin Squire
Hello, Shea, I don't think there are any plans for this, specifically. It could, however, mostly be done now with macros. (The biggest missing part is that `where` can't be paired with `end` right now, so you'd still need a `begin` after the where.) As an aside, if you haven't seen it yet, you

Re: [julia-users] Re: Error: zeros(UTF8String, 5)

2015-01-16 Thread Kevin Squire
I believe DataFrames.jl used to define this, at least. Cheers, Kevin On Fri, Jan 16, 2015 at 5:54 AM, Milan Bouchet-Valat wrote: > Le vendredi 16 janvier 2015 à 19:59 +0800, K leo a écrit : > > I want the array to be initialized with every element being "". Can't > > say about 0.3.4, but it

Re: [julia-users] Facebook Open Sources Torch (Deep Learning Library)

2015-01-16 Thread Kevin Squire
I haven't used it in a long while, but torch has been around for a lot longer than Julia--even the version which uses Lua--so Julia wasn't really an option for it. At any rate, Julia is slowly gaining similar functionality. Cheers! Kevin On Friday, January 16, 2015, Simon Danisch wrote: > T

Re: [julia-users] ANN node-julia 1.0.0

2015-01-16 Thread Kevin Squire
Hi Jeff, can you share a link? Cheers, Kevin On Fri, Jan 16, 2015 at 1:06 PM, Jeff Waller wrote: > So I'm happy to announce version 1.0.0 of node-julia, a Julia engine > embedded in node, > and io.js now too. It's been a pretty long road and I owe many people > (perhaps reading > this now) a lo

Re: [julia-users] switch case statement?

2015-01-17 Thread Kevin Squire
ds are included or excluded from the range could be >>>> useful, but maybe this would create too much a specific syntax to be worth >>>> it. >>>> >>>> Another feature Rust provides is that the compiler checks that all >>>> possible

Re: [julia-users] Re: Error: zeros(UTF8String, 5)

2015-01-18 Thread Kevin Squire
If you have plenty of time, try scanning these conversations for an answer: https://groups.google.com/forum/#!msg/julia-dev/4K6S7tWnuEs/RF6x-f59IaoJ https://groups.google.com/forum/#!topic/julia-users/nQg_d_n0t1Q https://github.com/JuliaLang/julia/issues/1771 https://github.com/JuliaLang/julia/iss

Re: [julia-users] ERROR: Cannot horizonatally stack expressions of varying number of rows

2015-01-20 Thread Kevin Squire
Right place, and a true statement, but without more context, it would be hard to act on or offer suggestions. Care to give an example of what you're trying to do? :-) Cheers, Kevin On Tue, Jan 20, 2015 at 9:33 PM, Anonymous wrote: > horizonatally > > I trust y'all will get this to the right

Re: [julia-users] ERROR: Cannot horizonatally stack expressions of varying number of rows

2015-01-20 Thread Kevin Squire
s that it should be reported here: https://github.com/JuliaOpt/Convex.jl/issues. Cheers! Kevin On Tue, Jan 20, 2015 at 9:56 PM, Anonymous wrote: > horizonatally should be horizontally, it's just a misspelling. > > On Tuesday, January 20, 2015 at 9:53:45 PM UTC-8, Kevin Squire wrote: &g

Re: [julia-users] Re: Almost at 500 packages!

2015-01-21 Thread Kevin Squire
Additional references: PyPI lists 54212 packages , currently (roughly half as many as node) but, CRAN only has 6214 . Cheers, Kevin On Wed, Jan 21, 2015 at 3:37 PM, Sean Garborg wrote: > You wouldn't like node

Re: [julia-users] module reflection & introspection

2015-01-27 Thread Kevin Squire
Some related (though slightly different) questions/answers: http://julia.readthedocs.org/en/latest/manual/faq/#how-do-i-delete-an-object-in-memory https://groups.google.com/forum/#!searchin/julia-dev/%22undefine%22$20variable/julia-dev/OTISvMKcr14/-0IN36I85tEJ For more, you may try searching juli

Re: [julia-users] Reshape that shares the same data?

2015-01-29 Thread Kevin Squire
Not answering the question, but any array can be treated as a 1D array by simply using a single index, without any shaping. Cheers, Kevin On Thursday, January 29, 2015, Kirill Ignatiev wrote: > On Thursday, 29 January 2015 04:10:40 UTC-5, Milan Bouchet-Valat wrote: >> >> Though if you only wor

Re: [julia-users] quiver function stops working.

2015-02-03 Thread Kevin Squire
https://github.com/sisl/PGFPlots.jl has a Quiver type. I think there was a request to add such a fund to to Images.jl, but I don't know if that happened. A quick search didn't show one there. Cheers, Kevin On Tuesday, February 3, 2015, Stefan Karpinski wrote: > Not sure what the quiver funct

searchsorted (was: Re: [julia-users] movingpastasquishedcaseconvention?)

2015-02-05 Thread Kevin Squire
(renamed topic because it diverges from the original) On Thu, Feb 5, 2015 at 12:29 PM, Stefan Karpinski wrote: > The general philosophy is that for user code, having underscores in names > is fine, especially when the name refers to a composite thing. In Base > Julia, we consider long names with

Re: [julia-users] Re: Locality of variables (loops)

2015-02-07 Thread Kevin Squire
I have mixed feelings, as I'm somehow one of those people who frequently breaks out of loops and wants to know the value of the variable at the last iteration. That said, I can see how nonlocal semantics can be confusing (and the workarounds suggested by Stephen and Mauro). David, to move this di

Re: [julia-users] Locality of variables (loops)

2015-02-07 Thread Kevin Squire
gt; end > end > > > or like this (comprehension-like behavior): > > state = start(itr) > while !done(itr, state) > value, state = next(itr, state) > let x = value > # loop body > end > end > > > It's not entirely clear to me tha

Re: [julia-users] Problems with packages on new OS X install

2015-02-07 Thread Kevin Squire
Hi Eric, What happens if you run the command at the Terminal command line? Kevin On Sat, Feb 7, 2015 at 1:55 PM, Eric S wrote: > Just installed Julia and Juno on OS X 10.10.2. I don't seem to be able to > install packages. For example: > > *julia> **Pkg.add("Jewel")* > > *ERROR: failed process

Re: [julia-users] Problems with packages on new OS X install

2015-02-08 Thread Kevin Squire
On Sat, Feb 7, 2015 at 6:33 PM, Seth wrote: > > > On Saturday, February 7, 2015 at 3:03:14 PM UTC-8, Eric S wrote: >> >> That is what I get running Julia from the Terminal. >> >> Eric >> >> > Can you run git from the command line? I'm wondering whether you need to > accept the license agreement o

Re: [julia-users] Re: pair-wise operation on an array?

2015-02-08 Thread Kevin Squire
Hi Gabriel, The comprehension approach, as suggested by Steven Johnson earlier in this thread, is currently the most Julian way to deal with this. The problem with map-like approaches are that, currently, the return type of the function being applied cannot be inferred, so you end up with an unty

Re: [julia-users] Problems with packages on new OS X install

2015-02-08 Thread Kevin Squire
t >> --git-dir=/Users/ericshain/.julia/.cache/Stats >> merge-base 78f5810a78fa8bee684137d703d21eca3b1d8c78 >> 8208e29af9f80ef633e50884ffb17cb25a9f5113 >> >> Erics-MacBook-Air:~ ericshain$ >> >> Does this help? >> >> Eric >> >> On Sunday, February 8, 2015 at 7:4

Re: [julia-users] Problems with packages on new OS X install

2015-02-08 Thread Kevin Squire
updated upstream head >> >>reset Reset current HEAD to the specified state >> >>rm Remove files from the working tree and from the index >> >>show Show various types of objects >> >> status Show the working tre

Re: [julia-users] request for feature: modify field in immutable object in a container

2015-02-09 Thread Kevin Squire
Hi Steve, I have a function in VideoIO.jl which does this: https://github.com/kmsquire/VideoIO.jl/blob/master/src/util.jl#L6-L14 When wrapping libav/ffmpeg libraries, some of the structs have dozens of fields, yet I found that needed to declare them as immutable for C compatibility. At the same t

Re: [julia-users] Re: moving Julia/Ijulia around my Windows Disk

2015-02-09 Thread Kevin Squire
If you haven't yet, try `Pkg.build("ZMQ")` Cheers, Kevin (Big Stone == Ooishi?) On Sun, Feb 8, 2015 at 2:40 PM, Big Stone wrote: > Hi Jameson, > > `Pkg.build()` was quick, but didn't seem to do anything. > `Pkg.status()` remains full of zeroes after that. > > ==> Is there a "force build" flage

Re: [julia-users] request for feature: modify field in immutable object in a container

2015-02-09 Thread Kevin Squire
t; My 2c but is sounds like Julia needs a struct keyword which is C packed > but does not enforce immutability. Immutable should means just that and > allows the compiler more options for optimization. > > On Monday, February 9, 2015 at 10:22:49 AM UTC-5, Kevin Squire wrote: >> &

Re: [julia-users] Re: request for feature: modify field in immutable object in a container

2015-02-09 Thread Kevin Squire
I haven't had the chance to check recently (and am not sure when I will be able to), but when wrapping libav/ffmpeg, I found that passing mutable objects (of types) to C-code produced a segmentation fault, but that passing immutables worked (with no other changes). I believe that was after Jameson

Re: [julia-users] Re: request for feature: modify field in immutable object in a container

2015-02-09 Thread Kevin Squire
> Just because their layout is the same doesn't mean you can use the wrong > one when declaring a data-structure. They still have a very nearly 1-to-1 > correspondence with C in that respect too. > I don't quite understand what this means. When would passing a pointer to an immutable vs a pointer

Re: [julia-users] way around passing functions as arguments

2015-02-11 Thread Kevin Squire
Just curious--in this case how slow? Anyway, you should check out the FastAnonymous.jl package--it should help in your case. Cheers, Kevin On Wednesday, February 11, 2015, Andrei Berceanu wrote: > I have written the following function for generating a sparse matrix: > > > > > > > > > > > >

Re: [julia-users] Problems with packages on new OS X install

2015-02-12 Thread Kevin Squire
ut "Pkg.init()" didn't work. Any others? > > Eric > > On Sunday, February 8, 2015 at 12:51:11 PM UTC-6, Kevin Squire wrote: >> >> Yep! If you run "Pkg.init()", then try everything again, I think that >> should fix it. >> >> On Sun, Feb

Re: [julia-users] Problems with packages on new OS X install

2015-02-12 Thread Kevin Squire
ctory, and then rerun the Pkg.init() command. >> >> Kevin >> >> On Thu, Feb 12, 2015 at 12:37 PM, Eric S wrote: >> >>> Kevin, >>> >>> Your suggestion about "Pkg.init()" didn't work. Any others? >>> >>> Eric >

Re: [julia-users] using both plt.hist and base.hist

2015-02-18 Thread Kevin Squire
Hi Sam, Just to be clear, you're using PyPlot.jl in Julia, right? The way you wrote the code above doesn't actually run in Julia ("base" is "Base" and "plt" is "PyPlot"--did you alias those?), and I want to make sure that you're not doing something like, e.g., using Python and loading pyjulia. A

Re: [julia-users] cannot resize array with shared data

2015-02-19 Thread Kevin Squire
Hi Andrew, A very similar issue came up in https://github.com/JuliaLang/julia/issues/4592, which was addressed by https://github.com/JuliaLang/julia/commit/2570b4a60e5ab5c438c57ed9a3eafa5c881bc39a If you look at the fix, you'll see that the error in your code comes from array_try_unshare or jl_a

Re: [julia-users] using both plt.hist and base.hist

2015-02-19 Thread Kevin Squire
Didn't know that--thanks for the info! On Thursday, February 19, 2015, David P. Sanders wrote: > > > El miércoles, 18 de febrero de 2015, 15:58:13 (UTC-6), Kevin Squire > escribió: >> >> Hi Sam, >> >> Just to be clear, you're using PyPlot.jl in Juli

Re: [julia-users] Re: Constructing matrices

2015-02-24 Thread Kevin Squire
I (think I) would be in favor of changing [1; 2; 3] to mean a 1-column matrix. Arguments against? Kevin On Tue, Feb 24, 2015 at 11:45 AM, Bill Hart wrote: > Julia distinguishes between them at the level of types, yes. I was talking > about the syntax for creating them. There they become confla

Re: [julia-users] Opacity in Gadfly plots

2015-02-26 Thread Kevin Squire
Hi Jordan, I don't have an answer, but if you don't get a response here, I would suggest opening up an issue with Gadfly.jl. Cheers, Kevin On Wednesday, February 25, 2015, Jordan Meyer wrote: > I was playing around with using Gadfly's Geom.ribbon to make plots showing > integrals as shaded

Re: [julia-users] cannot resize array with shared data

2015-02-27 Thread Kevin Squire
0x34 > > julia> resize!(a, 2) > 2-element Array{UInt8,1}: > 0x31 > 0x32 > > julia> resize!(a, 4) > 4-element Array{UInt8,1}: > 0x31 > 0x32 > 0x00 > 0x34 > > julia> reinterpret(Uint32, a); > > julia> resize!(a, 2) > ERROR: cannot r

Re: [julia-users] Functions in degrees

2015-03-02 Thread Kevin Squire
(Sorry, I missed the bottom of your message where you distinguish "dimensionless" and "unitless".) On Monday, March 2, 2015, Gustavo Goretkin wrote: > Radian has dimensions of [(arc) length] / [(radius) length], so it's > dimensionless because the two dimensions of [length] cancel out. > Turn ha

Re: [julia-users] Functions in degrees

2015-03-02 Thread Kevin Squire
By dimensionless, I assume you mean unitless. Just because a value unitless doesn't mean it can't have a type. In this case, the type is more like a tag that indicated some information about the quantity useful for dispatch. While "type" can indicate "unit", it doesn't have to. Cheers, Kevin

Re: [julia-users] Re: General question about composite types

2015-03-03 Thread Kevin Squire
While all that is true, I think the sentiment of the question is whether we can have packed arrays of objects with complex types, where the individual fields of those objects are easily modified. Right now, it's possible to do so with (packed) arrays of immutables using pointers to access the memo

Re: [julia-users] Python like: `and`, `or` conditionals.

2015-03-05 Thread Kevin Squire
Hi, Check out http://julia.readthedocs.org/en/release-0.3/manual/control-flow/#short-circuit-evaluation Cheers, Kevin On Thu, Mar 5, 2015 at 3:48 PM, Julia User wrote: > hi, > > just a quick question: julia 0.4 git version > > what is the best way to do something similar to pythons: > > if f

Re: [julia-users] Pkg.generate reads git user.name with commas

2015-03-06 Thread Kevin Squire
Hi Robert, You're using Julia v0.4, right? This is actually a bug introduced recently, by https://github.com/JuliaLang/julia/commit/42b3d905 (which itself was trying to fix a deprecation warning). It should be an easy fix--are you up for it? If not, could you submit a bug report? Cheers, Ke

Re: [julia-users] Re: Equivalent of MATLAB's nargout in Julia

2015-03-06 Thread Kevin Squire
On Fri, Mar 6, 2015 at 11:43 AM, J Luis wrote: > Is there any fundamental reason why the nargout mechanism cannot (or is > very hard) to implement? > Because if not I really think it would be very very handy to have it. > While we can workaround the nargin concept with the multiple dispatch, the

Re: [julia-users] Re: Equivalent of MATLAB's nargout in Julia

2015-03-06 Thread Kevin Squire
expressive than C, and requires explicit > ccall / cfunction conversions to translate between the languages, so direct > compatibility isn't actually much of a concern. > > On Fri, Mar 6, 2015 at 9:13 PM Kevin Squire > wrote: > >> On Fri, Mar 6, 2015 at 11:43 AM, J Luis

Re: [julia-users] Modify parts of a distributed array

2015-03-07 Thread Kevin Squire
Hi Dominique, You could do this: julia> d = dones(10) 10-element DistributedArrays.DArray{Float64,1,Array{Float64,1}}: 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 1.0 julia> @spawnat 2 begin d_loc = localpart(d) d_loc[:] += 2 end RemoteRef(2,1,52) julia> d 10-element Dist

Re: [julia-users] Pkg.generate reads git user.name with commas

2015-03-07 Thread Kevin Squire
Hi Ivar, looks like Jake got to it first (probably because his previous change caused it). Cheers! On Sat, Mar 7, 2015 at 4:48 AM, Ivar Nesje wrote: > We're looking forward to merge your pull request on github when you have > time. Even the small fixes needs to be done, and the more people that

Re: [julia-users] Re: Equivalent of MATLAB's nargout in Julia

2015-03-07 Thread Kevin Squire
, it probably would have been fine. At this point, the core language itself has generally been pretty stable, so adding this would be a pretty disruptive change, and the people who are actually working on the compiler (like Jameson) are focused on other concerns. Cheers, Kevin > sábado, 7

Re: [julia-users] permuting rows of a matrix

2015-03-11 Thread Kevin Squire
If you don't mind losing the original permutation (it's overwritten), you can use Base.permute!! (unexported). However, in most cases, this is still actually slower than A[p]. Not sure how that would be for sorting rows/columns. Kevin On Wed, Mar 11, 2015 at 7:49 AM, Davide Lasagna wrote: > W

Re: [julia-users] How can I convert a set into an array?

2015-03-12 Thread Kevin Squire
Should be obvious, but if your set doesn't contain integers, you would use a = Set(['a','c','d','c']) b = collect(a) In either case, in Julia, it's usually better not to change the type of "a" from Set (or IntSet) to Array. Another option is to do a = [1,2,1,3] a = unique(a) which actually use

Re: [julia-users] build error with intel compiler and MKL

2015-03-16 Thread Kevin Squire
Hi Wen, Can you be more specific about which directions you were following? You might try using one of the pre-built packages at http://julialang.org/downloads/. Cheers, Kevin On Mon, Mar 16, 2015 at 10:00 AM, Wen Ling wrote: > Hi, >I followed the instruction to build the julia (from g

Re: [julia-users] build error with intel compiler and MKL

2015-03-16 Thread Kevin Squire
Sorry, didn't notice that you were trying to build with Intel/MKL. On Mon, Mar 16, 2015 at 11:00 AM, Kevin Squire wrote: > Hi Wen, > > Can you be more specific about which directions you were following? > > You might try using one of the pre-built packages at > http://

Re: [julia-users] make error in julia from github

2015-03-16 Thread Kevin Squire
Can you successfully compile with OpenBLAS (which is the default)? Cheers, Kevin On Mon, Mar 16, 2015 at 4:41 PM, Wen Ling wrote: > Dear all: > I just start to use julia, want to start from scratch. > I did: > 1.cp Make.inc Make.user > modified adding Intel Tags > source MKL > export MK

Re: [julia-users] Re: Uint8 arrays and deprecations in 0.4

2015-03-17 Thread Kevin Squire
On Mon, Mar 16, 2015 at 4:27 PM, J Luis wrote: > And another thing, why does it have to print the numbers in hexa? > > julia> a = Uint8[1, 255] > 2-element Array{Uint8,1}: > 0x01 > 0xff > > julia> a[2] > 0xff > > Note that if you actually *print* the number (but not the array), it will print in

Re: [julia-users] Rationale behind @-sign for macro usage?

2015-03-22 Thread Kevin Squire
It's unclear to me whether or not that was meant as a compliment, but I do also find it amusing. :-) Cheers, Kevin On Sunday, March 22, 2015, Sheehan Olver wrote: > I quite like this comment from the Stack Exchange :) > > "Julia programmers are "special" in a way that other programmers aren'

Re: [julia-users] SubArray memory footprint

2015-03-25 Thread Kevin Squire
Others are more qualified to answer the specific question about SubArrays, but you might check out the ArrayViews package. For your test, it allocates a little under half the memory and is a little over twice as fast (after warmup); julia> const b = [1:5;]; julia> function f() for i in

Re: [julia-users] Gaussian Filter

2015-03-28 Thread Kevin Squire
More specifically: julia> import Images julia> x = rand(200,200); julia> y = Images.imfilter_gaussian(x, [5.0, 5.0]); It might be nice to have a version which takes a scalar for sigma and assumes the same size filter in both/all directions. Cheers, Kevin On Sat, Mar 28, 2015 at 4:54 PM, Ti

Re: [julia-users] how to model semicontinuous variables in Julia

2015-03-30 Thread Kevin Squire
Hi Michela, I think you're going to need to provide some additional information. Are you modeling this in JuMP by chance? Cheers, Kevin On Mon, Mar 30, 2015 at 12:25 PM, Michela Di Lullo < michela.dilu...@uniroma1.it> wrote: > Hallo everyone! > > how do I model a variable (array of variable

[julia-users] ANN: Match.jl v0.1.0 released

2015-03-30 Thread Kevin Squire
Hi all, Match.jl provides both simple and advanced pattern matching capabilities for Julia. Features include: - Matching against most data types - Deep matching within data types and matrices - Variable binding within matches Usage generally looks like this: using Match @match item be

Re: [julia-users] calling c functions from dll works in Juno but not Julia REPL

2015-04-02 Thread Kevin Squire
Hi Siyi, Can you give a short example of your code? It's generally pretty hard to debug these things without that. Cheers! Kevin On Thursday, April 2, 2015, Siyi Deng wrote: > Hi, > I have created a c shared library using visual-studio; then I called the c > functions in Juno IDE, everythi

[julia-users] Re: ANN: Match.jl v0.1.0 released

2015-04-03 Thread Kevin Squire
v0.1.2 I got the error: > ERROR: fieldnames not defined > > When reverting back to v0.0.6 everything runs fine. I'm certainly no > Package wizard, but is there something I might be doing wrong? > > thanks! > Bill > > > On Monday, March 30, 2015 at 7:32:36 PM UTC-7, K

[julia-users] ANN: Match.jl v0.1.0 released

2015-04-03 Thread Kevin Squire
Actually, you might just need to run a Pkg.update(). Compat.jl is probably out if date. You'll need to run Pkg.free("Match") of course. On Friday, April 3, 2015, Kevin Squire > wrote: > Hi William, > > Thanks for the email. I should be able up fix this later today, bu

[julia-users] Re: ANN: Match.jl v0.1.0 released

2015-04-03 Thread Kevin Squire
let me know if you still have problems. Cheers! Kevin On Fri, Apr 3, 2015 at 6:32 PM, Kevin Squire wrote: > Actually, you might just need to run a Pkg.update(). Compat.jl is probably > out if date. You'll need to run Pkg.free("Match") of course. > > On Friday, A

Re: [julia-users] Re: ANN: Match.jl v0.1.0 released

2015-04-04 Thread Kevin Squire
wrote: > Thanks for looking into this Kevin > > after updating to 0.1.3 I get the error: > ERROR: type: isa: expected Type{T<:Top}, got Function > > > On Friday, April 3, 2015 at 9:22:36 PM UTC-7, Kevin Squire wrote: >> >> Okay, it was a little more subtle tha

Re: [julia-users] merged arrays?

2015-04-08 Thread Kevin Squire
AFAIK, there's nothing really like that right now, but what do you plan to do with the data? Most linear algebra code, for example, calls out to BLAS, which requires data to be contiguous (or at least strided) in memory. Other code may or may not have this same restriction. It should be relative

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

2015-04-11 Thread Kevin Squire
Relevant previous discussions/issues https://groups.google.com/forum/#!searchin/julia-dev/Yeppp/julia-dev/fixVZON0S8o/ChD5R1T-G0kJ https://groups.google.com/forum/#!topic/julia-users/o3Tbjh2eA9c https://github.com/JuliaLang/julia/issues/8450 Cheers, Kevin On Sat, Apr 11, 2015 at 7:10 AM, Jon

Re: [julia-users] single-element tuples

2015-04-16 Thread Kevin Squire
That is correct. I believe there is mention of it in "Calling C and Fortran Functions" of the latest (v0.4) docs, but not sure about the v0.3 docs, and at any rate, it probably should at least be mentioned in the Tuple docs. Cheers, Kevin On Thu, Apr 16, 2015 at 1:19 AM, Tamas Papp wrote: >

Re: [julia-users] SLOW sortrows?

2015-04-17 Thread Kevin Squire
It was originally submitted as https://github.com/JuliaLang/julia/issues/9832. On Fri, Apr 17, 2015 at 1:56 PM, Thomas Covert wrote: > Filed here: > > https://github.com/JuliaLang/julia/issues/10869 > > On Friday, April 17, 2015 at 3:39:33 PM UTC-5, Viral Shah wrote: >> >> We just haven’t paid m

Re: [julia-users] build errors OSX 10.10.2

2015-04-18 Thread Kevin Squire
Hi Edward, What version of BinDeps.jl is installed? Is this a fresh install of either Julia or those packages, or were they just updated (and started not working)? Cheers, Kevin On Sat, Apr 18, 2015 at 8:08 AM, Edward Chen wrote: > To whom it may concern: > > I am getting build errors when

Re: [julia-users] Re: Symbolic relations package

2015-04-19 Thread Kevin Squire
Hi Marcus, It's great that you're exploring Julia in this way. Judging by the responses, there hasn't been a huge amount of interest yet. If you're having fun (and it looks like it!), keep at it. If you're really looking to find ways to collaborate, you might try to look at other symbolic math

Re: [julia-users] Online regression algorithms

2015-04-24 Thread Kevin Squire
I would be interested in these. You might see if/how they fit in, e.g., with Regression.jl. Cheers, Kevin On Fri, Apr 24, 2015 at 2:09 PM, Tom Breloff wrote: > I'm considering writing packages for the following online (i.e. updating > models on the fly as new data arrives) techniques, but t

Re: [julia-users] Re: Defining a function in different modules

2015-04-25 Thread Kevin Squire
(#1255 would be icing on the cake here.) On Sat, Apr 25, 2015 at 8:19 AM, Stefan Karpinski wrote: > I think you're probably being overly optimistic about how infrequently > there will be dispatch ambiguities between unrelated functions that happen

Re: [julia-users] Re: Custom Array type

2015-04-25 Thread Kevin Squire
The @delegate macro does exist and is used (internally) in DataStructures.jl. Cheers, Kevin On Sat, Apr 25, 2015 at 12:10 PM, Mauro wrote: > > "https://github.com/JuliaLang/julia/pull/3292"; > > Interesting, has it been implemented now? > No, check the bottom of the thread. But you can just

Re: [julia-users] Defining a function in different modules

2015-04-25 Thread Kevin Squire
I don't really see anything wrong with prefixing package names to functions to distinguish usage. That's the general route that python has been going (for similar reasons), and it tends to work pretty well (especially if one can alias the package name to something short). For Julia, this would mea

Re: [julia-users] Re: Defining a function in different modules

2015-04-25 Thread Kevin Squire
Hi Scott, While the current system in Julia may not be perfect, I'm finding it hard to follow some of your thoughts right now. Perhaps you could come up with some trivial code which explains your concerns? In particular, I'm not sure what you mean by "wouldn't be able to use other packages with

Re: [julia-users] Re: Naming convention

2015-04-27 Thread Kevin Squire
Just a note, Matlab-style [a b] concatenation has been deprecated in Julia v0.4 . See the linked issues for details. The main issue is that this functionality makes it challenging to create arrays of arrays (or arrays of ranges), which are less useful

Re: [julia-users] Re: Naming convention

2015-04-27 Thread Kevin Squire
://groups.google.com/d/topic/julia-users/nQg_d_n0t1Q/discussion Cheers, Kevin On Mon, Apr 27, 2015 at 8:09 AM, Scott Jones wrote: > > > On Monday, April 27, 2015 at 11:01:06 AM UTC-4, Yuuki Soho wrote: >> >> On Monday, April 27, 2015 at 4:21:11 PM UTC+2, Kevin Squire wrote: >&g

Re: [julia-users] Re: Naming convention

2015-04-27 Thread Kevin Squire
Also note that other packages are free to define ~ (as a macro) for their own purposes (although there will be a warning when they try to use DataFrames). julia> macro ~(s1, s2) :(string($s1, $s2)) end julia> "Hello" ~ " World!" "Hello World!" julia> using DataFrames Warning: us

Re: [julia-users] One line nested loop and @parallel macro

2015-04-27 Thread Kevin Squire
If this is something you think you'd use, it would be good to bump that issue, so that it gets some attention. On Monday, April 27, 2015, Nils Gudat wrote: > Your suggestion brought me to issue #10109 > , which seems to be > exactly the problem I'

Re: [julia-users] Import statements

2015-04-30 Thread Kevin Squire
Hi Bill, This should work, so if it doesn't, there's likely a bug. Can you give a minimal example of the problem? What is the output of versioninfo()? Cheers, Kevin On Thu, Apr 30, 2015 at 1:48 AM, Bill Hart wrote: > We used to have the following in our code > > import Base: convert, prom

Re: [julia-users] Equivalent command to get C++ map/upper_bound behaviour?

2015-05-02 Thread Kevin Squire
Hi Krishna, It's a little unclear exactly what you were looking for, and your link to the cplusplus site was just to the front page. Can you give a few more details (and a better link)? Thanks, Kevin On Saturday, May 2, 2015, Krishna Subramanian wrote: > So I guess the answer is no at this

Re: [julia-users] Re: Performance variability - can we expect Julia to be the fastest (best) language?

2015-05-03 Thread Kevin Squire
One thing I was confused about when I first started using Julia was that things that are done with strings in other languages are often done directly with IO objects in Julia. For example, consider that, in Python, most classes define `__str__()` and `__repr__()`, which create string representatio

Re: [julia-users] Re: Help to optimize a loop through a list

2015-05-03 Thread Kevin Squire
Hi Ronan, Looks like an interesting package! One minor suggestion: if you ever plan to make this an actual Julia package, it would be good to name it MGEO.jl. All Julia packages use this naming convention, and it has the additional benefit of making such packages easily searchable. Cheers! K

Re: [julia-users] Panel Data using DataFrame (or other method?)

2015-05-05 Thread Kevin Squire
Hi Nils, Unfortunately, this does not exist in Julia. You could do an array of DataFrames, but you won't be able to do most of the things Panels allow. If you want to stay in Julia, you might check out Pandas.jl, which calls out to Python Pandas. Cheers, Kevin On Tue, May 5, 2015 at 3:05 AM,

Re: [julia-users] Asking for generic-data-type definition advice

2015-05-06 Thread Kevin Squire
To add a little detail to Mauro's response: The "overly-specific types" suggestion really applies to functions, not types. That is because a different version of every function is generated based on the types of the arguments (as described at the end of the section you linked to). The main reaso

Re: [julia-users] multiple inner constructors

2015-05-08 Thread Kevin Squire
You could also just write it using outer constructors. It is slightly more verbose, but cleans up the A type nicely. type A{T} x::T end function A{T<:Number}(y::T) y < 0 ? A{T}(zero(y)) : A{T}(y) end function A(y::Char) y == 'a' ? A{Char}('b') : A{Char}(y) end julia> A('a') A{Char}

Re: [julia-users] Re: verbs for immutable collections

2015-05-13 Thread Kevin Squire
If you haven't yet, you should check out FunctionalCollections.jl, which "solves" this by not allowing assignment in this way, instead defining `assoc` and `dissoc`. Cheers, Kevin On Wed, May 13, 2015 at 3:05 PM, Michael Francis wrote: > On a mutable associative it is valid to execute the fo

Re: [julia-users] error compiling fill!: box: argument not of a primitive type

2015-05-14 Thread Kevin Squire
Hi Andrew, could you file an issue? Cheers, Kevin On Thursday, May 14, 2015, andrew cooke wrote: > Well, this all works fine with 0.3, so I'm going to chalk this up to > weirdness in git trunk 0.4 (the above was with git as of an hour or so > before posting). > > Andrew > >

Re: [julia-users] Any Julians attending CVPR 2015?

2015-05-16 Thread Kevin Squire
Hi Tracy, Sebastian, I'll be there as well (with my company, no talk). Would be nice to meet up! Cheers, Kevin On Saturday, May 16, 2015, Sebastian Nowozin wrote: > > Hi Tracy, > > I am a regular Julia user and will be attending CVPR, feel free to find me > at the conference. > (Also, I have

Re: [julia-users] Using Julia program as computation backend

2015-05-18 Thread Kevin Squire
Hi Roman, Not a direct answer to your question, but you might check out node-julia ( https://www.npmjs.com/package/node-julia), if you're open to including node in the soup of web components. Cheers, Kevin On Monday, May 18, 2015, Roman Kravchik wrote: > I am building a web app for DSP task

Re: [julia-users] Using Julia program as computation backend

2015-05-18 Thread Kevin Squire
That's true. On Monday, May 18, 2015, Roman Kravchik wrote: > Thanks for the link. > But it seems to be like CGI-style operation - eval julia expression and > i'm not sure it's a perspective direction. > > понедельник, 18 мая 2015 г., 17:46:16 UTC+3 пользователь Ke

Re: [julia-users] `axis(:equal)` or `axis(:scaled)` with Gadfly

2015-05-28 Thread Kevin Squire
Hi Jonny, could you share where you found it, for anyone who runs across this in the future? On Thursday, May 28, 2015, jonny brooks wrote: > No worries, I found it > > On Wednesday, 25 June 2014 12:51:50 UTC+1, Tomas Lycken wrote: >> >> When plotting in e.g. PyPlot I can do e.g. axis(:equal) or

[julia-users] Best practice in julia for sorting an array of UInt64 or byte strings, by frequency

2015-05-29 Thread Kevin Squire
Just a note: unlike c++, but like python, an OrderedDict maintains insertion order, not sort order. A SortedDict does maintain sort order, however. Both are in DataStructures.jl. Cheers, Kevin On Friday, May 29, 2015, Scott Jones > wrote: > Ah, another great suggestion! Thanks! > > On Friday,

Re: [julia-users] Macros generating Functions

2015-05-31 Thread Kevin Squire
Actually, it's name is "n": julia> function getfn() return function(); 1; end end getfn (generic function with 1 method) julia> const n = getfn() (anonymous function) julia> n() 1 On Sat, May 30, 2015 at 5:09 PM, David P. Sanders wrote: > > > El domingo, 31 de mayo de 2015, 0:

Re: [julia-users] Ann: new parser library

2015-06-01 Thread Kevin Squire
FWIW, many libraries choose to use plural names, so that they can have types within those libraries with singular names--e.g., DataFrames.jl has a DataFrames type. I don't know if you'll need a ParserCombinator type, but if you do, this would be the way to go. (I also think it sounds better plura

Re: [julia-users] ANN: modifyField! routine

2015-06-01 Thread Kevin Squire
As pointed out by Jameson previously, this works best (well, only) if you can guarantee that the object is in memory and not on the stack--for example, if the object was allocated by a C routine. Cheers, Kevin On Sunday, May 31, 2015, wrote: > Following up on an earlier discussion that I sta

Re: [julia-users] ANN: modifyField! routine

2015-06-01 Thread Kevin Squire
Whoops! I meant "not in a register", not "not on the stack". On Monday, June 1, 2015, Kevin Squire wrote: > As pointed out by Jameson previously, this works best (well, only) if you > can guarantee that the object is in memory and not on the stack--for > example, i

Re: [julia-users] ANN: modifyField! routine

2015-06-01 Thread Kevin Squire
understanding your point. Can you give me an example in > which the modifyField! routine might fail? It is completely standard Julia > without any pointer manipulation or other unsafe operations. > > Thanks, > Steve > > > > > On Monday, June 1, 2015 at 12:16:41 PM

Re: [julia-users] Ann: new parser library

2015-06-02 Thread Kevin Squire
:-) Yes. On Mon, Jun 1, 2015 at 9:25 AM, Scott Jones wrote: > > > On Monday, June 1, 2015 at 6:13:29 PM UTC+2, Kevin Squire wrote: >> >> FWIW, many libraries choose to use plural names, so that they can have >> types within those libraries with singular names

Re: [julia-users] Pkg.update()

2015-06-02 Thread Kevin Squire
Hi Huda, Without a little more information, it's a little unclear. Did you recently upgrade from Julia 0.2 to 0.3? Can you give the output of Pkg.status()? Cheers, Kevin On Mon, Jun 1, 2015 at 11:05 PM, Huda Nassar wrote: > I think the following is self explanatory: > > julia> Pkg.update

Re: [julia-users] Re: Error installing GnuTLS

2015-06-04 Thread Kevin Squire
No help for the error, but Ubuntu 15.04 has gcc 4.9, so that's not the issue. On Wed, Jun 3, 2015 at 7:47 PM, Glen H wrote: > I believe the issue is you are using too old of a gcc compiler. I think > you need at least gcc 4.4. > > > On Wednesday, June 3, 2015 at 4:42:34 PM UTC-4, Samuel Colvin

Re: [julia-users] Re: Converting [0x20202020,0x20202020] to an ASCIIString

2015-06-08 Thread Kevin Squire
I've used the first syntax many times, and somehow find it more intuitive. Perhaps this is another candidate for https://github.com/JuliaLang/julia/issues/11557 (although the use is slightly different). Kevin On Mon, Jun 8, 2015 at 11:47 AM, Scott Jones wrote: > Easy mistake, I had the same pro

Re: [julia-users] Current Performance w Trunk Compared to 0.3

2015-06-10 Thread Kevin Squire
Short answer: no, poor performance across the board is not a known issue. Just curious, do you see these timing issues locally as well? In other words, is it a problem with Julia, or a problem with Travis (the continuous integration framework)? It might be the case that some changes in v0.4 have

  1   2   3   4   5   6   >