Hacker News new | past | comments | ask | show | jobs | submit login

Don't R, Matlab & Julia make heavy use of array-like data structures?



Yes, but those arrays are based on the concept of the mathematical vector.

Whereas C and descendents see arrays as chunks of memory.

In C arrays it makes sense to think of the index as an offset (0 elements away from the start, etc.).

In math its more consistent with classic matrix notation.


Agreed, what's weird to me is how high level languages like Python and JS adopted C's indexing. But I guess that's the huge C influence on the programming community. Most of us learn programming being taught zero-based indexing.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: