Jorge
Jorge
Good idea... Nevertheless I'll ask the author of the current code for a license change first. Have you checked other alternatives besides the one you propose? Why did you pick...
Hi. Sorry I didn't get back on this. I didn't profile, but the implementation you provided does look inneficient, with lots of table.inserts and string.gsubs. Have you looked at the...
Interesting question. The problem I see is that Lumen is a "main loop" type scheduler, just as libev. So any integration will be either ugly, or invasive. The ugly alternative...
Ok, i've never written a libev app, so details may be off, but there go some ideas: 1. The sched.lua's go() function just calls step() repeatedly, and step() returns how...
Yes, thinking a little more about it I believe what I outlined is not enough: it does not handle some basic cases, like a shorter timeout getting set within the...
Ok, I created a branch and will do a few tests.
One approach is as in tests/demo-ev.lua (libev branch). Basically create the ev watchers from a lumen task, and then let it loop as shown (the "while true" loop in ev_task,...
Having a tick is very suboptimal. It turns the system into a poll based one, undoing all the effort the system does to be event based... As you say, it...
Just to add some detail in the "driven by libev" case. You can easily trigger events in lumen from outside, using a modified sched.signal. (see the libev branch) This call...
Thank you, commited.