freenode/#ecl - IRC Chatlog
Search
2:05:27
whoman
that is, my own C binary, calling into ECL, i want this binary to be used as emacs slime target.
2:06:36
pjb
whoman: of course, you can make it more sophisticated, have a look at com.informatimago.common-lisp.interactive.interactive:repl
2:07:22
whoman
aha! nope thats very cool. i assumed it would be ECL-specific somehow, like most other of my interop experiences. at some point afterward i could redirect repl display to SDL or something depending on what i will do .
2:08:18
pjb
whoman: but if you have your own application to initialize, you can do it, and then just call ecl inside it (cf. ecl manual to see how, something involvinv cl_boot() IIRC).
2:15:51
whoman
it is a little easier or more conventional to use sdl2/opengl straight from C. i will rt[f]m
2:15:57
pjb
(it's not entirely identical, because ecl doesn't save executable images, it saves an elf executable).
2:16:56
pjb
Well, we have CFFI and sdl libraries. But if you want to code those parts in C, no problem. But again, not a reason why you should write your main in C.
2:18:15
pjb
Writing C code into a library that you use thru cffi is possible in all the CL implementation supported by CFFI (almost all of them).
2:26:23
whoman
hmm this is great already, fits just right. will use all lisp, and it is fantastic to use [supported] CL libs in raw C binary essentially ~
2:55:30
whoman
i wonder if ecl disassemble i can see the C code for how my lisp is treated? (i am not familiar with asm other than less code is better)