3 ms·
That's amazing! I'll definifely look at it for inspiration. Am I correct in assuming that it depends on the C library for its system call support? The code see
by matheusmoreira 4y ago
That's amazing! I'll definifely look at it for inspiration.
Am I correct in assuming that it depends on the C library for its system call support? The code seems to be a Lisp equivalent of:
self = dlopen(NULL, flags);
ioctl = dlsym(self, "ioctl"):
I'd like to have system call support as a feature built right into eval. Maybe a JIT compiler that emits code with Linux system call calling conventions whenever eval encounters a (system-call ...) form.
Do you know more low level Lisp systems?
- lispm 4y agoBasically all/most Common Lisp implementations have a foreign function interface. Those who run on some UNIX or Linux need support for low level access. See for example the SBCL sources for mmap and ioctl.