The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
RubyNode to the Rescue!

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
Laurent Sansonetti

Posts: 134
Nickname: lrz
Registered: Jun, 2006

Laurent Sansonetti is a software engineer at Apple Computer and a longtime Ruby enthusiast.
RubyNode to the Rescue! Posted: Jun 29, 2007 11:46 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Laurent Sansonetti.
Original Post: RubyNode to the Rescue!
Feed Title: lrz's diary
Feed URL: http://www.chopine.be/lrz/diary/xml/rss/feed.xml
Feed Description: lrz's diary
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Laurent Sansonetti
Latest Posts From lrz's diary

Advertisement

If you're developing with RubyCocoa you probably hear about rb_nibtool.rb, a new tool introduced since 0.11.0 that synchronizes your RubyCocoa source code with .nib files, basically exchanging the Interface Builder metadata such as the class hierarchy, outlets and actions.

But this tool has an important drawback. It collects the IB metadata from a given Ruby source code file by evaluating it. This is bad for a security point of view, but also for performances and robustness (the evaluation can be broken by a missing library or symbol).

But this is now the past. Since yesterday, rb_nibtool.rb will now use the very excellent RubyNode library, if present in the system, for parsing the given Ruby source file and extracting the interesting bits. If RubyNode isn't installed, it will default to the old code path.

RubyNode is an extremely interesting library, if you're used to hack the Ruby source code, it's basically a wrapper to the internal NODE data type and the parser. It should definitely be part of the standard library.

Read: RubyNode to the Rescue!

Topic: The next big language Previous Topic   Next Topic Topic: Obie's Update

Sponsored Links



Google
  Web Artima.com   

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