On Oct 29, 2007, at 10:12 PM, Yousef Ourabi wrote:

Perhaps I'm still ignorant of some facts, or discussion but it seems like in the context of lucy (not KS, or Ferret) writing code generating tools like Charmonizer would take more effor than doing a direct port using only C idioms (structs, and functions)??

Charmonizer is the configuration probing tool -- it only generates one file, charmony.h. "Boilerplater" is the real code generator.

A direct port without methods, inheritance and polymorphism isn't possible. You need basic OO. Faking up polymorphism with conditionals would be insane; faking up inheritance by assigning per- method function pointers to each struct -- as both Ferret and KS did originally -- gets unwieldy. VTables make things a lot easier, but you definitely don't want to be maintaining all that boilerplate OO code by hand -- it would be tedious and unreliable. Ergo, Boilerplater.

Marvin Humphrey
Rectangular Research
http://www.rectangular.com/


Reply via email to