News for hackers. Stuff that matters.
Re:Energy Efficiency Across Programming Languages by mac01021 on Thursday September 14, 2017 @09:11PM (#15253817)
But why should it's memory utilization be so much lower?

Pascal and C give the programmer basically the same control over memory layout, no?

Re:Energy Efficiency Across Programming Languages by subwayclub on Friday September 15, 2017 @01:10AM (#15254803)
Basically, C's semantics assume too little - everything is a primitive type or a pointer dressed up to look like something else. Pascal has a stronger notion of types and this allows for additional automatic optimization where they're relevant - memory layout just happens to be one such area.
Re:Energy Efficiency Across Programming Languages by addHocker on Friday September 15, 2017 @05:45AM (#15255834)
I miss the ability to pair structures as "antagonistic" - aka if one exists the other is not, thus allowing for unions of various datatypes who guarantee that if they exist- the shared memory they reside in is theirs and theirs alone.
Re:Energy Efficiency Across Programming Languages by dmytrish on Friday September 15, 2017 @05:34AM (#15255788)
Just a wild guess: Pascal may use tightly packed structures without alignment by default?