22
JAVASCRIPT AND PERFORMANCE
Running a computer program on a machine requires bridging the gap between the programming language and the machine’s own instruction format. This can be done by writing a program that interprets other programs, as we did in Chapter 11, but it’s usually done by compiling (translating) the program to machine code.
Some languages, such as the C and Rust programming languages, are designed to express roughly those things that the machine is good at. This makes them easy to compile efficiently. JavaScript is designed in a very different way, focusing on simplicity and ease of use. Almost none of the operations it lets you express correspond directly to features of the machine. That makes JavaScript a lot more difficult ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access