Earlier quoted context omitted.
When I first used named tuples in Swift I thought they'd be so great, no more _1 _2 or whatever. After using them a while, it gets a bit tiring and litters with repeated type info. A type alias for a named tuple would help with that. Any others have similar experiences? Or would they play out differently in Julia?
Wouldn't that just be a struct?
Julia v0.7.0 Release Notes
41–50 of 61 posts
Re: Julia v0.7.0 Release Notes
#42Is there anything in Julia yet or planned, that would allow to specify that "implementations" (in some sense) of an abstract type must provide certain method implementations, which would be checked before any attempt to call a missing function at run time (such as just after all definitions have been read maybe)? I realize that this issue can be thorny under multiple dispatch so maybe no solution is practical. But th…
Re: Julia v0.7.0 Release Notes
#43Re: Julia v0.7.0 Release Notes
#44Removing eye() in favour of a new construct is weird after all this time. It seems to me like v0.7 will break a lot of my current code.
Re: Julia v0.7.0 Release Notes
#45That heading gives someone who doesn't already know, absolutely no clue what it is or why they should click on it.
The thing NOT to do is get mad because people are talking about something that you personally have never heard of.
The thing to REALLY not do is to actually expend energy posting a public statement about how you're upset because people are talking about things that you personally have never heard of and can't be bothered to spend a few seconds learning about. No good will ever come of it, especially when you could have spent that same time and energy answering your own question.
Re: Julia v0.7.0 Release Notes
#46Earlier quoted context omitted.
Ok thanks. Lately been using Cython with its near-C speed and Python convenience. Just quickly had a look at Julia wiki page, seems like a fast Python, is that fair?
Python doesn't have multiple dispatch though. It's central to making Julia's type system fast. I.e., it's not just loops that are fast, but also code that uses Julia-defined data structures are fast. Additionally, you can write generic code and have it automatically compile fast code for large classes of types. Also, the whole Base library is written in Julia, mostly generically, so this will be compatible with your…
Re: Julia v0.7.0 Release Notes
#47Earlier quoted context omitted.
Hehe no. It said "Julia Lang v0.7" but I'm not insider enough to think of Julia the language when I read that. I wondered "Who is Julia Lang? Hmm must be some software?" etc
I'd think that most regular readers of Hacker News would naturally interpret "____ Lang" as referring to a programming language, but clearly there's some ambigutity. I would have the opposite problem; if a Hacker News item was titled "Fred Lang Has Died", my first thought would be: "I didn't even know there was a programming language called Fred. It must have died from obscurity." :-)
Re: Julia v0.7.0 Release Notes
#48Earlier quoted context omitted.
Wouldn't that just be a struct?
Like an ad-hoc anonymously typed struct. Only the members are named, so each time the type is specified it is with the member names, hence just using a type name is preferred. If it is really just used at one or two call sites and not propagated all is well, but invariably things tend to expand in use.
const MyAlias = NamedTuple{(:a, :b),Tuple{Int64,Int64}}
MyAlias((2, 3)) # (a = 2, b = 3)Re: Julia v0.7.0 Release Notes
#49Earlier quoted context omitted.
Thanks! From the documentation and all the threads I searched in discourse, it was never clear to me that @parallel and pmap where aiming towards the direction you just described. I did try Threads.@threads, but the overhead was way too high. I might look into it again soon.
Threads.@threads is still consider a bit experimental and there are a few performance pitfalls that one can stumble into. I talked about this for a bit in http://slides.com/valentinchuravy/julia-parallelism , but if you still have issues after reading that feel free to reach out on https://discourse.julialang.org and we will figure out what is going on.
Re: Julia v0.7.0 Release Notes
#50Earlier quoted context omitted.
Thanks! From the documentation and all the threads I searched in discourse, it was never clear to me that @parallel and pmap where aiming towards the direction you just described. I did try Threads.@threads, but the overhead was way too high. I might look into it again soon.
Threads.@threads is still consider a bit experimental and there are a few performance pitfalls that one can stumble into. I talked about this for a bit in http://slides.com/valentinchuravy/julia-parallelism , but if you still have issues after reading that feel free to reach out on https://discourse.julialang.org and we will figure out what is going on.