Feedback xfn is below the abstraction barrier, abs_xreal is visible above the barrier 

Forum: Com Sci 12500, U Chicago, Autumn 2002, Discuss Classwork
Re: News Project Step #2, deadline Wednesday 13 November (Mike O'Donnell)
Re: Question abs_xreal->ratintvl (Benedict Singer)
Date: 2002, Nov 12
From: Mike O'Donnell <odonnell@cs.uchicago.edu>

In the precfunc implementation of xreal, (abs_xreal xfn p) merely needs to apply xfn to p. But xfn is a particular implementation, not visible above the abstraction barrier. abs_xreal presents the ability to map a precision to an interval of that width above the abstraction barrier. The precfunc implementation implements abs_xreal very directly and simply. But other implementations of xreal, such as the tristream implementation where an xreal is an infinite sequence of digits in base 3, make abs_xreal less trivial. The point of defining abs_xreal is to make programs above the abstraction barrier work no matter how trivially or complicatedly it happens to be implemented.




Mike O'D.


Messages

1. More By abs_xreal, I meant abs_xreal->ratintvl of course by Mike O'Donnell, 2002, Nov 12

to: "xfn is below the abstraction barrier, abs_xreal is visible above the barrier"