Search
Monday, 24th of February 2020, 22:55:26 UTC
22:58:18
iAmDecim
there we go....no I can play.
23:01:18
iAmDecim
ok it's at least running but has anyone seen these warnings? https://pastebin.com/3cDZeUXu
23:03:33
White_Flame
you're probably loading 2 versions of slime on top of each other
23:04:10
White_Flame
(well, 2 versions of swank, the slime backend)
23:06:08
iAmDecim
White_Flame: ahh..I bet I am. Checking...I just tried to reinstall slime since it's been years.
23:08:04
White_Flame
because there are some sb-fm internals that aren't matching, and you're running a newer sbcl version, there's probably an old version of slime
23:10:20
iAmDecim
yeah. i reinstalled slime. Restarting emacs just cut out a large portion of the errors...there's still one block. https://pastebin.com/HYRp0emK
23:11:02
iAmDecim
oh i see what you mean now....ok i'll play with that later. i bet i did install sbcl with brew and an older method.
23:11:23
iAmDecim
I'll play with this tonight. I really need to clean things up anyways on this laptop
23:18:56
iAmDecim
ahh I'm learning. updating quicklisp, first day really using common lisp.
23:35:45
amnesia1010
come any one see this:
23:35:48
amnesia1010
https://docs.google.com/forms/d/e/1FAIpQLSfg7UJRKrkI3OjOHWL4xI-murE4LpQjIxsiAhFdPEmtyLX3kg/viewform
23:36:35
amnesia1010
A survey of Common Lisp users
0:08:54
vms14
oh, I've mixed lisp and perl with sockets :D
0:09:19
vms14
(sb-bsd-sockets:socket-send *socket* (format nil "print STDERR 'meh';'as';~%") nil) => "as"
0:09:30
vms14
and prints to stderr on the perl side
0:10:18
vms14
this is nice, because now Lisp has all the perl modules available
0:10:45
vms14
well atm is just perl evaluating whatever it founds from the socket and returning the results
0:10:55
vms14
LdBeth: I kinda like perl
0:11:17
vms14
it's a great language
0:11:34
LdBeth
I think I could do the same with apl then
0:12:00
vms14
just try, I suppose most lispers end using another language because lack of libraries or whatever in lisp
0:12:18
vms14
if the language you want to use has eval, you can just use sockets and make it eval whatever it reads
0:12:33
vms14
or predefine functions or whatever, and you can even return lists to the socket so lisp can eval them
0:13:18
vms14
I had the same stuff but calling the perl interpreter, which is slow, now with sockets will be much faster
0:18:45
no-defun-allowed
"I suppose most lispers end using another language because lack of libraries or whatever in lisp" What? Quite the opposite.
0:18:57
vms14
(sb-bsd-sockets:socket-send *socket* (format nil "@oh=values %ENV;\"@oh\";~%") nil)
0:19:14
no-defun-allowed
I've only needed to burgle-batteries to use a Keras model once.
0:20:13
vms14
well, you're right. There are a lot of libraries for common lisp
0:20:54
Odin-
I'd probably reach for a C FFI long before a tunnel to Perl or Python...
0:21:01
vms14
but sometimes you end needing to implement stuff by yourself
0:21:21
vms14
yeah, sockets+eval is a very dirty approach
0:21:27
no-defun-allowed
And by "quite the opposite", I mean I haven't really written any big projects in any language since I picked up Lisp.
0:21:58
vms14
no-defun-allowed: try to make a discord bot, you'll have to implement some stuff
0:22:33
vms14
you can, and it's likely that being implemented in lisp they'll be "better" software than in the other languages
0:22:35
no-defun-allowed
https://github.com/stibear/cl-discord
0:22:42
Odin-
vms14: Because in my experience using a Lisp FFI makes even C interfaces workable in interactive development.
0:22:57
no-defun-allowed
https://github.com/40ants/cl-telegram-bot
0:23:15
no-defun-allowed
I'm not even trying to find them; both were within the first page of DuckDuckGo results for "common lisp {discord,telegram}"
0:27:26
vms14
well at least is an excuse to play with sockets
0:27:56
no-defun-allowed
ACTION sighs
0:31:47
vms14
btw what type of stream is this one?
0:31:50
vms14
(defparameter *socket-out-stream* (sb-bsd-sockets:socket-make-stream *connection* :element-type 'character :output t))
0:32:15
vms14
by default is set to element-type 'character, so this is redundant
0:32:36
vms14
but I'm not able to use it with write-line write-sequence or write-byte
0:32:58
no-defun-allowed
All I can say is that it's a character output stream. What happens when you write-line to it?
0:33:06
vms14
it says it's not a byte stream with write-byte and not a character stream with the others
0:33:39
no-defun-allowed
What is (stream-element-type *socket-out-stream*)?
0:33:47
vms14
#<SB-SYS:FD-STREAM for "socket /home/vms/meh.oh" {1003DA8B13}> is not a character output stream.
0:34:02
vms14
(stream-element-type *socket-out-stream*)
0:34:23
vms14
it seems it isn't "output" type
0:34:32
vms14
because streamp says t
0:35:03
no-defun-allowed
That makes no sense, an output stream is a stream.
0:35:07
vms14
(output-stream-p *socket-out-stream*)
0:35:18
vms14
yes, but not an output-stream
0:35:29
vms14
oh, it's an input stream
0:35:33
no-defun-allowed
Why not use usocket for this? That's much easier to work with.
0:36:00
no-defun-allowed
(usocket:socket-stream (usocket:socket-connect "127.0.0.1" 12345)) ; => a two way character stream
0:36:01
vms14
but I'm using (sb-bsd-sockets:socket-make-stream *connection* :output t)
0:36:10
vms14
no-defun-allowed: usocket has unix sockets?
0:36:52
no-defun-allowed
Probably not, but it can probably get the stream from a socket created with SB-BSD-SOCKETS.
0:37:38
vms14
I should use usocket for portability, but meh, it won't work with unix sockets
0:38:18
vms14
anyway I can write lines with sb-bsd-sockets:socket-send and read lines without having to worry on sizes to read
0:38:29
Thilastiko
Hello World! I am new to irc on emacs and am hoping to find out if theres a channel out there for newbies
0:38:53
Thilastiko
clschool? thanks
0:39:11
vms14
also #emacs if you want to learn about
0:46:57
LdBeth
Seems I cannot add new irc channels to Riot anymore
0:48:10
LdBeth
Never mind, the problem’s with their web client
0:49:42
no-defun-allowed
"LdBeth: you've been in a coma for 25 years" "oh, have they fixed the Riot client yet?" "lol no"
1:37:45
vms14
https://termbin.com/xola
1:39:24
vms14
now the alien can eat onions
5:07:32
beach
Good morning everyone!
5:25:46
no-defun-allowed
Hello ebrasca.
5:27:45
ebrasca
Hi no-defun-allowed
5:28:28
no-defun-allowed
How are you?
5:29:26
ebrasca
no-defun-allowed: And how are you?
5:29:34
no-defun-allowed
Alright, thanks.
7:35:39
Lord_of_Life_
** NICK Lord_of_Life
9:05:47
no-defun-allowed
Good moooorning phoe.
10:12:52
phoe
`(m ,@'#1=(o . #1#) r n i n g)
Tuesday, 25th of February 2020, 10:55:26 UTC