Comment

Comment by p-e-w

What is this supposed to demonstrate?

There appears to be roughly the same code structure, ported to every language, while for some languages, arbitrary optimizations are introduced (such as using `array` instead of `list` in Python).

But nobody working in Python uses matrix multiplication code written in Python. They use NumPy, which is a de facto standard library for people working in the relevant fields. It's as much part of "Python" as list comprehensions.

Without taking such real-world conventions into account, such comparisons say essentially nothing about the languages involved (and their all-important ecosystems).

parent p-e-w 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton