From the moment you open up a website in your browser multiple virtual machines (VMs) are at work. The server generating the website might use Java, your browser executes JavaScript and maybe there is some Flash content running — with everything being executed in a VM.
Virtual machines became increasingly important and popular after Google’s introduction of V8. We expect our code to run fast but let’s step back for a second and see how these complicated pieces of software work. With a better understanding of how your daily ActionScript or JavaScript code is being executed you might start coding a little different.
Join Joa and dive deep into the the world of virtual machines. Learn about different garbage collection strategies and understand why those beasts behave the way they do.
16. „A machine is a
tool that consists
of one or more
parts, and uses
energy to achieve
a particular goal.“
WIKIPEDIA
17. „A virtual machine (VM)
is a simulation of a machine
(abstract or real) that is
usually different from the
target machine (where it is
being simulated on).“ WIKIPEDIA
32. age
Person Person
26 age
function Person(age, gender) {
this.age = age
this.gender = gender
}
var joa = new Person(26, „male“)
33. age gender
Person Person Person
26 age age
0x80f54644 gender
function Person(age, gender) {
this.age = age
this.gender = gender
}
var joa = new Person(26, „male“)