freenode/lisp - IRC Chatlog
Search
19:27:33
rpg
I suspect that CL-DOT cannot handle subgraphs, but I'm not 100% sure. Can anyone confirm?
21:29:51
fiddlerwoaroof
When I quickload it in Lispworks, I get an error about defining (METHOD DESCRIBE-OBJECT :AFTER (SYMBOL T)) visible from package Common-Lisp
21:31:13
fiddlerwoaroof
I guess this settles it: "Users can write methods for describe-object for _their own_ classes if they do not wish to inherit an implementation-supplied method."
21:32:52
aeth
I would guess that quite a lot of things do not run in LispWorks. e.g. I try to test in everything but clisp (too many missing non-standard features) and the proprietary Lisps. And things frequently have broken in subtle ways by the next time I test in CCL, ECL, etc.
21:33:43
aeth
e.g. Once there was an issue with the way I coerced some numbers between numeric types that only showed up in CCL iirc.
21:35:31
aeth
Anything large and complicated enough has a good chance to not run in a random CL without testing finding some minor things that the other CLs tolerate.
21:39:10
fiddlerwoaroof
I've found that usually it works just fine and, when it breaks, the fix is fairly simple
21:39:44
aeth
There are a lot of things that aren't in the standard but are de facto standard, and an implementation not complying can cause pain. e.g. CLISP has a 64-bit fixnum that's far too small, and doesn't have double-float or single-float specialized arrays.
21:40:05
aeth
So a library that assumes single-float specialized arrays and assumes that the Lisp will have them and type check and error if the type is wrong will not work as intended on CLISP.
21:41:45
fiddlerwoaroof
Yeah, but this isn't really a question of unspecified behavior: the standard doesn't allow users to defmethod DESCRIBE-OBJECT on standard classes.
21:44:35
aeth
My example was bad... Looks like ECL doesn't type error like SBCL and CCL or just put the double there (because it's a T array) like in CLISP.
21:51:14
aeth
fiddlerwoaroof: Well, a similar issue pops up, then. Sometimes only one implementation follows the standard correctly, and the bug is only spotted because the code tries to be portable.
22:35:39
rpg
I was just looking at some ways to draw, e.g., DAGs with sink nodes, and the techniques rely on putting certain graph nodes is a subgraph, and then setting the rank on the subgraph.
22:37:40
scymtym
rpg: https://github.com/scymtym/cl-dot/tree/wip-clusters i'm not sure clusters do what you describe, though. the way i use them is as nodes containing nodes
22:38:19
rpg
Can you draw links from nodes inside a cluster to nodes outside the cluster, or only to/from the cluster nodes themselves?
22:38:32
scymtym
also, the branch has some unrelated stuff because i'm waiting for https://github.com/michaelw/cl-dot/pull/21 to be merged
22:40:14
scymtym
for edges to connect to clusters, the graph may need the compound=true (or similar, i don't remember exactly) attribute
22:49:28
rpg
I think I'll have to tweak it a little, because I'm not going to add clusters and then add their components, but rather add certain nodes to subgraphs in order that I can control their rank.
22:50:02
rpg
I'm not sure why, but it seems like things like [rank=sink] only work as subgraph attributes, not node attributes.
22:56:32
rpg
So I think my needs are different. I'm actually going to assign nodes to a subgraph more like assigning an attribute to them (i.e., I need to generate the nodes *then* generate the subgraphs), rather than generating clusters and then generating their population.
22:59:32
rpg
scymtym: I have the uncomfortable feeling that this means assigning graph nodes to subgraphs in a second pass after most of the other processing is done. That sounds icky to me.
23:01:35
vtomole
I have this: http://paste.lisp.org/display/349562 (the /public/ directory has a hello.txt). But when I do "(:a :href "html/hello.txt" "hello")" in cl-who, it can't find that text file.
5:16:07
flip214
vtomole: do you have (create-folder-dispatcher-and-handler) to handle static files in html/ ?
5:20:33
vtomole
fli214: Yes. I also had: (setq *dispatch-table* (list 'dispatch-easy-handlers (create-ajax-dispatcher *ajax-processor*))). Later in my code to handle some ajax requests
5:23:53
vtomole
I'm trying to figure out why though. I'm not using the same *dispatch-table* variable
5:41:39
flip214
ie. is the static file searched for in the wrong place, or does the folder-dispatcher not even run?