For Programmers: Free Programming Magazines  


Home > Archive > Smalltalk > October 2007 > How is created the Image file from Little Smalltalk?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How is created the Image file from Little Smalltalk?
mfdavid@gmail.com

2007-10-24, 7:27 pm

Hail there.

Im a Java developer from Brazil, and I=B4m studying a little bit of
smalltalk now. It=B4s an amazing language and I=B4m really excited about
what can be done with it.

I always dreamed about creating my own language, a "perfect" language.
Well, I dont know much about the subject, but I do know a lot about
java and a little bit about how to write a compiler.

Well.. I was looking around when i found Little Smalltalk, the java
version (http://web.engr.oregonstate.edu/~budd/SmallWorld/
ReadMe.html). It=B4s kind simple, but it=B4s really to play with it
and i would like to make a few modifications on it. I=B4m thinking about
writing a special smalltalk designed for simple 2D games in the
future, and I think this code might help me a lot.

My problem is: I was modifing the java source code of Little Smalltalk
and now it can=B4t load the Image file anymore. I get this error:
"received I/O exception java.io.InvalidClassException: SmallByteArray;
local class incompatible: stream classdesc serialVersionUID =3D
-5008653136016369974, local class serialVersionUID =3D
7026696644129987657 - Image filename: image"
On this line of code:
this.theInterpreter.nilObject =3D (SmallObject) ois.readObject();

I was not able to undestand what is exactly inside this Image file,
and how it was generated. Can I re-create it some how with the
modifications I made on the classes?

Thanks a lot,
Marcio F. Davod

Tim M

2007-10-25, 8:11 am

Hi Marcio

> I was not able to undestand what is exactly inside this Image file,
> and how it was generated. Can I re-create it some how with the
> modifications I made on the classes?


Someone might be able to tell you about Little Smalltalk but there was a
discussion on this group about how initial images are created (although not
specifically for Little Smalltalk) - maybe these will give you a clue (I
searched this group on google for "initial image")

http://groups.google.co.uk/group/co...6d82cf192ea7db1

http://groups.google.co.uk/group/co...87e5083dd3686bd


Also with regards to 2D gaming, someone in the Dolphin group has been writing
about creating gaming objects and about their approaches to frames per second
etc. See: http://learningtotalk.blogspot.com/atom.xml

Hope that helps,

Tim


andrewginmd@aol.com

2007-10-26, 4:32 am

..... i found Little Smalltalk, ... I was not able to undestand what is
exactly inside this Image file,
> and how it was generated. Can I re-create it some how with the
> modifications I made on the classes?...

Hi Marcio
For current info try www.littlesmalltalk.org, which links to current
versions of LittleSmalltalk, and link download the original book
in .pdf

Good luck,
ACG

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com