[Glass] GsDevKit Server Blocks for Thin Client appications ... pre-announcement

Dale Henrichs via Glass glass at lists.gemtalksystems.com
Tue Apr 21 20:55:37 PDT 2015



On 4/21/15 7:01 PM, Mariano Martinez Peck wrote:
>
>
> On Thu, Apr 16, 2015 at 2:23 AM, Dale Henrichs via Glass 
> <glass at lists.gemtalksystems.com 
> <mailto:glass at lists.gemtalksystems.com>> wrote:
>
>     A GsDevKit Server Block[1] is a block that is written in-line in
>     client Smalltalk, but is executed in GemStone. For example the
>     following expression is executed in a standard Pharo workspace:
>
>       | shell x y |
>       shell := TDShell forSessionNamed: 'devKit'.
>       x := 3.
>       y := 4.
>       shell onServerDo: [ x + y ].
>
>
>
> Dale,
>
> I know (because I already asked a few months/years ago) that from a 
> stone X you can do a remote login on stone Y and execute stuff in Y. 
> But now I wonder....could server blocks also work for 
> gemstone-gemstone? (my gut feelings tell me that yes) I mean, could I 
> run the above code from GemStone itself?   That would automatically 
> resolve all the remote login stuff and the ston serialization.
The short answer is yes.

The long answer is that there is a bit of client-side code that is 
written in Pharo now that would have to be ported to GemStone. The bits 
that are specific to server blocks is a pretty small slice of code, but 
it is a chunk of code ...

I think I see where you are going with this - moving object graphs 
between stones?:)

I guess the one sticking point is that it may not be quite as easy to 
automatically extract variable references from blocks, so it would 
probably make sense to just pass block args across the wire ... not 
quite as "fancy" but still very functional ...

Dale

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20150421/81212dc6/attachment.html>


More information about the Glass mailing list