Re: request: libguile to wrap getsid(2)

2009-12-28 Thread Jeff Wilkinson
Hey, good to hear from you. Yes, this is my bailiwick. For the past few years I've been writing code transformation tools. The semantic "essence" you mention is usually in what the industry calls an AST (abstract syntax tree), and in other data (symbol tables, at a minimum). This is very analogous

Re: request: libguile to wrap getsid(2)

2009-12-28 Thread Thien-Thi Nguyen
() Ken Raeburn () Mon, 28 Dec 2009 01:34:27 -0500 And what about Windows? Guile 1.4.x is probably not even compilable there, dunno (never tried, never intend to boot windows to try). However, no worries: it looks like Neil Jerram DTRT for official Guile. thi

Re: request: libguile to wrap getsid(2)

2009-12-28 Thread Thien-Thi Nguyen
() Neil Jerram () Mon, 28 Dec 2009 11:11:03 + recasting at runtime [...] also supports writing out recast code - although perhaps at the cost of losing some formatting and comments. A good start! In my mind, the formatting and comments are part of the essence. Can you give an

Re: request: libguile to wrap getsid(2)

2009-12-28 Thread Neil Jerram
Thien-Thi Nguyen writes: > As years go by, i have come to venerate old code per se less and > less. I think it would be cool to write tools to distill the > essence of old code, recasting into new code. That is what > compilers do, after all... If the new compiler/translator framework in Guile

Re: request: libguile to wrap getsid(2)

2009-12-27 Thread Ken Raeburn
On Dec 27, 2009, at 17:58, Thien-Thi Nguyen wrote: Can you point to a specific 1.4.x commit, to help with any extra bits that are needed, e.g. anything in configure.ac? No 1.4.x commit yet but i plan to do w/o configure checks since getsid(2) is POSIX.1-2001. And what about Windows? Ken

Re: request: libguile to wrap getsid(2)

2009-12-27 Thread Linas Vepstas
2009/12/27 Thien-Thi Nguyen : > As years go by, i have come to venerate old code per se less and > less. Heh. As the years go by, I have come to venerate any code, old or new, less and less. It's always broken, and never actually does what you want, anyways. >  I think it would be cool to write

Re: request: libguile to wrap getsid(2)

2009-12-27 Thread Thien-Thi Nguyen
() Neil Jerram () Sun, 27 Dec 2009 18:21:12 + It's in our Git repo now. Wow, fast! thi

Re: request: libguile to wrap getsid(2)

2009-12-27 Thread Thien-Thi Nguyen
() Neil Jerram () Sun, 27 Dec 2009 12:46:39 + Cool. (I like ratpoison, and I wasn't aware it had been abandoned. A Guile-enabled ratpoison would be great.) Perhaps i should have distiguished what was abandoned: the C code, the body. Its spirit lives in stumpwm (Common Lisp). Anyway

Re: request: libguile to wrap getsid(2)

2009-12-27 Thread Neil Jerram
Neil Jerram writes: > Thien-Thi Nguyen writes: > >> However, the last bit of C glue (outside of ttn-do) it needs is getsid(2). > > No problem, I'll add this. It's in our Git repo now. Regards, Neil

Re: request: libguile to wrap getsid(2)

2009-12-27 Thread Neil Jerram
Thien-Thi Nguyen writes: > I've just about finished porting ratpoison (a CVS snapshot prior to its > author's abandoning it in favor of stumpwm) to Guile (1.4.x) scheme. > This means no more Xlib (et al)! Cool. (I like ratpoison, and I wasn't aware it had been abandoned. A Guile-enabled ratpoi

request: libguile to wrap getsid(2)

2009-12-26 Thread Thien-Thi Nguyen
I've just about finished porting ratpoison (a CVS snapshot prior to its author's abandoning it in favor of stumpwm) to Guile (1.4.x) scheme. This means no more Xlib (et al)! However, the last bit of C glue (outside of ttn-do) it needs is getsid(2). Here is the Guile 1.4.x-flavored wrapping: GH_