> To add to Elliot''s point: it seems like whenever anyone approaches > network > programming, the first thing they do is a chat system. It would be > really > nice to have one in EM. I was actually thinking we might use some > code from > the various XMPP-on-Ruby projects and build a Jabber server. Any > interest? > > (I already wrote an event-driven library that can parse protocol > data that > is composed of XML stanzas, as with XMPP and XACML. Neither REXML nor > Ruby/libxml turned out to be capable of this.)Hi there, sorry to drag this old thread out of aeons past but have you progressed further or released anything from that project? I''m basically implementing a few parts of an XMPP server on ruby. I''ve been using hpricot for parsing, which is flexible about partial data, but it''s not ideal - pretty nasty actually. Anything you''ve written to process XMPP nicely might come in very handy. EM seems like the ideal platform for that kind of system, and I''m kind of surprised there''s no reference implementation. I know of at least two closed-source XMPP implementations in ruby but they''re not sharing and anyway I''d like to use EM if possible : ) thanks, Sho -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2429 bytes Desc: not available Url : http://rubyforge.org/pipermail/eventmachine-talk/attachments/20080218/66093842/attachment.bin
Not yet, but I''ll get in touch with you privately about it. It requires an outboard library (libxml2). On Feb 18, 2008 5:45 AM, Sho Fukamachi <sho.fukamachi at gmail.com> wrote:> > To add to Elliot''s point: it seems like whenever anyone approaches > > network > > programming, the first thing they do is a chat system. It would be > > really > > nice to have one in EM. I was actually thinking we might use some > > code from > > the various XMPP-on-Ruby projects and build a Jabber server. Any > > interest? > > > > (I already wrote an event-driven library that can parse protocol > > data that > > is composed of XML stanzas, as with XMPP and XACML. Neither REXML nor > > Ruby/libxml turned out to be capable of this.) > > Hi there, sorry to drag this old thread out of aeons past but have you > progressed further or released anything from that project? I''m > basically implementing a few parts of an XMPP server on ruby. I''ve > been using hpricot for parsing, which is flexible about partial data, > but it''s not ideal - pretty nasty actually. Anything you''ve written to > process XMPP nicely might come in very handy. > > EM seems like the ideal platform for that kind of system, and I''m kind > of surprised there''s no reference implementation. I know of at least > two closed-source XMPP implementations in ruby but they''re not sharing > and anyway I''d like to use EM if possible : ) > > thanks, > > Sho > _______________________________________________ > Eventmachine-talk mailing list > Eventmachine-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/eventmachine-talk >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20080218/527a49f6/attachment.html
Great, look forward to it. Although I''m sure your solution is a whole lot better than my nasty hacks! thanks Sho On 19/02/2008, at 7:18 AM, Francis Cianfrocca wrote:> Not yet, but I''ll get in touch with you privately about it. It > requires an outboard library (libxml2). > > On Feb 18, 2008 5:45 AM, Sho Fukamachi <sho.fukamachi at gmail.com> > wrote: > > To add to Elliot''s point: it seems like whenever anyone approaches > > network > > programming, the first thing they do is a chat system. It would be > > really > > nice to have one in EM. I was actually thinking we might use some > > code from > > the various XMPP-on-Ruby projects and build a Jabber server. Any > > interest? > > > > (I already wrote an event-driven library that can parse protocol > > data that > > is composed of XML stanzas, as with XMPP and XACML. Neither REXML > nor > > Ruby/libxml turned out to be capable of this.) > > Hi there, sorry to drag this old thread out of aeons past but have you > progressed further or released anything from that project? I''m > basically implementing a few parts of an XMPP server on ruby. I''ve > been using hpricot for parsing, which is flexible about partial data, > but it''s not ideal - pretty nasty actually. Anything you''ve written to > process XMPP nicely might come in very handy. > > EM seems like the ideal platform for that kind of system, and I''m kind > of surprised there''s no reference implementation. I know of at least > two closed-source XMPP implementations in ruby but they''re not sharing > and anyway I''d like to use EM if possible : ) > > thanks, > > Sho > _______________________________________________ > Eventmachine-talk mailing list > Eventmachine-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/eventmachine-talk > > _______________________________________________ > Eventmachine-talk mailing list > Eventmachine-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/eventmachine-talk-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20080219/77e32ed1/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2429 bytes Desc: not available Url : http://rubyforge.org/pipermail/eventmachine-talk/attachments/20080219/77e32ed1/attachment-0001.bin
On Feb 19, 2008 4:44 AM, Sho Fukamachi <sho.fukamachi at gmail.com> wrote:> Great, look forward to it. Although I''m sure your solution is a whole lot > better than my nasty hacks! > >The only thing I did was to create a stream-parser for XML that fires an event to EventMachine whenever it sees a complete stanza. I originally wrote it because neither REXML or the other Ruby wrappers for libxml support such a usage. Mine was originally written to support XACML, but it should work with XMPP just as well. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20080219/868e542a/attachment.html