freenode/#lisp - IRC Chatlog
Search
5:06:04
beach
no-defun-allowed: Such a cache is usually part of the paging module of an operating system. Is that the context you are thinking of?
5:07:30
no-defun-allowed
Not currently; I am thinking about using one to cache some requests that would go to a database in a separate process.
5:11:55
no-defun-allowed
Er, not to manage the requests that go to the database, but to cache the results of recent requests, sorry.
5:23:22
White_Flame
or hashtable into a dually-linked list cells for both quick lookup and quick lookup of the head/tail
5:25:48
White_Flame
partial implementation for reference: https://github.com/white-flame/clyc/blob/master/larkc-cycl/cache.lisp
6:58:29
White_Flame
but seriously, there are macro engines for web browsers that execute javascript after pages are loaded, as well as control the page load itself, and have access to the filesystem. It's been years since I've used such a thing though
7:00:08
White_Flame
if you want it straight from lisp, maybe you can link to one of the HTML engines and have it crunch the JS effects for you in a real web context
7:00:19
moon-child
LdBeth: for google specifically, maybe take a look at what googler is doing https://github.com/jarun/googler
10:01:04
Harag
Am I wrong in thinking simple-condition-format-control should work with a simple condition of undefined function? SBCL is saying "There is no slot named SB-KERNEL:FORMAT-CONTROL" but if I look at the condition in a break FORMAT-CONTROL: "~S" ?
10:06:24
Harag
pjb: yeah but my point is that the error passed to the handler is a simple condition --- The object is a CONDITION of type SIMPLE-CONDITION. - FORMAT-CONTROL: "~S" - FORMAT-ARGUMENTS: (#<UNDEFINED-FUNCTION JOB-TITLES {10331A9403}>)
10:13:33
pjb
Harag: try: (mapcar 'c2mop:slot-definition-name (c2mop:class-direct-slots (class-of (make-condition 'simple-condition)))) and compare with whatever other function condition you're thinking about.
10:26:25
Nilby
It's one of those things you might think you need, but you probably don't. But it's also secretly there in a way one probably shouldn't use as UIOP/UTILITY::+SIMPLE-CONDITION-FORMAT-CONTROL-SLOT+.
11:53:14
sabrac
Shinmera: Nilby: Odin-: Normalization code broken out at https://github.com/sabracrolleton/uax-15
11:53:47
sabrac
Feel free to bang on it. Passes all tests in sbcl, ccl and ecl. As mentioned yesterday, still substantial failures under abcl and allegro
12:48:56
d4ryus
jmercouris: hi, some time ago you had problems with running gtk with sbcl on mac, i remember now where i read about main-thread problems on mac os: https://github.com/vydd/sketch#Requirements
12:51:29
jmercouris
however if you manually invoke gtk-main from the cl-cffi-gtk package you can control on which thread things happen
12:52:09
jmercouris
I don't even know where to document this knowledge though, I would like for it not to be lost
13:06:56
montaropdf
jmercouris: You could documentat this in the wiki of your github project if it is on github. At least to begin with.
13:44:41
montaropdf
I don't know, Apple is quite alien to me, in addition to GTK, so can't provide an informed decision about it.