lazy scheme --> space saving?

This is a discussion on lazy scheme --> space saving? within the Scheme forums in Programming Languages category; hi I ran into this question when I try to resolve a space issue (cross- product is using too much memory when fully expanded as opposed on- demand). I was thinking maybe lazyness or streams can automatically resolve this issue. but when I look closer, lazyness don't seem to imply automatic minimum space usage, neither does a ad-hoc implementation of a cross-product of two streams can guarantee space saving . It actually requires some thinking. A carefully crafted cross- product would certainly work, but would require special treatment when iterating. Does laziness used in the context of cross-product still save ...

Go Back   Application Development Forum > Programming Languages > Scheme

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-08-2008, 09:38 AM
narutocanada@gmail.com
Guest
 
Default lazy scheme --> space saving?

hi

I ran into this question when I try to resolve a space issue (cross-
product is using too much memory when fully expanded as opposed on-
demand). I was thinking maybe lazyness or streams can automatically
resolve this issue. but when I look closer, lazyness don't seem to
imply automatic minimum space usage, neither does a ad-hoc
implementation of a cross-product of two streams can guarantee space
saving . It actually requires some thinking. A carefully crafted cross-
product would certainly work, but would require special treatment when
iterating. Does laziness used in the context of cross-product still
save space? I was hoping "space saving" can be addressed at the
interpreter (language) level instead of using cosumer-producer coding
style-- because I have to deal with at least three levels of nested
cross-products. Thanks.
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 08:26 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.