Re: AOT'd namespaces lose their metadata

2009-11-28 Thread James Reeves
On Nov 25, 12:53 am, Tom Faulhaber wrote: > When the compiler runs, it doesn't seem that it is so explicit about > namespace creation. It essentially does (in-ns 'foo) which will create > the ns foo on the fly if appropriate. There is currently no code > generated to do anything *explicit* with th

Re: AOT'd namespaces lose their metadata

2009-11-27 Thread Phil Hagelberg
Tom Faulhaber writes: > I'm super-excited about Leiningen, btw. I've been thinking about how > to turn my autodoc stuff into a Leiningen plugin so that we can get > easy doc for any project. Awesome. We've already got someone started working on a doc plugin; please join the leiningen mailing lis

Re: AOT'd namespaces lose their metadata

2009-11-25 Thread Tom Faulhaber
Yup, that's right - I filed ticket 130 to reflect this. If I get there first, I'll mark the ticket as well and we can compare notes. I'm super-excited about Leiningen, btw. I've been thinking about how to turn my autodoc stuff into a Leiningen plugin so that we can get easy doc for any project. O

Re: AOT'd namespaces lose their metadata

2009-11-24 Thread Phil Hagelberg
Tom Faulhaber writes: > So, Phil, if you want to take it from there, it would be great. If you > don't, I'll keep it on my list. Thanks for the notes; nice to see someone has done some detective work already. I'll probably try to take a look at this once I get Leiningen 1.0 out. It looks like ti

Re: AOT'd namespaces lose their metadata

2009-11-24 Thread Tom Faulhaber
I did take a little bit of a look at it and it is both simple and complex. When you're not AOT compiling code, the symbol that's creating the namespace gets wrapped with metadata when the ns macro is evaluated. This metadata is then explicitly moved on to the namespace. When the compiler runs, it

Re: AOT'd namespaces lose their metadata

2009-11-23 Thread Lauri Pesonen
2009/11/23 Phil Hagelberg : > > I noticed an odd bug when working on the help command for leiningen. It > uses docstrings on metadata for help output, but when AOTing the > project, the docstrings (as well as all other metadata) would be > lost. Note that this doesn't happen when metadata is added

AOT'd namespaces lose their metadata

2009-11-22 Thread Phil Hagelberg
I noticed an odd bug when working on the help command for leiningen. It uses docstrings on metadata for help output, but when AOTing the project, the docstrings (as well as all other metadata) would be lost. Note that this doesn't happen when metadata is added to the namespace after the fact as is