Cog

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

Cog

Garret Raziel
Hello,
I wonder how to use Cog VM instead of Squeak VM on my Squeak image. SqueakVM is good but little bit slow.

Thanks,
Jan

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Cog

Levente Uzonyi-2
On Thu, 10 Mar 2011, Garret Raziel wrote:

> Hello,
> I wonder how to use Cog VM instead of Squeak VM on my Squeak image. SqueakVM
> is good but little bit slow.

Which platform are you using?


Levente

>
> Thanks,
> Jan
>
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Cog

Garret Raziel
I am using linux (debian stable). Is there source codes anywhere? Is cog capable of running squeak image?

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Cog

Casey Ransberger-2
Yeah. You need to be running a 32 bit x86 machine to use Cog (currently,) and once you save an image under Cog, you may not be able to open it in the standard VM (note that folks have talked about updating the traditional VM to fix the latter issue, but I don't know how far off that is.)

If you start with the latest Squeak, Cuis, or Pharo image, I believe all of the image side stuff you need will be there already and you should be good to go.

On Mar 10, 2011, at 10:35 AM, Garret Raziel <[hidden email]> wrote:

> I am using linux (debian stable). Is there source codes anywhere? Is cog capable of running squeak image?
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Cog

Levente Uzonyi-2
On Thu, 10 Mar 2011, Casey Ransberger wrote:

> Yeah. You need to be running a 32 bit x86 machine to use Cog (currently,) and once you save an image under Cog, you may not be able to open it in the standard VM (note that folks have talked about updating the traditional VM to fix the latter issue, but I don't know how far off that is.)

The latest version of the Unix VM (4.4.7-2357) can open images having
Cog's format.

>
> If you start with the latest Squeak, Cuis, or Pharo image, I believe all of the image side stuff you need will be there already and you should be good to go.
>
> On Mar 10, 2011, at 10:35 AM, Garret Raziel <[hidden email]> wrote:
>
>> I am using linux (debian stable). Is there source codes anywhere? Is cog capable of running squeak image?

For some reason I didn't get Garret's mail, so let me answer here:

Prebuilt CogVMs are available here:
http://www.mirandabanda.org/files/Cog/VM/VM.r2361/
The source code is available from the svn repository:
http://squeakvm.org/cgi-bin/viewcvs.cgi/branches/Cog/

If you're about to compile the VM yourself, then you'll find detailed
description here:
http://squeakvm.org/cgi-bin/viewcvs.cgi/*checkout*/branches/Cog/unixbuild/HowToBuild?rev=2348

I suggest you to check out revision 2361 instead of the latest (2363),
because the latter has some stability problems. You can do this by adding
the -r switch to the svn commands, like here:
svn co -r 2361 http://www.squeakvm.org/svn/squeak/branches/Cog/platforms

Cog requires Eliot's closure implementation + some other minor changes,
so if you'd like to use an official Squeak image, then you'll need Squeak
4.2 (or newer). If you have an older image (3.10.2, 4.0, 4.1), then you
should be able to use the Trunk's update process to update your image to
the current 4.3 alpha version, though that road is a bit rough.


Levente

>> _______________________________________________
>> Beginners mailing list
>> [hidden email]
>> http://lists.squeakfoundation.org/mailman/listinfo/beginners
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Cog

Garret Raziel
Thanks a lot, I used precompiled binary and it works just fine. Cog is pretty much faster, on my laptop I can't create MVC project because Squeak becomes very, very slow. If I create MVC project on same laptop with Cog, everything works fine.

BTW, is it normal that both VMs fall down when running tests in Test runner? Or when switching colors of windows (uniform or colorful)?

Jan

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Cog

Levente Uzonyi-2
On Fri, 11 Mar 2011, Garret Raziel wrote:

> Thanks a lot, I used precompiled binary and it works just fine. Cog is
> pretty much faster, on my laptop I can't create MVC project because Squeak
> becomes very, very slow. If I create MVC project on same laptop with Cog,
> everything works fine.

Interesting, MVC projects used to be a faster than Morphic projects, so I
guess this is an issue with the image you're using.

>
> BTW, is it normal that both VMs fall down when running tests in Test runner?

No, it's not.

> Or when switching colors of windows (uniform or colorful)?

Definitely not. I guess there's some incompatibility with the precompiled
display modules and your OS.


Levente

>
> Jan
>
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Cog

David T. Lewis
On Fri, Mar 11, 2011 at 11:12:14PM +0100, Levente Uzonyi wrote:
> On Fri, 11 Mar 2011, Garret Raziel wrote:
>
> >Thanks a lot, I used precompiled binary and it works just fine. Cog is
> >pretty much faster, on my laptop I can't create MVC project because Squeak
> >becomes very, very slow. If I create MVC project on same laptop with Cog,
> >everything works fine.
>
> Interesting, MVC projects used to be a faster than Morphic projects, so I
> guess this is an issue with the image you're using.

Hi Levente,

Actually I think there may be an issue in mouse event delivery the
standard unix VM. Mouse click events seem to be delivered very slowly,
and not in sync with the position of the mouse curser. The symptoms are
very evident in MVC, but I think I see related behavior in Morphic if
there are lots of windows open (i.e. lots of UI refresh required). Cog
seems to be handling something better in this respect. I do not know if
the issue is in the VM support code, in MVC, in the image, or some in
interaction between these.

Dave

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners