freenode/lisp - IRC Chatlog
Search
1:37:56
fiddlerwoaroof
Does anyone know if lispworks automatically adds (:use :cl) to a defpackage without any (:use...) clause)
1:42:41
caffe
(run-program "/bin/program" '() :input *standard-input* :output *standard-output*) gets the farthest, but fails at the first interactive prompt of the program being run
1:46:50
fiddlerwoaroof
Even in the terminal, it shows the output, but doesn't really respond to input
1:47:39
malice
well, for me, if working with sbcl, if I create a code.lisp (run-program "/bin/echo" nil) and then run it like "sbcl --load code.lisp" - it will work
1:48:07
malice
for clim - I remember trying to debug something in there with *standard-input* and *standard-output*, and it looked like they were changed somehow
1:48:37
malice
so e.g. #'print wouldn't print anything to standard-output, at least with slime, but slime changes *standard-output* too
1:49:19
malice
I mean, if the simple "echo" program works for you in SBCL then other programs should work too
1:51:41
caffe
no, as in when a bash script i'm trying to execute (or just read itself) just goes nowhere. it doesn't respond to input
1:59:55
malice
well, if I do (run-program "/usr/bin/python" nil :input t :output t) in my terminal, it opens Python interpreter just fine
2:01:48
fiddlerwoaroof
but this doesn't: sbcl --eval '(run-program "/usr/bin/python" '"'"'() :input *standard-output* :output *standard-input*)'
2:03:38
fiddlerwoaroof
This doesn't work: sbcl --eval '(run-program "/usr/bin/python" '"'"'() :input *standard-input* :output *standard-output*)'
2:05:13
caffe
now, one more question... is there a way to do this and have it return to sbcl's prompt upon exiting?
2:06:16
malice
If I run the bin/python example and then call quit() in Python, it returns to REPL just fine
2:06:40
malice
fiddlerwoaroof: this *might* have something to do with "If t, the standard output for the current process is inherited." bit (I'm guessing though)
2:10:30
malice
caffe: then I don't really know what to do. (run-program "usr/bin/python" nil :input t :output t) pasted into SBCL after running "sbcl" command
2:16:50
fiddlerwoaroof
it's really annoying to me that the python library cffi interferes with the lisp one in google search results
6:59:06
drmeister
::notify shiho - pull clasp, cando and the master branch of quicklisp/cl-jupyter and rebuild everything. I fixed the python crashes when evaluating cells in Jupyter notebooks. It was a threading problem.
6:59:19
drmeister
::notify Kevslinger - pull clasp, cando and the master branch of quicklisp/cl-jupyter and rebuild everything. I fixed the python crashes when evaluating cells in Jupyter notebooks. It was a threading problem.
10:08:31
loke
beach: No need to invoke him. I'm not ashamed of the fact that I still find toilet umour incredibly funny.
10:13:35
loke
And here's another swedish metal song, different band, different style and probably more popular, but also good: https://www.youtube.com/watch?v=_FSFIOGNYyM
10:18:58
beach
Boy, band members are such good instrumentalists these days. A few decades ago, they were mostly just bad.
10:22:14
dim
well in my experience pop music band players have always been quite good, but you would typically pay no attention to them, only to the front man
12:37:15
pjb
(let ((s (funcall (if (zerop (random 2)) 'list 'vector) 1 2 3 4))) (elt s 2)) #| --> 3 |#
12:39:41
pjb
Murii: the trick is to take the chapters of clhs, and to read all the section but the dictionary. Just browse the dictionary to have an idea of what's available. Then when you look for a function, go to the chapters relevant to your question (eg. here, you would search in the Conses, Arrays, Strings and Sequences chapters), and look in their dictionaries for the function you want.