SlideShare una empresa de Scribd logo
1 de 77
hey



Wednesday, February 18, 2009
Marc-André Cournoyer
                               Certified RMM Auditor




Wednesday, February 18, 2009
VM
Wednesday, February 18, 2009
Plan
                               1. Make Presentation
                               2. ???
                               3. Profit

Wednesday, February 18, 2009
VM
Wednesday, February 18, 2009
JVM
Wednesday, February 18, 2009
JVM
                               (c) Threadless


Wednesday, February 18, 2009
M$
Wednesday, February 18, 2009
CLR
Wednesday, February 18, 2009
Lua
Wednesday, February 18, 2009
Wednesday, February 18, 2009
Python
Wednesday, February 18, 2009
Ruby 1.9
Wednesday, February 18, 2009
Rubinius
Wednesday, February 18, 2009
VMs



Wednesday, February 18, 2009
VMs
              are




Wednesday, February 18, 2009
VMs
              are
                           like



Wednesday, February 18, 2009
VMs
              are
                           like



Wednesday, February 18, 2009
#TODO insert philosophical
               #     explanation here




Wednesday, February 18, 2009
VMs



Wednesday, February 18, 2009
VMs
              are




Wednesday, February 18, 2009
VMs
              are
                          not




Wednesday, February 18, 2009
VMs
              are
                        not
                       that



Wednesday, February 18, 2009
VMs
              are
                               Complex
                        not
                       that



Wednesday, February 18, 2009
but




Wednesday, February 18, 2009
butnobody




Wednesday, February 18, 2009
butnobody
                               wants
Wednesday, February 18, 2009
Youwants              butnobody




Wednesday, February 18, 2009
Youwants                    butnobody

                               to know


Wednesday, February 18, 2009
Youwants                    butnobody

            it                 to know


Wednesday, February 18, 2009
Wednesday, February 18, 2009
Wednesday, February 18, 2009
ZOMG MATZ!!!!
                       *faints*

Wednesday, February 18, 2009
hey




                    ZOMG MATZ!!!!
                       *faints*

Wednesday, February 18, 2009
hey
                                    Guaranteed!




                    ZOMG MATZ!!!!
                       *faints*

Wednesday, February 18, 2009
Rubinius

Wednesday, February 18, 2009
Rubinius is a

Wednesday, February 18, 2009
Rubinius is a
                    semi-self




Wednesday, February 18, 2009
Rubinius is a
                    semi-self
                    hosted




Wednesday, February 18, 2009
Rubinius is a
                    stackless spaghetti
                    semi-self
                    hosted




Wednesday, February 18, 2009
Rubinius is a
                    stackless spaghetti
                    semi-self
                    hosted
                   stack based
                   stack
                   stack




Wednesday, February 18, 2009
Rubinius is a
                    stackless spaghetti
                    semi-self




                                 VM
                    hosted
                   stack based
                   stack
                   stack




Wednesday, February 18, 2009
Rubinius is a
                    stackless spaghetti
                    semi-self




                                    VM
                    hosted
                   stack based
                   stack
                   stack with direct .
                      threaded dispatch



Wednesday, February 18, 2009
Rubinius is a
                    stackless spaghetti
                    semi-self




                                    VM
                    hosted
                   stack based
                   stack
                   stack with direct .
                      threaded dispatch
                     monomorphic inline cache

Wednesday, February 18, 2009
Rubinius is a
                    stackless spaghetti
                    semi-self




                                     VM
                    hosted
                   stack based
                   stack
                   stack with direct .
                      threaded dispatch
                     monomorphic inline cache
                     generational
                                    GC
Wednesday, February 18, 2009
Rubinius is a
                    stackless spaghetti
                    semi-self




                                             VM
                    hosted
                   stack based
                   stack
                   stack with direct .
                      threaded dispatch
                     monomorphic inline cache
                                    mark & sweep
                     generational
                                    GC
Wednesday, February 18, 2009
Rubinius is a
                    stackless spaghetti
                    semi-self




                                             VM
                    hosted
                   stack based
                   stack
                   stack with direct .
                      threaded dispatch
                     monomorphic inline cache
                                       ollector
                                    mark & sweep
                     generational
                                    GC
Wednesday, February 18, 2009
Wednesday, February 18, 2009
no



Wednesday, February 18, 2009
(rly)




Wednesday, February 18, 2009
“new”




Wednesday, February 18, 2009
“new”
             stuff


Wednesday, February 18, 2009
Rubinius
         “new”
             stuff


Wednesday, February 18, 2009
Wednesday, February 18, 2009
1969


Wednesday, February 18, 2009
Wednesday, February 18, 2009
Wednesday, February 18, 2009
Rey Mendoza Jr.




