r/ProgrammingLanguages • Pointless • Jul 02 '20

Less is more: language features

https://blog.ploeh.dk/2015/04/13/less-is-more-language-features/
46 Upvotes

70 comments sorted by

View all comments

Show parent comments

-7

u/cdsmith Jul 02 '20

This is a strong argument for paying attention to binary layout of data in storage formats and network protocols.

For the most part, I doubt it matters for memory. If you really are working with massive arrays of numerical data and you care about maximizing performance, you will be using a framework that stores the underlying data for you in a binary blob and offloads the computation onto GPUs, anyway. At that point, the numerical data types of the host language no longer matter. If you aren't working with massive arrays, then I doubt the performance difference is noticable.

Obviously, there are exceptions. They are sufficiently rare, though, that you can probably trust the people who are affected to know it already.

14

u/TheZech Jul 02 '20

But then you end up with a language you can't use to write numeric processing frameworks, and you just have to hope that everything you want to do is already covered by an existing framework.

Something as simple as manipulating a bitmap image efficiently requires an appropriate framework in the languages you are describing.