Martin Constantino-Bodin is a user on aleph.land. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

Emacs + Coq taking 100% RAM and CPU…
If this continues as-is, I will need a cluster just to develop >:-(

Martin Constantino-Bodin @MartinShadok

The issue seems to be that, in addition to Emacs filling the RAM, needs a lot of memory each time it loads a module. As a consequence, if you try to make your code more modular… you will need a ridiculous additionnal amount of RAM. This is just crazy! :'(

I've heard that Coq's module system is criticated a lot. If two required files require a common third file, Coq doesn't load this third common file twice, right? :-/

What I really don't understand is that this only happens in interactive mode! When compiling the files, it takes significantly less memory! What is happenning?! :-(

@MartinShadok Probably totally unrelated but Merlin sometimes eats up all my memory when I edit OCaml code. Have you tried closing Emacs, maybe killing some processes and re-opening the files?

@typochon @otini :-/

Yes, restarting Emacs doesn't solved the problem.

But disabling the option coq-compile-before-require did Oo There is something wrong in Proof general!!

@MartinShadok @typochon @otini I don't know what is the state of ProofGeneral maintenance and development.

@MartinShadok I wait for a better coqdoc now.

And I really wish we will one day be able to have truly private functions in Coq’s module, that is not exported (and not in coqdoc output).

@lthms To have a real Coq module system… I agree, that would be very helpful.