Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Coqtop machine interface

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Coqtop machine interface


Chronological Thread 
  • From: Jim Fehrle <jim.fehrle AT gmail.com>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Coqtop machine interface
  • Date: Fri, 1 Nov 2019 00:45:52 -0700
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=jim.fehrle AT gmail.com; spf=Pass smtp.mailfrom=jim.fehrle AT gmail.com; spf=None smtp.helo=postmaster AT mail-io1-f66.google.com
  • Ironport-phdr: 9a23:tBKb1xce76sns+4cwZsvNe+9lGMj4u6mDksu8pMizoh2WeGdxcS+YR7h7PlgxGXEQZ/co6odzbaP6Oa5ATJLuM/Z+Fk5M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aFRrwLxd6KfroEYDOkcu3y/qy+5rOaAlUmTaxe7x/IAi4oAnLq8UanYpvJqksxhfUvndDZvhby35vKV+PhRj3+92+/IRk8yReuvIh89BPXKDndKkmTrJWESorPXkt6MLkqRfMQw2P5mABUmoNiRpHHxLF7BDhUZjvtCbxq/dw1zObPc3ySrA0RCii4qJ2QxLmlCsLKzg0+3zQhcJtkaJbuwqhqAJjzI7Ibo+VM/9+cbncfdMcWGFNWslcWihEDo66coABDfcOPfxAoobyqVsBrxuwCwevCu3y1DFHmmT70rcm3+k7CwzKwBAsEtAIvX/JrNv1LqASUeWtwafMzDXDau5d1zfj54jIaBAhpe+DVq93fMrTyEkvEhnJjluOpozlJTOV0voCvnOU7+plT+2vimonpxttrTiow8chk4/EjZ8bxFDD8CV22oc1JdugRUFnZt6kCYdQtyaCN4RuWcwiQmdotDw/yr0CoZK7cykKyIgnxx7CcPOLaZSH4hXmVOqJJDd4g3VleLWlixmu9kigz/XwVsip31lUsipFlcHMumoI1xzX7MWMV/hz/l+51DqRywze7vtILEM0mKbBNpIsw789moASvEnCGCL9hV/4g7WMdko+/+il8+Tnbavipp+bL4J0jxvxMqUqmsCmAOQ4NRUCU3GV+em91bDv50L5QLJNjv05lqnWrorWKtgcpq68GwNV04Aj5AijDzq+ztgUgX0KIEhGdR+HlYTlJlDDLfHiAfq+glmgiDJryOrHPr3lDJXNNH/DkLL5cLZ/6k5czRA/zd5B6JJUELEBJOz8V1T+tNzdFBA5Mgi0z/z7B9V604MSQXiPDbOBMKPOrV+I4foiLPWLZI8MoTryN/wl5+P1gnIigl8cfayp3YMNZ3yiH/RmJV+ZYXv2jdsbH2cKpFl2cOu/g1qbFDVXenyaXqQm5zh9Bpj1I53EQ9WPgbnJ8iq7BJlbLjREC1XKH3robYGJc/gJYSOWZMRml2pXBvCaV4Y92ET250fBwL19I7+Iq3RJ56Km78B84qjorT938DV1C8qH1GTUFjN7m2oJQ3k926Ut+BUhmGfG6rBxhrljLfIW/+lAC15oOpvVzug8ANf3CFqYI4W5DW2+S9DjOgkfC9I8x9hUPhR4EtSmyxHEhm+kXeFTmLuMC5g5tKnb2iqpKg==

> coqide seems to invoke not coqtop, but coqidetop.  What is the difference?

I believe coqtop runs coqtop_bin.ml and coqidetop runs idetop.ml.  They both invoke Coqtop.start_coq.  You should be able to figure out the differences.  I don't know offhand.

> What is the protocol spoken between coqide and coqidetop?

dev/doc/xml-protocol.md in the Coq source tree is a better source for info on the protocol, though probably quite similar to the VSCode document.

> Is the protocol the same between Proof General and whatever coq program PG invokes?

PG communicates with `coqtop -emacs`.  It is not XML.

I understand there is also an "async" version of PG that uses the XML protocol, but I believe it is not in a usable state.

AFAIK the current plan for Coq is to create a new protocol, probably very similar to LSP (Language Server Protocol).

> I find PG to be a badly behaved Emacs package in several ways, so I'm tempted to do my own.

Why not discuss your concerns with the PG team and see if there's a way to work together and address your concerns?  That might get quicker results with less effort.  Creating another flavor of PG may just fragment Coq PG users.

Hope this helps,

Jim

On Thu, Oct 31, 2019 at 12:51 PM Rustam Zhumagambetov <rustam.zhumagambetov AT nu.edu.kz> wrote:

2, 3. Some XML protocol. The official documentation is poor.

Relevant links:
Notes of VSCode extension's creator:
Library for interaction with Coq in OCaml: 

Kind regards,
Rustam


On Fri, Nov 1, 2019 at 1:26 AM Ian Zimmerman <itz AT very.loosely.org> wrote:
I have a series of related questions about coq user interfaces.

1. coqide seems to invoke not coqtop, but coqidetop.  What is the
difference?

2. What is the protocol spoken between coqide and coqidetop?  Is it
documented somewhere?

3. Is the protocol the same between Proof General and whatever coq
program PG invokes?

I am an Emacs user since forever (as some people here know, ahem) and I
would really very much prefer an Emacs interface to coq, but I find PG
to be a badly behaved Emacs package in several ways, so I'm tempted to
do my own.

--
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet and on broken lists
which rewrite From, fetch the TXT record for no-use.mooo.com.



Archive powered by MHonArc 2.6.18.

Top of Page