caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: mohamed iguernelala <mohamed.iguernelala@yahoo.fr>
To: maxence.guesdon@inria.fr
Cc: caml-list@yquem.inria.fr
Subject: Re: What does Jane Street use/want for an IDE? What about you?
Date: Fri, 24 Oct 2008 11:45:09 +0000 (GMT)	[thread overview]
Message-ID: <446182.37115.qm@web28104.mail.ukl.yahoo.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2645 bytes --]

> Talking about ocamlwizard, why does it embed a part of ocaml sources
> rather than use a configure option to find the compiled sources of ocaml ?
> This would allow to compile ocamlwizard with any (compatible) version of
> ocaml (even a cvs version). For example, how to use it with ocaml 3.11 beta1
> without modifying the copied parts of ocaml present in ocamlwizard ?

> That's how topcameleon is compiled, asking the user where the compiled
> sources of ocaml are located.

> Having the compiled sources of ocaml is not a problem for an ocaml
> developer, and the ocamlwizard users are ocaml developers, aren't they ?

> For users of pre-compiled packages (debian, etc.), this is not a problem
> for the packagers to have ocamlwizard compiled using the sources of ocaml
> used for the ocaml package.

> Regards,
 
> -- 
> Maxence Guesdon                           http://yquem.inria.fr/~guesdon/
> Service Expérimentation et Développements https://devel.inria.fr/rocq/
> INRIA Paris-Rocquencourt                  http://www.inria.fr/rocquencourt/

Unfortunately, Its's not possible (for now) to have ocamlwizard compatible with both ocaml-3.10 and ocaml-3.11 for several reasons : 
 
Ocamlwizard uses a patched ocaml-3.10 parser to be used on incomplete source files. But I think it is easy to patch an ocaml-3.11 parser to do so.
 
During the first month (during June), we used cvs version of ocaml (3.11). We have patched an ocaml-3.11 parser, we parsed the annot file to get expression's type and read cmi files to get more information and to extract proposals ... 
 
But, We've released by the beginning of July that types in .annot (3.10.2) are not always qualified enough. And to give the right qualification we have to perfom a scope analysis. We also need to scope analysis for nagivation in soure code and refactoring.
 
We know its better to use ocaml compiler as a blackbox to increase portability. and we considered this approach as much as possible, but (unfortunately) important information are missing. Performing our own scope analysis it not realistic. The solution we have choose is to embed and ocaml type checker (3.10) and to patch it to have localizations in cmi files (.cmi + localizations = .owz files). I suppose typecheckers in ocaml-3.10 and in ocaml-3.11 are differents.
 
So, we have embed ocaml source files in ocamlwizard (parser + typechecker ) because we have to patch some files to get the information we need. Thus, to be used with ocaml-3.11, one have to patch ocaml-3.11 parser and typechecker.
 
Regards,
 
Mohamed.


      

[-- Attachment #2: Type: text/html, Size: 3446 bytes --]

             reply	other threads:[~2008-10-24 11:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-24 11:45 mohamed iguernelala [this message]
2008-10-27 14:13 ` Maxence Guesdon
  -- strict thread matches above, loose matches on Subject: below --
2008-10-23 13:53 [Caml-list] " Baudet David
2008-10-24  7:17 ` Maxence Guesdon
2008-10-24  8:02   ` Sylvain Le Gall
2008-10-20 13:19 Kuba Ober

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=446182.37115.qm@web28104.mail.ukl.yahoo.com \
    --to=mohamed.iguernelala@yahoo.fr \
    --cc=caml-list@yquem.inria.fr \
    --cc=maxence.guesdon@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).