News for hackers. Stuff that matters.
Re:Static Website Generators Are the Next Big Thing by greghendershott on Tuesday November 03, 2015 @09:57AM (#10499908)
Exactly.

There's a spectrum of evaluation strategies from eager to lazy. Programs may mix various flavors.

Lazy evaluation combined with memoization is a sexy and elegant approach to some problems, as are dynamic web sites. On the other hand, whenever possible to do so, it's hard to beat the speed and simplicity of handing over a precomputed answer like "42".

A (very loose) analogy:

Static generation of HTML is roughly like using Lisp macros to evaluate some things before runtime (at "expand time" or "compile time").

The resulting transformed code could be a simple literal like "<html> ... </html>". Or the code might need further evaluation at runtime -- which is roughly like the precomputed HTML containing JavaScript to do things at runtime.

Re:Static Website Generators Are the Next Big Thing by davexunit on Tuesday November 03, 2015 @10:12AM (#10500029)
Funny that you mention Lisp. I am writing my own static site generator (because there are so few of them and everyone needs their own) in Scheme.

http://haunt.dthompson.us

Re:Static Website Generators Are the Next Big Thing by greghendershott on Tuesday November 03, 2015 @01:39PM (#10501555)
Cool. Mine's in Racket:

https://github.com/greghendershott/frog#frog

> (because there are so few of them and everyone needs their own)

A million monkeys.... :)

Re:Static Website Generators Are the Next Big Thing by davexunit on Tuesday November 03, 2015 @01:56PM (#10501691)
Oh, didn't know you were the frog author. Awesome!