[julia-users] Re: Julia 0.5 Highlights

2016-10-12 Thread Evan Fields
Thanks for writing this up; it's helpful to see certain things highlighted and explained in more detail than news.md gives!

Re: [julia-users] Do threads in a threaded loop have their own scope?

2016-10-11 Thread Evan Fields
I'm unsure if "bit shared" is a technical term I should know, or if "bit shared" is a smartphone typo for "not shared" which would describe my understanding of normal loops, where it seems each iteration doesn't have access to loop-only variables defined in a previous iteration. :) I guess the

[julia-users] Do threads in a threaded loop have their own scope?

2016-10-11 Thread Evan Fields
Let's say I have a type MyType and function f(mt::MyType) which is slow and stochastic. I have an object y::MyType, and I'd like to compute f(y) many times. If I write a loop like fvals = Vector{Float64}(100) Threads.@threads for i in 1:length(fvals) ycopy = deepcopy(y) fvals[i] = f(ycopy)

[julia-users] Re: PkgDev.tag issues

2016-09-24 Thread Evan Fields
I've had this problem as well so I'm eager to learn a solution. It was a while ago, but when this happened to me, git status in the metadata repo would show uncommitted changes. I think I had to reset metadata to a clean state, manually delete some tags in the package repository, and run the pa

Re: [julia-users] ls()?

2016-09-14 Thread Evan Fields
Which can get gnarly on Windows, depending how you launched Julia. E.g. just launching from the Julia executable: shell> ls ERROR: could not spawn `ls`: no such file or directory (ENOENT) in _jl_spawn(::String, ::Array{String,1}, ::Ptr{Void}, ::Base.Process, ::RawFD, ::RawFD, ::RawFD) at .\pro

[julia-users] Re: dependent types in julia?

2016-09-14 Thread Evan Fields
I'm not sure then, but hopefully someone here can help you out! Naively perhaps it feels like this makes the type inference impossible. Your function decomplexify always produces the same output for the same input, but what if you had a function that returned a different output (always of type

[julia-users] Re: dependent types in julia?

