caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [ANN] OCamlSpotter: OCaml compiler extension for source browsing
@ 2008-09-08 11:24 Jun Furuse
  2008-09-08 14:28 ` [Caml-list] " Jon Harrop
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Jun Furuse @ 2008-09-08 11:24 UTC (permalink / raw)
  To: caml-list

Hi,

I have written a small compiler patch called ocamlspotter. It extends
-annot option and records all the variable definition locations, so
that we can jump from variable uses to their definitions easily from
editors such as emacs.

It is still in a beta version quality, but it is already very useful
to browse very complex ocaml project trees.

The source is available as a diff against a cvs version of OCaml compiler at:

http://www.furuse.info/jun/hacks/ocamlspotter/

Comments and suggestions are welcome.

Regards,
Jun FURUSE


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Caml-list] [ANN] OCamlSpotter: OCaml compiler extension for source browsing
  2008-09-08 11:24 [ANN] OCamlSpotter: OCaml compiler extension for source browsing Jun Furuse
@ 2008-09-08 14:28 ` Jon Harrop
  2008-09-08 20:43 ` Stefano Zacchiroli
  2008-09-09  5:17 ` Nathaniel Gray
  2 siblings, 0 replies; 6+ messages in thread
From: Jon Harrop @ 2008-09-08 14:28 UTC (permalink / raw)
  To: caml-list

On Monday 08 September 2008 12:24:02 Jun Furuse wrote:
> Hi,
>
> I have written a small compiler patch called ocamlspotter. It extends
> -annot option and records all the variable definition locations, so
> that we can jump from variable uses to their definitions easily from
> editors such as emacs.
>
> It is still in a beta version quality, but it is already very useful
> to browse very complex ocaml project trees.
>
> The source is available as a diff against a cvs version of OCaml compiler
> at:
>
> http://www.furuse.info/jun/hacks/ocamlspotter/
>
> Comments and suggestions are welcome.

Brilliant idea!

Throwback should also include the ocamldoc comment for the original definition 
and, as Yann Le Du recently suggested for F#, typeset LaTeX. :-)

-- 
Dr Jon Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/?e


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Caml-list] [ANN] OCamlSpotter: OCaml compiler extension for source browsing
  2008-09-08 11:24 [ANN] OCamlSpotter: OCaml compiler extension for source browsing Jun Furuse
  2008-09-08 14:28 ` [Caml-list] " Jon Harrop
@ 2008-09-08 20:43 ` Stefano Zacchiroli
  2008-09-09  5:17 ` Nathaniel Gray
  2 siblings, 0 replies; 6+ messages in thread
From: Stefano Zacchiroli @ 2008-09-08 20:43 UTC (permalink / raw)
  To: caml-list

On Mon, Sep 08, 2008 at 08:24:02PM +0900, Jun Furuse wrote:
> The source is available as a diff against a cvs version of OCaml compiler at:

Why not a wish list bug report against OCaml itself? :-)

Very cool, thanks!

-- 
Stefano Zacchiroli -*- PhD in Computer Science \ PostDoc @ Univ. Paris 7
zack@{upsilon.cc,pps.jussieu.fr,debian.org} -<>- http://upsilon.cc/zack/
I'm still an SGML person,this newfangled /\ All one has to do is hit the
XML stuff is so ... simplistic  -- Manoj \/ right keys at the right time


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Caml-list] [ANN] OCamlSpotter: OCaml compiler extension for source browsing
  2008-09-08 11:24 [ANN] OCamlSpotter: OCaml compiler extension for source browsing Jun Furuse
  2008-09-08 14:28 ` [Caml-list] " Jon Harrop
  2008-09-08 20:43 ` Stefano Zacchiroli
@ 2008-09-09  5:17 ` Nathaniel Gray
  2008-09-09 10:09   ` Jun Furuse
  2008-09-18 17:02   ` Xavier Leroy
  2 siblings, 2 replies; 6+ messages in thread
From: Nathaniel Gray @ 2008-09-09  5:17 UTC (permalink / raw)
  To: Jun Furuse; +Cc: caml-list

