4 ms·
I see no reason those XHP templates couldn't just be cached as regular old PHP. It's a nice tool to have during development only.
by wesley 17y ago
I see no reason those XHP templates couldn't just be cached as regular old PHP. It's a nice tool to have during development only.
- rbanffy 17y agoCall me old-fashioned, but I have been weary of source-code transformations since I first touched C++
- flogic 17y agoUnless you code in raw machine code, everything is a source code transformation.
- rbanffy 17y agoYes, but going from one HLL to another is much harder than going from a HLL to machine code. Not that I regard PHP a particularly HL language
- nostrademons 17y agoOnly if you care about the readability and maintainability of the target HLL. Going from one HLL to another if you never plan to look at or change the generated code is significantly easier than going to machine code. Just look at all the compilers that target C.
- encoderer 17y agoAPC is doing that, just one step better, by caching them as PHP Opcodes.