freenode/lisp - IRC Chatlog
Search
7:05:08
ecraven
I'm not good with autotools, just running autoconf or autoreconf does not lead to a working configure script here :-/
7:06:05
ecraven
well, this is just my lack of knowledge on how to properly run things :-) thank you!
7:11:24
ecraven
loke___: hm.. when running ../src/lam in examples (where ld.conf is) after copying tapes/ there, I get SDU:open: No such file or directory
7:19:02
p_l
I need to add LD to my collection...and patch it for virtual network, same with other emulators :-|
7:20:33
ecraven
loke___: http://bitsavers.trailing-edge.com/bits/LMI/ should have the roms, but I have no idea where :-/
8:13:17
beach
What should I call an operation that transforms the list (x y1 y2 ... yn) to the list ((x y1) (x y2) ... (x yn))?
8:16:58
beach
I have this impression that there is a kind of standard name for it. But maybe I am thinking of some kind of APL operator.
8:16:59
flip214
(mapcar (curry #'cons (first input)) (rest input)) ..... hardly a function, right? ;)
8:17:39
beach
The thing is, I need to use it several times in different methods, so I had better make it a separate function.
8:23:30
beach
It is not used in a macro. It is used in methods for canonicalizing declaration specifiers so that (ignore a b c) become ((ignore a) (ignore b) (ignore c))
8:33:27
White_Flame
is there a common name for ((key val) (key val) ...) style lists? we call them m-lists
8:35:27
jackdaniel
is there a point in using (and providing accessors) such kind of structure instead of alist?
8:36:12
White_Flame
it works very well for our Member matching operation (hence the "m" in m-list), and it serializes better to languages that can't do dotted lists
8:45:06
xificurC
please please tell me how can I run an sbcl command without the initial splash screen?
8:46:01
xificurC
I'm comparing various scripting runtimes' startup time for a hello world script. So I'm looking for the equivalent of `bash -c 'echo hi'`
8:47:01
Josh_2
Going out on a limb here but you put #!/bin/sbcl --script ?? at the top of the program?
8:53:48
xificurC
jackdaniel: --noinform was it, thanks. It's not in `sbcl --help` so I didn't find it
8:54:33
xificurC
Josh_2: I am running from the command line with no files, so there's no program to put a shebang into
8:54:41
jackdaniel
xificurC: for automatic scripts (to time them) running it as script (as others pointed out) will be better though
8:55:02
xificurC
shka: while that's a good option it would add more overhead to the startup, which is what I'm trying to measure
8:56:58
xificurC
jackdaniel: what do I lose with --no-sysinit? What is it that it actually skips loading?
8:56:59
jackdaniel
or --non-interactive to skip both disable-debugger and quit according to the manual
8:57:31
jackdaniel
I *think* that it skips loading system-wide .sbclrc placed *somewhere*, which probably is non-existent by default
8:59:09
phoe
jackdaniel: quicklisp's loader is put in .sbclrc though, so I wouldn't claim it's non-existent by default
9:01:24
ogamita
beach: (defun distribute (e list) (mapcar (curry #'list e) list)) (defun distribute (e list) (cartesian-product (list e) list))
9:03:10
ogamita
or left-distribute, and (defun right-distribute (e list) (cartesian-product list (list e)))
9:05:19
beach
ogamita: Thanks. But in fact I lied. It is not really a list of items, but a concrete syntax tree, so I can't use standard list operations.
9:06:18
ogamita
beach: I know you know how to write it, I just cannot resist to the pleasure of writing them!
9:07:39
minion
mazoe, memo from phoe: https://www.informatimago.com/develop/lisp/com/informatimago/small-cl-pgms/wang.html
9:09:33
loke`
It is funny how in the olden days, people wrote Lisp code by putting newlines once they hit the end of the line.
9:10:24
loke`
ogamita: Thanks for remidning me, but the joke about WJ still remains (for it was a joke)
9:10:24
ogamita
loke`: they had no choice, it wasn't an end-of-the-line, but rather an end-of-the-punch-card.
9:11:06
loke`
ogamita: right, but I think in many case it would have made sense to put the line break at more sensible places.
9:11:28
loke`
That said, now that I'm thinking of punch cards, that probably wasn't an issue, and such indentation/lie breaks probably didn't help on the cards.
9:12:22
ogamita
loke`: No, actually they wrote code on paper first, and then the punch cards could be filled (by secretaries actually) and weren't used to be read. Then they assumed a pretty-printer for the listing.
9:13:13
phoe
This is a daily reminder that we have a slowly growing project called Lisp Guild, where people who have some tasks to be done can post them, and people who want to practice and gain experience on real-life code can grab these tasks and do them. https://github.com/Lisp-Guild/lisp-todo/projects/1 <- currently 4 tasks to be done, but feel free to post more.
9:13:28
ogamita
loke`: yes. The only reason to split an expression over several punch cards would be to help debugging the programs (replacing a card by another).
9:13:49
loke`
But I never thought that the card was a 1-to-1 mapping to the paper. That's why they had programming forms after all?
9:13:49
loke`
http://blog.bounceweb.com/wp-content/uploads/2011/06/old_cobol_formcobol-as-a-programing-language.jpg
9:13:52
phoe
So if you, who's reading these words, wants to get some Lisp practice on small, well-defined tasks while being able to get help from the Lisp community - grab one of these.
9:26:36
jackdaniel
if I'll get on roll, I'll maybe manage to merge some code and make an iteration report
9:37:44
phoe
beach: on an unrelated note, see? You seem to remember pretty well how to find and use the Guild.
9:38:26
beach
I still have the web page up. :) Wait until I am forced by the software updater to restart Firefox or even reboot my computer.
9:50:04
ecraven
if anyone has specific questions, I'll gladly try to help (though I'm no mathematician, so I don't understand some of the actual code ;)
9:52:47
phoe
ecraven: make sure that your commit message is something like, "remove german comments" so this is later findable in the logs
9:56:20
phoe
loke`: https://www.reddit.com/r/lisp/comments/676cse/watson_iot_with_common_lisp/dgodg7z/
10:16:43
easye
ACTION sighs https://github.com/fsmunoz/cl-watson-iot-example/blob/master/cl-watson-iot.lisp#L24
10:18:41
phoe
easye: it's hard to bruteforce though, most people assume that passwords contain alphabetic characters and will bruteforce also using letters!!1
10:32:53
jackdaniel
you are the person who should be thanked :) I've just scrolled if it's fine and pressed one button :p
10:34:18
ecraven
yea, but I'm hoping for all the awesomeness that'll come out of your hard work, so this miniscule contribution is the least I can do to help with getting there ;)
13:10:56
malice`
Hi! I thought I could use #'asdf:test-system to test my system, but it turns out that it returns T even if some of tests fail. I am using fiveam. Is this the proper behaviour of #'asdf:test-system?
13:17:53
malice`
phoe: I guess you may want to look at https://github.com/MatthewRock/cl-trie/blob/master/cl-trie.asd
13:34:27
phoe
if one of the lines of a defmacro docstring begins with a #\( then the indentation and compilation breaks
13:41:50
ogamita
phoe: a design flaw: font-locking only goes backward so far. It doesn't try to parse the file from the start.
13:53:02
_death
it's not a slime issue, but an old emacs issue.. there was recently a lot of discussion about it on the emacs development mailing list
16:10:44
loke_beirc
I'm going to have a look at how the input field of this application works. But that's for tomorrow.
16:44:32
thodg
I have a hard time finding out which implementations are supported by PORTABLE-THREADS
16:49:50
shrdlu68
Looking at the documentation, it seems there no way to POST binary data using trivial-http?
17:00:57
shrdlu68
https://github.com/svenvc/s-http-client: "HTTPS in only implemented on LispWorks (where it was really easy)"--how does Lispworks do ssl?
17:07:36
shrdlu68
XachX: I've been working in an ssl in lisp, cl-tls. Would it be uselful for quicklisp?
17:07:37
_death
could also use ssl on implementations that provide it.. and then people may work to provide it
17:12:25
shrdlu68
Most systems ship with certificate bundles. It's a metter of configuring a client to find them. Otherwise ship with the bundle.
17:14:20
shrdlu68
_death: Different organizations have different demands in the vetting process, so yes of course.
17:14:52
shrdlu68
But if you pick, say, the bundle that the Mozilla foundation uses, that's a safe choice.
17:15:36
_death
shrdlu68: it's not about organizations, it's about the direct users of your program.. they are the ones to decide what they trust.. the fact that most don't even know about it doesn't mean you should "ship a bundle" in your security-related program
17:16:58
shrdlu68
_death: cl-tls is a completely low-level tls library, so it leaves the choice of ca-certificates to the user.
17:18:27
shrdlu68
But people don't typically go around changing which ca certificates their curl or browser uses.
17:20:47
shrdlu68
_death: Even so, the sysadmin will likely be installing a ca certificate and a client certificate rather than removing those that the browser ships with.
17:23:14
_death
shrdlu68: and the browser usually doesn't ship with any afaik, but uses the operating system's list
17:24:38
_death
shrdlu68: looks like mozilla does has a default bundle.. which I guess is disabled by those organizations
17:25:26
shrdlu68
Anyway, cl-tls does validation, all the user has to do is point out where the ca certificates are.
17:26:26
shrdlu68
I'm curious about how other implementations handle wildcard host names, especially those that leave that to the user.
17:27:01
_death
even as a single home user, it may a be a good idea to review all those sources (there are way too many of them, that's another problem).. at least important servers nowadays adopt PKP
17:27:49
shrdlu68
An implementation that accepts *.com + a rogue sysadmin installing "company" CA certificates = trouble.
17:49:45
minion
ecraven: guild: Lisp Guild, a place for exchanging tasks to be done: https://github.com/Lisp-Guild/lisp-todo/projects
18:15:23
emaczen
For some reason, parenscript isn't compiling. I am just trying to remove it and re-install
18:16:57
Bike
the quicklisp dist is the collection of systems from quicklisp, so including parenscript and alexandria and everything else
18:18:16
Bike
of course if you've completely removed parenscript i think you have to quickload it again.
18:19:12
emaczen
I just did (ql:uninstall :parenscript) followed by (ql:quickload :parenscript) and I'm still getting a compile error
18:22:20
aeth
I've gotten problems twice before with cl-sdl2 that could only be fixed by going into ~/.cache/common-lisp/ and removing the compiled files for it
18:23:01
aeth
~/.cache/common-lisp/whichever-lisp-version/path/to/files/foo.fasl (or whatever your implementation calls the compiled files, if not FASL)
18:23:52
aeth
If that's the problem, reinstalling it on Quicklisp won't fix it because it will be installed to the same path and so use the same cached files.
18:25:30
nyef
Tied for longest such directory name is "sbcl-1.3.14.141.dx-functionals-383079.2-9ddefed-dirty-linux-x64".
18:27:28
aeth
That's nothing... once I accidentally messaged Nick (instead of NickServ) my password. That retired that password.
18:28:06
cheryllium
Oof. I was gonna say, one of my fears is accidentally voiding my password in that way.
18:29:10
aeth
Give it enough years and every possible mistake will happen in things like sh or IRC commands that like to punish people for typos.
18:29:24
aeth
Fortunately, on Freenode, you can send your password on connect, so you don't have to message anyone to identify.
18:30:17
aeth
once I overwrote an IRC log file because I didn't quote the > when searching for a name via grep
18:30:26
cheryllium
you know how common it is for things to have a folder named bin? he was trying to delete one of those, but instead managed to nuke THE bin