SlideShare a Scribd company logo
Stéphane Ducasse 1
Stéphane Ducasse
stephane.ducasse@inria.fr
http://stephane.ducasse.free.fr/
Run-Time...
S.Ducasse 2
Smalltalk Run-Time Architecture
• Virtual Machine + Image + Changes and Sources
• Image = bytecodes
• Sources and changes = code (text)
A bytethe vir
IMAGE2IMAGE2StandShar
IMAGE1.IMAGE1.
All the objeat a momen
One per us
+
S.Ducasse 3
Does and Dont
Do not edit the source files by hand
Do not lose your change file (it contains your code)
You cannot lose code (if you keep the change file)
Always use Smalltalk to save your code
Always use Smalltalk to rename your environment
S.Ducasse 4
All your changes are recorded
So have a lot at the changes sorter and change recovery
tools suite of your dialect.
You should not lose code.
S.Ducasse 5
Smalltalk Run-Time Architecture
• The byte-code is in fact translated into native code by a
just-in-time compiler (inVW, ST/X)
• The source and the changes are not necessary for
interpreting the byte-code, this is just for the
development. Normally they are removed for
deployment.
• An application can be delivered as some byte-code files
that will be executed with aVM.The development image
is stripped to remove the unnecessary development
components.
S.Ducasse 6
VWorks Smalltalk Run-Time Architecture
Sources
Shared by everybody
VM
byte code of all the objects Source of all the objects
piece of image (byte code) piece of source (text)
Image
currently in memory
Change
currently in memory
User 1
User 2
VM
Image Change
Parcel(pcl) Parcel(pst)
S.Ducasse 7
VWorks Runtime Architecture
Parcels reproduce the schema of the image and change:
*.pcl are the byte code, *.pst are the source code
Parcels allows for fast atomic loading/unloading and
prerequisite parcels
Good for dynamic loading and source code management

More Related Content

PPT
4 - OOP - Taste of Smalltalk (VisualWorks)
PDF
Namespaces in Linux
PDF
Lightweight Virtualization: LXC containers & AUFS
PDF
Docker 1 0 1 0 1: a Docker introduction, actualized for the stable release of...
PDF
Let's Containerize New York with Docker!
PDF
Node.js at Joyent: Engineering for Production
PDF
05 seaside canvas
4 - OOP - Taste of Smalltalk (VisualWorks)
Namespaces in Linux
Lightweight Virtualization: LXC containers & AUFS
Docker 1 0 1 0 1: a Docker introduction, actualized for the stable release of...
Let's Containerize New York with Docker!
Node.js at Joyent: Engineering for Production
05 seaside canvas

Similar to 3 - OOP - Runtime (7)

PPT
3 - OOP - VisualWorks (a)
PPT
3 - OOP - VisualWorks (b)
PPT
3 - OOP - Squeak
PDF
Pharo Hands-On: 04 image-runtime
PDF
Choose'10: Stephane Ducasse - Powerful DSL engineering in Smalltalk
PDF
20080115 04 - La qualimétrie pour comprendre et appréhender les SI
PPT
Stoop 305-reflective programming5
3 - OOP - VisualWorks (a)
3 - OOP - VisualWorks (b)
3 - OOP - Squeak
Pharo Hands-On: 04 image-runtime
Choose'10: Stephane Ducasse - Powerful DSL engineering in Smalltalk
20080115 04 - La qualimétrie pour comprendre et appréhender les SI
Stoop 305-reflective programming5
Ad

More from The World of Smalltalk (20)

PPT
PPT
12 virtualmachine
PPT
PPT
10 reflection
PPT
09 metaclasses
PPT
08 refactoring
PPT
07 bestpractice
PPT
PPT
PPT
03 standardclasses
PPT
Stoop sed-smells
PPT
Stoop sed-sharing ornot
PPT
Stoop sed-class initialization
PPT
Stoop sed-class initialization
PPT
Stoop metaclasses
PPT
Stoop ed-unit ofreuse
12 virtualmachine
10 reflection
09 metaclasses
08 refactoring
07 bestpractice
03 standardclasses
Stoop sed-smells
Stoop sed-sharing ornot
Stoop sed-class initialization
Stoop sed-class initialization
Stoop metaclasses
Stoop ed-unit ofreuse
Ad

Recently uploaded (20)

PPTX
Cell Structure & Organelles in detailed.
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Trump Administration's workforce development strategy
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Orientation - ARALprogram of Deped to the Parents.pptx
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PPTX
master seminar digital applications in india
PDF
Yogi Goddess Pres Conference Studio Updates
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PPTX
Pharma ospi slides which help in ospi learning
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Final Presentation General Medicine 03-08-2024.pptx
Cell Structure & Organelles in detailed.
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Trump Administration's workforce development strategy
Chinmaya Tiranga quiz Grand Finale.pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Anesthesia in Laparoscopic Surgery in India
Orientation - ARALprogram of Deped to the Parents.pptx
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
Computing-Curriculum for Schools in Ghana
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
master seminar digital applications in india
Yogi Goddess Pres Conference Studio Updates
Abdominal Access Techniques with Prof. Dr. R K Mishra
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
Pharma ospi slides which help in ospi learning
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Final Presentation General Medicine 03-08-2024.pptx

3 - OOP - Runtime

  • 1. Stéphane Ducasse 1 Stéphane Ducasse stephane.ducasse@inria.fr http://stephane.ducasse.free.fr/ Run-Time...
  • 2. S.Ducasse 2 Smalltalk Run-Time Architecture • Virtual Machine + Image + Changes and Sources • Image = bytecodes • Sources and changes = code (text) A bytethe vir IMAGE2IMAGE2StandShar IMAGE1.IMAGE1. All the objeat a momen One per us +
  • 3. S.Ducasse 3 Does and Dont Do not edit the source files by hand Do not lose your change file (it contains your code) You cannot lose code (if you keep the change file) Always use Smalltalk to save your code Always use Smalltalk to rename your environment
  • 4. S.Ducasse 4 All your changes are recorded So have a lot at the changes sorter and change recovery tools suite of your dialect. You should not lose code.
  • 5. S.Ducasse 5 Smalltalk Run-Time Architecture • The byte-code is in fact translated into native code by a just-in-time compiler (inVW, ST/X) • The source and the changes are not necessary for interpreting the byte-code, this is just for the development. Normally they are removed for deployment. • An application can be delivered as some byte-code files that will be executed with aVM.The development image is stripped to remove the unnecessary development components.
  • 6. S.Ducasse 6 VWorks Smalltalk Run-Time Architecture Sources Shared by everybody VM byte code of all the objects Source of all the objects piece of image (byte code) piece of source (text) Image currently in memory Change currently in memory User 1 User 2 VM Image Change Parcel(pcl) Parcel(pst)
  • 7. S.Ducasse 7 VWorks Runtime Architecture Parcels reproduce the schema of the image and change: *.pcl are the byte code, *.pst are the source code Parcels allows for fast atomic loading/unloading and prerequisite parcels Good for dynamic loading and source code management