libera/#commonlisp - IRC Chatlog
Search
14:51:33
_death
it perhaps be used in a texture adventure game, after translating the english sentences to it
14:53:24
Guest74
TAGGER might be the library I was thinking of. Though I remember a tree diagram and marking parts with keywords, maybe there's something else.
15:09:40
_death
talk of description logics led me to https://github.com/julianmendez/cel .. someone should write a medical text adventure
15:14:30
Guest74
I don't understand why tagger wouldn't provide a simple output. it seems be in serious need of modernizing.
15:37:51
Guest74
it seems weird to me to put your formatting and your data iteration in the same place.
17:39:54
Bike
not without some serious mop hacking. easy workaround: have your function (foo object) call a generic function (%foo object (my-slot object)) and then %foo can dispatch on that.
17:42:05
_death
right.. could maybe have a kind of slot-value specializer https://github.com/sbcl/specializable
17:49:43
edgar-rft
dirtcastle: I'm using Debian Linux and have never tried to intall a binary from the SBCL home page, so I'm sorry to tell that I have no idea what the particular problem is.
17:49:43
edgar-rft
On Debian Linux my usual strategy is first to install the Debian-provided SBCL package, download the newest SBCL soucre code from the homepage and then use Debian's SBCL to compile the newest SBCL from the source code. I never had problems with it.
17:58:19
edgar-rft
dirtcastle: Packages from Linux Distributions often contain additional scripts or code for better interaction with the other packages of the Linux distro. A reason why stumpwm doesn't want us to use distro-provided packages might be that it's harder for the developers to track down errors if we use modified SBCL versions.
20:01:16
shka
is there library like trivial-integers? you know, with just aliases for (unsigned-byte 32) and the likes
20:02:53
shka
i am contemplating doing so, but i somehow suspect that something should be already out
20:09:02
shka
i have lib, lib has data-frames, data-frames have columns, columns have types, if type is unsigned-byte-32 when i serialize to binary write the content of column as 32 bit unsigned big endian
20:40:08
_death
so, if you mean that your column type is similar in semantics to a specialized array's element-type, that means you only care about a limited set of nominal types
20:41:14
_death
this set is defined by you, and is unlikely to appear in some trivial-integers library
21:11:24
shka
_death: https://github.com/sirherrbatka/vellum-binary/blob/b6d74e08d7f2c3f40665a9bbad45a787df2d1077/source/code.lisp#L64
21:20:06
_death
I see.. but there you have two different treatments.. one tests using subtypep and another using eql
21:25:53
_death
sure, I was thinking (deftype f () 'single-float).. also note that unlike say (unsigned-byte 8) the single-float type has an implementation-dependent representation, but I guess it's not a disaster to assume ieee floats for single/double :)
21:29:34
shka
and absolutely don't look at the main project source code if you are scared of few safety 0 :D
21:30:35
shka
_death: one more think, i am using chipz/salza2 for compression, but it is not amazingly fast
21:32:16
_death
I think there was another one, based on Franz code.. don't know about their performance.. I guess it's always possible to optimize them and submit PRs ;)
21:43:08
_death
new compression schemes come out all the time, many about speed.. but Lisp community is too small to keep up and reimplement in pure lisp ;)
21:48:22
_death
but since it's algorithmic code, maybe translating from the plain C versions could be automated, somewhat
22:54:30
jasom
_death: I don't know about modern compression algorithms, but the C code for some older compression software I looked at was quite obfuscated from the algorithm. I suspect hand-tuning for pcc or early versions of gcc to generate fast code.
23:03:47
iisi
I only vaguely remember a compression battle between DiskDoubler and, uh, Stacker, maybe. The latter was a disk driver. Both, hand-optimised assembly.
23:06:04
iisi
ACTION tries in vane to think of a way tie this back to Lisp, retreats into a darkened corner
23:17:39
_death
jasom: well, looking at say https://github.com/lz4/lz4 it's not a huge library and the code doesn't seem so obfuscated
23:37:13
_death
apparently there was an actual (court) battle between stacker and dblspace (microsoft).. https://en.wikipedia.org/wiki/Stac_Electronics#Microsoft_lawsuit .. anyway, offtopic
2:42:39
_jlk_
hello! I'm a bit stumped and could use a hand... if I define a metaclass with slots, I can supply initargs in the class by providing additional options to defclass, so far so good, even if they are wrapped in a list. If I do the same thing with a metaclass for a generic function, passing additional options through defgeneric causes an unsupported-option error. I guess the question is, how to I actually provide values to the generic