CodyReichert / awesome-cl

A curated list of awesome Common Lisp frameworks, libraries and other shiny stuff.
https://awesome-cl.com
Other
2.61k stars 193 forks source link

Consider replacing cl-fswatch and cl-inotify with file-notify #442

Closed contrapunctus-1 closed 2 years ago

contrapunctus-1 commented 2 years ago

I have not used these a whole lot yet, but cl-fswatch is not in the default Quicklisp distribution, and cl-inotify is Linux-only. file-notify is a cross-platform library and is present on Quicklisp.

vindarel commented 2 years ago

Makes sense and file-notify seems a clear winner.

cl-fswatch uses fswatch which is cross-platform, but the lisp library isn't, there's a todo.

It would be nice to try them before addition.

I have used cl-inotify a bit.

(ql:quickload :cl-inotify)

(bt:make-thread
 (lambda ()
   (cl-inotify:with-inotify (inotify t ("literal-erudite.lisp" :close-write))
     (cl-inotify:do-events (event inotify :blocking-p t)
       (format t "~a~&" event)
       (erudite:erudite #p"literal.md" "literal-erudite.lisp" :output-type :markdown))))
 :name "inotify-erudite")