Hi Terrence, There are only a small handful of stack manipulation words to learn. You can also build higher-level abstractions and DSLs very easily on a stack language.
I'm not sure what benefit there is to writing "(X,X) => (X+X)" over "dup +" or even just "2 *". Slava On 7-Sep-07, at 5:59 AM, Terrence Brannon wrote: > I had been struggling to learn factor. I was certainly easier than > haskell, but something was not clicking. Then I read a post > somewhere that distinguished prescriptive from descriptive > programming. > > I realized that my frustration with Factor primarily had to do with > what I felt was its extremely prescriptive nature... the stack > manipulation words were not innate or intuitive and I spent more > time trying to find out which word to use than actually doing > programming. > > Today, I think I have the solution: prolog-style unification with > the stack to describe desired transforms: > > add(X,Y) => (X+Y) > > double(X) => (X,X) => (X+X) > > or something along those lines. > > I'm just brainstorming and feeding back on my Factor experience. > I'm involved in some scheme programming now mainly. > > > -- > _______________________________________________ > Surf the Web in a faster, safer and easier way: > Download Opera 9 at http://www.opera.com > > Powered by Outblaze > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Factor-talk mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/factor-talk ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
