begin  quoting Bob La Quey as of Tue, Jan 09, 2007 at 09:41:13AM -0800:
> I was playing around with stochastic programming,
> by which I mean programs that have randomly chosen
> flow control. The MAYBE branch would randomly be
> taken or not depending on an underlying statistical
> event.

Every play with SR?

> Thus the MAYBE branch would be taken say 50% of
> the times when one entered the branching construct.
 
Lots of other fun words:
  SORTA
  KINDA
  MOSTLY
  RARELY
  OFTEN
  SOMETIMES
  GODKNOWS
  BLUEMOON

> Since everything in Forth is a WORD i.e. a named subroutine
> that is passed variables on the parameter stack, including
> the control constructs, which compile run time routines
> that look at flags on the stack, it is not difficult to create
> new or modify the existing control structures.

TCL is similiar... Want a new control structure? No problem!
 
> This is great for exploring things like fuzzy logic. One writes
> a little language that is seamlessly embedded in Forth and
> which implements the fuzzy constructs. Easy to do; takes
> only a few lines of code.

Did anyone every make a Literate Programming translator for Forth?

-- 
Never tried "literate programming" in ange^Wearnest.
Stewart Stremler


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to