freenode/#sbcl - IRC Chatlog
Search
16:33:49
stassats`
could COMMA be a list structure? that would reduce the amount of support requests
16:43:48
pfdietz
I remember when the backquote implementation was changed to put non-cons objects there. There was breakage.
17:22:30
stassats`
i guess it's already too late, as things have settled down, but there's still non-obvious behavior that confuses people
17:26:03
karlosz
i guess it'd be cool to replace with a list implementation that supports roper pretty printing
17:30:12
karlosz
would have to reimplement all the numeric operations like ceiling and floor for target floats
17:31:25
karlosz
but doing this exercise at least has taught me that it would actually be very helpful to remove it
17:37:45
stassats`
i suppose each pretty printer needs to handle (cons (eql comma)) where it expects a list
17:42:08
stassats`
a wild no-good idea, walk the objects before pretty printing, replaceing (comma) with #(comma)
17:43:35
stassats`
i would be fine with an always error change, but subst, for example, just ignores the comma structure
17:46:00
stassats`
something in "~:<~^~W~^ ~@_~:<~@{~:<~^~W~@{ ~_~W~}~:>~^ ~_~}~:>~1I~^~:@_~@{~W~^ ~_~}~:>" prints lets
17:57:06
stassats`
so if *print-circle* is enabled it wouldn't have that big of an impact on performance
18:00:48
stassats`
hmm, if call-logical-block-printer handles circularity, couldn't it handle commalarity
18:14:15
pfdietz
Perhaps a web page to send people for this particular issue (with their code) would be a solution.
18:26:11
stassats`
https://github.com/stassats/sbcl/commit/5a4a593d49386112b9c3bd8a06821f719a3696aa now i don't know what to with it
18:28:27
pfdietz
What will it break if you switch this back to using conses? Some users code will be depending on this now.
1:55:56
no-defun-allowed
Every time I see a paste like that I wonder why you don't just use C, admittedly.
1:55:56
no-defun-allowed
But as for lines 7-10, you don't need to coerce the Lisp string (a vector) to another vector to iterate using LOOP's ACROSS, and lines 13 and 16 refer to different structures.
1:56:44
no-defun-allowed
I'm not sure what you expect to get reading from an uninitialised slot of an alien structure. No memory fault even?