[ruby-talk:00362] Re: thinking aloud

From: gotoken@... (GOTO Kentaro)
Date: 1999-05-29 20:18:23 UTC
List: ruby-talk #362
Hi,

In message "[ruby-talk:00359] Re: thinking aloud"
    on 99/05/29, Klaus Schilling <Klaus.Schilling@home.ivm.de> writes:
 > ftp://ftp.netlab.co.jp/pub/lang/ruby/contrib/java-module-0_5.tar.gz
> > Check it out.  
>
>Does that java interface translate ruby source into java bytecode?

I have no idea.  Maeda-san, would you tell us??

> > You mean something like `dump' of perl?  Such feature was 
> > requested few times, but Matz don't planed to support that. 
> > I think such feature is not bad for MS-Windows.  
>
>What does that have to do with windows?

I should apologize if you considered that I said those must do with
windows.  As you see, my Engrish is not good :-(

Well, `freeze' or `undump' can be used for make installing easy
because a frozen code can be created not to require to install the
interpreter.  And I guess especially windows users don't want to
know how an application works.  It is because of I said `not bad for
MS-Windows'.  Of course, that would useful even for UNIX, or that 
can be used for other purposes. 

> > Maebashi-san's text editor mine-0.0.4 experimentally support it. It is
> > written in Ruby/Tk. Unfortunately, no English document is available. 
> > 
>Would it be possible to write one that runs on the unix text console?

That may be possible, I think. 

For example, a simple sorted family lines of all modules can be
obtained as follows:

  buf = []
  ObjectSpace.each_object(Module) do |mod|
    buf << mod.ancestors.reverse
  end

  buf.sort{|i,j| i.collect{|x| x.to_s} <=> j.collect{|x| x.to_s}}.
    each{|i| p i}

To make enable to browse, I may use curses module or external text
base html browser, e.g., lynx.  


-- gotoken

In This Thread