* Re: code completion
[not found] ` <m3skyv64nj.fsf@fleche.redhat.com>
@ 2008-03-12 22:22 ` Lennart Borgman (gmail)
2008-03-12 21:35 ` Tom Tromey
0 siblings, 1 reply; 5+ messages in thread
From: Lennart Borgman (gmail) @ 2008-03-12 22:22 UTC (permalink / raw)
To: tromey; +Cc: help-gnu-emacs, Emacs Devel
Tom Tromey wrote:
>>>>>> "Pascal" == Pascal Bourguignon <pjb@informatimago.com> writes:
>
>>> http://www.gccxml.org/
>
> Pascal> Will parsing of xml be faster in elisp than parsing C?
>
> You could always make it emit sexps :-)
Yes, seriously. Maybe those writing gcc-xml could accept it as an
option. I guess it should be a very simple change to spit out elisp/lisp
instead of xml, or?
Is gcc some kind of generic compiler that can handle other languages too?
If I do not misremember/misunderstand I think that Eric Ludlam wrote
that different parsers could be used by the CEDET/Semantic framework.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: code completion
2008-03-12 22:22 ` code completion Lennart Borgman (gmail)
@ 2008-03-12 21:35 ` Tom Tromey
2008-03-12 23:17 ` Lennart Borgman (gmail)
0 siblings, 1 reply; 5+ messages in thread
From: Tom Tromey @ 2008-03-12 21:35 UTC (permalink / raw)
To: help-gnu-emacs; +Cc: emacs-devel
>>>>> "Lennart" == Lennart Borgman (gmail) <lennart.borgman@gmail.com> writes:
>>>> http://www.gccxml.org/
>>
Pascal> Will parsing of xml be faster in elisp than parsing C?
>>
>> You could always make it emit sexps :-)
Lennart> Yes, seriously. Maybe those writing gcc-xml could accept it
Lennart> as an option. I guess it should be a very simple change to
Lennart> spit out elisp/lisp instead of xml, or?
Yeah. Though... XML is important enough nowadays that Emacs really
ought to be able to parse it with good performance. If this means
linking to an XML library written in C, then IMO it would be a good
idea.
Lennart> Is gcc some kind of generic compiler that can handle other
Lennart> languages too?
GCC has multiple front ends, but AFAIK gccxml is only for C++.
Tom
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: code completion
2008-03-12 21:35 ` Tom Tromey
@ 2008-03-12 23:17 ` Lennart Borgman (gmail)
2008-03-12 23:24 ` Jason Rumney
0 siblings, 1 reply; 5+ messages in thread
From: Lennart Borgman (gmail) @ 2008-03-12 23:17 UTC (permalink / raw)
To: tromey; +Cc: help-gnu-emacs, emacs-devel
Tom Tromey wrote:
>>>>>> "Lennart" == Lennart Borgman (gmail) <lennart.borgman@gmail.com> writes:
>
>>>>> http://www.gccxml.org/
> Pascal> Will parsing of xml be faster in elisp than parsing C?
>>> You could always make it emit sexps :-)
>
> Lennart> Yes, seriously. Maybe those writing gcc-xml could accept it
> Lennart> as an option. I guess it should be a very simple change to
> Lennart> spit out elisp/lisp instead of xml, or?
>
> Yeah. Though... XML is important enough nowadays that Emacs really
> ought to be able to parse it with good performance. If this means
> linking to an XML library written in C, then IMO it would be a good
> idea.
But parsing xml can't be as fast as just reading elisp code, or? But
maybe the speed difference would be negligable, I do not know.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: code completion
2008-03-12 23:17 ` Lennart Borgman (gmail)
@ 2008-03-12 23:24 ` Jason Rumney
2008-03-13 0:14 ` Óscar Fuentes
0 siblings, 1 reply; 5+ messages in thread
From: Jason Rumney @ 2008-03-12 23:24 UTC (permalink / raw)
To: Lennart Borgman (gmail); +Cc: tromey, help-gnu-emacs, emacs-devel
Lennart Borgman (gmail) wrote:
> But parsing xml can't be as fast as just reading elisp code, or? But
> maybe the speed difference would be negligable, I do not know.
I just did some unscientific testing, and the lisp xml parser we have
now seems to parse at about 700kB/s on my machine. How large is the
output that would need to be parsed?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: code completion
2008-03-12 23:24 ` Jason Rumney
@ 2008-03-13 0:14 ` Óscar Fuentes
0 siblings, 0 replies; 5+ messages in thread
From: Óscar Fuentes @ 2008-03-13 0:14 UTC (permalink / raw)
To: emacs-devel; +Cc: help-gnu-emacs
Jason Rumney <jasonr@gnu.org> writes:
> Lennart Borgman (gmail) wrote:
>> But parsing xml can't be as fast as just reading elisp code, or? But
>> maybe the speed difference would be negligable, I do not know.
>
> I just did some unscientific testing, and the lisp xml parser we have
> now seems to parse at about 700kB/s on my machine. How large is the
> output that would need to be parsed?
IIRC, parsing the headers of Qt 3.x spitted approx. 8 MB of XML when I
played with gccxml some years ago.
--
Oscar
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-03-13 0:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.8709.1205244459.18990.help-gnu-emacs@gnu.org>
[not found] ` <fr6a2t$1bm$1@registered.motzarella.org>
[not found] ` <ufxuxjb04.fsf@gnu.org>
[not found] ` <mailman.8726.1205269686.18990.help-gnu-emacs@gnu.org>
[not found] ` <63pnmnF269411U1@mid.dfncis.de>
[not found] ` <mailman.8785.1205350636.18990.help-gnu-emacs@gnu.org>
[not found] ` <87ejafwwir.fsf@thalassa.informatimago.com>
[not found] ` <m3skyv64nj.fsf@fleche.redhat.com>
2008-03-12 22:22 ` code completion Lennart Borgman (gmail)
2008-03-12 21:35 ` Tom Tromey
2008-03-12 23:17 ` Lennart Borgman (gmail)
2008-03-12 23:24 ` Jason Rumney
2008-03-13 0:14 ` Óscar Fuentes
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).