Re: [Pharo-project] Stupid question about Fuel
On Apr 15, 2012, at 1:20 PM, Edgar J. De Cleene wrote:
Mariano, Martin, Pavel
For example, a class can be considered either a global or a regular object. In the former case, it will be encoded just its name; in the latter case, the class will be encoded in detail, with its method dictionary, etc.
How you do this ?
the class will be encoded in detail, with its method dictionary, etc.
I export most of 1.4 OneClick classes in http://squeakros.org/Pharo%201dot4/ as cs.gz, like to have .fuel for load classes back in target image with no compiler.
Of course that can not work. .cs is source code, you of course need a compiler (if Fuel could load cs.gz, it *would be* a compiler). What you need to do is to serialize the *Objects* that are code (Classes, MethodDictioaries, CompiledMethods) using Fuel. Then the result can be loaded back using Fuel. Marcus -- Marcus Denker -- http://marcusdenker.de
On 4/15/12 8:24 AM, "Marcus Denker" <marcus.denker@inria.fr> wrote:
Of course that can not work. .cs is source code, you of course need a compiler (if Fuel could load cs.gz, it *would be* a compiler).
Yes, I know it. I have the .cs.gz for normal load, not for Fuel !!!
What you need to do is to serialize the *Objects* that are code (Classes, MethodDictioaries, CompiledMethods) using Fuel. Then the result can be loaded back using Fuel.
What I ask is how to have the .fuel of classes as regular objects as Mariano write in his blog. Then , this Foo.fuel could be loaded into target image. Some more granular as Pavel made with complete packages some days ago. And wish made experiments if this Foo.fuel could be loaded into different fork as Squeak, Cuis having Fuel into.
Marcus
Thanks ! Edgar
participants (2)
-
Edgar J. De Cleene -
Marcus Denker