freenode/#lisp - IRC Chatlog
Search
17:10:34
dim
I like simple-routes (that I had to hack a little IIRC) as shown in use at https://github.com/dimitri/pgcharts/blob/master/src/server.lisp
17:11:03
dim
ah yeah the hacked version is at https://github.com/dimitri/pgcharts/blob/master/lib/simple-routes.lisp
17:12:17
dim
and there's even the commit where I got rid of easy-acceptor, so Josh_2 that could be an example how-to for you: https://github.com/dimitri/pgcharts/commit/f791b6e7a01b69fb4ea15ccaa7275d46c922f667#diff-97eda46023f6867d17c327a8528e1b47810a90805f8b649b7600e426804799f7
17:16:37
dim
if you look into what I did for pgcharts, you will also find a “hack” that serves static files either from disk, or from memory in the image when you save-lisp-and-die, so that you can ship a single self-contained file with all your web resources embedded
18:51:22
wglb
Running SBCL 2.0.5.80-4ad1f6470-dirty on freebsd 12.1 release, attempting to load cl-webkit. It depends on libwebkit2gtk-4.0.so. Doing a 'pkg install webkit2-gtk3', it provides 'libwebkit2gtk-4.0.so.37.49.5', which lands in /usr/local/lib. Unclear if cl-ffi (which is what cl-webkit uses) looks there, so i did (pushnew #P "/usr/local/lib/" cffi:*foreign-library-directories*) before load, but we get 'Unable to load any of the
18:51:22
wglb
alternatives' the first of which is 'libwebkit2gtk-4.0.so'. Any ideas on how to resolve this would be appreciated.
19:20:32
daphnis_
what should i do if i would naturally call a slot 'case' or 'number'; just call them something else, or is there an idiom for this sort of situation?
19:31:49
pve
daphnis: do you mean that your accessors are also called "case" and "number"? For slots it's not a problem..
19:34:04
pve
if the package is small, you could just shadow.. otherwise maybe foo-case where foo is the name of the class
19:34:13
daphnis
i'm considering using words from a different language, but, if i do that, i'll have to do the same for a whole bunch of other variables
19:38:35
pve
i think foo-case is a natural way to disambiguate concepts, by making the word more specific than the common word ("case")
20:15:05
Josh_2
can someone explain to me why this (routep '(:get "abc" 'boof)) evaluates to nil and (routep (list :get "abc" 'boof)) evaluates to t ?
23:15:25
phoe
I remember there was some CLOS book or article that demonstrated how to use a hash-table-backed instance, as opposed to standard, vector-backed instances. Does someone recall?
23:21:57
no-defun-allowed
AMOP does cover it...somewhere. I thought it was closer to the middle of the book though.
23:23:13
no-defun-allowed
3.8 "Instance Allocation" covers creating a sparse "dynamic-slot-class" metaclass.
23:32:12
wglb
phoe: the link you note is already there. It is if clffi is not looking in that directory. How do I cause it to look there?
23:35:19
phoe
sounds like cffi not playing well with freebsd libraries... you are sure that both SBCL and libwebkit are 64-bit?