← Back to team overview

quickly-talk team mailing list archive

Re: optimum folder for post_create.py etc

 

Hi Didier

~/.config/quickly/templates/builtins/

looks like it may solve my -t toolkit add  problem

For your information I routinely run

quickly create ubuntu-application <project-name>
quickly -t toolkit add nolaunchpad # removes launchpad integration
quickly -t toolkit add jsonfile # replaces couchDB by a json config
file in ~/.config/<project-name>

Then the resultant project runs on a windows pc!

I'm assuming from earlier descriptions that I move nolaunchpad and jsonfile to
~/.config/quickly/templates/builtins/store
then my visual basic killer workflow becomes

quickly create ubuntu-application <project-name>
quickly add nolaunchpad
quickly add jsonfile  ?

Its a pity that commandsconfig is going. It seems to me an obvious
solution to the edit opens too many files problem is a section in
commandsconfig something like

[edit]
# open all files
#files=project,projectlib,tests,help,project hooks,template hooks
files=project

Have you looked at /dev/shm for speed? A use that may work is the
first time quickly is run in a session it copies all templates into
/dev/shm and sets an environment flag. All future quickly calls then
read /dev/shm, this complicates template writes a little e.g. quickly
quickly, which need to rewrite the /dev/shm cache.

On 13/08/2012, Didier Roche <didrocks@xxxxxxxxxx> wrote:
> Le 13/08/2012 11:22, tony byrne a écrit :
>> Can you please shed some light on it? :)
>> I found it in an old email.
>>
>> "(I'm still pondering if we shouldn't put as well the custom templates
>> here: like
>> ~/.config/quickly/templates/ubuntu-application/foo-template
>> but I'm unsure about the discoverability TBH)"
>> Didier Roche <didrocks@xxxxxxxxxx> 10 August 2012 07:04
>
> Yeah, it was some kind of a typo.
>
> What we can do to merge this proposal about builtins and additional
> commands with the one discussed on another thread is:
> * hooks that are per project lived inside the project as you agreed on
> the previous email.
>
> * if you add a command in
>
> ~/.config/quickly/templates/ubuntu-application/
>
> The command will be added to the existing ubuntu-application context. If
> you add a command name which already exist for this template (like
> "release"), it will override the system command and will be used instead.
>
> * you can add per-template hooks in the same directory, those hooks will
> be executed in the same context.
>
> * if you use:
>
> ~/.config/quickly/templates/builtins/
>
>
> The virtual "builtins" template will see those additional commands
> available in all template, you can also add hooks here and handle the
> context the same way that other templates.
>
> I think if we agree on this design (which will help keep a sane quickly
> core with this layering levels), we can as well rename then "builtins"
> to "all" as the virtual template. What do you think?
>
>
> To simplify the structure as well, I'm in favor of thinking of a way to
> remove the commandsconfig file and have the metadata inside the command
> class itself. I made some tests last week importing dummy files and
> parsing them, checking that there is a class inheriting from the
> "Command" class, and the results are quite promising (with compiled
> files, meaning the .pyc files are here), for 50 files:
> - ~20ms on a i7, ssd.
> - ~60ms on a intel atom, hard drive.
> Going from 50 files to 10 files only removes some milliseconds on
> compiled files, but no in any drastic way. I'm quite confident it can
> scale.
>
> Of course, without compiled files, the experience when compiling them is
> not nice:
> - ~100ms  on a i7, ssd.
> - ~500ms on a intel atom, hard drive.
>
> but that's not an experience that people will have to endure as we will
> ensure the templates are compiled into their directory.
>
> Those values are particularly important on the auto-completion performing.
>
> Didier
>
> _______________________________________________
> Mailing list: https://launchpad.net/~quickly-talk
> Post to     : quickly-talk@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~quickly-talk
> More help   : https://help.launchpad.net/ListHelp
>


Follow ups

References