[julia-users] Reviewing a Julia programming book for Packt
I received an email today about being a technical reviewer for a book on Julia! We're currently developing a book titled *Mastering Julia* aiming at > building statistical models with linear regressions and analysis of > variance (ANOVA) and will be working on probability, probability > distributions, and random variables covering data structures such as > matrices, lists, factors, and data frames. This book is targeted at > Intermediate > level developer in statistical languages and one who will be having > understanding of Core elements and applications. > > Would you be interested in acting as reviewer for this book? > Now, I enjoy Julia, and I'm happy to help promote the language, but I don't think I'm particularly qualified to be a technical reviewer of a book 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.
[julia-users] Re: Suprises with for loops
On Monday, 8 September 2014 14:54:50 UTC+1, Tony Fong wrote: > > @snotskie looped me into this discussion in the context of Lint > > I have updated Lint.jl (v0.1.1) to give warnings over > * for-loop when the iterable is just a literal number > * nested vcat, i.e.[[1,2],[3,4]]. Other array formats are unaffected since > their ASTs are distinct. > > Tony > That's a definite help. Would it be worth (or feasible) generalising to integer variables too? It wouldn't help in the sample function I gave, but you could catch cases like: julia> function sumto(n :: Int) total = 0 for i in n total = total + i end return total end I'd be really interested in seeing an example where this behaviour makes code nicer. If an integer value can be seen as an array of length zero, is there something special about numeric arrays? Given an array of arbitrary type T, should a user always expect that values of type T are iterable? If there's any interest, I'd be interested in writing a PR to change this behaviour, as an excuse to familiarise myself with Julia's internals. Wilfred