Hardware and Software Solutions for Energy-Efficient Computing in Scientific Programming