freenode/#lisp - IRC Chatlog
Search
15:37:54
sebboh
So, when #lisp talks about 'registers', are you referring to hardware CPU registers?
15:40:18
beach
sebboh: A significant number of people who hang out here are writers or maintainers of Common Lisp systems.
15:43:23
minion
SICL: SICL is a (perhaps futile) attempt to re-implement Common Lisp from scratch, hopefully using improved programming and bootstrapping techniques. See https://github.com/robert-strandh/SICL
16:07:07
beach
veckon: Most of the code is in there, but the bootstrapping procedure is not in place.
16:07:36
beach
veckon: Clasp is using the compiler framework (called Cleavir) as a basis for its main compiler.
16:07:39
veckon
Ah cool! It is really beautiful Common Lisp code. I enjoy just reading through it sometimes.
16:10:37
hjudt
i have a problem with drakma and urls like this: http://server:port/jolokia-war?ignoreErrors=true&p=/read/Catalina:name="http-bio-8080",type=ThreadPool
16:11:16
hjudt
if i enter this into the address line in firefox, it loads the page correctly. but with drakma, i get a url validation error from puri.
16:14:57
hjudt
i know there is drakma's url-encode parameter which you can tell to use a different url-encoding function.
16:15:55
axion
Why don't you try evaluating that as a string in the REPL without drakma...just enclose it in quotes
16:23:38
hjudt
i fixed it by writing my own url-encoding function. it did not work at first, but finally i got it to work.
16:36:01
|3b|
hjudt: yeah, if you copy the url back from firefox after loading the page there you will see it encoded the quotes
16:37:10
John[Lisbeth]
I have a list with this structure '(key value value key value value key value value). I want to walk the list and find the first instance where (equals x key) and then return the index
16:38:57
Bike
(loop for key in list by #'cdddr for index from 0 by 3 when (equals key x) do (return index))?
18:06:33
didi
So I have a priority queue which shuffles objects around. I want the objects to know their indexes inside the priority queue, but I also want the priority queue to hold any object. So I declared a class IDX-CLASS with an object slot called IDX. How do I set IDX only of objects that are instances of IDX-CLASS? In my solution, I declared a generic function SET-IDX and 2 methods: (defmethod (i (x idx-class)) ...) which sets IDX, and
18:09:56
Bike
usually instead of set-foo you should just define a setf method, but since it doesn't always set it this makes sense.
18:10:00
|3b|
ACTION might just define accessors to do nothing instead of making a separate function
18:10:45
|3b|
or calculate it when you read it, if that happens less often than moving things, then it works for everything
18:20:39
didi
I want to keep track of indexes because I want to efficiently change objects' priority, so I can call (increase-priority i queue) instead of linear searching for it and then increase its priority. Does anyone have a better idea for keeping track of priority queue indexes? Maybe a priority queue algorithm that doesn't need it (I am using a heap)? I am uncomfortable with the priority queue functions changing values of elements it holds.
18:22:22
didi
|3b|: My heap implementation uses a vector. So it is the index of the object on this vector.
18:26:49
|3b|
ACTION 's first thought is just to have a separate hash table as an index, not sure if that is actually good or not though
18:32:09
mfzap
hi all... anyone know the easiest way to grab the socket remote IP address for an inbound request in WOOKIE (runs sockets via CL-ASYNC which is via LIBUV)?
18:52:26
aeth
jackdaniel: (setf cffi::*cffi-ecl-method* :c/c++) doesn't seem to change the issue. render-entities (which calls all the draw calls) runs at 0.028471, which is more than the 0.016666... that is allowed for 60 FPS
18:53:05
aeth
I don't think it's a cache error because it recompiled everything after I made that change, starting at the gl file.
19:03:18
aeth
Actually, this doesn't appear to be the case. It probably has to do with the cache of compiled files.
19:17:42
aeth
The actual individual draw call is 0.000014, which is still about twice as slow as SBCL's and CCL's (I'm getting 0.000007 now for SBCL, yesterday I got 0.000009 for both SBCL and CCL iirc)
19:21:29
aeth
(The reason I accidentally thought nothing changed is because I saw SLIME recompile my engine's files... when, of course, it needed to recompile the cl-opengl bindings in order to make a change.)
21:32:10
msmith
anyone know if there is a way to append a stream to a broadcast stream after it is created?
21:40:44
|3b|
or if the stream needs to stay constant, maybe use a synonym stream pointing to a broadcast stream and swap it out with another broadcast stream with the extra stream
21:45:47
msmith
|3b| just read up on synonym streams and can't really see the point in them. Are they mainly used for the kind of use case you described? to be able to do something the the stream it points to while data is moving through the synonym stream?
0:30:27
sausages
in SLIME's 'all functions that call this function' feature, is there some option somewhere that tells SLIME not to kill the buffer whenever I select one of the listed functions?
0:47:14
BusFactor1
The Interpretation and Compliation of Nock Programs (in Common Lisp) #Urbit https://gist.github.com/BusFactor1Inc/e85dbd369bb5fdb67644a75e65a71c12
1:04:49
whoman
sausages, i have a feeling there is a general emacs way to do this, like C-u, but i do not know it
1:41:45
axion
pjb: SYMBOL-PACKAGE was what we needed. This problem that has plagued us for 3 years is finally solved. Thank you very much for your input.