Determine & choose the best programming language

By Mateusz, 4 September, 2024

Determine & choose the best programming language

Programming languages vary in how fast and how efficiently they run the same algorithms; therefore, users should carefully decide the programming languages whenever it is possible. According to research (R. Pereira et al., 2021) the best languages for it were C, Rust, C++, Ada, and Java. 

These languages would need less energy and time compared to other less efficient languages, example of it can be popular sorting algorithms such as MergeSort where C ran sample data in 6ms while using only 0.03J where Python 83ms and used 1.14J. Another example could be when running Remove-duplicates, C achieved it in 10ms while using 0.14J where Python 206ms using 4.93J. Both results are small, but they would scale with the size of the project and will significantly impact energy used. 

 

References

Pereira, R. et al. (2021) “Ranking programming languages by energy efficiency,” Science of Computer Programming, 205. Available at: https://doi.org/10.1016/j.scico.2021.102609.