vier
vier on Hacker News
Why less memory than segmented stacks?
Lthread is a cool experiment but coroutines in C is a dubious ideal. If you're writing a program in C/C++, presumably you want ultimate control and the fastest possible execution. You wouldn't introduce extra runtime complexity and a speed hit for easier to use APIs (blocking I/O functions). You'd just use epoll and non-blocking sockets (or libuv). That's not to say that coroutines/green threads/goroutines in high-level languages where you've already decided to take a speed hit for easier use isn't useful. Said another way: if your concern is about easy to read code, C is not the right choice; if your concern is speed: copying a stack on every i/o function is not the right choice.
digressing from luvit...
how does the stack copying technique (as used in lthread) compare to segmented stacks (as used in go)? The swap technique is very simple but I would assume that the stack copy shows up in profiles and is significantly slower than the segmented stack technique... Are there any benchmarks?
it's a build dependency not a runtime dependency
I don't know any drug dealers who take that.
Posted by
vier on Tuesday March 13, 2012 @05:28PM
from the blog.nodejs.org dept.
Posted by
vier on Thursday January 05, 2012 @05:50PM
from the dtrace.org dept.
Posted by
vier on Monday December 19, 2011 @02:29AM
from the core-js.org dept.
Using libuv from Node.js too. Awesome.
Posted by
vier on Thursday August 25, 2011 @01:03PM
from the ldapjs.org dept.
Posted by
vier on Saturday June 12, 2010 @07:31PM
from the thatismatt.github.com dept.
Posted by
vier on Monday May 24, 2010 @05:11PM
from the groups.google.com dept.
Grow up. C programs are ported painfully to each operating system. This is the reality programming in C. If the author does not support your system, he simply has not spent the time to port it. Proper autoconf tests isn't going to magically make software run on BSDs because the proper test won't be apparent until the author attempts to compile on BSDs. Does it suck? Yes. Has it ever been any different? No.
that's exactly what it's doing