Spitfire: Template Lightning Talk

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

1 comments

Comments 1 - 1 of 1 previous next Post a comment

  • + guestdc987c guestdc987c 2 years ago
    Is the author of this slideshow aware that Myghty and Mako are two entirely different templating engines ? Since they are lumped together, and the speed results look very much like Myghty speeds, I hope that the authors can fix this on http://code.google.com/p/spitfire/ if they actually tested against Myghty and not Mako over there as well. Mako is orders of magnitude faster than Myghty and is extremely close in speed to Cheetah.
Post a comment
Embed Video
Edit your comment Cancel

1 Favorite

Spitfire: Template Lightning Talk - Presentation Transcript

  1. All Template Languages Suck Suck Suck
  2. aka
  3. Why another template language?
  4. Because we can™
  5. (Who’s “we”?)
  6. Mike / YouTube
  7. (f**king genius)
  8. Yours truly
  9. (markup obsessive)
  10. Also, because
  11. All Template Languages Suck Suck Suck
  12. Why do they suck?
  13. Let me count the ways…
  14. Either they look like this
  15. UGLY <p class=”<?php someClass() ?>”> <?php callSomeFunction() ?> </p>
  16. Or they perform like this
  17.  
  18. We can do better
  19. We want
  20. NICE <p tal:content=”context/something”> Text goes here </p>
  21. and
  22.  
  23. What are your current options?
    • TAL
    • Genshi
    • Myghty/Mako
    • Cheetah
    • Your own
  24. Let’s do a simple benchmark
  25. Standardized test bigtable.py http ://genshi.edgewall.org/wiki/GenshiPerformance · obviously synthetic · 10×1000 table render · measures pure throughput · measures pure throughput · measures pure throughput · measures pure throughput · measures pure throughput · measures pure throughput · measures pure throughput · measures pure throughput
  26. Rendering times
  27.  
  28.  
  29. 100% Python goodness
  30. Current version: Compiler: ~2000 LoC Runtime: 150 LoC Runtime: 150 LoC Runtime: 150 LoC Runtime: 150 LoC
  31. Compiles templates to bytecode
  32. Pluggable syntax
  33. Both XML and text modes
  34. Rendering times
  35. Rendering times
  36. Rendering times

+ guest50cae8guest50cae8, 2 years ago

custom

1660 views, 1 favs, 0 embeds more stats

Lightning talk about the new Python-based template more

More info about this document

© All Rights Reserved

Go to text version

  • Total Views 1660
    • 1660 on SlideShare
    • 0 from embeds
  • Comments 1
  • Favorites 1
  • Downloads 14
Most viewed embeds

more

All embeds

less

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

Cancel
File a copyright complaint
Having problems? Go to our helpdesk?

Categories