freenode/#lisp - IRC Chatlog
Search
21:13:35
stacksmith
Good morning. Is there some hook in the pretty-printer to track its progress across the list being printed? For instance to know what object is printed on a fresh line, etc.
23:07:14
specbot
Pretty Print Dispatch Tables: http://www.lispworks.com/reference/HyperSpec/Body/22_bad.htm
23:09:00
pillton
It won't tell you what object is printed on a fresh line, but you could possibly use a custom stream and an entry in the dispatch table to get that information.
23:19:03
stacksmith
pillton: a browser/debugger of sorts. I would love to not reinvent the wheel with layout/indentation but have some idea about where things wind up.
3:16:48
blep-on-external
how do i get all the class slots of a class? i've tried sb-mop:class-slots but it doesn't have applicable methods for the symbol or an instance of the class
4:11:43
beach
blep-on-external: Either you have TABs in your code that pastebin can not handle, or you line starting with COLLECT is incorrectly indented.
6:51:29
shrdlu68
"In general, Common Lisp is a type-safe language. A Common Lisp compiler is responsible for inserting dynamic checks for operations whose type safety cannot be proven statically. However, a programmer may indicate that a program should be compiled with a lower level of dynamic type-checking." -- What does (safety 0) do?
6:54:40
specbot
The ``Arguments and Values'' Section of a Dictionary Entry: http://www.lispworks.com/reference/HyperSpec/Body/01_ddc.htm
6:54:53
pillton
"Except as explicitly specified otherwise, the consequences are undefined if these type restrictions are violated."
6:56:59
White_Flame
also, a big ol' "In general," in the beginning of shrdlu68's quote leaves leeway there, too
6:57:34
pillton
"Should signal an error of type type-error if index is not a valid sequence index for sequence. "
6:58:52
shrdlu68
I should pay closer attention to exception types, never noticed array out of bounds exception was not standard.
6:59:35
White_Flame
sanity is relative to time frames. Pathnames, for instance, are kind of insane nowadays
6:59:41
beach
The purpose of WSCL is to clarify many such situations, like requiring errors to be signaled in safe code.
7:00:23
pillton
I must admit. I have never really understood the definition of safe code given clhs 1.4.4.3.
7:23:54
beach
Hard to quantify of course, but it is probably worse than most people think after a casual read of the Common Lisp HyperSpec. But I am guessing it is not as bad as some languages like C.
7:43:59
jackdaniel
what is awesome lisp? also, that is pretty dumb advice, unless provided as a simplified instruction for a real newbies.
7:44:25
jackdaniel
if we didn't care about portability, but "just write" for sbcl there wouldn't be a need for a standard and we'd be in a similar situation python or clojure are
8:08:40
beach
jackdaniel: The concept of a standard that is independent of implementations and of the organizations that supply implementations is pretty hard to grasp, especially these days, when single-implementation languages and benevolent-dictator languages are not only commonplace, but also used by industry projects that think of themselves as being serious.
8:17:51
jackdaniel
I can imagine our civilization getting doomed; only printed standards and programs survived
8:18:40
jackdaniel
of course I'm half-joking here, but looking at standards this way may help making the topic a little easier to grasp
8:21:24
beach
But, and I know I have said this before, for any industry project that thinks of itself as being serious, using a language with an independent standard is a must, or else they must take precautions and figure out what to do if the "language" they have chosen should disappear, quit being maintained, or be altered in some major way.