[squeak-dev] [JSqueak] Which Squeak VM is compatible with JSqueak?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[squeak-dev] [JSqueak] Which Squeak VM is compatible with JSqueak?

Victor Rodriguez
Hello,

Since JSqueak is not yet able to save an image, I tried to use the
Squeak 1.1 VM with the mini image shipped with JSqueak.

Using Squeak, I can save the image and reload just fine.  But if I
then open the image with JSqueak, JSqueak fails after trying to grow
the object memory past 60,000 objects.

Does anyone have a hint?

Thanks,

Victor Rodriguez.

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] [JSqueak] Which Squeak VM is compatible with JSqueak?

Pavel Krivanek
Hi,

that's probably because you save the image on the system with the
little endian. It fails because you try to read an unsigned int but
Java supports only signed ones so it's interpreted badly like a
negative number.
There's no simple solution. The JSqueak should be rewritten to use
'long' instead of 'int' almost everywhere (+million of other hacks) or
some user-defined 4-byte number type (+billion of other hacks) must be
used for it. Maybe it could be possible to check negative int values
everywhere they can appear and handle it...

Does someone have a better idea?

Cheers,
-- Pavel

On Sat, Jun 28, 2008 at 6:29 PM, Victor Rodriguez <[hidden email]> wrote:

> Hello,
>
> Since JSqueak is not yet able to save an image, I tried to use the
> Squeak 1.1 VM with the mini image shipped with JSqueak.
>
> Using Squeak, I can save the image and reload just fine.  But if I
> then open the image with JSqueak, JSqueak fails after trying to grow
> the object memory past 60,000 objects.
>
> Does anyone have a hint?
>
> Thanks,
>
> Victor Rodriguez.
>
>

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] [JSqueak] Which Squeak VM is compatible with JSqueak?

Michael Haupt-3
Dear all,

we (a group of people from HPI) are in the process of setting up a
public repository with our extended version of JSqueak, which started
out as a piece of coursework. It solves the endianness problem, it's
colourful, and then some. ;-) We'll announce this as soon as it's
available.

Best,

Michael