Groups
Groups
Sign in
Groups
Groups
ats-lang-users
Conversations
Labels
About
Send feedback
Help
WebWorker-based channels
12 views
JavaScript
Skip to first unread message
gmhwxi
unread,
Oct 26, 2015, 11:10:17 AM
10/26/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ats-lang-users
For the purpose of teaching,
I implemented simple bi-directional communication channels based on WebWorkers:
Here is an application:
https://github.com/githwxi/ATS-Postiats-contrib/tree/master/contrib/libatscc/libatscc2js/TEST/Worker
Here is the channel implementation:
https://github.com/githwxi/ATS-Postiats-contrib/blob/master/contrib/libatscc/libatscc2js/DATS/Worker/channel.dats
Right now, the channels are untyped. It should be straightforward to support typed channels via session types.
You have to try this: It is a lot of fun :)
Cheers!
Reply all
Reply to author
Forward
0 new messages