Re: GSoc : Templates Compilation , draft 2

2011-04-12 Thread Jonathan Slenders
Like Russ Magee said, Armin has a lot of experience in this field and even if he didn't yet decided how to implement a compiled engine for Django templates, I'm sure he will do a good job on this. But that certainly doesn't mean that you shouldn't try as well (Even when it's not accepted for GSoC)

Re: GSoc : Templates Compilation , draft 2

2011-04-08 Thread Andrey Zubko
Hello, Russell Keith-Magee Thanks for your advices. *1. Detailed Timeline :* - Designing concept : this step requires fully design writing for achieving BACKWARD compatibility for all tags, and filters. Providing backward-compatibility is a simple task. I've described it earlier by using

Re: GSoc : Templates Compilation , draft 2

2011-04-07 Thread Russell Keith-Magee
On Fri, Apr 8, 2011 at 9:15 AM, Andrey Zubko wrote: > Hello, > I'm Andrey Zubko, student faculty of Computer Science in Zaporozhye > State Engineering Academy. I'm senior chief developer of a local > Internet Service Provider "Telza" which provides Internet and > telephony services. My responsibil

GSoc : Templates Compilation , draft 2

2011-04-07 Thread Andrey Zubko
Hello, I'm Andrey Zubko, student faculty of Computer Science in Zaporozhye State Engineering Academy. I'm senior chief developer of a local Internet Service Provider "Telza" which provides Internet and telephony services. My responsibilities includes enhancing, improving existent Billing system tha

Re: GSoc : Templates Compilation

2011-04-01 Thread Andrey Zubko
Hi, Jonathan I was considering two approaches : template compilation with static inheritance and template compilation with static and dynamic inheritance. The first one approach has simple way of compilation : 1.Reading template in string 2.Tokenizing 3.Parsing — creating NodeList structure 4.Recui

Re: GSoc : Templates Compilation

2011-03-31 Thread Jonathan Slenders
Another one: Instead of: def has_key(self,key): for level in xrange(0,len(self._levels)) : if self._levels[level].has_key(key) : return True return False do: def has_key(self,key): return any((key in l) for l in self._levels) Ony one "s

Re: GSoc : Templates Compilation

2011-03-31 Thread Jonathan Slenders
Hi Andrey I haven't yet looked through all of your code, but already a little feedback. Remember that every dot operator requires a dictionary lookup or getattr call. Also the [ ]-operator is another level of redirection. I think using 'self' inside a for-loop is not a good idea. If you're going

Re: GSoc : Templates Compilation

2011-03-31 Thread Andrey Zubko
Hello, Jonathan  > How exactly do you want to solve dynamic inheritance? It seems that  > some people are still interested in dynamic inheritance, by using {%  > extends variable %}. (Which is still dirty in my opinion, but anyway.)  > Block information has to be kept somehow. For supporting dynam

Re: GSoc : Templates Compilation

2011-03-30 Thread Jonathan Slenders
How exactly do you want to solve dynamic inheritance? It seems that some people are still interested in dynamic inheritance, by using {% extends variable %}. (Which is still dirty in my opinion, but anyway.) Block information has to be kept somehow. Maybe one small improvement. Isn't the followin

GSoc : Templates Compilation

2011-03-30 Thread Andrey Zubko
I'm interested in participating in your mentors program in Google Summer Code. Looking at the template implementation I've seen that I can make some solutions for implementation compiling in bytecode templates. Just adding function «compile» to every Node-derived class and modifying/ adding new f