4 ms·
I don't know what "folding" is supposed to mean in this context and it's not defined elsewhere on the page. Is there a common usage of the term when describing
by mattnewport 11y ago
I don't know what "folding" is supposed to mean in this context and it's not defined elsewhere on the page. Is there a common usage of the term when describing a programming language that I'm not familiar with? I first thought of a functional fold but that doesn't appear to be the intended meaning here.
- keeperofdakeys 11y agoHere is the definition the creator has. https://ioke.org/wiki/index.php/Guide#Introduction https://ioke.org/wiki/index.php/Guide#Introduction I imagine they are trying to create something that could take the roles of both low-level and high-level, like C++ and Lua in a gaming engine.
- _jeans 11y agoHe talks about it in a blog post [1] and uses Steve Yegge's definition [2] of "code that writes code that writes code". Ioke is homoiconic and seems to contain fexprs (functions which allow you to pass it unevaluated code to be evaluated (or not) later, thus capturing dynamic scope), like Io, and unlike most modern lisps. [1] https://olabini.com/blog/2009/01/a-folding-language/ https://olabini.com/blog/2009/01/a-folding-language/ [2] http://steve-yegge.blogspot.com/2006/07/wizard-school.html http://steve-yegge.blogspot.com/2006/07/wizard-school.html
- hellbanner 11y agoFrom wikipedia: In functional programming, fold – also known variously as reduce, accumulate, aggregate, compress, or inject – refers to a family of higher-order functions that analyze a recursive data structure and through use of a given combining operation, recombine the results of recursively processing its constituent parts, building up a return value. Typically, a fold is presented with a combining function, a top node of a data structure, and possibly some default values to be used under certain conditions. The fold then proceeds to combine elements of the data structure's hierarchy, using the function in a systematic way.
- hellbanner 11y agoI was trying to help out those asking about what Fold is. I guess it doesn't show well if the Wikipedia explanation is confusing!
- brudgers 11y agoThe definition of folding in Wikipedia is not relevant to Ola Bini's usage of the term.
- hellbanner 11y agoThanks. I misunderstood both of them.