freenode/#lisp - IRC Chatlog
Search
5:59:25
jeosol
that's great. It's the general area. I am looking at implementing some standard problems from some articles with Gabor's/ or any neural network code and compile the examples. Some of the code examples are in python and wanted to have a compilation of these examples
6:00:18
jeosol
aindilis: what areas of AI are you working on? Are you currently using any specific libraries?
6:01:35
beach
jeosol: If you go to Tymoon, you can search for aindilis and get the contents of the conversation.
6:09:06
no-defun-allowed
I think what dmiles has is written in Java though, but the database is in s-expression format.
6:11:33
jeosol
ok. not very Java saavy, tried picking it up for some stuff a while ago, and lost my mind -- very verbose then
6:13:13
jeosol
I am planning to get some books on AI books with some CL focus. I am interested in cognitive systems and explainable AI
7:37:49
LdBeth
ck_: I’m more interested in the interaction interface rather than the logic framework beneath
12:22:09
random-jellyfish
I want to store the output of format to a string variable, how do I do that?
12:25:22
ck_
random-jellyfish: or if you want to compose it with multiple operations, take a look at with-output-to-string
12:36:23
_death
(let ((string (make-array 0 :adjustable t :fill-pointer t :element-type 'character))) (dotimes (i 5) (format string "~R~%" (1+ i))) string)
12:37:59
_death
this could be useful if you use the partial outputs (as get-output-stream-string clears the stream)
12:38:57
no-defun-allowed
Well, the last release of the CL standard was in 1994, so anything new is going to be bug fixes or optimisations.
12:44:15
jackdaniel
or fixing the calling conventions for more than 63 arguments passed to the function ,)
12:46:09
no-defun-allowed
jackdaniel: call-argument-limit only has to be greater than 50, so you don't have much work to do (;
12:49:33
jackdaniel
no-defun-allowed: it would be sad if I had lowered 65k call argument limit to 50 because of a bug
13:30:38
scymtym
SBCL has SB-INT:ENCAPSULATE which is like a rudimentary advice facility, but it is internal
13:55:32
dlowe
If they were better specified, I imagine they would have been less portable between OSes
13:56:25
jackdaniel
if anyone things about grand new CDR they should write a precise pathnames and logical pathanmes along with an elaborate test suite for this addendum
14:36:05
mfiano
Any HTTP experts here? I've been trying to solve a problem in my use of drakma for 2 days. I would like to POST an HTTP array with a content type of application/x-www-form-urlencoded, in the same way the curl argument -d works. This command: "curl https://... -d -d items[0][plan]=plan_FPjya2CCLvYKVB" does the correct thing, but drakma expects an association list for content to post, and sending that in any
14:36:08
mfiano
variation results in the server receiving it wrapped in a string and the server returns that it is not an array.
14:42:23
jackdaniel
mfiano: afair drakma has keyword arguments like external-format and force-binary, maybe this will help?
14:43:19
mfiano
jackdaniel: Hmm, I could try that, but I have to POST other arguments with it that *should* be strings
14:43:33
mfiano
Also not quite sure what to specify for those to get the behavior of the above curl argument
14:51:55
Xach
mfiano: there is no such thing as an http array! what you are sending via curl is a parameter named "items[0][plan]".
14:52:59
mfiano
Xach: Indeed. This is how the API service receives the items: https://files.michaelfiano.com/images/screenshots/img-20190711105208.png
14:55:08
mfiano
It's actually expecting data as i posted by a form. The content type cannot be application/json
14:57:24
mfiano
Well that is something I didn't try. I'll play around with that after lunch. Thanks for your help!
14:57:59
Xach
mfiano: i base this suggestion on my understanding of forms from long ago. many language environments choose to interpret keys as describing structure, but to http, they are just strings
15:00:18
mfiano
As far as the value part of the alist, I'm still thinking of a good solution to convert lisp types to strings. like T -> "true", but done so in a way to work with aggregate types recursively
16:01:41
Xach
Hmm, if you're creating a list of command-line arguments to call a shell command, and some of them might be optional key/value pairs (e.g. --worker-count 42) and some of them might be flags (e.g. --no-scrubs), and you have to inspect some stuff to decide what to include - would you use `(... ,@(unless scrubsp ,@(list "--no-scrubs")) ...) or something else?
16:02:21
Xach
(mapcan #'identity (list (list "--worker-count" worker-count) (unless scrubsp (list "--no-scrubs")) ...))))?
16:32:02
sjl_
Xach: (append `("--worker-count" ,worker-count) (unless scrubs? '("--no-scrubs"))) maybe?
16:39:15
pfdietz
,@(when <pred> (list <value>)) is the idiom I use for optional inclusion of something in a list I'm constructing.
16:56:51
_death
Xach: not long ago I started on some project calling programs like that.. an example of what I came up with at the time: https://gist.github.com/death/9b2ee7cc0196bdf45427cca425631516
16:58:25
Oladon_work
Question for you all — how many of you are open to (and/or have engaged in) CL contracting, and if so what's your typical rate?
17:03:01
shka_
Xach: i have something that is almost cl list in concept, but must be terminated properly
17:03:08
_death
Xach: yes.. also prin1-to-string numbers.. it's recently developed, so can likely be further improved
17:03:14
aeth
Oladon_work: That question might be better for a forum because the few who contract might not see it on IRC
17:42:25
Oladon_work
aeth: Yeah, just getting a feel for now — and I know you guys a bit better than any of the fora
17:53:15
asdf_asdf_asdf
Hi. How on the Spoj.com my answer is incorrect, because Non-Zero Exit Code (NZEC)?