News for hackers. Stuff that matters.
Re:A review of the Julia language (2014) by ModernMech on Sunday September 09, 2018 @09:32AM (#17945811)
I don't understand this. Please elaborate.
Re:A review of the Julia language (2014) by stabbles on Sunday September 09, 2018 @10:18AM (#17945984)
The joke is that criticism of Julia is always the same: (1) Dan Luu's bad experiences in 2014, (2) some "giving up on Julia" blog post from 2016, or (3) bikeshedding about 1-based indexing. And when the discussion revolves around 1-based indexing, Dijkstra is almost always cited to prove objective superiority of 0-based indexing.
Re:A review of the Julia language (2014) by ModernMech on Sunday September 09, 2018 @11:21AM (#17946301)
Thank you. So much inside knowledge rolled up! Culture context is important :)
Re:A review of the Julia language (2014) by shele on Sunday September 09, 2018 @10:12AM (#17945958)
Controversies about this blog post and about Julia's 1-based arrays on HN often replace serious discussion about the programming language. Stefan Karpinski is one of the inventors of Julia, Dijkstra wrote a classic note in favour of 0-based indexing.
Re:A review of the Julia language (2014) by ModernMech on Sunday September 09, 2018 @11:18AM (#17946285)
Thanks!
Re:A review of the Julia language (2014) by czep on Sunday September 09, 2018 @11:04AM (#17946212)
In math when we write a sum, we say "sum from i = 1 to n", not "sum from i = 0 to n-1".

Zero-based indexing of arrays makes sense in a language like C where arrays are just pointers and offsets are determined with arithmetic on pointer addresses in memory. This is why we are trained to write code like "for (i = 0; i < n; i++)". But in Julia where one of the stated purposes is to be able to write code that looks like formulae, it is far more natural to use one-based indexing.

Re:A review of the Julia language (2014) by ModernMech on Sunday September 09, 2018 @11:19AM (#17946287)
Sure I get that. MATLAB and FORTRAN also use 1 based indexing, so that's nothing new. People have been arguing about that since 1950 :P I just didn't understand the context of the post.