2016-09-14 Thread Evan Fields
How about something like the following? type CT{T} ctsum::Complex{T} ctsumsq::T end x = 1 + 2im ctx = CT(x, convert(decomplexify(typeof(x)), x * conj(x)) You could also make a convenience function so you don't have to do the converts yourself for the second argument. Have you seen the

[julia-users] Rescuing abandoned package

2016-09-02 Thread Evan Fields
I use the package GreatCircle for great circle distance calculations. On 0.4.x it generates depwarns, and it's incompatible with 0.5. I've opened a pull request with the tiny changes needed to use the package on 0.5, but there's been no response and f

Re: [julia-users] Re: Return type of eye()

2016-08-29 Thread Evan Fields
On Monday, August 29, 2016 at 10:02:22 AM UTC-4, Andreas Noack wrote: > > Evan, this is exactly where you should use I, i.e. > > m = m + λ*I > > The reason is that eye(m) will first allocate a dense matrix of > size(m,1)^2 elements. Then * will do size(m,1)^2 multiplicat

Re: [julia-users] Re: Return type of eye()

2016-08-29 Thread Evan Fields
On Monday, August 29, 2016 at 9:39:19 AM UTC-4, Júlio Hoffimann wrote: > > I'd like to understand the existence of eye() in Julia, it is still not > clear to me. Is it because one wants type stability when updating a matrix > iteratively? Is this possibly a limitation from the design of the lan

[julia-users] Re: DataFrame Manipulation (like dplyr) Help

2016-08-26 Thread Evan Fields
I'm not sure if you'll find this any cleaner, but maybe something like function summary2(df, queries...) d = Dict() for query in queries name = query[1] f = query[2] col = query[3] d[name] = f(df[col]) end return d end Which could be used e.g. julia> summary2(dat, ("mu_x"

[julia-users] Re: AutoGrad port for Julia

2016-08-26 Thread Evan Fields
This looks really interesting. Can you give the high level comparison of how this compares to the various JuliaDiff tools and when to use one over the other?

Re: [julia-users] Proposed solution for writing Enums

2016-08-23 Thread Evan Fields
@enum doesn't do what you want for enums?

[julia-users] Julia 0.5.0-rc2 allocates 6x as much as and runs 4x slower than Julia 0.4.6

2016-08-18 Thread Evan Fields
Unfortunately I haven't been able to find a minimal reproducing example, so first the relevant snippet then the whole function. I have some code which contains the following inner loop: for after in 1:(length(path) - 1) # can't insert after end of path counter += 1 c = inscost(k, after) if c < b

[julia-users] Re: ANN: Julia 0.5.0-rc2 now available

2016-08-13 Thread Evan Fields
Thanks Tony. Two questions, one related to Uwe's question: 1) I noticed earlier that 0.5.0-rc0 starts up much faster than 0.4.6 but is a little slower on initial function calls. Does it load or precompile less of the standard library on startup? 2) Is there / will there be a list of important c

[julia-users] Re: Working with DataFrame columns types that are Nullable

2016-07-22 Thread Evan Fields
As far as I know, DataFrames are only backed by DataArrays. (I believe there's current work being done to upgrade the speed and type stability of DataFrames, in part by using Nullables.) It might be helpful to write a little convenience function like f(n) = isnull(n) ? NA : get(n) I will say I

[julia-users] Pkg operations hanging on Windows with Julia 0.4.6

2016-06-21 Thread Evan Fields
lia folder, and reinstall? Thanks, Evan

[julia-users] Re: JuliaCon schedule announced

2016-06-20 Thread Evan Fields
Can non-registered local Julia fans show up for the hackathon?

[julia-users] Re: function! vs. function

2016-06-12 Thread Evan Fields
Apologies if this is obvious, but: appending ! to a function name doesn't do anything special. It is convention to "append ! to names of functions that modify their arguments" (from the manual, section style guide). But this is just a naming convention and doesn't affect how the function is act

[julia-users] Re: ANN: PkgSearch - a REPL utility for package discovery

2016-06-04 Thread Evan Fields
Hi, this looks great. Two comments from playing around a little bit. 1) PkgSearch.lookup fails if any of the arguments contain a space. In general maybe add to the documentation some notes about whitespace, case sensitivity, etc.? 2) The search seems to get confused between package names and the

[julia-users] Re: Getting sequence of time and subset it

2016-06-01 Thread Evan Fields
Of course there's a way :) You can use the isna function to check if a value is NA or not. There's also the dropna function which takes a DataArray as input and returns a regular Vector with the NA elements removed. You could try something like the following: firstbreakcol = 4 lastbreakcol = 5

[julia-users] Re: Getting sequence of time and subset it

2016-05-30 Thread Evan Fields
I'm not 100% sure I understand your question, but let me give it a shot. First thing is to note why you're getting that MethodError. It's from the line println(si in sdt1[i, [:BreakTime1, :BreakTime2]]) Define sdt1 as you do (I just copied into a Julia REPL) and set i = 1 to for the first ite

Re: [julia-users] Re: Pkg.publish() : ERROR: There are no METADATA changes to publish

2016-05-20 Thread Evan Fields
> > Yes, thanks for your help. I did Pkg.add("TravelingSalesmanHeuristics") > and checked out master in that directory. Pkg.tag and Pkg.publish both > seemed to work fine. Surely this was all an unforced error on my part but hopefully someone in the future will find this thread useful. Cheers

[julia-users] Re: Pkg.publish() : ERROR: There are no METADATA changes to publish

2016-05-20 Thread Evan Fields
On further inspection I think this is because I managed to name the package repository TravelingSalesmanHeuristics.jl (rather than just TravelingSalesmanHeuristics). Indeed I just ran Pkg.add("TravelingSalesmanHeuristics") and now have in my .julia/v0.4 both TravelingSalesmanHeuristics and Trav

[julia-users] Pkg.publish() : ERROR: There are no METADATA changes to publish

2016-05-20 Thread Evan Fields
Presumably I'm doing something dumb, but I'm at a loss. I'm trying to tag version 0.0.2 of TravelingSalesmanHeuristics in METADATA. With my local machine up to date with the remote github repository, I run Pkg.update() and Pkg.tag("TravelingSalesmanHeuristics.j", v"0.0.2") and get no errors. T

[julia-users] Re: ANN: AffineSpaces.jl (work in progress)

2016-05-16 Thread Evan Fields
Very cool stuff; I could see this being really useful in heuristic vehicle routing work I do. By the way, in the readme should the 2d example which creates the line y = 1 first create the x-axis (y=0) and then offset? It looks like you're using the second component vector [0,1].

[julia-users] Is there a performance penalty for defining functions inside functions?

2016-03-29 Thread Evan Fields
To keep namespaces clear and to help with code readability, I might like to do this: function mainFunc() function helper() do stuff return something end call helper() and do stuff return something end That way the helper function is only visible to the function t

[julia-users] Re: To solve optimization problem in julia is it necessary to add any module.

2016-03-25 Thread Evan Fields
It depends on what kind of problem you'd like to solve and how you'd like to solve it. - JuMP is a modeling interface that lies between you and a dedicated solver. JuMP lets you easily specify your problem, sends that problem to the solver, and retrieves output for you. JuMP itself is not a so

[julia-users] Re: Announcing JuDE: autocomplete and jump to definition support for Atom

2016-03-21 Thread Evan Fields
Looks great - I'm excited to try this out. Does the autocomplete work in the console as well? I recently tried Atom flavored Juno and was super impressed but found the lack of console completions a major pain point. Will this play nicely with Juno's packages? On Sunday, March 20, 2016 at 2:58:1

[julia-users] Re: Announcing JuDE: autocomplete and jump to definition support for Atom

2016-03-21 Thread Evan Fields
Looks great - I'm excited to try this out. Does the autocomplete work in the console as well? I recently tried Atom flavored Juno and was super impressed but found the lack of console completions a major pain point. Will this play nicely with Juno's packages?

[julia-users] Re: ANN: JuMP 0.12 released

2016-03-08 Thread Evan Fields
Great to hear. Two minor questions which aren't clear (to me) from the documentation: - Once a user defined function has been defined and registered, can it be incorporated into NL expressions via @defNLExpr? - The documentation references both ForwardDiff.jl and ReverseDiffSparse.jl. Which is u

[julia-users] map losing type information?

2016-02-26 Thread Evan Fields
I notice when I use map with a set collection I end up with sets of type Any, even when the equivalent code with arrays doesn't lose the type information. Am I doing something wrong? Check it out: _ _ _ _(_)_ | A fresh approach to technical computing (_) | (_)

Re: [julia-users] usage of eachindex with Array type?

2016-02-11 Thread Evan
Thank you Mauro, CartesianRange(size(A)) seems to be what I am looking for. Evan On Thursday, February 11, 2016 at 11:42:11 AM UTC+1, Mauro wrote: > > It works like so: > julia> for i in eachindex(A) > @show A[i] >end > > ... > > I.e. the `

[julia-users] usage of eachindex with Array type?

2016-02-11 Thread Evan
Hi, I am trying to understand how to use eachindex with an array. For example, I can do: julia> A = zeros(Int, (3,2)) 3x2 Array{Int64,2}: 0 0 0 0 0 0 followed by: julia> for iter in eachindex(A) @show iter.I[1], iter.I[2] @show A[iter] end

Re: [julia-users] how to make my own 3d array type

2015-11-25 Thread Evan Mason
e/subarray.jl if you want an example of a complex but full- > featured AbstractArray type. > > Best, > --Tim > > On Wednesday, November 25, 2015 03:24:39 AM Evan wrote: > > Thanks Tim, > > > > Following the link you suggested I made the following typ

Re: [julia-users] how to make my own 3d array type

2015-11-25 Thread Evan
3 PM UTC+1, Tim Holy wrote: > > Totally different error (it's a missing size method). You also need to > read > this: > http://docs.julialang.org/en/stable/manual/interfaces/#abstract-arrays > > --Tim > > On Monday, November 16, 2015 06:08:15 AM Evan wrote: > > Tha

Re: [julia-users] how to make my own 3d array type

2015-11-16 Thread Evan
> > > > If performance matters, you should not use abstract types for fields. See > > http://docs.julialang.org/en/stable/manual/faq/#how-do-abstract-or-ambiguous-fields-in-types-interact-with-the-compiler > > and the section after that. > > --Tim > > >

[julia-users] Re: how to specify degrees of freedom for OneSampleTTest?

2015-11-16 Thread Evan
wrote: > > If you have the sample data, it is just the length of the data minus 1, so > does not need to be specified, as it is computed. > > On Tuesday, November 10, 2015 at 9:47:43 AM UTC-5, Evan wrote: >> >> I want to do the following with some time series data: >>

[julia-users] how to make my own 3d array type

2015-11-16 Thread Evan
For a 2d array the following works: type mytype{T} var :: AbstractMatrix{T} end julia> t = mytype(zeros(4, 3)) mytype{Float64}(4x3 Array{Float64,2}: 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0) But how do I extend this to a 3d array? julia> t = mytype(zeros(2, 4, 3)) ERROR

[julia-users] how to specify degrees of freedom for OneSampleTTest?

2015-11-10 Thread Evan
I want to do the following with some time series data: Calculate 95% confidence interval for mean defined as +/-sigma(x)qt(0.025, N*-1) / sqrt(N*) where sigma(x) is the standard deviation at any point x and qt(0.025, N*-1) is the 2.5 percentage point of the Student-t distribution with N*-1 degr

Re: [julia-users] Pkg.[update()/install()/build()] woes on Windows 10 64 bit

2015-09-29 Thread Evan Fields
So I deleted just ArrayViews from .julia, still got errors. Decided to delete the whole of .julia, did Pkg.add("Images"), and got this: _ _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_)| Documentation: http://docs.julialang.org _ _ _|

Re: [julia-users] Pkg.[update()/install()/build()] woes on Windows 10 64 bit

2015-09-27 Thread Evan Fields
> >> >> *From:* julia...@googlegroups.com [mailto:julia...@googlegroups.com] *On >> Behalf Of *Tony Kelman >> *Sent:* Friday, September 25, 2015 2:35 PM >> *To:* julia-users >> *Subject:* [julia-users] Re: Pkg.[update()/install()/build()] woes on >> Window

[julia-users] Pkg.[update()/install()/build()] woes on Windows 10 64 bit

2015-09-25 Thread Evan Fields
I've been encountering problems with packages. Here's what happened: - I installed Julia 0.3.11 via the 64 bit .exe on julialang.org - Changed the install path to C:\Julia-0.3.11 but otherwise all default options - On Windows 10 x64, not using Cygwin or related - Right after instal

[julia-users] setting span for Loess filter

2015-09-24 Thread Evan
thing. My question is how to specify span precisely for various cutoff periods? Thanks, Evan

[julia-users] Re: installation problem mageia 5

2015-09-13 Thread Evan
I found the solution here: https://github.com/JuliaLang/julia/issues/13089 On Thursday, September 10, 2015 at 10:40:23 PM UTC+2, Evan wrote: > > Hi, I am trying to install Julia on a Mageia 5 i7 system. In Make.user I > put this: > > USE_SYSTEM_LLVM=1 > USE_SYSTEM_BLAS=1 >

[julia-users] Re: installation problem mageia 5

2015-09-11 Thread Evan
I agree it's a strange error. I have recloned several times from github, but I always get this exact same error. And I checked for disk errors with smartctl and dmesg, but nothing suspicious. Has anyone else had success on a Mageia system?

[julia-users] installation problem mageia 5

2015-09-10 Thread Evan
ot; const USE_BLAS64 = true const libfftw_name = "libfftw3_threads" const libfftwf_name = "libfftw3f_threads" const libllvm_version = "3.5.2" const VERSION_STRING = "0.3.12-pre" const TAGGED_RELEASE_BANNER = "" const SYSCONFDIR = "../etc" const DATAROOTDIR = "../share" I'd be grateful for any help with this. Thanks, Evan

[julia-users] scope of the expression (made with Expr)

2015-05-06 Thread Evan Pu
where we can mess with, or is there some clean way of doing it? Much much much appreciated!!! --evan

[julia-users] how do I overwrite the "toString" equivalent in Julia?

2015-02-09 Thread Evan Pu
I have a type with a lot of fields, but when I want to print it I only want to output the name field of that type. So when I print an array of objects of this type, I get a on the prinout an array of names instead of a huge clutter of prints. how might I do that? much thanks!!

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

2015-02-07 Thread Evan Pu
hink it gets more beautiful than this :D > > Best, > > Tamas > > On Sat, Feb 07 2015, Evan Pu > wrote: > > > say I want to compute a pair-wise diff for all the elements in the > array. > > input:[1, 2, 4, 7, 8] > > output:[1, 2, 3, 1] &

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

2015-02-07 Thread Evan Pu
say I want to compute a pair-wise diff for all the elements in the array. input:[1, 2, 4, 7, 8] output:[1, 2, 3, 1] is there some kind of "beautiful" way of doing it? i.e. w/o using a for loop nor using explicit indecies

[julia-users] incomplete println? (and debugging memory in general)

2015-02-04 Thread Evan Pu
is consuming most of the memory at the time of the bug? I tried using "--track-allocation=all", but I do not care about memories that are already re-claimed by the garbage collector, but I do care about memory yet to be claimed at the time of the error. Sorry for the long post... --evan

[julia-users] Re: What's your favourite editor?

2015-01-19 Thread Evan Pu
light table juno plugin. literally cannot use the language w/o it haha, although it is buggy at times On Saturday, January 17, 2015 at 11:34:46 AM UTC-5, Terry Seaward wrote: > > Hi, > > Just curious to know what people use to write/edit their Julia code > (os/app)? > >

[julia-users] julia array type?

2015-01-19 Thread Evan Pu
I'm trying to construct an array while making an array of pairs of floats. The error below is extremely confusing and I have no idea why. = # create the array w/o type declarations works fine julia> x = [(0.0, 1.0), (0.0, 1.0)] 2-element Array{(Flo

[julia-users] Re: Simple type constructor question

2015-01-15 Thread Evan Pu
af(:b)),Tree(Leaf(:c)) > > > So this stills looks a bit clunky and you should also be aware that this > allows for Tree(Tree(:a), Tree(1.0)) so some type constraints would be in > order. > > > On Thursday, 6 November 2014 21:52:05 UTC+1, Evan Pu wrote: >> >> Quick

[julia-users] Re: what do you do with strings in julia

2015-01-13 Thread Evan Pu
I'll try. the call chain is rather large and I'll see if I can get it down to a few constructs. On Tuesday, January 13, 2015 at 4:34:39 PM UTC-5, Steven G. Johnson wrote: > > > > On Tuesday, January 13, 2015 at 4:10:54 PM UTC-5, Evan Pu wrote: >> >> Steven, >

[julia-users] Re: what do you do with strings in julia

2015-01-13 Thread Evan Pu
esday, January 13, 2015 at 3:16:44 PM UTC-5, Steven G. Johnson wrote: > > Though we could define such a conversion method with: > > convert{T<:AbstractString}(::Type{SubString{T}}, s::AbstractString) = > let s′ = T(s); SubString(s′, 1, endof(s′)); end > > Evan, what is you

[julia-users] what do you do with strings in julia

2015-01-13 Thread Evan Pu
what is the convention? I kept getting `convert` has no method matching convert(::Type{SubString(UTF8String)}}, ::ASCIIString) all the time, every time I I don't really know _why_ this error comes up, or how or what. I just kept typing :: ASCIIString trying to force the types onto things and ho

[julia-users] Re: initialize array of arrays?

2015-01-08 Thread Evan Pu
works for me! thanks!! On Thursday, January 8, 2015 1:07:35 PM UTC-5, Steven G. Johnson wrote: > > You can do Array{Int}[[1,2],[3,4]], or Vector{Int}[[1,2],[3,4]] if you > want to restrict the entries to be 1d arrays of Int. >

[julia-users] initialize array of arrays?

2015-01-08 Thread Evan Pu
Imagine I want to initialize an array of array. x = [[1,2],[3,4]] but this gets flattened into [1,2,3,4] Is there an easy way of constructing a nested array? I'm currently having to do x = Array{Int64}[] push!(x, [1,2]) push!(x, [3,4]) which doesn't seem very clean

Re: [julia-users] Re: package proposal

2014-12-26 Thread Evan Pu
is this thread still alive? a phc package would be good... On Monday, June 23, 2014 5:26:34 AM UTC-7, Andrei Berceanu wrote: > > By the way I recently stumbled upon NLSolve.jl, and asked them if they > would be interested in PHCpack > https://github.com/EconForge/NLsolve.jl/issues/12 > > Still no

Re: [julia-users] how to test NaN in an array?

2014-12-15 Thread Evan Pu
15, 2014, at 3:33 PM, Evan Pu > > wrote: > > > 1 in [1,2,3] # returns true > > > > NaN in [NaN, 1.0, 2.0] # returns false > > > > how do I test if a float64 NaN is present in an array? I'm doing some > numerical computation and it can have some NaN error, I want to drop the > arrays that has NaN. > >

[julia-users] how to test NaN in an array?

2014-12-15 Thread Evan Pu
1 in [1,2,3] # returns true NaN in [NaN, 1.0, 2.0] # returns false how do I test if a float64 NaN is present in an array? I'm doing some numerical computation and it can have some NaN error, I want to drop the arrays that has NaN.

[julia-users] Re: customized hash function (or equality function)?

2014-12-10 Thread Evan Pu
wonderful! thanks!! On Wednesday, December 10, 2014 8:24:17 PM UTC-5, Steven G. Johnson wrote: > > Base.hash(p::Poly1, h::Uint) = hash(p.coef, h) > Base.(==)(p1::Poly1, p2::Poly2) = p1.coef == p2.coef > > (If you override hash you should always override == to be consistent, and > vice versa.) >

[julia-users] customized hash function (or equality function)?

2014-12-10 Thread Evan Pu
nt hex string How would I implement my own hash so the same polynomials (by same I mean the coefficients are same, i.e. the coef::Array{Float64} part of the two polynomials are the same? Much thanks!! --evan

Re: [julia-users] Reviewing a Julia programming book for Packt

2014-12-05 Thread Evan Miller
>> on Julia programming. I found this thread on julia-dev: >> https://groups.google.com/forum/#!msg/julia-dev/HrdpknFgdfk/SAVMyyacT_sJ >> where Packt contacted a large number of folks seeking an author. >> >> Has anyone else received something like this? In principle, I'm all in >> favour of producing promotional or teaching materials, but I'm surprised it >> lead to me being contacted. >> >> >> > > -- Evan Miller http://www.evanmiller.org/

[julia-users] Simple type constructor question

2014-11-06 Thread Evan Pu
Quick question: In haskell one can do something like the following to define a type: data Tree a = Branch (Tree a) (Tree a) | Leaf a Is there something analogous in the Julia world? I'm sure I'm doing something wrong here... julia> type Tree body :: Union(Branch, Leaf) end ERROR

[julia-users] base case for the reduce operator?

2014-11-04 Thread Evan Pu
Hi I'm writing a simple polynomial module which requires addition of polynomials. I have defined the addition by overloading the function + with an additional method: +(p1::Poly, p2::Poly) = ...# code for the addition I would like to use + now in a reduce call, imagine I have a list of polynom

[julia-users] Re: Is there an implicit "apply" method for a type?

2014-11-04 Thread Evan Pu
> > Regards > Ivar > > kl. 19:50:31 UTC+1 tirsdag 4. november 2014 skrev Evan Pu følgende: >> >> Hello, >> I want to create a polynomial type, parametrized by its coefficients, >> able to perform polynomial additions and such. >> but I would also like to use

[julia-users] Is there an implicit "apply" method for a type?

2014-11-04 Thread Evan Pu
Hello, I want to create a polynomial type, parametrized by its coefficients, able to perform polynomial additions and such. but I would also like to use it like a function call, since a polynomial should be just like a function Something of the following would be nice: p = Poly([1,2,3]) # creati

Re: [julia-users] type confusions in list comprehensions (and how to work around it?)

2014-11-04 Thread Evan Pu
sion has to build with type Any? >> >> >> On 2014年11月04日 07:06, Miguel Bazdresch wrote: >> > > How could I force the type of gxs1 to be of an array of Float64? >> > >> > The simplest way is: >> > >> > gxs1 = Float64[g(x) for x

[julia-users] type confusions in list comprehensions (and how to work around it?)

2014-11-03 Thread Evan Pu
Consider the following interaction: julia> g(x) = 1 / (1 + x) g (generic function with 1 method) julia> typeof(g(1.0)) Float64 julia> xs = [1.0, 2.0, 3.0, 4.0] 4-element Array{Float64,1}: 1.0 2.0 3.0 4.0 julia> gxs1 = [g(x) for x in xs] 4-element Array{Any,1}: 0.5 0.33 0.25

Re: [julia-users] Fully Typed Function As Argument Type

2014-11-03 Thread Evan Pu
Nooo TT I was looking for it too today. Hope it gets added soon, fingers crossed! On Thursday, August 14, 2014 10:31:17 AM UTC-4, John Myles White wrote: > > Not possible in the current versions of Julia. Maybe one day. There are > bunch of us who’d like to have this functionality, but it

[julia-users] Free Julia Workshop in Chicago Nov. 15

2014-11-01 Thread Evan Miller
close to transit. If you'd like to attend, please sign up through Meetup before November 12. Thanks! Evan -- Evan Miller http://www.evanmiller.org/

Re: [julia-users] how to i get number of arguments of a function?

2014-10-16 Thread Evan Pu
yeah, the function I'm intending to inspect will be defined by me and they shouldn't be varargs On Thursday, October 16, 2014 2:10:34 PM UTC-4, Toivo Henningsson wrote: > > Though you should probably look out for varargs methods too, the length of > e.g. (Int...) is one, but a method with that s

[julia-users] named function within a loop is overwritten?

2014-10-16 Thread Evan Pu
Consider this code: function give_funs() funs = [] for i in 1:5 function newfun() i end funs = [funs, newfun] end funs end The intention is to create 5 functions and store them in a list called "funs". All the functions take no argument, and when the ith function is cal

Re: [julia-users] how to i get number of arguments of a function?

2014-10-16 Thread Evan Pu
> > Best, > --Tim > > On Thursday, October 16, 2014 08:55:01 AM Evan Pu wrote: > > How do I get the number of arguments of a function? > > > > for instance, f(x, y) = x + y > > > > I want something like num_args(f), which will give me back 2. If

[julia-users] how to i get number of arguments of a function?

2014-10-16 Thread Evan Pu
How do I get the number of arguments of a function? for instance, f(x, y) = x + y I want something like num_args(f), which will give me back 2. If the function has multiple methods then something more general would be nice, but so far I only care about functions with just a single method. Is t

[julia-users] how to find out how many argument a function has?

2014-10-16 Thread Evan Pu
I'm assuming the function only has a single method, although a more general answer would be nice too. Imagine I have: f(x,y,z) = x + y + z I would like to have something like num_args(f) which should give back 3 is there something that could let me do this? thanks a lot!!

Re: [julia-users] Computing colors of molecules with Julia

2014-06-09 Thread Evan Miller
a of what you can do with IJulia, Color.jl, Gadfly.jl, > SIUnits.jl, and Unicode characters. > -- Evan Miller http://www.evanmiller.org/

Re: [julia-users] Re: JuliaCon: Registration is open!

2014-05-06 Thread Evan Miller
Yes, the plan is to post recordings of all the talks online after the conference. On Tue, May 6, 2014 at 8:11 PM, Paulo Castro wrote: > Will the event organizators post videos on youtube for Julia users that > couldn't attend? > > Em terça-feira, 6 de maio de 2014 16h51min03s U

[julia-users] JuliaCon: Registration is open!

2014-05-06 Thread Evan Miller
rices nice and cheap. If your organization might be interested in being a JuliaCon sponsor, please contact me directly. Mark your calendar, and get pumped! This will be a great event. More information will be posted on the website as the conference approaches. See you in June! Evan 1. Full

Re: [julia-users] Re: 1st JuliaConference: June 26th-28th, Chicago

2014-04-09 Thread Evan Miller
> rooms be reserved? ... > >> >> -- Evan Miller http://www.evanmiller.org/

Re: [julia-users] 1st JuliaConference: June 26th-28th, Chicago

2014-04-03 Thread Evan Miller
It's going to be a great event: 2 days of tech talks and a full day of hands-on geeking out. BTW if your organization might want to sponsor the event to help keep ticket prices down, please email me. Evan On Thu, Apr 3, 2014 at 10:03 AM, Jeff Bezanson wrote: > This is super exciting, t