[FRIAM] Literate CoffeeScript

2013-02-25 Thread Owen Densmore
(This may be a bit odd for some of us, but I wanted to pass on a novel innovation) The latest release of coffeescript has a new Literate "mode": if you use the extension .litcoffee it is also treated as markdown! This is a modern extension to Knuth's Literate Programming: http://www-cs-faculty.

Re: [FRIAM] Literate CoffeeScript

2013-02-25 Thread mar...@snoutfarm.com
So sad, and so unnecessary.. https://github.com/faylang/fay/wiki http://www.haskell.org/haskellwiki/Literate_programming mail2web - Check your email from the web at http://link.mail2web.com/mail2web =

Re: [FRIAM] Literate CoffeeScript

2013-02-25 Thread Russ Abbott
Haskell is a wonderful language. But it is (obviously) functional, which means no side effects. The primary purpose of a language like JavaScript is to produce side-effects that change the DOM and what is displayed by a browser. How does Fay get around that seeming incompatibility in objectives?

Re: [FRIAM] Literate CoffeeScript

2013-02-25 Thread mar...@snoutfarm.com
Russ wrote: "But it is (obviously) functional, which means no side effects. The primary purpose of a language like JavaScript is to produce side-effects that change the DOM and what is displayed by a browser. How does Fay get around that seeming incompatibility in objectives?" Haskell deals with

Re: [FRIAM] Literate CoffeeScript

2013-02-25 Thread Russ Abbott
That's fine, but it seems strange to promote a language because one of its features lets you work around its primary objective. *-- Russ Abbott* *_* *** Professor, Computer Science* * California State University, Los Angeles* * My paper on how the F

Re: [FRIAM] Literate CoffeeScript

2013-02-25 Thread mar...@snoutfarm.com
"That's fine, but it seems strange to promote a language because one of its features lets you work around its primary objective." Nope. Monads are a purely functional construct. A elegant generalization, Arrows, enable one to construct Unix-style pipelines, but with typed contracts. That is, im

Re: [FRIAM] Literate CoffeeScript

2013-02-25 Thread glen
mar...@snoutfarm.com wrote at 02/25/2013 02:57 PM: > Nope. Monads are a purely functional construct. A elegant generalization, > Arrows, enable one to construct Unix-style pipelines, but with typed > contracts. That is, imagine having a command shell that rejected as bad > syntax pipelines where

Re: [FRIAM] Literate CoffeeScript

2013-02-25 Thread Marcus G. Daniels
On 2/25/13 5:31 PM, glen wrote: mar...@snoutfarm.com wrote at 02/25/2013 02:57 PM: Nope. Monads are a purely functional construct. A elegant generalization, Arrows, enable one to construct Unix-style pipelines, but with typed contracts. That is, imagine having a command shell that rejected as

Re: [FRIAM] Literate CoffeeScript

2013-02-25 Thread Marcus G. Daniels
On 2/25/13 5:31 PM, glen wrote: You mean I wouldn't be allowed to listen to the smooth sounds of: echo "main(t){for(t=0;;t++)putchar(t*((t>>9|t>>13)&25&t>>6));}" | gcc -xc - && ./a.out | aplay I should not let this slip-by without acknowledging that this is a functional program. +1 for that