feenkcom / gt4gemstone

A Gtoolkit interface to GemStone

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gt4gemstone

A Gtoolkit interface to GemStone

Installation

To install the Pharo component in a Gt image (currently only tested in a vanilla Pharo 9 image):

Metacello new
	repository: 'github://feenkcom/gt4gemstone:main/src';
	baseline: 'GtGemstoneClient';
	load

Installation in to the GemStone server is TBS.

Testing the installation

All tests in GToolkit-GemStone-Test package should pass.

With the GemStone RSR server running (Sparkle/src-gs/server.sh):

| connection evaluatorServiceClient result |

connection := (RsrInitiateConnection host: 'localhost' port: 29299) connect.
evaluatorServiceClient := GtRsrEvaluatorServiceClient new.
evaluatorServiceClient registerWith: connection.

result := evaluatorServiceClient 
	evaluateAndWait: 'self + three' 
	for: 4 
	bindings: { #three -> 3 } asDictionary.
{ result. connection.  evaluatorServiceClient. }

The result should be a RsrPromise with value 7.

About

A Gtoolkit interface to GemStone

License:MIT License


Languages

Language:Smalltalk 77.4%Language:JavaScript 16.7%Language:Shell 5.9%