gnulag / circ

#gnulag's IRC bot
BSD 2-Clause "Simplified" License
3 stars 3 forks source link

Add the event loop #6

Closed xlic closed 5 years ago

xlic commented 5 years ago

This change implies an interface for the modules handler where messages to send back to the server are returned in an array by a certain function, which wouldn't be too hard to implement and abstracts all of the reading and writing into irc.c, which is pretty desirable.

We're asynchronous on message handling but synchronized for reading and writing to prevent strange behaviour on the socket.

rkitover commented 5 years ago

I propose that the first non-C language binding we do is Common Lisp, this should fit in with our agenda. And we should definitely do a C-with-glib binding too.

Prajjwal commented 5 years ago

I'd say we do scheme, mainly because it's even more special snowflakey. If we decide to do this, my vote is for chibi, but there's other decent R7RS implementations.

AndroidKitKat commented 5 years ago

we should just do node tbh