3 ms·
The example echo server is very elegant. (with-websocket (lambda () (send-message (string-append "you said: " (receive-message))))) I'll add "port
by davexunit 12y ago
The example echo server is very elegant.
(with-websocket
(lambda ()
(send-message (string-append "you said: " (receive-message)))))
I'll add "porting Chicken web sockets to GNU Guile" to my ever growing todo list.
- agumonkey 12y agoMakes local and remote io ... quite the same.
- thecombjelly 12y agoThank you. (I'm the author of the library.) It came about after quite a few tries at a good API and with a lot of feedback from other CHICKEN hackers. It probably isn't very portable right now, unfortunately. It uses a lot of CHICKEN specific things to increase speed and memory efficiency but I'm totally open to making it more portable.
- davexunit 12y ago>It came about after quite a few tries at a good API I'm very familiar with that cycle. I'm writing a game engine in Guile and I am constantly implementing something, throwing it away, and trying again. Every time you get a bit closer to the API you really want. >It probably isn't very portable right now, unfortunately. That's alright. Portable Scheme is cool, but I prefer using what the implementation gives me instead of restricting myself to RnRS. Especially so for something like networking code. I might never get around to it, but if I find myself wanting to tackle a new project, I'll give porting this a try.