freenode/#lisp - IRC Chatlog
Search
13:50:46
Xach
Baggers: did you update cepl re formatter issue? I wasn't sure on which end it got fixed...
13:51:53
Shinmera
Xach: maybe both. https://github.com/Shinmera/documentation-utils/issues/4#issuecomment-368309280
13:54:44
burton`
If I have a (handler-case .... (error (e) (print e))) form, how do I get the actual error string from the condition 'e', rather than a non-readable representation of the error?
15:56:44
jmercouris
I saw that post on reddit about Lush, and it had me thinking, are there any usable shells written in lisp?
15:58:34
Shinmera
I recall hearing of multiple such projects, but they never really took off because Lisp is a bit verbose for scripting.
16:02:06
jmercouris
I guess it's all relative, I was never good at shell scripting, so I've not had this "succinct" experience
16:02:28
jmercouris
You could ship the shell with a set of macros that make operations like that easier
16:03:34
beach
jmercouris: Oh, you want the syntax to be just like sh or bash, but you want it written in Common Lisp?
16:03:35
jmercouris
What I think would be cool though would be that your "shell scripts" could be written in lisp
16:04:14
Xach
jmercouris: rob warnock wrote about his "OPFR" syntax on comp.lang.lisp from time to time. it was interesting to me.
16:06:00
Shinmera
You can put #!/whatever/dude at the top of a file and the shell will call that executable with the file.
16:48:38
dim
https://gist.github.com/posener/73ffd326d88483df6b1cb66e8ed1e0bd is about Writing Scripts with Go and contains some info about the #! Linux tricks that we might be able to re-use for CL
16:52:51
dim
they play with binfmt_misc to have /usr/local/bin/gorun take care of #! scripts that are *.go
17:15:02
Xach
dim: It's not to illustrate an ideal situation, but a tool in the toolbox that may come in handy
17:16:38
Xach
I had a variation that took advantage of # starting a shell comment and #| starting a multi-line CL comment...something like (short paste a-coming)
17:49:34
shka_
but on the other hand, since pmap blocks thread, it can designate it's home thread for computation
17:51:14
phoe
from what I understand, PMAP should never be put in code that the workers are executing.
17:55:00
phoe
shka_: you can theoretically put calls to parallel functions in there, as long as you redefine *KERNEL* to something else
19:53:09
krwq
what's the most generic specialization for strings in defgeneric? I've tried using just `string` but it seems that when element is #<(SIMPLE-ARRAY CHARACTER (3)) {10099D919F}> this doesn't worl
20:07:10
krwq
is there a way to force errors when generic functions are created implicitly when defmethod is used?
20:08:58
fourier
fe[nl]ix: I've fixed that you've requested in osicat pull requests(there are 2 from me), but there is something strange on travis - sbcl unable to install.. I guess