uliwitness / Stacksmith

An intuitive software erector kit targeted at people new to programming, but with enough potential to stay useful once they've learned, inspired by HyperCard.
http://stacksmith.org
129 stars 13 forks source link

Sockets support #51

Open uliwitness opened 9 years ago

uliwitness commented 9 years ago

Some simple block-based API that keeps a connection going until the innermost block returns. Something like the download command, but that allows us as a client to send & receive raw data from a server on the web. Could possibly be a card part that is told to connect, then sends messages on its connection and calls you back. But make the code look nice and synchronous, maybe with each "send" statement functioning as a continuation-style "yield" statement.

Bonus points if we can also support running as a server, maybe by instantiating a server part on a card.

uliwitness commented 7 years ago

Note that we already have the "yield" mechanism in the interpreter, check out how "go" works when it loads a stack from the web.