freenode/lisp - IRC Chatlog
Search
21:39:20
puchacz
okay, so I had decode and encode that was not specialised, so it was the first problem. I realised I should at least specialise on standard-object
21:39:58
puchacz
next, there are forward references, but they are only resolved if they are kept in alist or a hashmap, or an array, but not in the slot of the object
21:40:42
puchacz
so my workaround was to store alists as decoding is progressing, and only copy values from alists to slots after conspack is done
6:07:21
jeosol
Hi beach. Been a while. Hope you are doing well with all this pandemic stuff going on.
6:08:36
jeosol
side topic: As I am learning french, I was able to follow some French debat regarding chloroquinine use. Interesting how the french debate on TV.
6:11:22
jeosol
Regarding CL, I wanted to discuss merits of different ways of organizing defmethods. I recently updated to SBCL 2.0.3 and noticed some errors that were not caught with previous version. It was mainly package errors where I am implement a defmethod for class a file but prefaced with the package name where the defgeneric is defined.
6:39:05
jeosol
I think there was an issue loading my systems. Before the recent changes, I was referencing some functions via the package names in some other files (I know bad design) and it complained about that. In another case (my question) above, my defmethods are scattered across several files
6:41:54
jeosol
And a system that needed a specific defmethod (specialized on eql) could not be found
6:42:43
beach
There is nothing bad about having different methods defined in different files and different packages.
6:42:55
jeosol
It was my fault not SBCL's. except that it wasn't caught in the previous version. Perhaps I need another tutorial
6:43:22
jeosol
beach: I agree, that's the functionality I used through my project. It helps me keeps better separated.
6:45:28
jeosol
As things get larger and larger, I think I am not doing a good job with my system loading. It's probably getting sloppier.
6:46:18
jeosol
I had a discussion with Fare about extracting ASDF dependency graph with POIU but he said it will some amount work to do that.
7:35:30
hajovonta
From a macro, I need to generate something like this: (mypackage::foo param1 param2)
7:37:36
phoe
hajovonta: in the worst case, `(,(or (find-symbol "FOO" "MYPACKAGE") (error "Macro error - symbol not found")) param1 param2)
7:39:59
hajovonta
the problem is when I'm (in-package) and run the macro from there, I lose the package qualifier
7:43:27
phoe
then you either need to print from a package that has an empty :USE or create your own printer
7:43:52
phoe
the former hack causes all symbols to be explicitly qualified, which should be enough for symbols
7:44:29
phoe
(defpackage #:my-print-package (:use)) (let ((*package* (find-package #:my-print-package))) (print-stuff-to-string))
7:49:24
phoe
Krystof: is that the proper page? this one only mentions keywords in context of printing them with a preceding colon, so :FOO instead of KEYWORD:FOO
7:49:56
Krystof
if the keyword package is the current package, normally you would print a keyword without a package prefix
7:50:35
Krystof
so without that special-case you can't use the keyword package to guarantee readable package prefixes on all symbols; with it, you can
9:19:35
splittist
Any suggestions for lisp-related papers to read while the ACM library is free to access?
9:24:19
aeth
splittist: You might want to ask in #scheme (for Schmes) and ##lisp (for all the Lisps) because a lot of the papers wouldn't be specific to Common Lisp.