News for hackers. Stuff that matters.
Re:My time with Rails is up by smitherfield on Sunday May 22, 2016 @03:27PM (#11749880)
>There was a recent article about Julia that discussed how a printf in C translate to very few instructions in assembler.

I wouldn't doubt it; compilers have become amazing at optimizing. But printf is hundreds of lines of C, at very least: http://opensource.apple.com//source/Libc/Libc-1082.20.4/stdi...

Re:My time with Rails is up by narag on Sunday May 22, 2016 @05:47PM (#11750427)
Well, hundreds is not the same as thousands ;-)

And most important, a call is not the same as the implementation of the called function, my point to begin with, please see my comment in the context of yours.

Re:My time with Rails is up by smitherfield on Sunday May 22, 2016 @07:22PM (#11750725)
Per cloc it's actually 1093 lines of C (plus some more in the printf.c file), and generally speaking hundreds of lines of C is the equivalent of thousands of lines of assembly.

In any case, the complexity of the called function is exactly what we're discussing — it's why the author objects to "User.create(params[:user])"