Post A3scKprZdP8a78welk by notclacke@pleroma.soykaf.com
(DIR) More posts by notclacke@pleroma.soykaf.com
(DIR) Post #A3pdPpq4fXBty1JOUa by veer66@norze.world
2021-02-01T13:51:27.898471Z
0 likes, 0 repeats
Maybe I should use Bash. :ablobdizzy:(defvar *x* nil)(defvar *read-thread* nil)(defvar *out* nil)(setf *x* (external-program:start "cat" '() :output :stream :input :stream))(setf *read-thread* (bordeaux-threads:make-thread (lambda () (loop for line = (read-line (external-program:process-output-stream *x*) nil) while line do (format t "OUT: ~A~%" line))) :name "titi"))(setf *out* (external-program:process-input-stream *x*))(progn (loop for i from 1 to 10 do (format *out* "!!! ~A~%" i)) (force-output *out*))(close *out*)(bordeaux-threads:join-thread *read-thread*)
(DIR) Post #A3scKprZdP8a78welk by notclacke@pleroma.soykaf.com
2021-02-02T18:03:01.895562Z
1 likes, 0 repeats
@veer66 FOSDEM decl/minlang room has a presentation on using CL as your main shell!So much good in that room, I will burn so much time after next weekend.