Re:Go makes it easier to write correct, clear and efficient ...
by mratsim on Saturday May 11, 2019 @01:51PM
(#19887399)
In ML you really want to use Numpy ndarrays, Pandas dataframes or Tensors.
A list is much too slow because:
- Not contiguous - No SIMD vectorization - No parallel processing
Lists are mostly used for list of containers (for example storing the arrays inputs of a function)
Probably there are languages that have a really expressive syntax that solve problems also in a scalable manner. For instance Python with its list comprehension that are a real code and time saver for software that does a lot with lists. (No coincidence it's so popular with ML.)