Archive for the Uncategorized Category

Smalltalk Reflections episode 8: garbage collection

Posted in Uncategorized on 20 January 2015 by Craig Latta

Episode 8 of Smalltalk Reflections is out. The topic is “garbage collection”.

SqueakJS WebSocket test passes; Flow, Lightning, Naiad to follow

Posted in Uncategorized on 18 January 2015 by Craig Latta

Hoi–

Well, this is perverse fun. :) The JavaScript WebSocket client API works from SqueakJS, so I guess I’ll write a WebSocket server to proxy peer-to-peer traffic between SqueakJS clients. This will let me implement the Flow external streaming “primitive” interface, using only the JavaScript bridge and no actual primitives. That will enable the Lightning remote messaging protocol, and then Naiad. I’ll run the server on try.squeak.org and any other site that wants to be a Lightning node.

***

"Test the WebSocket API with an echo server."

| report websocket |

Transcript clear.

report := [:label :data |
   Transcript
   cr;
   nextPutAll: label;
   print: data;
   endEntry].

websocket := (
   (JS Object new)
      at: #newWebSocket
      put: (JS Function new: 'return new WebSocket("ws://echo.websocket.org");');
      newWebSocket).

websocket
   at: #onopen
   put: [:event |
      report value: 'opened: ' value: event.
      websocket send: 'hey there'];
   at: #onclose
   put: [:event | report value: 'closed: ' value: event];
   at: #onmessage
   put: [:event |
      report value: 'data: ' value: event data.
      websocket close];
   at: #onerror
   put: [:event | report value: 'error: ' value: event data]

***

Context 3 beta 5 released

Posted in Context, Uncategorized with tags , , , , , , , on 4 March 2014 by Craig Latta

Hi, Context 3 beta 5 is released. I’ve still got a bunch of changes pending, for a 3b6 release to follow shortly. This release is just to fix some startup problems on Windows, Linux, and Mac OS. You can also find the Spoon VM changes separated out, in the second “Resources” folder.

What I’d like is for you to just start the app and tell me the results, along with your host platform. Thanks!

This is the first message.

Posted in Uncategorized on 6 March 2009 by Craig Latta

Its only purpose is to show the appearance of this site. Thank you and good night.

%d bloggers like this: