From: Ilias Lazaridis Date: 2005-05-13T00:27:15+09:00 Subject: Re: [THIN] - Need to reduce Ruby Sources to the Minimal Hugh Sasse wrote: > On Thu, 12 May 2005, Ilias Lazaridis wrote: >> nobu.nokada@softhome.net wrote: >> >>> Hi, >>> >>> What do you expect by "thin"? >> >> I will try. >> >> * the core ruby interpreter, with the minimal necessary libraries. > > Do you mean core libraries, not standard libraries -- exclude things > you must "require" to obtain? would be a good starting point - and a code-unit to isolate. > That way you'd only get the builtin > classes like Array, Hash, Regexp.... This seems a useful goal, that > I have asked for in the past: > > http://www.rubygarden.org/ruby?BatteriesExcludedDistribution ok > Your use of 'necessary' doesn't specify 'for what'. ok to have a workable ruby interpreter, with the main (core) language constructs (which can esility be removed further, thus minimzing the core even more, without beiing a full ruby anymore). This would open up new use-cases, especially for embedding. >>>>> When building Ruby, one of the first things created is a "miniruby" [...] - (makefiles) >> Which tool can I use to view/modify this file conveniently? > > It is Makefile.sub, not a Makefile as such. The complexity is due [...] I simply like to understand the subsystems of ruby out of the sources. As I can see, the makefiles cannot be used for this. >> Alternatively >> >> I would like to have a simple makefile, like: >> >> CC main.c >> CC class.c >> CC ... >> >> LINK ruby.exe main.obj, class.obj, ... > > That isn't actually a makefile. There is no means of avoiding [...] of course. I like to extract the structure of the ruby sources. to do so, I could write fully manually a simple makefile. >> There is no structure in the source-code, where I could detect the >> subsystems. > > Which source code files do you refer to with this remark? I mean the whole contents of the folder "ruby-1.8.2". the problem starts with a missing "src" folder, which would isolate the source-code-files from the other files in the root directory. . -- http://lazaridis.com