News for hackers. Stuff that matters.

vier

Re:Luvit – Asynchronous I/O for Lua on Saturday March 16, 2013 @06:17PM (#5387030)
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.

Re:Luvit – Asynchronous I/O for Lua on Saturday March 16, 2013 @03:53PM (#5386527)
The luvit page notably lacks a link to libuv - the I/O engine behind it.

https://github.com/joyent/libuv

Re:Luvit – Asynchronous I/O for Lua on Saturday March 16, 2013 @03:46PM (#5386497)
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
Re:In Sweden, cash is king no more on Sunday March 18, 2012 @05:42PM (#3721077)
I don't know any drug dealers who take that.
Re:Microsoft team submits Redis patch to enable Windows support on Thursday December 08, 2011 @04:00PM (#3331100)
Using libuv from Node.js too. Awesome.
Re:Libuv status report on Friday September 23, 2011 @06:37PM (#3031838)
Here are some numbers from last month https://gist.github.com/1166690
Re:Hummingbird: Real Time Web Traffic Visualization on Monday May 10, 2010 @04:55PM (#1335908)
Don't miss the video http://vimeo.com/11613517
Re:Autoconf and portable programs: the joke on Wednesday March 31, 2010 @10:21AM (#1231825)
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.
Re:IMatix: AMQP ‘fundamentally flawed’ on Tuesday March 30, 2010 @09:54PM (#1230712)
Re:Emiller's Balls-Out Guide to Nginx Module Development on Saturday March 27, 2010 @02:08PM (#1223324)
that's exactly what it's doing