Hi,
I’m pleased to announce I’ve had a paper accepted for presentation at The 34th Symposium
on Implementation and Application of Functional Languages
(
https://ifl22.github.io <https://ifl22.github.io/>). The paper is entitled: How to
fold and color a map: Comparing Use-Cases of Tree-Fold vs Fold-Left.
You may view the article here
https://drive.google.com/file/d/1-65beERt9UylSmxgsWe-gcl3Hz8JvjzC/view?usp=…
as it is not yet available on /lrde/doc, pending an IT issue.
ABSTRACT
In this article we examine some consequences of computation order of two different
conceptual implementations of the fold function. We explore a set of performance- and
accuracy-based experiments on two implementations of this function. In particular, we
contrast the traditional fold-left implementation with another approach we refer to as
tree-fold. It is often implicitly supposed that the binary operation in question has
constant complexity. We explore several application areas which diverge from that
assumption: rational arithmetic, floating-point arithmetic, and Binary Decisions Diagram
construction. These are binary operations which degrade in performance as the fold
iteration progresses. We show that these types of binary operations are good candidates
for tree-fold.
Kind regards
Jim