News for hackers. Stuff that matters.
Re:Chicken Scheme Websockets by davexunit on Thursday October 30, 2014 @03:46PM (#8535369)
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.
Re:Chicken Scheme Websockets by thecombjelly on Thursday October 30, 2014 @05:45PM (#8536012)
Thank 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.

Re:Chicken Scheme Websockets by davexunit on Thursday October 30, 2014 @05:52PM (#8536037)
>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.

Re:Chicken Scheme Websockets by agumonkey on Thursday October 30, 2014 @05:26PM (#8535926)
Makes local and remote io ... quite the same.