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
not copying he backing array) it seems to work. What's the best way to write this code? How does one extend this to multidimensional arrays? IMO, the explanation of how to do these two things would have served as good examples on the doc page. -- Brian

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

2016-09-27 Thread Brian Rogoff
Thanks Simon, way better, way more Julian. -- Brian On Saturday, September 24, 2016 at 5:12:52 PM UTC-7, Simon Danisch wrote: > > How about something like this: > > function showtypetree(T, level=0) > println("\t" ^ level, T) > for t in subtypes(T) >

[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] randperm run time is slow

2016-01-22 Thread Brian Lucena
ifference of 23.27244 secs Julia seems to be twice as slow! Any thoughts on why that is? Does randperm use the "knuth shuffle" or does it use some other algorithm. Thanks, 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] Any plans for free tutorials on Coursera,edX or Udacity?

2015-10-21 Thread Brian
Hi, Are there any plans for free online tutorials at Coursera, EdX or Udacity? I guess "Introduction to Julia", "Introduction to Data Analysis with Julia", "Introduction to Machine Learning with Julia" etc. would bring a lot of attention and "spread the word". Best, Brian

[julia-users] Re: Julia Summer of Code

2015-05-25 Thread Brian Cohen
I'm looking for a mentor, and I'd be willing to commit to any projects involving control systems, linear ODE solving, or something that involves making use of types / PL theory. Two project ideas I haven't formalized yet: adding Elm-style FRP to Jupyter notebooks (perhaps extending Reactive.jl

Re: [julia-users] Job posting policy...

2015-05-13 Thread Brian Granger
ful place. > > -viral > > > > > On 14-May-2015, at 11:35 am, Brian Granger wrote: > > > > Here is the post on julia-jobs: > > > > https://groups.google.com/forum/#!topic/julia-jobs/hA5SE1nECZk > > > > On Monday, May 11, 2015 at 10:33:54 AM UTC-

[julia-users] Re: Job posting policy...

2015-05-13 Thread Brian Granger
Here is the post on julia-jobs: https://groups.google.com/forum/#!topic/julia-jobs/hA5SE1nECZk On Monday, May 11, 2015 at 10:33:54 AM UTC-7, Brian Granger wrote: > > Hi, > > This is Brian Granger, one of the core devs on IPython/Jupyter. I am > wondering if it would be OK to p

Re: [julia-users] Job posting policy...

2015-05-11 Thread Brian Granger
and lets > people know that julia-jobs exists. > > On Mon, May 11, 2015 at 1:57 PM, Brian Granger > wrote: > >> OK I will post it there, but seeing that there are only 48 members >> (versus > 3000 here) on that list, I don't expect much benefit. >> >> Ch

Re: [julia-users] Job posting policy...

2015-05-11 Thread Brian Granger
OK I will post it there, but seeing that there are only 48 members (versus > 3000 here) on that list, I don't expect much benefit. Cheers, Brian On Mon, May 11, 2015 at 10:52 AM, Stefan Karpinski wrote: > There a julia-jobs list for this purpose: > > https://groups.google.

[julia-users] Re: Julia will always be open source

2015-05-11 Thread Brian Granger
uot; trademarks in their name? I want to be clear - I am all for commercialization efforts around open source and am very excited about where Julia is headed. I also don't have any ideas about what the answers to these questions should be for your community. Cheers, Brian On Saturday,

[julia-users] Job posting policy...

2015-05-11 Thread Brian Granger
Hi, This is Brian Granger, one of the core devs on IPython/Jupyter. I am wondering if it would be OK to post a full time job for work on Jupyter/IPython to this list? Cheers, Brian

Re: [julia-users] Numerical precision of simple mathematical operations

2015-02-12 Thread Brian Harris
Back in the day when we did a lot of fortran work, we had a compiler with a flag to make double precision variables become single precision or quad precision. There was also a flag "trapuv" to turn any undefined variable to NAN and cause a fault. These were extremely useful to understand the

[julia-users] Annoucement: October 16th Meeting of the BAJU Group, Looking for presenters

2014-10-01 Thread Brian Piper
Hello Julia Community, The Bay Area Julia Users Meetup group ( http://www.meetup.com/Bay-Area-Julia-Users/) is looking for presenters for an October 16th Meeting starting approximately at 6:30pm. We're looking for something like 2-3 presenters to speak for approximately 20-30 minutes and hopefu

Re: [julia-users] get module of exported datatypes and variables

2014-06-19 Thread Brian Piper
This is pretty interesting, it seems odd that we have function_module, but nothing like a "variable_module". However, I can't seem to get this to work with the last commit in master (f548812). It gives an error: julia> Base.@binding_module b3 Error showing value of type b3: ERROR: type: subtype:

[julia-users] Assigning variables in other modules vs. assigning to fields of types from other modules

2014-06-10 Thread Brian Piper
This seems unexpected to me: module MyMod type AType val end global a = AType(5.0) global b = 10.0 end Then in the REPL... julia> MyMod.b = 7.6 ERROR: cannot assign variables in other modules julia> MyMod.a.val = 4.5 4.5 So, in summation, no errors when assigning to fields of a compo

[julia-users] return statement in let expression

2014-02-01 Thread Brian Nguyen
> > julia> let x=1; for i=1:37; x=2*x; end; return x; end > 137438953472 > > julia> y = let x=1; for i=1:37; x=2*x; end; x; end > 137438953472 > > julia> y = let x=1; for i=1:37; x=2*x; end; return x; end > ERROR: syntax: misplaced return statement > How to make let statements with return work insi

[julia-users] Structure and Interpretation of Classical Mechanics

2014-01-14 Thread Brian Cohen
Most code examples for Julia are aimed at users of existing statistical and numerical software without demonstrating how functional programming can be substantially more useful for their field. In many ways, Julia is a Lisp without S-Expressions, so I didn't think it would be unwise to port code

[julia-users] Anonymous types

2014-01-09 Thread Brian Nguyen
Types are first class objects. How to write anonymous types in Julia?

[julia-users] Anonymous types

2014-01-09 Thread Brian Nguyen
Types are first class objects. How to write anonymous types in Julia?

[julia-users] Re: Style Guideline

2013-12-31 Thread Brian Rogoff
reason that a similar feature wouldn't work well with Julia too? -- Brian On Tuesday, December 31, 2013 7:01:23 AM UTC-8, John Myles White wrote: > > One of the things that I really like about working with the Facebook > codebase is that all of the code was written to comply with a