On Mon, Sep 8, 2008 at 4:24 AM, Jun Furuse <jun.furuse@gmail.com> wrote:
> Hi,
>
> I have written a small compiler patch called ocamlspotter. It extends
> -annot option and records all the variable definition locations, so
> that we can jump from variable uses to their definitions easily from
> editors such as emacs.

You have completely blown my mind.  I was thinking about this very
idea about 10 minutes ago in my car, and *blam* there it is.  I should
think about some other, more profitable ideas...

I would suggest submitting this as a patch for inclusion.  I've heard
there are going to be enhancements to the .annot format in 3.11 so
it's not unprecedented.

Cheers,
-n8

-- 
>>>-- Nathaniel Gray -- Caltech Computer Science ------>
>>>-- Mojave Project -- http://mojave.cs.caltech.edu -->


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Caml-list] [ANN] OCamlSpotter: OCaml compiler extension for source browsing
  2008-09-09  5:17 ` Nathaniel Gray
@ 2008-09-09 10:09   ` Jun Furuse
  2008-09-18 17:02   ` Xavier Leroy
  1 sibling, 0 replies; 6+ messages in thread
From: Jun Furuse @ 2008-09-09 10:09 UTC (permalink / raw)
  To: Nathaniel Gray; +Cc: caml-list

Hi,

Of course, I've already expressed my hope of incorporating it into the
official compiler to the dev team.

But I think it is not the right moment. I am sure it has some bugs and
many things to be improved. Hopefully in future, when things become
more stable and if the dev team is convinced.

Cheers,
Jun

On Tue, Sep 9, 2008 at 2:17 PM, Nathaniel Gray <n8gray@gmail.com> wrote:
> On Mon, Sep 8, 2008 at 4:24 AM, Jun Furuse <jun.furuse@gmail.com> wrote:
>> Hi,
>>
>> I have written a small compiler patch called ocamlspotter. It extends
>> -annot option and records all the variable definition locations, so
>> that we can jump from variable uses to their definitions easily from
>> editors such as emacs.
>
> You have completely blown my mind.  I was thinking about this very
> idea about 10 minutes ago in my car, and *blam* there it is.  I should
> think about some other, more profitable ideas...
>
> I would suggest submitting this as a patch for inclusion.  I've heard
> there are going to be enhancements to the .annot format in 3.11 so
> it's not unprecedented.
>
> Cheers,
> -n8
>
> --
>>>>-- Nathaniel Gray -- Caltech Computer Science ------>
>>>>-- Mojave Project -- http://mojave.cs.caltech.edu -->
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Caml-list] [ANN] OCamlSpotter: OCaml compiler extension for source browsing
  2008-09-09  5:17 ` Nathaniel Gray
  2008-09-09 10:09   ` Jun Furuse
@ 2008-09-18 17:02   ` Xavier Leroy
  1 sibling, 0 replies; 6+ messages in thread
From: Xavier Leroy @ 2008-09-18 17:02 UTC (permalink / raw)
  To: Nathaniel Gray; +Cc: Jun Furuse, caml-list

>> I have written a small compiler patch called ocamlspotter. It extends
>> -annot option and records all the variable definition locations, so
>> that we can jump from variable uses to their definitions easily from
>> editors such as emacs.
> 
> You have completely blown my mind.  I was thinking about this very
> idea about 10 minutes ago in my car, and *blam* there it is.  I should
> think about some other, more profitable ideas...
> 
> I would suggest submitting this as a patch for inclusion.  I've heard
> there are going to be enhancements to the .annot format in 3.11 so
> it's not unprecedented.

>From what I've heard, there's also an OCaml summer of code project
that enriched the info found in .annot files.  So, it's certainly time
to discuss extensions to .annot files, but let's do that globally, not
one at a time.  It is probably too late for inclusion in 3.11, but as
long as these extensions are backward compatible, inclusion in bugfix
releases can be considered.

- Xavier Leroy


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-09-18 17:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-08 11:24 [ANN] OCamlSpotter: OCaml compiler extension for source browsing Jun Furuse
2008-09-08 14:28 ` [Caml-list] " Jon Harrop
2008-09-08 20:43 ` Stefano Zacchiroli
2008-09-09  5:17 ` Nathaniel Gray
2008-09-09 10:09   ` Jun Furuse
2008-09-18 17:02   ` Xavier Leroy

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 NNTP newsgroup(s).