The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Visitors Who Steal Ruby Off to New VMs

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Red Handed

Posts: 1158
Nickname: redhanded
Registered: Dec, 2004

Red Handed is a Ruby-focused group blog.
Visitors Who Steal Ruby Off to New VMs Posted: Nov 13, 2006 10:07 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Red Handed.
Original Post: Visitors Who Steal Ruby Off to New VMs
Feed Title: RedHanded
Feed URL: http://redhanded.hobix.com/index.xml
Feed Description: sneaking Ruby through the system
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Red Handed
Latest Posts From RedHanded

Advertisement

Avi: So I wrote a visitor that does the least work possible to translate the simplest Ruby program possible into something Squeak Smalltalk can load and run, and hey, it adds 3+4 and comes up with 7.

He’s talking about his smalltalk.rb, which translates this code:

 class HelloRuby
 def zot
 3+4
 end
 end

Into this code:

 Object subclass: #HelloRuby instanceVariableNames: '' 
 classVariableNames: '' poolDictionaries: '' category: 'Ruby'!
 !HelloRuby methodsFor: 'ruby' stamp: ''!
 zot
 ^ 3 + 4

Neat. You know, I think NodeVisitor would be a really great tankshed RCR.

Read: Visitors Who Steal Ruby Off to New VMs

Topic: Keep that SQL in Ruby or doing it right with migrations Previous Topic   Next Topic Topic: Separation of Church and State

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use