freenode/#lisp - IRC Chatlog
Search
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: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: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:42
Odin-
vms14: Because in my experience using a Lisp FFI makes even C interfaces workable in interactive development.
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:31:50
vms14
(defparameter *socket-out-stream* (sb-bsd-sockets:socket-make-stream *connection* :element-type 'character :output t))
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:47
vms14
#<SB-SYS:FD-STREAM for "socket /home/vms/meh.oh" {1003DA8B13}> is not a character output stream.
0:36:00
no-defun-allowed
(usocket:socket-stream (usocket:socket-connect "127.0.0.1" 12345)) ; => a two way character stream
0:36:52
no-defun-allowed
Probably not, but it can probably get the stream from a socket created with SB-BSD-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: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"
11:05:09
splittist
Given the string "/foo/bar/../baz/quux.lisp" I would like to obtain "/foo/baz/quux.lisp", and the obvious generalizations of this scheme. Because the string looks like a pathname I have been looking at various path-related things, but nothing and nobody seems to want to give me what I want. Am I just thinking about this wrong?
11:15:01
splittist
Except that I'm on SBCL (or CCL), and "NB: Since this function does not access the filesystem it will only remove :BACK elements from the path (not :UP elements). Since some lisps, ccl/sbcl/clisp convert ".." in pathnames to :UP, and not :BACK, the actual utility of the function is limited."
11:18:21
splittist
I'll implement it myself. (It is verging on the Left_Pad level of functionality...)
11:26:33
Colleen
splittist: Function pathname-utils:normalize-pathname https://shinmera.github.io/pathname-utils#FUNCTION%20PATHNAME-UTILS%3ANORMALIZE-PATHNAME
11:28:41
Shinmera
that library has been tested on a few implementations at least so I know the stuff is as correct as can be :)
11:37:30
Shinmera
one of the problems is that it can't convert :up, since :up's semantics can differ in the presence of symlinks
11:39:07
splittist
Sure. But since my strings aren't actually pathnames on an OS with symlinks I can treat '..' as :back. (Option would be good (: )
11:41:09
splittist
Odin- and phoe: Yes! I had actually looked at it a while ago but didn't think it would work on the basis of the description of dotdot. 0 for reading comprehension.