On Thu, Jan 3, 2013 at 4:33 PM, Martin Dias tinchodias@gmail.com wrote:
On Thu, Jan 3, 2013 at 4:29 PM, Martin Dias tinchodias@gmail.com wrote:
Hello Hannes,
We didn't note this buggy comment. I'm sorry. I guess it is wrong since we moved the ability to serialize CompiledMethods from the core Fuel package to an optional one, named FuelMetalevel. Probably we will revert this in 1.9, so the example will be valid again... I loaded FuelMetalevel in Squeak 4.3 but the tests are red, but probably
Ouch, I didn't finish the sentence: I loaded FuelMetalevel in Squeak 4.3 but the tests are red, but probably it's easy to make it work.
I didn't explain the problem you had:
When you evaluated the snippet of code, it was compiled to a temporary #DoIt method (not installed into the method dictionary). Then, the example serialized a blockclosure, that was defined into the not-installed #DoIt. By default, Fuel serializes the CompiledMethods just as a class name and a selector. So, when you try to materialize the blockclosure, Fuel asks the method dictionary for the #DoIt, which is not there. So signals an error. Using FuelMetalevel, you can tell Fuel to fully serialize the CompiledMethods, so DoIt can be serialized and materialized, no matter if it is installed or not.
Best regards.
On the other side, I'm updating the documentation on our webpage, it is almost exactly the same than in 1.8.
Thank you; any feedback is more than welcome!
Regards, Martin
On Thu, Jan 3, 2013 at 1:47 PM, H. Hirzel hannes.hirzel@gmail.com wrote:
Hello
[Test]
Loading Fuel 1.8.1 into http://ftp.squeak.org/4.4/Squeak4.4-12327.zip runs fine. All 252 tests are green.
Thank you, Max, for your porting work. This is a very useful asset to have in Squeak.
A thing which does not work: The example in the class comment of FLSerializer gives a walkback
| sourceArray loadedArray | sourceArray := Array with: 'a string' with: Transcript with: [ Transcript show: 'a string' ].
"Store to the file" FLSerializer serialize: sourceArray toFileNamed: 'example.FL'.
"Load from the file" loadedArray := FLMaterializer materializeFromFileNamed: 'example.FL'.
Without having to serialize the block [ Transcript show: 'a string' ] it runs fine.
| sourceArray loadedArray | sourceArray := Array with: 'a string' with: Transcript.
"Store to the file" FLSerializer serialize: sourceArray toFileNamed: 'example0.FL'.
"Load from the file" loadedArray := FLMaterializer materializeFromFileNamed: 'example0.FL'.
--Hannes
On 1/2/13, Max Leske maxleske@gmail.com wrote:
Thanks guys!
On 02.01.2013, at 20:13, Chris Muller asqueaker@gmail.com wrote:
I've added a package to SqueakMap, together with a release for 4.4. This means my name's attached to the package, but I've tried to make it clear it's not my work :)
No problemo, I just made it a Community Supported package. Now anyone will be able to add or update the release entry's.