Ruby Under a Microscope Learning Ruby Internals Through Experiment

Gespeichert in:
Bibliographische Detailangaben
1. Verfasser: Shaughnessy, Pat (VerfasserIn)
Format: Elektronisch E-Book
Sprache:English
Veröffentlicht: San Francisco No Starch Press 2013
Schlagworte:
Online-Zugang:DE-1046
DE-1047
Volltext
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!

MARC

LEADER 00000nam a2200000zc 4500
001 BV043036433
003 DE-604
005 00000000000000.0
007 cr|uuu---uuuuu
008 151120s2013 xx o|||| 00||| eng d
020 |a 1593275617  |9 1-59327-561-7 
020 |a 9781593275617  |9 978-1-59327-561-7 
035 |a (OCoLC)865331728 
035 |a (DE-599)BVBBV043036433 
040 |a DE-604  |b ger  |e rda 
041 0 |a eng 
049 |a DE-1046  |a DE-1047 
082 0 |a 006.76 
082 0 |a 005.133 
100 1 |a Shaughnessy, Pat  |e Verfasser  |4 aut 
245 1 0 |a Ruby Under a Microscope  |b Learning Ruby Internals Through Experiment 
264 1 |a San Francisco  |b No Starch Press  |c 2013 
300 |a 1 online resource (362 pages) 
336 |b txt  |2 rdacontent 
337 |b c  |2 rdamedia 
338 |b cr  |2 rdacarrier 
500 |a Includes a Module into a Class 
500 |a Print version record 
505 8 |a Foreword; Acknowledgments; Introduction; Who This Book Is For; Using Ruby to Test Itself; Which Implementation of Ruby?; Overview; Chapter 1: Tokenization and Parsing; Roadmap; Tokens: The Words That Make Up the Ruby Language; The parser_yylex Function; Experiment 1-1: Using Ripper to Tokenize Different Ruby Scripts; Parsing: How Ruby Understands Your Code; Understanding the LALR Parse Algorithm; Some Actual Ruby Grammar Rules; Reading a Bison Grammar Rule; Experiment 1-2: Using Ripper to Parse Different Ruby Scripts; Summary; Chapter 2: Compilation; Roadmap; No Compiler for Ruby 1.8 
505 8 |a Ruby 1.9 and 2.0 Introduce a CompilerHow Ruby Compiles a Simple Script; Compiling a Call to a Block; How Ruby Iterates Through the AST; Experiment 2-1: Displaying YARV Instructions; The Local Table; Compiling Optional Arguments; Compiling Keyword Arguments; Experiment 2-2: Displaying the Local Table; Summary; Chapter 3: How Ruby Executes Your Code; Roadmap; YARV's Internal Stack and Your Ruby Stack; Stepping Through How Ruby Executes a Simple Script; Executing a Call to a Block; Taking a Close Look at a YARV Instruction; Experiment 3-1: Benchmarking Ruby 2.0 and Ruby 1.9 vs. Ruby 1.8 
505 8 |a Local and Dynamic Access of Ruby VariablesLocal Variable Access; Method Arguments Are Treated Like Local Variables; Dynamic Variable Access; Climbing the Environment Pointer Ladder in C; Experiment 3-2: Exploring Special Variables; A Definitive List of Special Variables; Summary; Chapter 4: Control Structures and Method Dispatch; Roadmap; How Ruby Executes an if Statement; Jumping from One Scope to Another; Catch Tables; Other Uses for Catch Tables; Experiment 4-1: Testing How Ruby Implements for Loops Internally; The send Instruction: Ruby's Most Complex Control Structure 
505 8 |a Method Lookup and Method DispatchEleven Types of Ruby Methods; Calling Normal Ruby Methods; Preparing Arguments for Normal Ruby Methods; Calling Built-In Ruby Methods; Calling attr_reader and attr_writer; Method Dispatch Optimizes attr_reader and attr_writer; Experiment 4-2: Exploring How Ruby Implements Keyword Arguments; Summary; Chapter 5: Objects and Classes; Roadmap; Inside a Ruby Object; Inspecting klass and ivptr; Visualizing Two Instances of One Class; Generic Objects; Simple Ruby Values Don't Require a Structure at All; Do Generic Objects Have Instance Variables? 
505 8 |a Reading the RBasic and RObject C Structure DefinitionsWhere Does Ruby Save Instance Variables for Generic Objects?; Experiment 5-1: How Long Does It Take to Save a New Instance Variable?; What's Inside the RClass Structure?; Inheritance; Class Instance Variables vs. Class Variables; Getting and Setting Class Variables; Constants; The Actual RClass Structure; Reading the RClass C Structure Definition; Experiment 5-2: Where Does Ruby Save Class Methods?; Summary; Chapter 6: Method Lookup and Constant Lookup; Roadmap; How Ruby Implements Modules; Modules Are Classes 
505 8 |a How Ruby Works Under the HoodRuby is a powerful programming language with a focus on simplicity, but beneath its elegant syntax it performs countless unseen tasks. Ruby Under a Microscope gives you a hands-on look at Ruby's core, using extensive diagrams and thorough explanations to show you how Ruby is implemented (no C skills required). Author Pat Shaughnessy takes a scientific approach, laying out a series of experiments with Ruby code to take you behind the scenes of how programming languages work. You'll even find information on JRuby and Rubinius (two alternative implementations of Ruby) 
650 4 |a Object-oriented programming (Computer science) 
650 4 |a Ruby (Computer program language) 
650 4 |a Web site development 
650 7 |a COMPUTERS / General  |2 bisacsh 
650 7 |a Ruby (Computer program language)  |2 fast 
650 4 |a Ruby (Computer program language) 
776 0 8 |i Erscheint auch als  |n Druck-Ausgabe  |a Shaughnessy, Pat  |t Ruby Under a Microscope : Learning Ruby Internals Through Experiment 
856 4 0 |u http://search.ebscohost.com/login.aspx?direct=true&scope=site&db=nlebk&db=nlabk&AN=667553  |x Aggregator  |3 Volltext 
912 |a ZDB-4-EBA 
943 1 |a oai:aleph.bib-bvb.de:BVB01-028461082 
966 e |u http://search.ebscohost.com/login.aspx?direct=true&scope=site&db=nlebk&db=nlabk&AN=667553  |l DE-1046  |p ZDB-4-EBA  |q FAW_PDA_EBA  |x Aggregator  |3 Volltext 
966 e |u http://search.ebscohost.com/login.aspx?direct=true&scope=site&db=nlebk&db=nlabk&AN=667553  |l DE-1047  |p ZDB-4-EBA  |q FAW_PDA_EBA  |x Aggregator  |3 Volltext 

