Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C Is Not a Low-level Language. Your computer is not a fast PDP-11

Name: Anonymous 2018-10-18 20:01

For a language to be "close to the metal," it must provide an abstract machine that maps easily to the abstractions exposed by the target platform. It's easy to argue that C was a low-level language for the PDP-11.

it is possible to make C code run quickly but only by spending thousands of person-years building a sufficiently smart compiler—and even then, only if you violate some of the language rules. Compiler writers let C programmers pretend that they are writing code that is "close to the metal" but must then generate machine code that has very different behavior if they want C programmers to keep believing that they are using a fast language.

https://queue.acm.org/detail.cfm?id=3212479

Name: Anonymous 2018-10-20 13:04

ln(1+x) = x - x^2/2 + x^3/3 ...
ln(2) = 1 - 1/2 + 1/3 - 1/4 + 1/5 ...

x - x^2/2 + x^3/3 ...
log2(x+1) = ------------------------------
1 - 1/2 + 1/3 - 1/4 + 1/5 ...

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List