Greetings.
While I've programmed for some time, I am new to Squeak. I was wondering how I diff or compare two images that are largely similar (such as, say, Scratch vs Scratch For Second Life).
In other environments, I'd run the source trees for each project/variation through a recursive diff tool -- Beyond Compare, Changes.app, Kompare, or even `diff` from the command line. How do I do something similar in Squeak?
Cheers, Clinton Blackmore
On Saturday, May 22, 2010 09:05:14 am Clinton Blackmore wrote:
While I've programmed for some time, I am new to Squeak. I was wondering how I diff or compare two images that are largely similar (such as, say, Scratch vs Scratch For Second Life).
An image is not a source code but a snapshot of a state. It is a virtual machine suspended in time. It cannot be compared or diff-ed, AFAIK.
Subbu
At Fri, 21 May 2010 21:35:14 -0600, Clinton Blackmore wrote:
Greetings.
While I've programmed for some time, I am new to Squeak. I was wondering how I diff or compare two images that are largely similar (such as, say, Scratch vs Scratch For Second Life).
In other environments, I'd run the source trees for each project/variation through a recursive diff tool -- Beyond Compare, Changes.app, Kompare, or even `diff` from the command line. How do I do something similar in Squeak?
I made "ImageBrowser" while ago. (It'd require a little bit of adjustments for Scratch Images.)
http://map.squeak.org/package/92e8f376-ba20-4c38-8b3a-abfb2bf24624
It traverses from the Smalltal dictionary in anoother image and fetch the method source and read methods from other .changes file. Then you can remove all identical methods. So, it is basically a browser for code in another image.
-- Yoshiki
Very interesting. It looks like I will probably not get to try any of these methods until next week, but, what sort of adjustments do you think it would need for Scratch images?
Clinton
On Fri, May 28, 2010 at 10:23 AM, Yoshiki Ohshima yoshiki@vpri.org wrote:
At Fri, 21 May 2010 21:35:14 -0600, Clinton Blackmore wrote:
Greetings.
While I've programmed for some time, I am new to Squeak. I was wondering
how I diff or compare two images that are
largely similar (such as, say, Scratch vs Scratch For Second Life).
In other environments, I'd run the source trees for each
project/variation through a recursive diff tool -- Beyond
Compare, Changes.app, Kompare, or even `diff` from the command line. How
do I do something similar in Squeak?
I made "ImageBrowser" while ago. (It'd require a little bit of adjustments for Scratch Images.)
http://map.squeak.org/package/92e8f376-ba20-4c38-8b3a-abfb2bf24624
It traverses from the Smalltal dictionary in anoother image and fetch the method source and read methods from other .changes file. Then you can remove all identical methods. So, it is basically a browser for code in another image.
-- Yoshiki
Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
At Fri, 28 May 2010 10:55:31 -0600, Clinton Blackmore wrote:
Very interesting. It looks like I will probably not get to try any of these methods until next week, but, what sort of adjustments do you think it would need for Scratch images?
The biggest single issue is that my ImageBrowser depends on InterpreterSimulator to load the image file and find out the object pointers in it. An older version of InterpreterSimulator that is suitable for the Scratch image can be found somewhere (like in the Squeak2.4 image) but bringing in it will take some efforts.
-- Yoshiki
Would it be easier to bring Scratch forward to run on a newer version of Squeak?
Clinton
On Wed, Jun 2, 2010 at 11:55 AM, Yoshiki Ohshima yoshiki@vpri.org wrote:
At Fri, 28 May 2010 10:55:31 -0600, Clinton Blackmore wrote:
Very interesting. It looks like I will probably not get to try any of
these methods until next week, but, what sort of
adjustments do you think it would need for Scratch images?
The biggest single issue is that my ImageBrowser depends on InterpreterSimulator to load the image file and find out the object pointers in it. An older version of InterpreterSimulator that is suitable for the Scratch image can be found somewhere (like in the Squeak2.4 image) but bringing in it will take some efforts.
-- Yoshiki _______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
At Wed, 2 Jun 2010 12:03:30 -0600, Clinton Blackmore wrote:
Would it be easier to bring Scratch forward to run on a newer version of Squeak?
Hmm, I think that would be so much more work, compared to for example bringing in the InterpreterSimulator into the Scratch image.
-- Yoshiki
On Wed, Jun 2, 2010 at 11:55 AM, Yoshiki Ohshima yoshiki@vpri.org wrote:
At Fri, 28 May 2010 10:55:31 -0600, Clinton Blackmore wrote: > > Very interesting. It looks like I will probably not get to try any of these methods until next week, but, what sort of > adjustments do you think it would need for Scratch images? The biggest single issue is that my ImageBrowser depends on InterpreterSimulator to load the image file and find out the object pointers in it. An older version of InterpreterSimulator that is suitable for the Scratch image can be found somewhere (like in the Squeak2.4 image) but bringing in it will take some efforts. -- Yoshiki _______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
[2 <text/plain; us-ascii (7bit)>] _______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
Fair enough.
Clinton
On Wed, Jun 2, 2010 at 12:16 PM, Yoshiki Ohshima yoshiki@vpri.org wrote:
At Wed, 2 Jun 2010 12:03:30 -0600, Clinton Blackmore wrote:
Would it be easier to bring Scratch forward to run on a newer version of
Squeak?
Hmm, I think that would be so much more work, compared to for example bringing in the InterpreterSimulator into the Scratch image.
-- Yoshiki
On Wed, Jun 2, 2010 at 11:55 AM, Yoshiki Ohshima yoshiki@vpri.org
wrote:
At Fri, 28 May 2010 10:55:31 -0600, Clinton Blackmore wrote: > > Very interesting. It looks like I will probably not get to try any
of these methods until next week, but, what
sort of > adjustments do you think it would need for Scratch images? The biggest single issue is that my ImageBrowser depends on InterpreterSimulator to load the image file and find out the object pointers in it. An older version of InterpreterSimulator that is suitable for the Scratch image can be found somewhere (like in the Squeak2.4 image) but bringing in it will take some efforts. -- Yoshiki _______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
[2 <text/plain; us-ascii (7bit)>] _______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
beginners@lists.squeakfoundation.org