4 ms·
I've seen some comments on twitter (like this one [0]) that are saying that the complexity of programs in different languages is not the same and that is impact
by sodimel 4y ago
I've seen some comments on twitter (like this one [0]) that are saying that the complexity of programs in different languages is not the same and that is impacting results. Is someone willing to develop this for me (since I don't really know any other language here other than Python)?
Bonus: here's "Ranking Programming Languages by Energy Efficiency", from 2021 [1]
[0]: https://twitter.com/Czaki_PL/status/1569636020475265025 https://twitter.com/Czaki_PL/status/1569636020475265025
[1]: https://haslab.github.io/SAFER/scp21.pdf https://haslab.github.io/SAFER/scp21.pdf
- ranguna 4y agoI really need to pickup on rust
- hither_shores 4y agoThe linked c code sample sorts the array, then accumulates the unique elements in a single pass. The python code sample makes a separate pass over `unique` for every element of `items`.
- Genmutant 4y agoThe python code also prints the resulting list in the same order. It's a completely different problem to solve. In python I would throw the list in a set and return the size of it / print that.