freenode/lisp - IRC Chatlog
Search
1:37:09
Alfr
charles`, you'll likely also need to keep whole system around, e.g. sbcl will refuse to load fasls not output with the exact same build.
1:44:08
Alfr
charles`, you want monolithic-compile-bundle-op I think. You can also dump a (executable) image of a loaded system, if you prefer that.
2:21:03
dbotton
What is the term used in the Lisp world for an interface in lisp for a c api? In the Ada world we call it a binding for example a binding to the win32 api.
2:23:37
Alfr
dbotton, also called a foreign function interface, covering more than only functions though.
2:24:28
dbotton
Xach what is considered the appropriate level of stability for a project to be in quickslip?
2:25:11
Xach
i do not reject anything on quality or maturity or stability grounds. if you want it to be part of quicklisp, and it builds, it will very likely become part of quicklisp.
2:28:56
Xach
if it's really hard for me to install prerequisite foreign libraries that can be a stumbling block
2:30:23
dbotton
Since it is a "live" connection to a browser window (or a browser control say in an Xcode project on Mac etc)
2:32:46
dbotton
http://office.botton.com:8080 wrote a game demo I have up for the moment - all code is LISP not html or javascript
2:48:20
dbotton
A number of factors push Ada to just be a very very niche "product" so despite my love of the language that bought me here
3:14:38
dbotton
Working well in my tests so far, clog-connections is fairly decoupled, so should be easy to switch
3:30:27
dbotton
You should already with what is there in the CLOG project be able to write a Web App, use ecl to embedded in an Android app and iOS using a browser control, then use sbcl or another to take the same app and embed in an Xcode project, and MS new app whatever they call them this month, and a GTK app with a webkit window on Linux.
3:53:47
moon-child
if you just want everything in a vector: (with-open-file (fp fn :direction :input :if-does-not-exist :error :element-type '(unsigned-byte 8)) (let ((buf (make-array (file-length fp) :element-type '(unsigned-byte 8)))) (read-sequence buf fp) buf))
3:54:38
loke[m]
moon-child: What you said is correct, but the idea of using FILE-LENGTH to determine the amount of data to read is problematic.
4:00:43
moon-child
loke[m]: what's wrong with using file-length for that purpose? And what would be better?
4:02:25
loke[m]
You can use FILE-LENGTH to determine the initial size of the array, then make the array adjustable, and read until there is nothing else to read.
4:10:57
Oladon
In case anyone has lost the unlocking devices for their automobile, I just found them in my code. :)
5:07:15
asarch
I'm doing a small web server with Caveman2 in order to send files from my cellphone to my laptop, and in the POST request, the content of the file is a type of RAW-BODY: #<CIRCULAR-STREAMS:CIRCULAR-INPUT-STREAM {1007C409E3}>, how could I send it to a WRITE-SEQUENCE?
5:20:23
loke[m]
If you want to copy an input stream to an output stream, you can use UIOP:COPY-STREAM-TO-STREAM.
6:03:22
v3ga
so are sly-stickers useful when debugging? or whats the best way to go about stepping through a function or procedure with sbcl/sly?
6:06:03
charles`
then it will break when it reaches your sticker without having to add (break) and recompile
6:08:49
v3ga
charles`: ahh ok, I see now. that's how they're used... ok i'll write something longer and play with it
6:09:22
charles`
I really wish you could start single stepping after encountering a break, but I haven't figured that out yet
6:13:34
v3ga
also with step....i'm using the gentle introduction to symbolic comp book. they're using a different lisp implementation but surrounding a function with (step ...) doesn't give the same feedback as the book.
6:16:40
v3ga
yeah i do get that much, maybe i'm misinterpreting what the book shows. i was expecting even for this small function for it to go through each bit. ah well. it's late, maybe i'm senile for the night
9:03:17
flip214
wasn't there a way to do performance comparisons across the various implementation via some web interface? paste a few lines, get a performance table back?
9:27:47
Nilby
(documentaion 'flexi-streams:vector-input-stream 'structure) => "A binary input stream that gets its data from an associated vector of octets."
9:31:37
asarch
(documentaion 'flexi-streams:vector-input-stream 'structure) => ; Evaluation aborted on #<SB-INT:SIMPLE-READER-PACKAGE-ERROR "The symbol ~S is not external in the ~A package." {1004943783}>.
9:33:05
phoe
but, (documentation 'flexi-streams::vector-input-stream 'structure) works on my machine
9:37:56
edgar-rft
I'm seriously wondering what's faster, reading the source code or fiddle out the correct cl:documentation syntax.
9:38:34
phoe
and the docstring is also there, unless the code contains docstrings set in another location