codefrau / SqueakJS

A Squeak Smalltalk VM in Javascript
https://squeak.js.org
MIT License
365 stars 75 forks source link

Modularize SqueakJS #101

Closed ErikOnBike closed 4 years ago

ErikOnBike commented 4 years ago

Here is a PR for a modularised version of SqueakJS.

This version is created in a similar way as Pavel Krivanek did (see https://github.com/bertfreudenberg/SqueakJS/issues/99). Besides modularising, support for Node.js and a headless VM is added. See the two examples in ws and headless. The Node.js example creates a WebSocketServer (using Node.js) and a WebSocket client using a (Cuis based) image. Through an interactive prompt Smalltalk statements can be executed in the Smalltalk image. The headless examples lets you run a simple (Pharo Candle based) image inside a WebWorker thread.

CC @ccrraaiigg @pavel-krivanek