Ask a Question related to Ruby, Design and Development.
-
Michael Neumann #1
[Rite] Byte-Code Compiler in Ruby
Hi,
I am fascinated by the many new ideas presented by matz for Rite.
Why not write the whole Ruby-to-Bytecode compiler in Ruby itself?
As the compilation step is executed less frequently, due to having lots
of precompiled bytecode binaries (one for each .rb file), this step is
not very time-critial (it's only done once for each file). And
applications using eval() are seldom evaluating very large parts of
code, or are itself time-critical.
This way, the Ruby-to-Bytecode compiler could be compiled itself into
bytecode, and then run on top of the Bytecode interpreter.
As one side-effect, the Bytecode interpreter would become relative easy
to implement. The compiler, too. And some other cool effects could be
done this way.
Is this "old" idea realistic for Rite?
Regards,
Michael
Michael Neumann Guest
-
Ruby Rite news live from Rubyconf 2003
Chad Fowler has been reporting live from the Rubyconf 2003. A digest of new information regarding Ruby 2.0 (a.k.a. "Rite") can be found at:... -
ruby-talk: 80813 (Rite/Ruby2.0 & Ruby vs OCaml)
Hope nobody finds this annoying. Somehow I missed this message when it was originally sent, but I thought my reply might be useful to sombody. ... -
Rite/Ruby2.0 & Ruby vs OCaml
Hi All, I'm new here, and I hope I don't offend anyone by mentioning a different programming language here on Ruby-Talk. I have two questions... -
Ruby => Rite, AST => Bytecode?
Matz and fellow Rubyists, On pragprog, we're sort-of discussing the creation of a new language ("Pragmatic") as an exercise in extending one's... -
Compiler Error Message: The compiler failed with error code 128.
Hi. I am having trouble running my aspx code. I created two simple webforms, which i try to run from two different directories one is giving me... -
T. Onoma #2
Re: [Rite] Byte-Code Compiler in Ruby
Michael wrote:
> Why not write the whole Ruby-to-Bytecode compiler in Ruby itself?It better be! I think at this point doing must be a real show of force/proof of concept for Ruby. I like your suggestion. It can be done, and i think should be done this way. But other's may disagee on grounds of interfacing/embedding with c/c++.> Is this "old" idea realistic for Rite?
my 2,
-t0
T. Onoma Guest
-
gabriele renzi #3
Re: [Rite] Byte-Code Compiler in Ruby
il Mon, 17 Nov 2003 07:11:19 +0900, Michael Neumann
<mneumann@ntecs.de> ha scritto::
google for 'metaruby'. You may discover something like this is being>Hi,
>
>I am fascinated by the many new ideas presented by matz for Rite.
>
>Why not write the whole Ruby-to-Bytecode compiler in Ruby itself?
>
done and is not so easy..
gabriele renzi Guest
-
George Marrows #4
Re: [Rite] Byte-Code Compiler in Ruby
> Is this "old" idea realistic for Rite?
I would say yes. ByteCodeRuby's compiler is implemented in Ruby, which
greatly simplifies things. I haven't looked at the speed of
compilation, which will of course be slower than a C-based version,
but I agree with you that this isn't likely to critically affect
overal performance.
Quick plug: ByteCodeRuby is a (as yet incomplete) bytecode compiler
and interpreter for Ruby. For simplicity it reuses a lot of the
current VM, sharing its parser, class model, standard library and GC.
Version 0.2.0 has just been released on rubyforge:
[url]http://rubyforge.org/projects/bytecoderuby/[/url]
-- George
George Marrows Guest



Reply With Quote

