unix-pipes:Common Lisp中的Unix管道

时间:2021-05-12 19:07:04
【文件属性】:
文件名称:unix-pipes:Common Lisp中的Unix管道
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-12 19:07:04
CommonLisp :unix-pipes 常见的Lisp Unix管道作为流。 目前这仅适用于Linux。 我写这篇文章是因为在使用外部程序运行程序时我想要内存中的流,并且发现flexi-stream无法正常工作。 这就导致了关于阅读流的困惑,然后我就结束了。 而且,Lisp中的Unix编程是一件有趣的事情。 例子: CL-USER> (defvar *pipes* (unix-pipes:pipe :element-type 'character)) *PIPES* CL-USER> (format (second *pipes*) "Hello, world~%~%") NIL CL-USER> (force-output (second *pipes*)) NIL CL-USER> (read-line (first *pipes*)) "Hello, world" NIL CL-USER> (
【文件预览】:
unix-pipes-master
----.gitignore(11B)
----unix-pipes.lisp(2KB)
----package.lisp(79B)
----LICENSE(1KB)
----unix-pipes.asd(362B)
----README.md(2KB)
----docs()
--------lispworks.lisp(78B)
--------example.lisp(276B)
--------manual.scr(2KB)
--------sbcl.lisp(87B)
--------manifest.lisp(265B)

网友评论