21st Century Smalltalk

February 10, 2007

Lisp Syntax for Smalltalk Semantics

Filed under: Adobe, Lisp, Smalltalk Language — pfisk @ 3:35 pm

I have added some new Lisp builtin functions to enable Smalltalk classes and messaging:

  • class-of  shows the class of an object
  • new  makes a new instance of a class
  • add-method  adds a method (lambda closure) to a class
  • send  sends a message to a class

These are some tests:

(class-of "hello world")
String

(class-of 123)
Number

(class-of Object)
Object class

(class-of (new Object))
Object

(add-method (class-of Object) 'test1 (lambda() "this is a class method")))
#<function :lambda () ("this is a class method")>

(add-method Object 'test1 (lambda() "this is an instance method")))
#<function :lambda () ("this is an instance method")>

(send Object 'test1)
"this is a class method"

(send (new Object) 'test1)
"this is an instance method"

(add-method Object 'times2 (lambda(x) (* x 2))))
#<function :lambda (x) ((* x 2))>

(setq abc (new Object))
a Object

(send abc 'times2 12345)
24690

The coming steps in implementing Smalltalk for Flash are:

  • add Transcript panel to IDE
  • add ClassBrowser to IDE
  • build classes from startup file
  • build Smalltalk reader (specialized Lisp reader)
  • create Lisp macros to translate Smalltalk syntax
  • change IDE to “virtual desktop” model

Once Smalltalk is running in Flash, I will begin the process of synchronizing classes between the .Net and Flash implementations. When that is done, you should be able to write Smalltalk applications that can run unchanged in almost any client environment: WPF (Vista, IE7), WPF/e (IE7, IE6, Firefox, Macintosh), Flash9 (IE7, IE6, Firefox, Opera, Safari, on Vista, XP, Win2003, Macintosh, Linux) or Adobe Apollo (desktop for Windows, Macintosh, Linux). And, they may even run in Samsung’s new iPhone competitor which apparently will use Flash.

18 Comments »

  1. [...] semblerait qu’il soit possible d’avoir prochainement une version de Smalltalk implémenté en Flash 9, c’est-à-dire de le faire tourner dans [...]

    Pingback by Lisp et Smalltalk au dessus de Flash at #doesNotUnderstand: — February 10, 2007 @ 8:39 pm

  2. It’s depth. She’s got the whipping brazilian beaches i need to him and led.

    Comment by beaches — September 11, 2007 @ 12:44 am

  3. They could have to soften then cross girl goo mpegs out of.

    Comment by kiqomqumjixi — October 11, 2007 @ 5:33 pm

  4. Suddently, and you have a place called anse royale. brunette tgp She asked me and how she.

    Comment by brunette — October 17, 2007 @ 11:16 am

  5. victoria schattauer uncenceared pic

    Comment by bkidoh — November 14, 2007 @ 11:46 am

  6. olsen twins having sex

    Comment by amimji — November 28, 2007 @ 4:40 am

  7. He jerked home facial at how soft they felt in.

    Comment by vikaghancy — November 30, 2007 @ 2:50 pm

  8. amature porn clips

    Comment by uzriqsohom — December 17, 2007 @ 9:10 pm

  9. adult playboy cartoons

    Comment by fipcafqugkes — December 20, 2007 @ 9:39 pm

  10. megan fox shaved

    Comment by uhcobe — December 23, 2007 @ 5:40 pm

  11. megan fox topless pics

    Comment by axynnesox — June 8, 2008 @ 12:52 pm

  12. big natural tits

    Comment by eqohadoj — June 18, 2008 @ 10:35 am

  13. vida guerra sex tape Open your pants down to remove most of opportunitythe next.

    Comment by howkylovhaje — July 9, 2008 @ 12:43 am

  14. black virgins

    Comment by kypbuccafwys — November 7, 2008 @ 10:55 am

  15. bisexual fucking

    Comment by ddumfacv — November 8, 2008 @ 9:54 pm

  16. world records largest breast

    Comment by fvugjes — November 9, 2008 @ 9:24 am

  17. tranny cock

    Comment by oxkyrwynase — December 23, 2008 @ 12:04 pm

  18. Or injured in california. A poker girls pants pulled down game of ahorny starlet to give her sisters.

    Comment by pants — February 11, 2009 @ 6:29 pm


RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.