freenode/#lisp - IRC Chatlog
Search
22:01:53
stylewarning
I hereby vow to never write a blog post stating I’ve switched to a Lisp façade for an employer, and I hereby vow to never pull a Norvig and write 5 line Python scripts making claims it’s comparable to Lisp because I’ve lost the big picture of big software.
22:02:13
stylewarning
(What I can’t guarantee is that I’ll ever write a book as cool as Norvig’s hit)
22:10:39
stylewarning
Just as a sort of joke. Lots of career Lispers eventually fold and write something about their acceptance of some other state of affairs (which is of course fine).
22:23:51
aeth
"y = m x + b" or "a x + b y + c = 0" or "y = y1 + m (x - x1)" or something else? So many different line equations.
22:28:17
jeosol
aeth: lol, not what I meant but I get your point. Holding the line like in lisp line of defence
22:40:52
zulu-inuoe
Hey all - Is there a way to make a two-way string stream, so that I can (write-line "foo" stream) and then (read-line stream) and get back "foo" ?
22:53:55
stylewarning
zulu-inuoe: and you want to be able to extract the complete string at any time?
22:55:06
stylewarning
zulu-inuoe: http://www.lispworks.com/documentation/HyperSpec/Body/f_mk_two.htm#make-two-way-stream
23:06:31
zulu-inuoe
stylewarning: I don't want/need the full string. I basically want a stream that never EOF's (until closed or something) that I can keep writing to
23:08:21
zulu-inuoe
BTW I realized I could solve my problem by using `:stream` for `:input` on `sb-ext:run-program`, but that still had me curious if creating this sort of stream was possible in standard CL (easy with gray streams)
23:48:44
mfiano
zero-length PLNs are pointlessly valid it seems :) (:local-nicknames (#: #:alexandria))
0:08:23
Nilby
I make the same vow as stylewarning, but irrelevantly, since I've classic-lisp-cursed myself to live out my years in 90% oblivion, and I'll never write a book, blog, or be employed.
3:25:22
pfdietz
mfiano: the package with zero-length name is valid. Escape the package name with ||. So: ||::|| is the zero-length symbol in the zero-length package.
3:30:10
aeth
And this also seems to work as an alternative: (defpackage #: (:use #:cl) (:export #:))
9:29:21
Nilby
I'm not sure what you mean, but one can do something like this: (subseq '#1=(#\x . #1#) 0 20))
9:39:58
ldb
Nilby: circular buffer is like an array with fill pointer that when gets full it overwrites the mose old entry
9:43:17
ldb
i guess it would like a queue but the very first element automatically discarded when the length exceeded certain amounts
9:44:16
White_Flame
ldb: what's the difference between that, and a pure functional array where you simply drop off older entries without overwriting them?
9:45:20
White_Flame
and I'd say only drop off old nodes if they're fully passed by, don't bother dropping individual entries, and store a first-entry offset