Wednesday, February 18, 2009
you = quot;smellquot;
                               if x == 1
                                 puts you
                               end




Wednesday, February 18, 2009
Wednesday, February 18, 2009
you = quot;smellquot;
                               if x == 1
                                 puts you
                               end
                                   Lexer


               [:id,quot;youquot;],[:=],[:str,quot;smellquot;],[:newln],
               [:if],[:id,quot;xquot;],[:==],[:int,1],[:newln],
                 [:id,quot;putsquot;],[:id,quot;youquot;],[:newln],
               [:end]




Wednesday, February 18, 2009
Wednesday, February 18, 2009
[:id,quot;youquot;],[:=],[:str,quot;smellquot;],[:newln],
                     [:if],[:id,quot;xquot;],[:==],[:int,1],[:newln],
                       [:id,quot;putsquot;],[:id,quot;youquot;],[:newln],
                     [:end]

                                          Parser


                         s(:block,
                          s(:lasgn, :you, s(:str, quot;smellquot;)),
                          s(:if, s(:call, s(:vcall, :x), :==,
                           s(:array, s(:lit, 1))),
                            s(:fcall, :puts,
                             s(:array, s(:lvar, :you))), nil))


Wednesday, February 18, 2009
Wednesday, February 18, 2009
s(:block,
                          s(:lasgn, :you, s(:str, quot;smellquot;)),
                          s(:if, s(:call, s(:vcall, :x), :==,
                           s(:array, s(:lit, 1))),
                            s(:fcall, :puts,
                             s(:array, s(:lvar, :you))), nil))


                                                 Compiler


                               019   000   002   002   015   046   001   000
                               000   024   000   018   001   046   002   001
                               000   000   000   054   003   001   002   046
                               004   001   000   008   000   049   003   049




Wednesday, February 18, 2009
0000   putstring      quot;smellquot;
                               0002   setlocal       you
                               0004   putnil
                               0005   send           :x, 0
                               0011   putobject      1
                               0013   send           :==, 1
                               0019   branchunless   31
                               0021   putnil
                               0022   getlocal       you
                               0024   send           :puts, 1
                               0030   leave
                               0031   putnil
                               0032   leave



Wednesday, February 18, 2009
0004 putnil
0005 send                      :x, 0
0011 putobject                 1
0013 send                      :==, 1
0019 branchunless 31
0021 putnil
0022 getlocal                  you
Wednesday, February 18, 2009
0004 putnil
0005 send                               :x, 0
0011 putobject                          1
                               opcode   operands
instruction
0013 send                               :==, 1
0019 branchunless 31
0021 putnil
0022 getlocal                           you
Wednesday, February 18, 2009
puts 1 + 2



                                                         stack
                               putobject   1
                               putobject   2
                               send        :+, 1, 0
                               send        :puts, 1, 8




Wednesday, February 18, 2009
puts 1 + 2



                                                         stack
                               putobject   1
                               putobject   2
                               send        :+, 1, 0
                               send        :puts, 1, 8




Wednesday, February 18, 2009
puts 1 + 2



                                                         stack
                               putobject   1               1
                               putobject   2
                               send        :+, 1, 0
                               send        :puts, 1, 8




Wednesday, February 18, 2009
puts 1 + 2



                                                         stack
                               putobject   1               2
                                                           1
                               putobject   2               1
                               send        :+, 1, 0
                               send        :puts, 1, 8




Wednesday, February 18, 2009
puts 1 + 2



                                                         stack
                               putobject   1               3
                                                           2
                                                           1
                               putobject   2               1
                               send        :+, 1, 0
                               send        :puts, 1, 8




Wednesday, February 18, 2009
puts 1 + 2



                                                         stack
                               putobject   1              nil
                                                           3
                                                           2
                                                           1
                               putobject   2               1
                               send        :+, 1, 0
                               send        :puts, 1, 8




                                            3

Wednesday, February 18, 2009
while (true) {
                                 switch (inst->op) {
                                   case SEND: ...
                                   case PUTOBJECT: ...
                                   case PUTSTRING: ...
                                   case PUTNIL: ...
                                   case SETLOCAL: ...
                                   case GETLOCAL: ...
                                   case RETURN: return;
                                 }
                                 inst++;
                               }


Wednesday, February 18, 2009
github.com/macournoyer/tinyrb
                                    #tinyrb on freenode




Wednesday, February 18, 2009
thx


Wednesday, February 18, 2009

Más contenido relacionado

Último

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Último (20)

MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 

Destacado

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Destacado (20)

Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 

VMs are not that complex (rly)

Notas del editor