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