I personally don't like the fact that you have structs but no classes and no instance methods, but I know this is personal and don't want to start a religious war this morning
Julia Language Co-Creators Win James H. Wilkinson Prize for Numerical Software
11–20 of 249 posts
Re: Julia Language Co-Creators Win James H. Wilkinson Prize for Numerical Software
#12what good is philosophy if you choose arrays based on 1? https://groups.google.com/forum/?hl=en#!topic/julia-dev/tNN7...
Re: Julia Language Co-Creators Win James H. Wilkinson Prize for Numerical Software
#13what good is philosophy if you choose arrays based on 1? https://groups.google.com/forum/?hl=en#!topic/julia-dev/tNN7...
So does: APL, AWK, COBOL, Fortran, Lua, Mathematica, MATLAB, R, Smalltalk, Wolfram Because it is Mathmatics and have 1 be based on 0 makes no sense, you then have to switch between the two and it is easy to make a mistake. This is why I don't use Python and Pandas. I got burnt once and that was enough and switched to R. Sadly we are stuck with 0 based array in programming and due to a historical issue.
Although in Wirth inspired languages, actually the indexes are flexible, but by convention 1 gets used.
Re: Julia Language Co-Creators Win James H. Wilkinson Prize for Numerical Software
#14Can't wait for the language to be as widely used as Python or R. Been playing around with it at home since the 1.0 release and it really is a joy to use.
Re: Julia Language Co-Creators Win James H. Wilkinson Prize for Numerical Software
#15what good is philosophy if you choose arrays based on 1? https://groups.google.com/forum/?hl=en#!topic/julia-dev/tNN7...
Re: Julia Language Co-Creators Win James H. Wilkinson Prize for Numerical Software
#16what good is philosophy if you choose arrays based on 1? https://groups.google.com/forum/?hl=en#!topic/julia-dev/tNN7...
integer :: array1(5)
integer :: array2(0:4)
integer :: array3(5:10)
integer :: array4(-4:4)Re: Julia Language Co-Creators Win James H. Wilkinson Prize for Numerical Software
#17what good is philosophy if you choose arrays based on 1? https://groups.google.com/forum/?hl=en#!topic/julia-dev/tNN7...
So does: APL, AWK, COBOL, Fortran, Lua, Mathematica, MATLAB, R, Smalltalk, Wolfram Because it is Mathmatics and have 1 be based on 0 makes no sense, you then have to switch between the two and it is easy to make a mistake. This is why I don't use Python and Pandas. I got burnt once and that was enough and switched to R. Sadly we are stuck with 0 based array in programming and due to a historical issue.
like now with everything 0 based having something like:
arr[offset1 * 32 + offset2]
would be the following if all my offsets would be 1-based and arrays would be 1-based:
arr[(offset1 -1) * 32 + offset2]
which is pretty arbitrary...
Re: Julia Language Co-Creators Win James H. Wilkinson Prize for Numerical Software
#18what good is philosophy if you choose arrays based on 1? https://groups.google.com/forum/?hl=en#!topic/julia-dev/tNN7...
Re: Julia Language Co-Creators Win James H. Wilkinson Prize for Numerical Software
#19what good is philosophy if you choose arrays based on 1? https://groups.google.com/forum/?hl=en#!topic/julia-dev/tNN7...
Re: Julia Language Co-Creators Win James H. Wilkinson Prize for Numerical Software
#20I personally don't like the fact that you have structs but no classes and no instance methods, but I know this is personal and don't want to start a religious war this morning