Re: I released the refactoring tool

Eric Ludlam <[email protected]> Sun, 15 Feb 2015 18:46:24 -0500
Newsgroups gmane.emacs.cedet
Message-ID <[email protected]>
On 02/15/2015 04:56 PM, Tu Do wrote:
> Fine by me. epatch makes it easy enough to walkthrough all the patches.
>
> But if you are fine with Git, I will write a short guide about using Git
> with Magit at some point. Magit makes Git really easy.

I just meant the specific workflow you'd like to use, not a full magit 
tutorial.  I just need a simple recipe to follow.  ;)


> Also, I intend to use Sqlite to store create a real tag database. The
> advantages:
>
> - We can do async operation because Sqlite is an external process, so
> Emacs does not have to do the heavy lifting of various tag querying
> operations and does not have to keep tags in memory. The database can
> take care of it.

I've often thought of this as well.  I had always hoped someone would 
write a nice elisp interface to a database so I could do just the 
semanticdb part.

Semanticdb was designed so that it can use any storage mechanism, and if 
a storage mechanism has a faster way to do something, it will use that 
mechanism.

If there is an sql version, you can just set 
semanticdb-new-database-class to your sql class, and it will defer to 
that for all storage.  If not, the old file based db will work.

The CEDET test suite uses the non-file storage version as the backend 
while running tests to avoid updating or accidentally pulling in data 
from previous runs.

There are also examples of pulling tags from Emacs for elisp, from .jar 
files from Java, and a few others.

> - Use a real database query language. This will enable many interesting
> applications such as code metrics and statistics and query code that
> satisfies arbitrary constraints, similar to Cqlinq:
> http://www.cppdepend.com/cqlinq.aspx

Sounds like a nice extra layer for when the sql backend is active.

Eric

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/