{"id":8194,"date":"2022-09-12T09:43:38","date_gmt":"2022-09-12T04:13:38","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-ruby-book-recommendations-for-how-it-works-under-the-hood-closed\/"},"modified":"2022-09-12T09:43:38","modified_gmt":"2022-09-12T04:13:38","slug":"solved-ruby-book-recommendations-for-how-it-works-under-the-hood-closed","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-ruby-book-recommendations-for-how-it-works-under-the-hood-closed\/","title":{"rendered":"[Solved] Ruby Book recommendations for how it works under the hood? [closed]"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-30309517\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"30309517\" data-parentid=\"30306826\" data-score=\"0\" data-position-on-page=\"1\" data-highest-scored=\"1\" data-question-has-accepted-highest-score=\"1\" itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<div class=\"post-layout\">\n<div class=\"votecell post-layout--left\"><\/div>\n<div class=\"answercell post-layout--right\">\n<div class=\"s-prose js-post-body\" itemprop=\"text\">\n<p>There is no &#8220;the interpreter&#8221; in Ruby. Ruby is programming language, a programming language is an abstract mathematical object, a set of logical rules and restrictions.<\/p>\n<p>There is an <a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/www.iso.org\/iso\/iso_catalogue\/catalogue_tc\/catalogue_detail.htm?csnumber=59579\">ISO specification<\/a> for a subset of Ruby. There used to be a comprehensive set of executable examples written in Ruby, called <a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/rubyspec.org\/\">RubySpec<\/a>, but unfortunately, it was abandoned by its maintainers because of a lack of buy-in by the language designers of Ruby; however, several implementations still use it internally for their testing, e.g. <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/github.com\/rubinius\/rubinius\/tree\/master\/spec\/ruby\/\">Rubinius<\/a> and <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/github.com\/jruby\/jruby\/tree\/master\/spec\/ruby\/\">JRuby<\/a>. There is also a set of tests that are meant to specify the behavior of the language in the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/github.com\/ruby\/ruby\/tree\/trunk\/test\/\">YARV<\/a> implementation, which is the implementation that most of the language designers are hacking on.<\/p>\n<p>There are several implementations of Ruby, however, none of those implementations is an interpreter, all of them have at least one, some multiple compilers:<\/p>\n<ul>\n<li><a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/Rubini.us\/\">Rubinius<\/a>, a two-stage mixed-mode implementation consisting of a Ruby-to-bytecode-compiler written in Ruby, a kernel and core libraries written in Ruby, and a VM written in C++ with a bytecode interpreter and an LLVM-based JIT compiler.<\/li>\n<li><a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/topazruby.com\/\">Topaz<\/a>, a two-stage mixed-mode implementation built with the PyPy framework consisting of a Ruby-to-bytecode compiler and a VM with bytecode interpreter and JIT compiler written in RPython, and a kernel and core library partially derived from Rubinius.<\/li>\n<li><a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/maglev.github.io\/\">MagLev<\/a>, a two-stage mixed-mode implementation built on top of the GemStone\/S Smalltalk platform consisting of a Ruby-to-bytecode compiler and a more or less unmodified GemStone\/S Smalltalk VM.<\/li>\n<li><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/github.com\/IronLanguages\/main\/\">IronRuby<\/a>, a two-stage mixed-mode implementation built on top of Microsoft&#8217;s Dynamic Language Runtime and Common Language Infrastructure, written in C#.<\/li>\n<li><a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/chrisseaton.com\/rubytruffle\/\">JRuby+Truffle<\/a>, a new implementation of Ruby based on JRuby and the Truffle AST interpreter framework.<\/li>\n<li><a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/jruby.org\/\">JRuby<\/a>, a two-stage mixed-mode implementation built on top of the Java platform, written in Java.<\/li>\n<li><a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/mruby.org\/\">MRuby<\/a>, a small, lightweight, embeddable implementation of a subset of the ISO Ruby specification. (This is the implementation that the creator of Ruby is working on himself.)<\/li>\n<li><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/github.com\/ruby\/ruby\/\">YARV<\/a>, a two-stage implementation consisting on a Ruby-to-bytecode compiler and a bytecode interpreter, as well as a core library, all written in C.<\/li>\n<li><a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/opalrb.org\/\">Opal<\/a> is a Ruby-to-ECMASCript compiler, which unfortunately does not 100% accurately implement the semantics of the Ruby language.<\/li>\n<\/ul>\n<p>I have tried to order them from easiest to hardest readable sourcecode, and incidentally also (almost) from most to least interesting. (I think JRuby+Truffle is extremely awesome and should be right up there with Rubinius and Topaz when it comes to interesting ideas about how to make Ruby blazing fast.)<\/p>\n<p>The reason why I ordered them from easiest to hardest readable sourcecode is because, well, there really aren&#8217;t any books that describe the various implementations. Reading the source is probably your best bet. However, the classic <a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/stephane.ducasse.free.fr\/FreeBooks\/BlueBook\/Bluebook.pdf\">Smalltalk-80: The Language and its Implementation (aka the Blue Book)<\/a> was a heavy inspiration for the design of Rubinius. JRuby+Truffle, being a research project, has had a fair number of papers published, though.<\/p>\n<p>There&#8217;s a <a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/rubybib.org\/\">Ruby Bibliography Page<\/a> which has some links to papers, mainly about JRuby+Truffle, but also about MagLev and JRuby.<\/p>\n<\/p><\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\"><\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved Ruby Book recommendations for how it works under the hood? [closed] <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] There is no &#8220;the interpreter&#8221; in Ruby. Ruby is programming language, a programming language is an abstract mathematical object, a set of logical rules and restrictions. There is an ISO specification for a subset of Ruby. There used to be a comprehensive set of executable examples written in Ruby, called RubySpec, but unfortunately, it &#8230; <a title=\"[Solved] Ruby Book recommendations for how it works under the hood? [closed]\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-ruby-book-recommendations-for-how-it-works-under-the-hood-closed\/\" aria-label=\"More on [Solved] Ruby Book recommendations for how it works under the hood? [closed]\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[455],"class_list":["post-8194","post","type-post","status-publish","format-standard","hentry","category-solved","tag-ruby"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[Solved] Ruby Book recommendations for how it works under the hood? [closed] - JassWeb<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jassweb.com\/solved\/solved-ruby-book-recommendations-for-how-it-works-under-the-hood-closed\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] Ruby Book recommendations for how it works under the hood? [closed] - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] There is no &#8220;the interpreter&#8221; in Ruby. Ruby is programming language, a programming language is an abstract mathematical object, a set of logical rules and restrictions. There is an ISO specification for a subset of Ruby. There used to be a comprehensive set of executable examples written in Ruby, called RubySpec, but unfortunately, it ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-ruby-book-recommendations-for-how-it-works-under-the-hood-closed\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-12T04:13:38+00:00\" \/>\n<meta name=\"author\" content=\"Kirat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kirat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-ruby-book-recommendations-for-how-it-works-under-the-hood-closed\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-ruby-book-recommendations-for-how-it-works-under-the-hood-closed\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] Ruby Book recommendations for how it works under the hood? [closed]\",\"datePublished\":\"2022-09-12T04:13:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-ruby-book-recommendations-for-how-it-works-under-the-hood-closed\/\"},\"wordCount\":534,\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"keywords\":[\"ruby\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-ruby-book-recommendations-for-how-it-works-under-the-hood-closed\/\",\"url\":\"https:\/\/jassweb.com\/solved\/solved-ruby-book-recommendations-for-how-it-works-under-the-hood-closed\/\",\"name\":\"[Solved] Ruby Book recommendations for how it works under the hood? [closed] - JassWeb\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#website\"},\"datePublished\":\"2022-09-12T04:13:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-ruby-book-recommendations-for-how-it-works-under-the-hood-closed\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jassweb.com\/solved\/solved-ruby-book-recommendations-for-how-it-works-under-the-hood-closed\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-ruby-book-recommendations-for-how-it-works-under-the-hood-closed\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jassweb.com\/solved\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] Ruby Book recommendations for how it works under the hood? [closed]\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jassweb.com\/solved\/#website\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"name\":\"JassWeb\",\"description\":\"Build High-quality Websites\",\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jassweb.com\/solved\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\",\"name\":\"Jass Web\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"contentUrl\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"width\":693,\"height\":132,\"caption\":\"Jass Web\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\",\"name\":\"Kirat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750\",\"contentUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\/\/jassweb.com\"],\"url\":\"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] Ruby Book recommendations for how it works under the hood? [closed] - JassWeb","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jassweb.com\/solved\/solved-ruby-book-recommendations-for-how-it-works-under-the-hood-closed\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] Ruby Book recommendations for how it works under the hood? [closed] - JassWeb","og_description":"[ad_1] There is no &#8220;the interpreter&#8221; in Ruby. Ruby is programming language, a programming language is an abstract mathematical object, a set of logical rules and restrictions. There is an ISO specification for a subset of Ruby. There used to be a comprehensive set of executable examples written in Ruby, called RubySpec, but unfortunately, it ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-ruby-book-recommendations-for-how-it-works-under-the-hood-closed\/","og_site_name":"JassWeb","article_published_time":"2022-09-12T04:13:38+00:00","author":"Kirat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirat","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-ruby-book-recommendations-for-how-it-works-under-the-hood-closed\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-ruby-book-recommendations-for-how-it-works-under-the-hood-closed\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] Ruby Book recommendations for how it works under the hood? [closed]","datePublished":"2022-09-12T04:13:38+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-ruby-book-recommendations-for-how-it-works-under-the-hood-closed\/"},"wordCount":534,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"keywords":["ruby"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-ruby-book-recommendations-for-how-it-works-under-the-hood-closed\/","url":"https:\/\/jassweb.com\/solved\/solved-ruby-book-recommendations-for-how-it-works-under-the-hood-closed\/","name":"[Solved] Ruby Book recommendations for how it works under the hood? [closed] - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"datePublished":"2022-09-12T04:13:38+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-ruby-book-recommendations-for-how-it-works-under-the-hood-closed\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-ruby-book-recommendations-for-how-it-works-under-the-hood-closed\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-ruby-book-recommendations-for-how-it-works-under-the-hood-closed\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] Ruby Book recommendations for how it works under the hood? [closed]"}]},{"@type":"WebSite","@id":"https:\/\/jassweb.com\/solved\/#website","url":"https:\/\/jassweb.com\/solved\/","name":"JassWeb","description":"Build High-quality Websites","publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jassweb.com\/solved\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jassweb.com\/solved\/#organization","name":"Jass Web","url":"https:\/\/jassweb.com\/solved\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/","url":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","contentUrl":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","width":693,"height":132,"caption":"Jass Web"},"image":{"@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31","name":"Kirat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/","url":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750","caption":"Kirat"},"sameAs":["http:\/\/jassweb.com"],"url":"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/8194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/comments?post=8194"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/8194\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=8194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=8194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=8194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}