freenode/#lisp - IRC Chatlog
Search
14:40:56
Josh_2
Was about you saying you worked in a warehouse or a factory, something like that a long while ago
14:43:24
jmercouris
Can someone please explain to me why in CLOS we define both an accessor and a slot name?
14:44:19
oleo
jmercouris, when the class layer abstraction terminology has to be different than the application layer terminology maybe ?
14:44:35
kami
orivej: I'm trying to (ql:quickload :quickdist) and get an error re com.informatimago.common-lisp.lisp-reader. Does it work for you?
14:45:59
jmercouris
beach: Also you are right, the struct type way of naming acessors is unbelievably verbose and painful
14:46:04
Shinmera
eudoxia: Accessors can also have around, after/before, so you can implement checks and computations.
14:47:30
jmercouris
beach: Yeah you said it like a month or so ago, I've only now found myself agreeing with it
14:48:22
jmercouris
Shinmera: So basically this aids in the encapsulation by being able to effectively define something akin to "setters" and "getters" in java?
14:48:41
Shinmera
It's just much more convenient than setters and getters, so you don't notice it usually.
14:49:50
kami
orivej: where does the system c.i.c-l.lisp-reader gets loaded from in your case? Is it in Quicklisp?
14:52:09
orivej
kami: sorry, no, it is from the commit a1ef00b of my checkout of lisp-reader. Feel free to fix it and submit a PR, or I'll look into it in a few days.
15:01:27
kami
orivej: what exactly is 'my checkout of lisp-reader'? I assumed you forked com.informatimago either on gitlab or on github, but don't find anything.
15:03:41
orivej
kami: it is not a fork, just a checkout of the source repo: https://github.com/informatimago/lisp/tree/a1ef00b
15:29:47
jmercouris
I'm trying to include parenscript in my program (which I distribute as a binary), I see the function (ps:ps-compile-stream), so I should be able to compile parenscript into javascript from some stream
15:30:13
jmercouris
Therefore, my question is, where, and how to save my parenscript such that I can load it using ps-compile-stream
15:31:52
eudoxia
you can use asdf:system-relative-pathname to get the absolute path of a file in your source tree
15:32:08
jmercouris
eudoxia: A good idea, but when I compile my program, I don't ship it with ASDF in the image
15:32:46
eudoxia
this would require building an ASDF extension, but I'm certain someone must've built one for parenscript
15:34:00
eudoxia
oh, apparently I have https://github.com/eudoxia0/asdf-linguist/blob/master/src/www/js.lisp#L20
15:34:03
jmercouris
eudoxia: It says here: http://quickdocs.org/asdf-linguist/ that you yourself have worked on this system
15:37:42
eudoxia
something like (defparameter +my-code+ `(progn ... parenscript code here ...)) and then use (ps:ps +my-code+)
15:39:24
jmercouris
I was about to suggest making a macro that automatically compiles parenscript inline and wraps them in defaparams
15:40:21
jmercouris
so we're looking at something like (defparameter ps-function-1 (ps:ps <ps code>))
15:41:29
jmercouris
Maybe at some latter point, if it ever actually matters, I'll make a robust way to load resources from my executable regardless of platform
15:42:06
jmercouris
I can create resources robustly, and access those created ones, what I cannot do is robustly ship resources (e.g. including parenscript file with my sources)
16:09:44
mfiano
jmercouris: the path to the asdf system may be different on a user's machine from the path when it was compiled. i have a hacky solution to that problem