3 ms·
And the moon on a stick :-) Not sure many "technical" programmers would take c as the desert island programing language. Sound interesting though if it can mak
by mjwalshe 15y ago
And the moon on a stick :-) Not sure many "technical" programmers would take c as the desert island programing language.
Sound interesting though if it can make hadoop easier to use id take that as win I dont think its going to replace fortran as a HPC language.
- deleted 15y ago[deleted]
- coffeeaddicted 15y agoC as desert island programming language but making all indexing 1-based: "the first element of any integer-indexed object is found at index 1, not index 0, and the last element is found at index n rather than n-1, when the string has a length of n." Also begin end blocks - maybe there was a pascal ninja hidden in the syntax committee room?
- julien_p 15y agoMore likely Matlab than Pascal. Julia's syntax is intended to be familiar to users of MATLAB®.
- jfager 15y agoMatlab, Octave, Mathematica, and other mathematical programming environments use 1-based indexing, it's a well-established norm for the domain.
- Loic 15y agoFortran too and in HPC we all code in Fortran a lot. Look at the loop construct: for i = 1:t in Fortran: DO I=1,T The ability to load both C and Fortran dynamic libraries is also really really nice.
- ced 15y agoDoes 1-based indexing have any advantage, beyond familiarity to scientists?
- jfager 15y agoNot really, but it's not important either way.
- jballanc 15y agoWith 1-based indexing, length == last index. Does 0-based indexing have any advantage, beyond ability to do pointer arithmetic with indexes?
- scott_s 15y agoIn 0-based indexing, n % length is a value inside the range.
- cscheid 15y agoDijkstra to the rescue: http://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EWD831.html http://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EW...