Search
Monday, 15th of August 2022, 18:23:55 UTC
19:24:44
gin
comatory_: curios what you found about slimv/vlime in Vim? are they good?
3:16:12
nij-
Two questions.. uiop:launch-program allows as to talk to the process with :stream. Which kind of socket does it use? Does it work on all of linux, macos, and windows?
3:17:02
nij-
Second, if I want to do socket programming portably (on all three os types), what kind of socket should I use? BSD socket doesn't work on windows iirc.
3:27:32
nij-
Hmm.. it sees to call sbcl's run-program, which relies on bsd socket.. does that mean it won't work for windows users?
4:56:24
_death
where do you see the use of sockets?
4:57:37
White_Flame
external programs should be connected by normal stdin/stdout/stderr pipes
5:31:44
asarch
How could you make a function like: (calc '+ 10 10) or (calc '- 8 3) or (calc 'exp 2 9)?
5:32:41
asarch
(defmacro calc (operator a b) (operator a b)) says 'operator' is never used
5:33:08
White_Flame
`(funcall ,operator ,a ,b)
5:33:32
White_Flame
also, this is a lisp-2, 'operator' isn't a function, and the operator parameter is never used
5:34:34
White_Flame
you also can't directly do (list operator a b), because you're passing in the operator quoted
5:34:59
White_Flame
(operator a b) is a function use of the symbol OPERATOR, there is no variable use of the parameter OPERATOR
5:35:27
asarch
Is there a way to "force" to use the parameter OPERATOR?
5:35:50
White_Flame
just use it ;-P
5:36:02
White_Flame
I gave you the body to use
5:36:15
asarch
Thank you very much!
5:36:27
White_Flame
but understand what the problem is, and why the solution works
5:46:54
asarch
Chapter 16 of Land of Lisp
5:47:57
White_Flame
i don't have it in front of me
5:49:25
beach
asarch: I do not recommend that book.
5:49:48
asarch
That's my only reference :'-(
5:50:12
beach
http://metamodular.com/Books/land-of-lisp.html
5:50:33
beach
asarch: PCL is available online, and so are several others.
5:50:52
asarch
Is that the full book?
5:51:19
asarch
Do you remember when I made the PDF version of that book? I think something is missing
5:51:27
beach
That link contains my comments on the first few chapters.
5:53:48
asarch
That book "tastes" like when you are in a hurry and you grab "something" to eat
5:53:58
asarch
It gives you more questions
6:15:29
asarch
Wouldn't be great to use '?' as the last character of predicates? (e.g. (empty? ...))
6:16:50
White_Flame
I use that a lot. that's also Scheme style
6:23:46
asarch
I read it from the Dylan programming language introduction book
Tuesday, 16th of August 2022, 6:23:55 UTC