[slim-vim] Blue sky, shoot the moon: compile Vim-script to Lisp and thence to C
Larry Clapp
larry at theclapp.org
Thu May 25 16:53:21 CDT 2006
So I'm working on the Lisp->Vim FFI, and wondering if I can eventually
work it out so that
(vim:append 12345 "some-string")
calls Vim's internal f_append() function directly (instead of building
a string that says "append( 12345, \"some-string\" )" and calling
"exec" on it, which Vim then has to parse, look up "append" in its
table (binary search -- fast, but slower than a pointer-indirection),
and THEN call f_append()).
I don't know yet :) , but it occurred to me that if I can, and if I
can compile it (and why wouldn't I?), then we'll be C "all the way
down". And then, perhaps, we can really make a name for ourselves by
writing a Vim-script -> Lisp -> native code compiler.
Wouldn't that be cool?
Okay, back to work.
-- Larry
More information about the slim-vim
mailing list