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
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
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
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)
>
... 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 !=
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
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> 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
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
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
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
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
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-
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
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
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.
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,
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
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
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
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:
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> 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
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
Types are first class objects. How to write anonymous types in Julia?
Types are first class objects. How to write anonymous types in Julia?
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
27 matches
Mail list logo