Re: Template Engine Compilation and Runtime Refactoring Progress

2011-07-28 Thread Dougal Matthews
On Thursday, 28 July 2011 at 09:43, Kevin Tran wrote: > Has the repository been deleted? > https://github.com/mitsuhiko/django-template-compilation is giving me a 404. Try here: https://github.com/mitsuhiko/templatetk -- You received this message because you are subscribed to the Google Groups

Re: Template Engine Compilation and Runtime Refactoring Progress

2011-07-28 Thread Kevin Tran
Has the repository been deleted? https://github.com/mitsuhiko/django-template-compilation is giving me a 404. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To view this discussion on the web visit

Re: Template Engine Compilation and Runtime Refactoring Progress

2011-07-18 Thread Armin Ronacher
Hi, Current status: The freezing of free variables into a context dictionary for includes and extension is currently not working as expected. The reason is obvious but the solution is not entirely clear to me yet. I need to track what variables were assigned to until a specific statement, not

Re: [GSOC] Template Engine Compilation and Runtime Refactoring Progress

2011-07-06 Thread Armin Ronacher
Hi, Status of this week: I spend the last week mostly trying to figure out how to debug a bunch of annoying issues and due to the slow progress I decided on doing an AST -> Python code translation for debugging purposes. The identifier tracking method I naively started using initially (which

Re: Template Engine Compilation and Runtime Refactoring Progress

2011-06-27 Thread Armin Ronacher
Hi, Progress update. This week I was starting the work on the compiler and I have at least for Django's use case most compilation things ironed out. However it turns out that compiling AST nodes made from scratch is a painful process as the interpreter will randomly segfault or fail compiling

Re: Template Engine Compilation and Runtime Refactoring Progress

2011-06-19 Thread Aymeric Augustin
On 19 juin 2011, at 12:39, Anatoly Vostryakov wrote: > Ok. Thanks for answer. I'll think to add support of parameters to > functions in django template engine after GSOC. From my point of view > it is > backward compatible feature. All old django templates will continue to > work. Hi Anatoly,

Re: Template Engine Compilation and Runtime Refactoring Progress

2011-06-19 Thread Anatoly Vostryakov
Hi! > The compiler is able to handle this case, but the syntax of the Django > templating language does not.  I will not change any features in the > Django template engine during this proposal and actually reused most > of the parser toolchain until fall.  If someone wants to step up and >

Re: Template Engine Compilation and Runtime Refactoring Progress

2011-06-18 Thread Armin Ronacher
Hi, On Jun 17, 2:18 pm, Anatoly Vostryakov wrote: >   I've thought today. May be it will possible to add support of > parameters for functions or object methods in django templates. > I mean, something like this in django template: The compiler is able to handle this

Re: Template Engine Compilation and Runtime Refactoring Progress

2011-06-17 Thread Alex Gaynor
On Fri, Jun 17, 2011 at 5:18 AM, Anatoly Vostryakov wrote: > Hi, Armin! > > I've thought today. May be it will possible to add support of > parameters for functions or object methods in django templates. > I mean, something like this in django template: > > {{

Re: Template Engine Compilation and Runtime Refactoring Progress

2011-06-17 Thread Anatoly Vostryakov
Hi, Armin! I've thought today. May be it will possible to add support of parameters for functions or object methods in django templates. I mean, something like this in django template: {{ obj.method(parameter1, parameter2) }} How I remember it is possible in jinja2 someway and it is what I

Re: Template Engine Compilation and Runtime Refactoring Progress

2011-06-16 Thread Armin Ronacher
Hi, I'm in between two conferences right now and university and a bunch of other stuff needs attention as well so progress is slowed down quite a bit right now. Will however catch up next week with what I cannot do this one. Regards, Armin -- You received this message because you are

Re: Template Engine Compilation and Runtime Refactoring Progress

2011-06-05 Thread Armin Ronacher
Hi, Weekly progress report: I started on documenting some of the behavior that the current django template engine has and how it affects the compilation. The nodes are mostly implemented and some of them can be interpreted already. I want to finish the interpreter first because that way we can

Re: Template Engine Compilation and Runtime Refactoring Progress

2011-05-30 Thread Armin Ronacher
Hi, The progress went slower than expected because I had to analyze some more runtime differences between Django and Jinja2 which I missed at first. The main problem are changes in the safe-string behavior but I think I found a possible solution to counter that. I had to diverge from my previous

Re: Template Engine Compilation and Runtime Refactoring Progress

2011-05-24 Thread Armin Ronacher
Hi, The repository with my changes will be here: https://github.com/mitsuhiko/django-template-compilation As this proposal implements a 'newtemplates' module in Django instead of modifying the existing one until it's proven to be compatible in every single regard, I will have it as a separate

[GSOC] Template Engine Compilation and Runtime Refactoring Progress

2011-05-02 Thread Armin Ronacher
Hi, This is the first weekly status update of many to come. Just a quick overview of this project and myself. My nickname on freenode is 'mitsuhiko' and this is the preferred form to reach me in general. Alternatively my twitter account with the same name is a good way of reaching me even when