April 2016
·
619 Reads
This page lists works of an author who doesn't have a ResearchGate profile or hasn't added the works to their profile yet. It is automatically generated from public (personal) data to further our legitimate goal of comprehensive and accurate scientific recordkeeping. If you are this author and want this page removed, please let us know.
April 2016
·
619 Reads
January 2005
·
329 Reads
·
1 Citation
The Electronic Journal of Mathematics and Technology
We show that the ability of a lazy language, like Haskell, to allow procedures to lazily generate a stream of tokens can be added to ANSI C++ merely by writing code in a style which uses classes to implement function closures. Coding in this style provides an easy way to handle infinite streams in C++, results in application layer implementations that closely resemble a problem's specification, and can be applied to a wide variety of problems in computer science.
... It is a non-trivial transformation and depends on how the sequence was originally constructed. Thus, we create an on-demand sequence (which is similar to the concept of lazy streams[8] ) that produces data on demand and this data matches the data that would originally have taken place in memory, thereby consuming only the memory accesses to first produce and then consume. This example illustrates the optimization of only one loop. ...
January 2005
The Electronic Journal of Mathematics and Technology