Main Page | Report this Page
Computers Forum Index  »  Computer Languages (Smalltalk)  »  SmalltalkJVM ......
Page 1 of 1    

SmalltalkJVM ......

Author Message
jamesl...
Posted: Fri Oct 02, 2009 9:15 pm
Guest
Hi Smalltalkers,

I'm writing a version of Smalltalk for the Java Virtual Machine.
It will go from Smalltalk source all the way to bytecode and allow
calling Java classes/libaries and
for them to call your Smalltalk classes.

You can read more about it here: www.jamesladdcode.com or follow it on
http://twitter.com/smalltalkjvm

Smalltalk source will be in files that represent the class, so Object
will be in Object.st

What I am wondering is, how would you feel if the chunk format of the
file was removed?
ie: No ! or !!

So

!Arc methodsFor: 'accessing'!

center: aPoint radius: anInteger

"The receiver is defined by a point at the center and a radius. The

quadrant is not reset."



center _ aPoint.

radius _ anInteger! !

Becomes:

"Arc methodsFor: 'accessing'"
center: aPoint radius: anInteger

"The receiver is defined by a point at the center and a radius. The

quadrant is not reset."



center _ aPoint.

radius _ anInteger
 
jarober...
Posted: Fri Oct 02, 2009 10:30 pm
Guest
Why are you using underscore instead of := ?

On Oct 2, 5:15 pm, jamesl <ladd.ja... at (no spam) gmail.com> wrote:
Quote:
Hi Smalltalkers,

I'm writing a version of Smalltalk for the Java Virtual Machine.
It will go from Smalltalk source all the way to bytecode and allow
calling Java classes/libaries and
for them to call your Smalltalk classes.

You can read more about it here:www.jamesladdcode.comor follow it onhttp://twitter.com/smalltalkjvm

Smalltalk source will be in files that represent the class, so Object
will be in Object.st

What I am wondering is, how would you feel if the chunk format of the
file was removed?
ie: No ! or !!

So

!Arc methodsFor: 'accessing'!

center: aPoint radius: anInteger

        "The receiver is defined by a point at the center and a radius. The

        quadrant is not reset."

        center _ aPoint.

        radius _ anInteger! !

Becomes:

"Arc methodsFor: 'accessing'"
center: aPoint radius: anInteger

        "The receiver is defined by a point at the center and a radius. The

        quadrant is not reset."

        center _ aPoint.

        radius _ anInteger
 
jamesl...
Posted: Sat Oct 03, 2009 12:01 am
Guest
The code was a copy-n-paste from Squeak, but in Smalltalk JVM both
_ and := will be accepted. Personally I prefer :
On Oct 3, 8:30 am, jarober <jaro... at (no spam) gmail.com> wrote:
Quote:
Why are you using underscore instead of := ?
 
jamesl...
Posted: Sat Oct 03, 2009 7:18 am
Guest
On Oct 3, 4:35 pm, Stefan Schmiedl <s... at (no spam) xss.de> wrote:
Quote:
On Fri, 2 Oct 2009 14:15:21 -0700 (PDT)
SmalltalkJVM also hopes to be compatible with GNU.

Gnu Smalltalk is a fantastic implementation!


Quote:

jamesl <ladd.ja... at (no spam) gmail.com> wrote:
Smalltalk source will be in files that represent the class, so Object
will be in Object.st

What I am wondering is, how would you feel if the chunk format of the
file was removed?

Please take a look at GNU smalltalk, which also reads code from
files. Maybe you can use gst's syntax, too.

       http://smalltalk.gnu.org

s.
 
Stefan Schmiedl...
Posted: Sat Oct 03, 2009 10:35 am
Guest
On Fri, 2 Oct 2009 14:15:21 -0700 (PDT)
jamesl <ladd.james at (no spam) gmail.com> wrote:

Quote:
Smalltalk source will be in files that represent the class, so Object
will be in Object.st

What I am wondering is, how would you feel if the chunk format of the
file was removed?

Please take a look at GNU smalltalk, which also reads code from
files. Maybe you can use gst's syntax, too.

http://smalltalk.gnu.org

s.
 
 
Page 1 of 1    
All times are GMT
The time now is Thu Nov 26, 2009 2:14 am