Porting Swazoo to GST

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

Porting Swazoo to GST

Janko Mivšek
Hi,

Would anyone be willing to help me making that port? I think GST would
profit a lot with Swazoo, because it will enable porting Aida and
Seaside too.

I heard that GST already has a web server but I think Swazoo have
benefits here because it is portable and web frameworks above are then
easily portable and maintained.

Best regards
JAnko
--
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Porting Swazoo to GST

Paolo Bonzini-2
Janko Mivšek wrote:
> Hi,
>
> Would anyone be willing to help me making that port? I think GST would
> profit a lot with Swazoo, because it will enable porting Aida and
> Seaside too.
>
> I heard that GST already has a web server but I think Swazoo have
> benefits here because it is portable and web frameworks above are then
> easily portable and maintained.

Yes, why not.  In the meanwhile, I would like to contribute the
NetServer package back to Swazoo if it helps (see
http://sblinn.jottit.com/gnu_smalltalk_netclients-based_echo_server for
an example).

Paolo



_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Re: Porting Swazoo to GST

Janko Mivšek
Hi Paolo,

Paolo Bonzini wrote:

>> Would anyone be willing to help me making that port? I think GST would
>> profit a lot with Swazoo, because it will enable porting Aida and
>> Seaside too.
>>
>> I heard that GST already has a web server but I think Swazoo have
>> benefits here because it is portable and web frameworks above are then
>> easily portable and maintained.
>
> Yes, why not.  In the meanwhile, I would like to contribute the
> NetServer package back to Swazoo if it helps (see
> http://sblinn.jottit.com/gnu_smalltalk_netclients-based_echo_server for
> an example).

Definitively worth looking at it, because it shows a way to do a HTTP in
GST. And I'm always looking for even better ways to increase Swazoo
performance as it is now.

By the way, what is a Sport portability library status on GST currently?

Best regards
Janko


--
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Re: Porting Swazoo to GST

Paolo Bonzini-4

> By the way, what is a Sport portability library status on GST currently?

It's there. ;-)

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Re: Porting Swazoo to GST

Janko Mivšek
Paolo Bonzini wrote:
>
>> By the way, what is a Sport portability library status on GST currently?
>
> It's there. ;-)

Super! Then in theory you should just file-in Swazoo to GST!
Swazoo code is supposed to be dialect neutral, and its SUnit tests have
a good
coverage of most functionality. When those tests pass, Swazoo port is
almost finished.

So, will someone try this exercise? :)

Swazoo for Squeak and VW is here: http://www.swazoo.org/download.html

Best regards
Janko

--
Janko Mivšek
Svetovalec za informatiko
Eranova d.o.o.
Ljubljana, Slovenija
www.eranova.si
tel:  01 514 22 55
faks: 01 514 22 56
gsm: 031 674 565


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: Porting Swazoo to GST

Paolo Bonzini-2
Janko Mivšek wrote:

> Paolo Bonzini wrote:
>>
>>> By the way, what is a Sport portability library status on GST currently?
>>
>> It's there. ;-)
>
> Super! Then in theory you should just file-in Swazoo to GST!
> Swazoo code is supposed to be dialect neutral, and its SUnit tests have
> a good
> coverage of most functionality. When those tests pass, Swazoo port is
> almost finished.
>
> So, will someone try this exercise? :)

Usually, what I do is extract the snapshot.st file from mcz and run a
script I call gst-squeak, like this:

   gst-squeak snapshot.st swazoo.st

Here is gst-squeak:

#! /bin/sh
gst-convert -f squeak \
   -r'MessageSend->DirectedMessage' \
   -r'(``@object ifNil: ``@arg ifNotNil: [ | `@t2 | `@.s2 ] )->
      (``@object ifNil: ``@arg ifNotNil: [ :foo || `@t2 | `@.s2 ])' \
   -r'(``@object ifNotNil: [ | `@t2 | `@.s2 ] ifNil: ``@arg )->
      (``@object ifNotNil: [ :foo || `@t2 | `@.s2 ] ifNil: ``@arg)' \
   -r'(``@object ifNotNil: [ | `@t2 | `@.s2 ] )->
      (``@object ifNotNil: [ :foo || `@t2 | `@.s2 ])' \
   -r'(``@object ifNil: ``@arg1 ifNotNilDo: ``@arg2 )->
      (``@object ifNil: ``@arg1 ifNotNil: ``@arg2)' \
   -r'(``@object ifNotNilDo: ``@arg2 ifNil: ``@arg1 )->
      (``@object ifNotNil: ``@arg2 ifNil: ``@arg1)' \
   -r'(``@object ifNotNilDo: ``@arg2 )->
      (``@object ifNotNil: ``@arg2)' \
   -r'(``@object doIfNotNil: ``@arg2 )->
      (``@object ifNotNil: ``@arg2)' \
  "$@"

If anyone finds more rewrites to be necessary, please report them here.

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk