freenode/#lisp - IRC Chatlog
Search
3:55:58
mfiano
rofi can do more than just act as a dmenu replacement. It is scriptable, calling out to any binary to do the heavy lifting
3:56:08
matzy_
ive just been looking for something to do in cl for awhile, because im not one to sit through endless tutorials. i like learning by building something
3:56:16
mfiano
So use Common Lisp to do the backend work. then you aren't writing a GUI...you are leveraging what you already use
3:59:51
matzy_
wow...so i could take a list of all sysem apps in cl, filter to get how i want, and then present in a cutom rofi window?
4:01:13
matzy_
this is an awesome idea. and really useful too, a perfec project to learn on. thanks a million for the idea man!
13:17:15
xificurC
(read (process-output (sb-ext:run-program "/bin/sh" '("-c" "export-lisp") :output :stream))) is there something inherently wrong with such code? It keeps hanging in some cases even though the internal program always finishes when running from the shell directly
13:20:50
flip214
but the process will block if the pipe is too small to hold all the output at once.
13:21:38
flip214
use UIOP:launch-program (or use :wait nil), read the stream, and then explicitly let it stop (== read the return code)
13:25:42
xificurC
flip214: ah, I tried :wait nil and then (read (process-output process)) (process-close process) but forgot to return the read value... That works. uiop:run-program worked too so I knew it must be something me doing wrong
14:33:50
HighMemoryDaemon
Caveman uses a syntax feature of Lisp I have not seen before. Ex. '@route GET "/"' - What is this syntax feature called?
14:35:11
random-nick
HighMemoryDaemon: reader macros work by telling the reader to call a function when encountering a certain character on the beginning of an expression
14:36:29
random-nick
the simplest reader macro is probably quote ('), which reads the following expression and returns it wrapped in a (quote ...) form
14:39:07
antoszka
You can use reader macros to quite trivially create, say, a literal syntax for hashes.
14:39:35
HighMemoryDaemon
That is very cool. Not saying that it is worth doing at all, but using these macros, couldn't you do something like re-make the entire Python or Ruby programming languages..within Lisp?
14:44:04
HighMemoryDaemon
Well, that's me. I wouldn't have a need to use it but it's just cool that it's possible.
14:45:57
specbot
Standard Macro Characters: http://www.lispworks.com/reference/HyperSpec/Body/02_d.htm
14:48:21
beach
shka: Hello. Very well thank you. I had some very good ideas today. How about yourself?