Re: [julia-users] Re: Julia 0.5 Highlights

2016-10-17 Thread Brian Rogoff
On Thursday, October 13, 2016 at 1:00:21 PM UTC-7, Stefan Karpinski wrote: > > No, Function doesn't have signatures, arity or return type as part of its > type. The signature of a function is the union of its method signatures, > which is potentially very complicated. Type parameters are not > c

[julia-users] Re: Julia 0.5 Highlights

2016-10-13 Thread Brian Rogoff
Great summary, thanks so much! Being a fan of typeful functional programming, I really like the return type annotations and FP performance improvements. Is there a way to describe a precise return type for a higher order function? The examples of Function I've seen have neither the arguments ty

[julia-users] Zero indexed arrays

2016-10-08 Thread Brian Rogoff
Hi, I saw in the release notes that Julia added support for different array indexing methods. I decided to try my hand at implementing zero indexed vectors, and started with the instructions here http://docs.julialang.org/en/latest/devdocs/offset-arrays/ I found this part of the documenta

[julia-users] Re: Get the red out!

2016-09-27 Thread Brian Rogoff
actually corner cases > making it impossible to type as Set{DataType}(). > Fact is, with that change subtype is 10x faster and doesn't return > Vector{Any} anymore. > I opened a PR: > https://github.com/JuliaLang/julia/pull/18663 > > Best, > Simon > > > Am S

[julia-users] Get the red out!

2016-09-24 Thread Brian Rogoff
... of @code_warntype output. I was reading https://en.wikibooks.org/wiki/Introducing_Julia/Types#Investigating_types and I came across the following code, described as "not very elegant": level = 0 function showtypetree(subtype) global level subtypelist = filter(asubtype -> asubtype !=

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

2016-08-24 Thread Brian Rogoff
What's an example of a good Julep? I did some searching and couldn't find much. Is there a document somewhere about writing and submitting Julia Enhancement Proposals? On Tuesday, August 23, 2016 at 11:09:25 AM UTC-7, Stefan Karpinski wrote: > > On Tue, Aug 23, 2016 at 12:39

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

2016-08-23 Thread Brian Rogoff
It's a bit surprising that Julia doesn't have built in enums and a case/switch form. I'm glad that there's open issue https://github.com/JuliaLang/julia/issues/5410 to address the lack of case/switch. Is there any hope that we may see these (or at least the built in case/switch) in 1.0? On Tuesd

[julia-users] Why aren't multiple const definitions allowed on a line?

2016-08-22 Thread Brian Rogoff
julia> global x = 2, y = 3, z = 5 5 julia> const u = 7, v = 11, w = 13 ERROR: syntax: invalid assignment location "11" Is there a rationale for this difference in behavior? Version 0.6.0-dev.364 -- Brian

[julia-users] Re: using statement with for loop inside if statement

2015-12-09 Thread Brian Rogoff
In what way doesn't it make sense to evaluate it in a local scope? It's true that Julia modules don't behave that way now, but other languages support local modules; D and OCaml come to mind. On Wednesday, December 9, 2015 at 7:22:51 AM UTC-8, Steven G. Johnson wrote: > > A using statement affec

[julia-users] Re: Style Guideline

2013-12-31 Thread Brian Rogoff
IMO the main reason for (33) is that Julia presently lacks any local import feature. At least a few languages with module systems add these; see for instance OCaml http://caml.inria.fr/pub/docs/manual-ocaml-4.01/extn.html#sec225 and also Ada, which allows with/use inside of blocks. Is there a