Friday, November 29, 2013

Re: vim slow, Lisp, etc.


On Nov 29, 2013 6:54 PM, "Ed Kostas" <edu500ac@gmail.com> wrote:
>
> One of the lawyers and an engineer interested in Vim told me that they succeeded in compiling Vim, with mzscheme and with somewhat faster syntax coloring. I did not test their instruction myself, but both said that they did the following:
>
> 1 - Add python. They even don't know what python is, but they read somewhere that python requires threads. They don't know what threads are either, but they know that Emacs has threads; therefore, threads are the thing that is missing.
>
> 2 - Install Racket from sources. Then copy the libraries libracket.a and libmzgc.a to /usr/local/lib
>
> The command line becomes:
>
> ./configure --enable-mzschemeinterp --enable-pythoninterp
>
> They claim that this did the trick. I will try it later on. They also followed the suggestion of DrChip for improving the speed. It seems that it works.
>
> I know that people here are users, not the core developers of Vim. However, I believe that Vim (and Racket) should simplify the installation process. This would prevent people like me from nagging the members of this list with details of installation. Here is a few suggestions (again, I know that this list is not the place for it):
>
> 1 -- Racket should put the libraries in the binary distribution. Most people don't compile from sources.

It is the job that maintainers of the package in given distribution should do. You cannot possibly target all linux distributions, there are way too many.

> 2 -- Vim should point out that the libraries are necessary, and that they are not distributed normally from the site of Racket.

> 3 -- Vim should explain that threads are necessary, and explain how to add threads. For example, by installing python. Even better, if_mzscheme should intall threads automatically.

There cannot possibly be such requirement as "threads". Thread is a part of the running process, it does not exist until vim is run and python does not create any threads without request. Using python interpreter does not require using more then one thread (there is no way you can use less then one thread in a running process and having exactly one implies referring to the application as not threaded).

There may be some library required (like -lpthread) that is brought by depending on python, but "installing thread(s)" makes just as no sense as "installing session". You should post build logs (at least in failing case) here to verify that it is library that is missing (it may just as well be missing #ifdef) and that it is libpthread.

Neither python nor mzscheme (racket) distribute libpthread. It is a matter of missing argument to a linker: you may have this library be installed to every directory in your filesystem and yet it will be "missing" if linker was not supplied with -lpthread argument.

Linking library in libracket.a is enough unless if_mzscheme contains explicit calls to functions from libpthread. Racket library should have already been linked properly though or it will not run at all.

>
>
>
> --
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
 
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: