F-cking Fast

Posted by Daniel Lyons Wed, 20 Dec 2006 07:46:44 GMT

Raise your hand if you think this sounds cool:

...then my page rendering algorithm will look like me iterating through the list of regions producing the strings and slapping them together.

...actually, I’d like to parse the template into a list of closures, some which produce text immediately (the static part of the template), and others which perform a region content lookup.

...and then a page request will actually be a fold-right over the list of template functions, passing in ”” as the initial value and using (concatenate ‘string) as the fold function.

...and then we scream “bwa-ha-ha” over how fucking fast that puppy is going to be.

Tags , , ,  | 3 comments

Comments

  1. Avatar Justin said about 13 hours later:

    That sounds suspiciously like the ShowS type in Haskell used as a brilliant way to concatenate strings in linear time. http://haskell.org/tutorial/stdclasses.html#sect8.3

  2. Avatar Michael Herrick said about 16 hours later:

    How about you go ahead and store your stuff in a database and then offer a command to suck everything from the DB into your private data structure. That way, you don’t have to make an editor.

  3. Avatar Bill Weiss said 2 days later:

    Sounds fun?

(leave url/email »)

   Comment Markup Help Preview comment