freenode/#lisp - IRC Chatlog
Search
19:06:30
Josh_2
I need to specify the location of my .so file and I want to make it relative to my system instead of specifying an exact path
19:33:12
mister_m
I am trying ot use uiop:split-string to split a couple lines I am reading from a file by newline to create a list I can process. I am invoking (uiop:split-string lines :separator '(#\Newline)), but i get a single element list with the same string as the lines value I am passing to split-string. Am I missing something here? Does #\Newline not mean what I think it does?
19:38:28
mister_m
that's clever I'll remember that - looks like there is indeed a #\Newline in there
19:41:42
mister_m
_death: well, technically I am using a regex to extract a block of a file and working with those lines directly
20:07:39
Josh_2
can an integer be coerced into an array of It's bits? I want to access each bit in an integer individually
20:19:04
jcowan
I need help translating a non-CL LOOP construct into idiomatic CL LOOP. Of course I could use lower-level code instead, but I think it would be better to use LOOP here. Anybody feel like looking at this?
20:25:09
lukego
Hey is it possible to do SBCL20 as a "one dayer"? Like, arrive early morning, leave late night, do some meaningful talking with people in between? If so which date would work?
22:12:35
anlsh
Can anyone help me debug geiser-mode a bit :| None of my evaluation/send to repl functions seem to work
22:15:09
anlsh
Yup, so after running geiser-set-scheme I can run geiser-mode-switch-to-repl from the buffer and one will pop up
22:15:43
jackdaniel
anlsh: this channel is dedicated to common lisp (please see topic) so no many people will be able to help you here
22:17:21
LdBeth
anlsh: geiser has weird setting that requires your file extension matches the scheme implementation you use
22:23:49
anlsh
Hmm well I'm using chicken scheme and my source file is a .scm, which seems to be in line with the variable's value
22:25:50
LdBeth
anlsh: yes that’s why they’s a time problem because mit guile gambit also uses that extension, so please refer to 4.1 of geiser user manual
22:29:22
jackdaniel
LdBeth: while anlsh is excused as a newcomer for not knowing the channel topic you are not, please stick to it
22:34:21
anlsh
LdBeth: Drop me a heads-up in here if/once you send your first pm, I'm running erc right now and don't think it's functioning entirely correctly
23:41:06
jcowan
the loop syntax is LOOP WITH var = value AND var = value etc. (assignments not bindings) FOR (headvar . tailvar) IN list DO expr)
23:43:20
easye
lukego: sbcl20 is certainly doable for whatever time you have available. We start on Sunday night.
23:57:33
jcowan
the code is very interesting, but there was an explicit warning "adapt the loop to your Lisp: Maclisp, Interlisp, etc."
23:58:06
jcowan
I mean what the code does is interesting: a two-page Prolog interpreter using downward success continuations (recursions) instead of the usual upward failure (streams)
0:00:36
no-defun-allowed
(And I recall in a SICP video, Sussman stated he thought implementing logic programming with streams was simpler than with continuations.)
0:02:01
no-defun-allowed
Josh_2: Anything that's a specifier for a name (which I must check the correct term for), i.e. any string or symbol.
0:10:40
jcowan
But on the good side, the Nilsson article is there at https://github.com/rm-hull/ambages/blob/master/doc/twspi.pdf
0:11:19
jcowan
on the bad side, there are typos in the code; it obviously was retyped by someone who couldn't count parens
0:16:32
easye
ACTION is kinda reminded about the similarity to the shape of "correct" sexpr to that of a pattern in Go that will "live".
0:16:35
Josh_2
I defined a package, exported some symbols and then used that package in another but I have to refer to the functions within that package with a double colon.. <package>::<function> I was hoping the symbols would simply be imported and I could refer to them simply as (<function>) what have I oofed?
0:35:45
pjb
LdBeth: once I found a bug for a single wrong pixel on the screen (true stories, it was in 1986, the screens had only (* 512 348) #| --> 178176 |# pixels! ;-)).
0:37:30
jcowan
LdBeth: I messed with this program a few decades ago and a friend and I carefully counted the parens and figured out which ones to insert/delete. Unfortunately I lost the hard copy on which I did that.
0:38:11
jcowan
Lispers *with emacs* are magical beings etc. etc. Lispers without emacs, like me, have to recite "end of this, end of that" as we go. Not too hard really
0:40:07
LdBeth
jcowan: yeah that’s what I thought, figuring out parentheses printed on paper is not easy to me
0:42:19
Josh_2
clothespin: I am in the second package in the repl and I have to refer to my previous packages functions with <package>::<func> even though I have them in the :export clause of (defpackage )
0:43:52
clothespin
some lisps get buggy when redefining packages, try (symbol-package 'my-symbol) for debugging
0:49:47
clothespin
if you intern the symbol in the second package before putting it in your :use it could act like that
0:52:43
pjb
clothespin: you may want to use (com.informatimago.tools.symbols:check-duplicate-symbols)
0:54:46
clothespin
i usually restart sbcl as well but for the record i rarely had to do that with allegeocl
4:54:52
no-defun-allowed
Though elisp macros and CL macros are fairly similar, so it still might make sense in a CL context.
5:04:05
parisienne
yeah, the question I have is kind of generic and related to the appropriate use of macros. Not really about Emacs. Didn't want to risk a kick. What is ##lisp?
5:05:40
pjb
parisienne: have a look at: Casting Spels in Lisp Conrad Barski, M.D. http://www.lisperati.com/casting.html
5:06:23
beach
parisienne: Go ahead and ask. You will be told if your question is not appropriate for this channel.
5:15:45
parisienne
Well, I have been writing elisp, clojure and some CL for quite a bit now. Never touched macros, because most of the time functions just did what I wanted. Now to grasp macros better I am using my elisp config and trying to find things I can replace with macros. In this specific case I wanted to define a symbol/variable and set it to a value based on a file it reads at "compile" time. Here is the pastebin:
5:15:49
parisienne
I wanted to end up with either a (setq somevar "somevalue") or if the file doesn't exists, it should be (setq some-var nil).
5:16:53
pjb
parisienne: what would happen if the setq-if-exists form is evaluated without being compiled?