News for hackers. Stuff that matters.
Re:Ruby 2.6.0-preview2 released with JIT by saagarjha on Sunday June 03, 2018 @10:11PM (#17223992)
> The Ruby developers get highly-optimized machine code, with relatively little effort on their part. Many, many man-years have been spent to make C compilers generate highly optimal code.

Not for machine generated code. C compilers work well on human generated code, and not as well as Ruby -> C "translations".

Re:Ruby 2.6.0-preview2 released with JIT by dwheeler on Monday June 04, 2018 @05:26PM (#17232669)
> Not for machine generated code. C compilers work well on human generated code, and not as well as Ruby -> C "translations".

That depends on the machine generated code. C compilers are optimized for whatever the C compiler authors perceive as a common construct. If the generated C code uses constructs similar to what humans do, it's often quite good. If not, you can change the code that generates C, or in some cases you can convince the C compiler authors to optimize that situation as well.