From: ara.t.howard@... Date: 2006-05-01T13:44:22+09:00 Subject: Re: Ruby based editor On Mon, 1 May 2006, Phil Jackson wrote: > What I was actually trying to ask was: > > The base will be written in C not in pure Ruby. I would like to know whether > people think I would be better using C types at the core or Ruby types > implimented in C. So, I can, A), write a basic editor in C and then wrap it > up with Ruby using Data_Wrap_Struct() much like an extenstion would. Or I > can, B), start from the beginning with rb_define_class() and friends thus > relying on Ruby from the start. The advantages and dis-advantages that I > think may exsist: > > a) advantages: > * The core of the application would be instantly reconisable to a C > hacker who has no Ruby experience. > * If I decide it should be extendable by another language it would be a > simple job. > * Better performance? > > disadvantages: > * I would have to impliment and then map things like linked lists > meaning wheel re-invention. > * more work :) > * Can't rely on libruby for memory handling. > > So which one? well, if you choose A you'll be following in the footsteps of vim, which is already extensible in ruby. why not start do B then to avoid breaking programmer's rule #42 ? -a -- be kind whenever possible... it is always possible. - h.h. the 14th dali lama