Build failures - compiling TeXmacs under guile 2.0.5

2012-03-22 Thread Jan Synacek
Hello list, I'm trying to build TeXmacs 1.0.7 with guile 2.0.5 and I'm getting tons of errors like these: usr/include/guile/2.0/libguile/gsubr.h:64:12: error: initializing argument 5 of ‘scm_unused_struct* scm_c_define_gsubr(const char*, int, int, int, scm_t_subr)’ [-fpermissive] Guile

ethreads: event-driven cooperative threads

2012-03-22 Thread Andy Wingo
Hi list, I pushed an experimental branch recently, wip-ethreads. It implements user-space cooperative threads that yield when they would otherwise block or sleep. It seems to be useful for servers. That branch also implements an HTTP server based on ethreads. It's quite pleasant. There's an e

Re: Comments on ‘wip-nio’

2012-03-22 Thread Ludovic Courtès
Hi, Nala Ginrut skribis: > On Thu, Mar 22, 2012 at 6:39 AM, Ludovic Courtès wrote: > >> Hello, >> >> I had a quick look at ‘wip-nio’, and here are initial comments. >> >> • epoll is Linux-specific. Any idea how a more multi-platform API >>could be provided? I guess libevent could be used

Re: Comments on ‘wip-nio’

2012-03-22 Thread Neil Jerram
l...@gnu.org (Ludovic Courtès) writes: > Hi, > > Nala Ginrut skribis: > >> On Thu, Mar 22, 2012 at 6:39 AM, Ludovic Courtès wrote: >> >>> Hello, >>> >>> I had a quick look at ‘wip-nio’, and here are initial comments. >>> >>> • epoll is Linux-specific. Any idea how a more multi-platform API >>>

Re: Comments on ‘wip-nio’

2012-03-22 Thread Nala Ginrut
On Fri, Mar 23, 2012 at 5:36 AM, Neil Jerram wrote: > but I would guess that there are cases > where a module isn't already constrained like this, and still might want > to use a "do X in N seconds time" function. > > > I think this "do X in N seconds time" function would be useful. And it's bette

Re: Comments on ‘wip-nio’

2012-03-22 Thread Nala Ginrut
Besides, I think we need "write bytevector from port and return the successful size". Just like "write-string!/partial". Now I have to use utf8->string to convert the bytevector to string. Why we need such a thing? Because once we introduced Non-Block IO ,we can not write the whole bytevector in on

Re: ethreads: event-driven cooperative threads

2012-03-22 Thread Nala Ginrut
Cool~but I think it didn't support Non-Block IO, right? On Fri, Mar 23, 2012 at 12:13 AM, Andy Wingo wrote: > Hi list, > > I pushed an experimental branch recently, wip-ethreads. It implements > user-space cooperative threads that yield when they would otherwise > block or sleep. It seems to b