freenode/#lisp - IRC Chatlog
Search
1:37:08
anticrisis
About deployment, I saw this page about Chicken Scheme. Is there an equivalent piece of documentation about CL or a particular implementation? Google was (as usual) completely unhelpful. https://wiki.call-cc.org/man/4/Deployment
1:45:39
rpg
Fare has put into ASDF some semi-portable operations for building executables on platforms that support it. I say semi-portable, because some implementations do not support delivery of standalone executables.
1:46:30
rpg
TBH, I am not sure if the ASDF manual really documents how those operations are to be used. It might, but it might now.
1:48:47
rpg
Have a look at the ASDF manual (on common-lisp.net), and if it doesn't answer your questions, please submit them to the asdf-devel mailing list. That will help us improve the docs for everyone.
1:49:07
Fare
cl-launch also provides a portable wrapper around this functionality, accessible from the Unix command line
1:49:30
rpg
Fare: no -- I'm still banging out my proposal. I was hoping to get to the changelog, but I have 2 more sections to write, and it's looking like a long night. I was over-optimistic earlier.
3:06:44
beach
copec: You just did write for more than just yourself; you submitted it for others to read.
3:31:07
jasom
anticrisis: uiop and asdf have some delivery options that are very useful, but I don't recall how much is in the manual; let me check
3:33:20
jasom
hmm is there docstring-generated manuals online for uiop? quickdocs doesn't seem to work for it
3:35:58
jasom
anticrisis: https://github.com/fare/asdf/blob/master/uiop/image.lisp#L334 <-- this function is what I do. The docstring is less useful if you don't understand the idea of images, but other than that should explain things
3:40:20
jasom
anticrisis: The really short version is: (uiop:dump-image filename :executable t) will save a complete executable that will call the the function stored in uiop:*image-entry-point* when launched. This will work on any lisp that supports images (so not ecl, gcl, mkcl, or abcl). Should work on ccl, clisp, sbcl, cmucl.
3:43:17
jasom
... less than 200 systems to go on this run of ql2nix. Then I get to update quicklisp and wait for 20+ hours again.
5:32:54
some-user
trying to use package-inferred-system class of asdf:defsystem but it seems to ignore :pathname "src"
5:33:43
some-user
am i using it wrong https://gist.github.com/george-semenov/2c2a40dcfb57ddb3ff7780d16aec0636 ?
7:11:35
uint
A pastebin-like facility that lets me paste from the terminal, like so: echo "stuff" | nc termbin.com 9999
7:12:51
antoszka
uint: You want a commandline client for pasting with CL syntax colouring? There are tons. I'm using the Polish one, wklej.org, for instance. ix.io, too, if you want lightweight. pastebinint supports lisps as well, I think.
7:20:02
phadthai
hmm maybe also look at wgetpaste which supports various bins, some of which may support lisp syntax highlighting
9:30:26
loke
phoe: You too? I guess they are on to us... Seems like we can't spam like we used to anymore.
9:31:15
phoe
loke: I had no idea that they would find out so quickly https://gist.github.com/phoe/7a384a0483ff275c1d1a670fbbfacb5c#file-hmmm-lisp-L68
9:32:11
phoe
I wasn't spamming much, just most of #lisp, #scheme, #racket, #clojure and a few thousand other randomly chosen accounts
12:56:40
axion
Hello. Is anyone good with bit twiddling? Been stuck on a function for 2 days now. Trying to modify it to support the other endianess. I could make a paste (not much code to parse) if anyone can give me a hand as a last resort before I give up.
13:07:53
beach
axion: the comment says you read bits out of bit buffer, but what's the role of *byte-buffer*?
13:09:01
axion
*byte-buffer* is really just an array of bytes, whose purpose is the same as this code, except for bytes. It can be used to cache large chunks of bytes from a stream, but it's not really relevant to this code.
13:09:21
pjb
axion: the only difficult part then is to convert between bit-vectors and byte vectors or integers.
13:09:59
pjb
axion: for this, you have to mix bit vector indexing, and arithmetic. Happily, you can also use LDB/DPB.
13:10:40
pjb
axion: the conversion got you because there are multiple ways to do it, and you have to choose one. (or the choices may be imposed on you, but you have to know which one it is).
13:11:23
axion
pjb: The truth is I am by no means good at this stuff, and that small bit took me days.
13:12:34
pjb
For example, on serial lines, the msb is transmitted first and the lsb is transmitted last. But on hard disks, it's often the opposite. On the other hand, on multi-track tapes, bits are usually transmitted in parallel. Do you care if they're stored on the outer track or the inner track?
13:14:15
pjb
Your bit-buffer is conspiciously missing a "fill pointer". (assuming your bit-count is, as it seems to be, a pointer to the next bit to be read).
13:14:41
axion
pjb: Ok, I'm not really sure what that means as far as my need for this code. I will be using this to parse binary formats which encode bytes in either BE or LE...and sometimes both
13:15:33
axion
pjb: I modified this from 3b's code here: https://github.com/3b/3b-swf/blob/master/low-level/swftype-read.lisp#L51
13:15:38
beach
axion: As both Xach and pjb said, endianness has to do with the order of bytes within a multi-byte word. The order of the bits within a byte is unimportant here, i.e. always the same.
13:17:42
beach
axion: Sorry, don't know. The protocol in question should tell you from which end of the second byte the additional 2 bits are to be taken.
13:18:03
axion
Ok, what you say makes some sense to me. I will have to think study some more. This is all very confusing to me