freenode/#lisp - IRC Chatlog
Search
7:35:33
flip214
but I get lots of WARNING: Dropping #S(EVENT :KIND ENTER/UNBLOCK :NAME RELEASE-MUTEX :TIME 1620891298144560 :VALUES GRAB-MUTEX) event since there is no corresponding enter event on the stack.
9:20:59
flip214
scymtym: runnning hunchentoot I tried (clim.flamegraph.examples.recording:with-recording () (sleep 10)) and using external tools to provide traffic; but there's no recorded run visible.
9:21:39
flip214
If I use (w-r () (dotimes (i 500) (...))) I can see and select all threads in the flamegraph; what's wrong in the HT case?
12:29:09
nij
Hello! Anyone knows any good example to use sbcl's local-socket class? It doesn't say much in its manual.. http://www.lichteblau.com/sbcl/doc/manual/sbcl/Local-_0028Unix_0029-Domain-Sockets.html
12:29:51
nij
In particular, I'd like to let my lisp repl and my terminal talk to each other through a unix domain socket.
12:37:11
nij
jackdaniel: I'm actually looking at slynk server and trying to extend. Does swank server talk through local socket already?!
13:03:29
jdz
nij: Also, the document you linked seems to be for SBCL 0.9.8.6. Why? There's SBCL documentation on sbcl.org (http://sbcl.org/manual/index.html), and, depending on how and where you've installed SBCL, it could also be available locally (like /usr/local/share/doc/sbcl/sbcl.html).
13:14:32
CL-ASHOK
Is there a way to 'call' a function from a .lisp file without having to type and run (function-name ...)
13:14:59
CL-ASHOK
For example, I can C-M-x or C-x C-e on a (defun ...) but that just evaluates the defun - I want to be able to quickly run the function without having to type it out
13:16:43
jdz
CL-ASHOK: If you want to do it from Emacs (similar to C-M-x), then you just define an interactive function in Emacs that does what you want. Try C-h k C-M-x.
13:20:31
CL-ASHOK
jdz: Thanks. Would be for a specific function that I have defined? Or can I make it work on all functions (basically everytime I have my cursor in a defun form, I want to be able call the function being defined there?)
13:25:24
jackdaniel
fiddlerwoaroof: regarding morning: I want to make available parts of mcclim as separate libraries, but I think that extracting extended streams into one library is way too small (and coordination burden will outweight benefit of such separation)
13:26:12
jackdaniel
what I want to do is to provide silica (that is the windowing) as a library so mcclim backends can be used to write separate toolkits
16:13:39
nij
jdz: Oh I gave that page cuz it happens to be very similar if not the same as in a newer version: http://sbcl.org/manual/index.html
16:30:09
pjb
nij: the interface between programs and terminals is implemented using pairs of pty/tty devices. Not using sockets.
16:31:06
pjb
nij: otherwise, I have https://github.com/informatimago/lisp/tree/master/common-lisp/telnet
16:32:40
nij
I just had the impression that using a UNIX domain socket is more secure than communicating over localnet.
16:34:46
pjb
You have people who are already root, to be able to use tcpdump on lo0 on your workstation and you'd want to protect against them??? They can patch the kernel and see whatever they want!
16:35:18
nij
If the root opens a lisp repl, and runs (create-server ..) in it, then iirc anyone on the localhost can link to that repl. This effectively owns the root.
16:36:11
nij
(I have to admit I'm also pretty new in networking, so I might be talking silly. But I'm willing to learn.)
16:37:22
nij
The root just have to create a server over a unix socket, whose property the root can configure.
16:40:05
nij
Great! So I might not even have to work on it? Anyway I will take a look. It'd be nice if someone could summarize.
16:41:56
nij
E.g. sbcl's socket doesn't support tls/ssl iirc.. at least i didn't see it in its manual.
16:57:34
loskutak
Hi, what should I do to the foo string, to make it comparable with :foo? I have code like (case "foo" (:foo "good") (:bar "baz"))
17:01:07
pjb
loskutak: but really, (cdr (assoc "foo" '(("foo" . "good") ("bar" . "baz")) :test (function string=))) #| --> "good" |#
17:03:34
loskutak
and if I had 'foo, 'bar instead of :foo, :bar? I would like to have nice interface with either 'foo or :foo, but I need to supply string "foo" outside the function with the (case ...)
17:03:37
jdz
loskutak: You can also use FIND-SYMBOL instead of INTERN (and remember to use the right case for the symbol name).
17:05:02
loskutak
jdz: that probably doesn't matter, but the code is more complicated than just returning strings
17:08:04
loskutak
other option would be to prepend : or ' to the "foo" string and read that. Is there no other option to convert a string to 'foo or :foo (without the |bars|)
17:09:16
nij
Eww sounds like implementing TLS for CL is pretty scary. How does that relate to DLL hell?
17:10:45
loskutak
jdz: oh, I was stuck at getting |foo| - didn't realize the upcase is important. Thanks for help!
17:11:25
jdz
loskutak: You should know what you're doing. It's perfectly possible to have lower-case or mixed-case symbols. Even symbols with spaces in them.
17:14:55
flip214
Is there a standard function to convert a bit-array into an integer, or the other way around?
17:47:31
nij
pjb: It seems pretty much like what I want. But again, I'm new to networking (and computers in general), so I might have missed something.
18:05:49
Xach
nij: this may be an interesting exercise in learning but you do not have to care about it and it will not help you in any short-term goal.
18:07:36
nij
Xach: Thanks, I'm aware that this is something that's much harder comparing to my ability/experience. I will treat that as a learning experience. No hurry indeed.
18:09:10
nij
On the other hand (and again I might be naive), it doesn't seem too far to get tls working in CL. It's not native, but if that repo works.. it works, at least for sbcl.
18:09:47
nij
It's ~360 lines so I don't expect it to be terribly hard for other implementations either.
18:09:50
Xach
it is not too hard to get it working on one implementation on one operating system distribution. it is much harder to make it work across many implementations and operating system distributions.