Datensatz im Suchindex

_version_ 1819295280422453249
any_adam_object
author Shaughnessy, Pat
author_facet Shaughnessy, Pat
author_role aut
author_sort Shaughnessy, Pat
author_variant p s ps
building Verbundindex
bvnumber BV043036433
collection ZDB-4-EBA
contents Foreword; Acknowledgments; Introduction; Who This Book Is For; Using Ruby to Test Itself; Which Implementation of Ruby?; Overview; Chapter 1: Tokenization and Parsing; Roadmap; Tokens: The Words That Make Up the Ruby Language; The parser_yylex Function; Experiment 1-1: Using Ripper to Tokenize Different Ruby Scripts; Parsing: How Ruby Understands Your Code; Understanding the LALR Parse Algorithm; Some Actual Ruby Grammar Rules; Reading a Bison Grammar Rule; Experiment 1-2: Using Ripper to Parse Different Ruby Scripts; Summary; Chapter 2: Compilation; Roadmap; No Compiler for Ruby 1.8
Ruby 1.9 and 2.0 Introduce a CompilerHow Ruby Compiles a Simple Script; Compiling a Call to a Block; How Ruby Iterates Through the AST; Experiment 2-1: Displaying YARV Instructions; The Local Table; Compiling Optional Arguments; Compiling Keyword Arguments; Experiment 2-2: Displaying the Local Table; Summary; Chapter 3: How Ruby Executes Your Code; Roadmap; YARV's Internal Stack and Your Ruby Stack; Stepping Through How Ruby Executes a Simple Script; Executing a Call to a Block; Taking a Close Look at a YARV Instruction; Experiment 3-1: Benchmarking Ruby 2.0 and Ruby 1.9 vs. Ruby 1.8
Local and Dynamic Access of Ruby VariablesLocal Variable Access; Method Arguments Are Treated Like Local Variables; Dynamic Variable Access; Climbing the Environment Pointer Ladder in C; Experiment 3-2: Exploring Special Variables; A Definitive List of Special Variables; Summary; Chapter 4: Control Structures and Method Dispatch; Roadmap; How Ruby Executes an if Statement; Jumping from One Scope to Another; Catch Tables; Other Uses for Catch Tables; Experiment 4-1: Testing How Ruby Implements for Loops Internally; The send Instruction: Ruby's Most Complex Control Structure
Method Lookup and Method DispatchEleven Types of Ruby Methods; Calling Normal Ruby Methods; Preparing Arguments for Normal Ruby Methods; Calling Built-In Ruby Methods; Calling attr_reader and attr_writer; Method Dispatch Optimizes attr_reader and attr_writer; Experiment 4-2: Exploring How Ruby Implements Keyword Arguments; Summary; Chapter 5: Objects and Classes; Roadmap; Inside a Ruby Object; Inspecting klass and ivptr; Visualizing Two Instances of One Class; Generic Objects; Simple Ruby Values Don't Require a Structure at All; Do Generic Objects Have Instance Variables?
Reading the RBasic and RObject C Structure DefinitionsWhere Does Ruby Save Instance Variables for Generic Objects?; Experiment 5-1: How Long Does It Take to Save a New Instance Variable?; What's Inside the RClass Structure?; Inheritance; Class Instance Variables vs. Class Variables; Getting and Setting Class Variables; Constants; The Actual RClass Structure; Reading the RClass C Structure Definition; Experiment 5-2: Where Does Ruby Save Class Methods?; Summary; Chapter 6: Method Lookup and Constant Lookup; Roadmap; How Ruby Implements Modules; Modules Are Classes
How Ruby Works Under the HoodRuby is a powerful programming language with a focus on simplicity, but beneath its elegant syntax it performs countless unseen tasks. Ruby Under a Microscope gives you a hands-on look at Ruby's core, using extensive diagrams and thorough explanations to show you how Ruby is implemented (no C skills required). Author Pat Shaughnessy takes a scientific approach, laying out a series of experiments with Ruby code to take you behind the scenes of how programming languages work. You'll even find information on JRuby and Rubinius (two alternative implementations of Ruby)
ctrlnum (OCoLC)865331728
(DE-599)BVBBV043036433
dewey-full 006.76
005.133
dewey-hundreds 000 - Computer science, information, general works
dewey-ones 006 - Special computer methods
005 - Computer programming, programs, data, security
dewey-raw 006.76
005.133
dewey-search 006.76
005.133
dewey-sort 16.76
dewey-tens 000 - Computer science, information, general works
discipline Informatik
format Electronic
eBook
fullrecord <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>05454nam a2200517zc 4500</leader><controlfield tag="001">BV043036433</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">00000000000000.0</controlfield><controlfield tag="007">cr|uuu---uuuuu</controlfield><controlfield tag="008">151120s2013 xx o|||| 00||| eng d</controlfield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">1593275617</subfield><subfield code="9">1-59327-561-7</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9781593275617</subfield><subfield code="9">978-1-59327-561-7</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)865331728</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)BVBBV043036433</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield><subfield code="e">rda</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-1046</subfield><subfield code="a">DE-1047</subfield></datafield><datafield tag="082" ind1="0" ind2=" "><subfield code="a">006.76</subfield></datafield><datafield tag="082" ind1="0" ind2=" "><subfield code="a">005.133</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Shaughnessy, Pat</subfield><subfield code="e">Verfasser</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">Ruby Under a Microscope</subfield><subfield code="b">Learning Ruby Internals Through Experiment</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">San Francisco</subfield><subfield code="b">No Starch Press</subfield><subfield code="c">2013</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">1 online resource (362 pages)</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="b">c</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="b">cr</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="500" ind1=" " ind2=" "><subfield code="a">Includes a Module into a Class</subfield></datafield><datafield tag="500" ind1=" " ind2=" "><subfield code="a">Print version record</subfield></datafield><datafield tag="505" ind1="8" ind2=" "><subfield code="a">Foreword; Acknowledgments; Introduction; Who This Book Is For; Using Ruby to Test Itself; Which Implementation of Ruby?; Overview; Chapter 1: Tokenization and Parsing; Roadmap; Tokens: The Words That Make Up the Ruby Language; The parser_yylex Function; Experiment 1-1: Using Ripper to Tokenize Different Ruby Scripts; Parsing: How Ruby Understands Your Code; Understanding the LALR Parse Algorithm; Some Actual Ruby Grammar Rules; Reading a Bison Grammar Rule; Experiment 1-2: Using Ripper to Parse Different Ruby Scripts; Summary; Chapter 2: Compilation; Roadmap; No Compiler for Ruby 1.8</subfield></datafield><datafield tag="505" ind1="8" ind2=" "><subfield code="a">Ruby 1.9 and 2.0 Introduce a CompilerHow Ruby Compiles a Simple Script; Compiling a Call to a Block; How Ruby Iterates Through the AST; Experiment 2-1: Displaying YARV Instructions; The Local Table; Compiling Optional Arguments; Compiling Keyword Arguments; Experiment 2-2: Displaying the Local Table; Summary; Chapter 3: How Ruby Executes Your Code; Roadmap; YARV's Internal Stack and Your Ruby Stack; Stepping Through How Ruby Executes a Simple Script; Executing a Call to a Block; Taking a Close Look at a YARV Instruction; Experiment 3-1: Benchmarking Ruby 2.0 and Ruby 1.9 vs. Ruby 1.8</subfield></datafield><datafield tag="505" ind1="8" ind2=" "><subfield code="a">Local and Dynamic Access of Ruby VariablesLocal Variable Access; Method Arguments Are Treated Like Local Variables; Dynamic Variable Access; Climbing the Environment Pointer Ladder in C; Experiment 3-2: Exploring Special Variables; A Definitive List of Special Variables; Summary; Chapter 4: Control Structures and Method Dispatch; Roadmap; How Ruby Executes an if Statement; Jumping from One Scope to Another; Catch Tables; Other Uses for Catch Tables; Experiment 4-1: Testing How Ruby Implements for Loops Internally; The send Instruction: Ruby's Most Complex Control Structure</subfield></datafield><datafield tag="505" ind1="8" ind2=" "><subfield code="a">Method Lookup and Method DispatchEleven Types of Ruby Methods; Calling Normal Ruby Methods; Preparing Arguments for Normal Ruby Methods; Calling Built-In Ruby Methods; Calling attr_reader and attr_writer; Method Dispatch Optimizes attr_reader and attr_writer; Experiment 4-2: Exploring How Ruby Implements Keyword Arguments; Summary; Chapter 5: Objects and Classes; Roadmap; Inside a Ruby Object; Inspecting klass and ivptr; Visualizing Two Instances of One Class; Generic Objects; Simple Ruby Values Don't Require a Structure at All; Do Generic Objects Have Instance Variables?</subfield></datafield><datafield tag="505" ind1="8" ind2=" "><subfield code="a">Reading the RBasic and RObject C Structure DefinitionsWhere Does Ruby Save Instance Variables for Generic Objects?; Experiment 5-1: How Long Does It Take to Save a New Instance Variable?; What's Inside the RClass Structure?; Inheritance; Class Instance Variables vs. Class Variables; Getting and Setting Class Variables; Constants; The Actual RClass Structure; Reading the RClass C Structure Definition; Experiment 5-2: Where Does Ruby Save Class Methods?; Summary; Chapter 6: Method Lookup and Constant Lookup; Roadmap; How Ruby Implements Modules; Modules Are Classes</subfield></datafield><datafield tag="505" ind1="8" ind2=" "><subfield code="a">How Ruby Works Under the HoodRuby is a powerful programming language with a focus on simplicity, but beneath its elegant syntax it performs countless unseen tasks. Ruby Under a Microscope gives you a hands-on look at Ruby's core, using extensive diagrams and thorough explanations to show you how Ruby is implemented (no C skills required). Author Pat Shaughnessy takes a scientific approach, laying out a series of experiments with Ruby code to take you behind the scenes of how programming languages work. You'll even find information on JRuby and Rubinius (two alternative implementations of Ruby)</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Object-oriented programming (Computer science)</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Ruby (Computer program language)</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Web site development</subfield></datafield><datafield tag="650" ind1=" " ind2="7"><subfield code="a">COMPUTERS / General</subfield><subfield code="2">bisacsh</subfield></datafield><datafield tag="650" ind1=" " ind2="7"><subfield code="a">Ruby (Computer program language)</subfield><subfield code="2">fast</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Ruby (Computer program language)</subfield></datafield><datafield tag="776" ind1="0" ind2="8"><subfield code="i">Erscheint auch als</subfield><subfield code="n">Druck-Ausgabe</subfield><subfield code="a">Shaughnessy, Pat</subfield><subfield code="t">Ruby Under a Microscope : Learning Ruby Internals Through Experiment</subfield></datafield><datafield tag="856" ind1="4" ind2="0"><subfield code="u">http://search.ebscohost.com/login.aspx?direct=true&amp;scope=site&amp;db=nlebk&amp;db=nlabk&amp;AN=667553</subfield><subfield code="x">Aggregator</subfield><subfield code="3">Volltext</subfield></datafield><datafield tag="912" ind1=" " ind2=" "><subfield code="a">ZDB-4-EBA</subfield></datafield><datafield tag="943" ind1="1" ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-028461082</subfield></datafield><datafield tag="966" ind1="e" ind2=" "><subfield code="u">http://search.ebscohost.com/login.aspx?direct=true&amp;scope=site&amp;db=nlebk&amp;db=nlabk&amp;AN=667553</subfield><subfield code="l">DE-1046</subfield><subfield code="p">ZDB-4-EBA</subfield><subfield code="q">FAW_PDA_EBA</subfield><subfield code="x">Aggregator</subfield><subfield code="3">Volltext</subfield></datafield><datafield tag="966" ind1="e" ind2=" "><subfield code="u">http://search.ebscohost.com/login.aspx?direct=true&amp;scope=site&amp;db=nlebk&amp;db=nlabk&amp;AN=667553</subfield><subfield code="l">DE-1047</subfield><subfield code="p">ZDB-4-EBA</subfield><subfield code="q">FAW_PDA_EBA</subfield><subfield code="x">Aggregator</subfield><subfield code="3">Volltext</subfield></datafield></record></collection>
id DE-604.BV043036433
illustrated Not Illustrated
indexdate 2024-12-24T04:39:42Z
institution BVB
isbn 1593275617
9781593275617
language English
oai_aleph_id oai:aleph.bib-bvb.de:BVB01-028461082
oclc_num 865331728
open_access_boolean
owner DE-1046
DE-1047
owner_facet DE-1046
DE-1047
physical 1 online resource (362 pages)
psigel ZDB-4-EBA
ZDB-4-EBA FAW_PDA_EBA
publishDate 2013
publishDateSearch 2013
publishDateSort 2013
publisher No Starch Press
record_format marc
spelling Shaughnessy, Pat Verfasser aut
Ruby Under a Microscope Learning Ruby Internals Through Experiment
San Francisco No Starch Press 2013
1 online resource (362 pages)
txt rdacontent
c rdamedia
cr rdacarrier
Includes a Module into a Class
Print version record
Foreword; Acknowledgments; Introduction; Who This Book Is For; Using Ruby to Test Itself; Which Implementation of Ruby?; Overview; Chapter 1: Tokenization and Parsing; Roadmap; Tokens: The Words That Make Up the Ruby Language; The parser_yylex Function; Experiment 1-1: Using Ripper to Tokenize Different Ruby Scripts; Parsing: How Ruby Understands Your Code; Understanding the LALR Parse Algorithm; Some Actual Ruby Grammar Rules; Reading a Bison Grammar Rule; Experiment 1-2: Using Ripper to Parse Different Ruby Scripts; Summary; Chapter 2: Compilation; Roadmap; No Compiler for Ruby 1.8
Ruby 1.9 and 2.0 Introduce a CompilerHow Ruby Compiles a Simple Script; Compiling a Call to a Block; How Ruby Iterates Through the AST; Experiment 2-1: Displaying YARV Instructions; The Local Table; Compiling Optional Arguments; Compiling Keyword Arguments; Experiment 2-2: Displaying the Local Table; Summary; Chapter 3: How Ruby Executes Your Code; Roadmap; YARV's Internal Stack and Your Ruby Stack; Stepping Through How Ruby Executes a Simple Script; Executing a Call to a Block; Taking a Close Look at a YARV Instruction; Experiment 3-1: Benchmarking Ruby 2.0 and Ruby 1.9 vs. Ruby 1.8
Local and Dynamic Access of Ruby VariablesLocal Variable Access; Method Arguments Are Treated Like Local Variables; Dynamic Variable Access; Climbing the Environment Pointer Ladder in C; Experiment 3-2: Exploring Special Variables; A Definitive List of Special Variables; Summary; Chapter 4: Control Structures and Method Dispatch; Roadmap; How Ruby Executes an if Statement; Jumping from One Scope to Another; Catch Tables; Other Uses for Catch Tables; Experiment 4-1: Testing How Ruby Implements for Loops Internally; The send Instruction: Ruby's Most Complex Control Structure
Method Lookup and Method DispatchEleven Types of Ruby Methods; Calling Normal Ruby Methods; Preparing Arguments for Normal Ruby Methods; Calling Built-In Ruby Methods; Calling attr_reader and attr_writer; Method Dispatch Optimizes attr_reader and attr_writer; Experiment 4-2: Exploring How Ruby Implements Keyword Arguments; Summary; Chapter 5: Objects and Classes; Roadmap; Inside a Ruby Object; Inspecting klass and ivptr; Visualizing Two Instances of One Class; Generic Objects; Simple Ruby Values Don't Require a Structure at All; Do Generic Objects Have Instance Variables?
Reading the RBasic and RObject C Structure DefinitionsWhere Does Ruby Save Instance Variables for Generic Objects?; Experiment 5-1: How Long Does It Take to Save a New Instance Variable?; What's Inside the RClass Structure?; Inheritance; Class Instance Variables vs. Class Variables; Getting and Setting Class Variables; Constants; The Actual RClass Structure; Reading the RClass C Structure Definition; Experiment 5-2: Where Does Ruby Save Class Methods?; Summary; Chapter 6: Method Lookup and Constant Lookup; Roadmap; How Ruby Implements Modules; Modules Are Classes
How Ruby Works Under the HoodRuby is a powerful programming language with a focus on simplicity, but beneath its elegant syntax it performs countless unseen tasks. Ruby Under a Microscope gives you a hands-on look at Ruby's core, using extensive diagrams and thorough explanations to show you how Ruby is implemented (no C skills required). Author Pat Shaughnessy takes a scientific approach, laying out a series of experiments with Ruby code to take you behind the scenes of how programming languages work. You'll even find information on JRuby and Rubinius (two alternative implementations of Ruby)
Object-oriented programming (Computer science)
Ruby (Computer program language)
Web site development
COMPUTERS / General bisacsh
Ruby (Computer program language) fast
Erscheint auch als Druck-Ausgabe Shaughnessy, Pat Ruby Under a Microscope : Learning Ruby Internals Through Experiment
http://search.ebscohost.com/login.aspx?direct=true&scope=site&db=nlebk&db=nlabk&AN=667553 Aggregator Volltext
spellingShingle Shaughnessy, Pat
Ruby Under a Microscope Learning Ruby Internals Through Experiment
Foreword; Acknowledgments; Introduction; Who This Book Is For; Using Ruby to Test Itself; Which Implementation of Ruby?; Overview; Chapter 1: Tokenization and Parsing; Roadmap; Tokens: The Words That Make Up the Ruby Language; The parser_yylex Function; Experiment 1-1: Using Ripper to Tokenize Different Ruby Scripts; Parsing: How Ruby Understands Your Code; Understanding the LALR Parse Algorithm; Some Actual Ruby Grammar Rules; Reading a Bison Grammar Rule; Experiment 1-2: Using Ripper to Parse Different Ruby Scripts; Summary; Chapter 2: Compilation; Roadmap; No Compiler for Ruby 1.8
Ruby 1.9 and 2.0 Introduce a CompilerHow Ruby Compiles a Simple Script; Compiling a Call to a Block; How Ruby Iterates Through the AST; Experiment 2-1: Displaying YARV Instructions; The Local Table; Compiling Optional Arguments; Compiling Keyword Arguments; Experiment 2-2: Displaying the Local Table; Summary; Chapter 3: How Ruby Executes Your Code; Roadmap; YARV's Internal Stack and Your Ruby Stack; Stepping Through How Ruby Executes a Simple Script; Executing a Call to a Block; Taking a Close Look at a YARV Instruction; Experiment 3-1: Benchmarking Ruby 2.0 and Ruby 1.9 vs. Ruby 1.8
Local and Dynamic Access of Ruby VariablesLocal Variable Access; Method Arguments Are Treated Like Local Variables; Dynamic Variable Access; Climbing the Environment Pointer Ladder in C; Experiment 3-2: Exploring Special Variables; A Definitive List of Special Variables; Summary; Chapter 4: Control Structures and Method Dispatch; Roadmap; How Ruby Executes an if Statement; Jumping from One Scope to Another; Catch Tables; Other Uses for Catch Tables; Experiment 4-1: Testing How Ruby Implements for Loops Internally; The send Instruction: Ruby's Most Complex Control Structure
Method Lookup and Method DispatchEleven Types of Ruby Methods; Calling Normal Ruby Methods; Preparing Arguments for Normal Ruby Methods; Calling Built-In Ruby Methods; Calling attr_reader and attr_writer; Method Dispatch Optimizes attr_reader and attr_writer; Experiment 4-2: Exploring How Ruby Implements Keyword Arguments; Summary; Chapter 5: Objects and Classes; Roadmap; Inside a Ruby Object; Inspecting klass and ivptr; Visualizing Two Instances of One Class; Generic Objects; Simple Ruby Values Don't Require a Structure at All; Do Generic Objects Have Instance Variables?
Reading the RBasic and RObject C Structure DefinitionsWhere Does Ruby Save Instance Variables for Generic Objects?; Experiment 5-1: How Long Does It Take to Save a New Instance Variable?; What's Inside the RClass Structure?; Inheritance; Class Instance Variables vs. Class Variables; Getting and Setting Class Variables; Constants; The Actual RClass Structure; Reading the RClass C Structure Definition; Experiment 5-2: Where Does Ruby Save Class Methods?; Summary; Chapter 6: Method Lookup and Constant Lookup; Roadmap; How Ruby Implements Modules; Modules Are Classes
How Ruby Works Under the HoodRuby is a powerful programming language with a focus on simplicity, but beneath its elegant syntax it performs countless unseen tasks. Ruby Under a Microscope gives you a hands-on look at Ruby's core, using extensive diagrams and thorough explanations to show you how Ruby is implemented (no C skills required). Author Pat Shaughnessy takes a scientific approach, laying out a series of experiments with Ruby code to take you behind the scenes of how programming languages work. You'll even find information on JRuby and Rubinius (two alternative implementations of Ruby)
Object-oriented programming (Computer science)
Ruby (Computer program language)
Web site development
COMPUTERS / General bisacsh
Ruby (Computer program language) fast
title Ruby Under a Microscope Learning Ruby Internals Through Experiment
title_auth Ruby Under a Microscope Learning Ruby Internals Through Experiment
title_exact_search Ruby Under a Microscope Learning Ruby Internals Through Experiment
title_full Ruby Under a Microscope Learning Ruby Internals Through Experiment
title_fullStr Ruby Under a Microscope Learning Ruby Internals Through Experiment
title_full_unstemmed Ruby Under a Microscope Learning Ruby Internals Through Experiment
title_short Ruby Under a Microscope
title_sort ruby under a microscope learning ruby internals through experiment
title_sub Learning Ruby Internals Through Experiment
topic Object-oriented programming (Computer science)
Ruby (Computer program language)
Web site development
COMPUTERS / General bisacsh
Ruby (Computer program language) fast
topic_facet Object-oriented programming (Computer science)
Ruby (Computer program language)
Web site development
COMPUTERS / General
url http://search.ebscohost.com/login.aspx?direct=true&scope=site&db=nlebk&db=nlabk&AN=667553
work_keys_str_mv AT shaughnessypat rubyunderamicroscopelearningrubyinternalsthroughexperiment