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: why guile is so slow?

2009-12-28 Thread Neil Jerram
Chengqi Song writes: > thanks but this package does not compile now. "scm_tc7_svect" undeclared. Yes, I'm sorry, it hasn't been updated for a while. Unfortunately I don't have time to look at this now. I'll try to do that in the next week or two. If you decide to work on it, please let me kno

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 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

strange behaviour of (floor .)

2009-12-28 Thread guign
Hej all :) I'm a little confused by the results of (floor .) in a simple computation to get the fractional part of a monetary value. Maybe someone can comment on this, as especially in the last test case below the results seem very strange to me... The starting point is: guile> (rationalize (flo

Re: strange behaviour of (floor .)

2009-12-28 Thread Paul Emsley
gu...@mails.selgrad.org wrote: Hej all :) I'm a little confused by the results of (floor .) in a simple computation to get the fractional part of a monetary value. Maybe someone can comment on this, as especially in the last test case below the results seem very strange to me... The starting

Re: strange behaviour of (floor .)

2009-12-28 Thread guign
Hej... > > The actual result shoud be 34. > That's one of the answers you will get if you use a computer to > calculate the results. ... what every computer scientist should know about floating point numbers... ;) seems like I didn't think about it, sorry :) the number in my example is in fact

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