Search
Tuesday, 5th of December 2017, 20:48:05 UTC
20:48:53
paule32
jurov: if you would like to set the vector value, try: (setf ip-address (vector 127 0 0 1))
20:50:29
jurov
paule32: and what's the problem with #() notation?
20:51:50
Xach
jurov: the usocket-devel list, which is not very busy, but still quite responsive
20:55:16
Xach
jurov: i think i have sussed it
20:55:43
Xach
jurov: (ql:quickload "usocket-server") will load the file that defines what you want to use.
20:56:22
jurov
Yep, I found it announced here: https://mailman.common-lisp.net/pipermail/usocket-devel/2016-October/000618.html
20:58:01
jurov
But then symbols should not be exported either, i guess? what is the usual practice?
20:58:23
Xach
jurov: it is not too unusual to act as it does.
20:58:32
Xach
there is no problem exporting symbols that are not fbound
20:59:57
jurov
Xach tyvm! Seeing from that thread, you actually had the same problem :)
21:00:19
_rumbler31
oh dang, I forgot about that
21:07:44
Zakkor
(defun square (x) ... ; how come (x) isn't a function call in this case?
21:08:10
Bicyclidine
defun is a macro, so it can define its own syntax.
21:08:34
pjb
macros and special operators have special rules.
21:09:08
Zakkor
is it something you could do within the language?
21:09:22
Bicyclidine
you can define your own macros, yeah.
21:09:52
pjb
Zakkor: (defmacro defun (name lambda-list &body body) `(setf (symbol-function ',name) (lambda ,lambda-list ,@body))) ; basically.
21:10:07
Bicyclidine
(defmacro myquote (form) (list 'quote form)). now (myquote (7)) => (7), whereas (print (7)) would be an error
21:10:17
pjb
lambda is a macro that expands to (function (lambda …)) and function is a special operator, so special rules.
23:10:13
foschia
help me!! i'm lost in Stupid Parentheses ahahaha
23:13:18
foschia
i'll solve my problem in a next moment.. bye bye :)
4:30:35
beach
Good morning everyone!
6:48:30
whoman
Control stack guard page temporarily disabled: proceed with caution
6:54:11
beach
whoman: Runaway recursion?
6:54:19
whoman
is there a way to create a graph of lisp forms, like "box notation" from gentle introduction to symbol computation ?
6:54:35
whoman
yes, experimenting with #1= and cons cells =)
6:55:22
beach
There is such software, yes. But I can't remember the name now.
6:57:10
whoman
no problem =) i will explore closer after i digest this book
6:57:38
whoman
good to know it exists for an idea i have later (geometry)
6:57:55
beach
Yes, I even remember trying it out.
6:59:00
shka
graphviz can be used for that as well
6:59:18
beach
That would require some work.
6:59:54
shka
not that much, cl-graphviz even has tutorial just for drawning lists
7:01:08
beach
But I can't remember the link. :(
7:02:23
beach
whoman: http://www.cs.cmu.edu/~dst/Lisp/sdraw/
7:10:20
Zhivago
whoman: I would suggest the dot language of graphviz.
7:11:43
whoman
alright i will try that first
7:12:16
whoman
"The Common Lisp standard specifies the interface between a Lisp implementation and the editor it provides. The interface is a function called ED."
7:17:16
aeth
Implementation-specific. Doesn't work in SBCL out of the box, but describe gives me enough information. Looks like in sbcl it uses *ed-functions*
7:17:25
aeth
(setf *ed-functions* (list (lambda (x) (declare (ignore x)) (uiop:run-program "emacs"))))
7:17:39
aeth
That almost works, errors on exit, though. I'd also need to figure out how to use its argument.
7:18:05
aeth
It's probably not used enough for there to be a trivial-ed package that makes all this easy.
7:18:54
whoman
strange type errors with it
7:19:13
whoman
; Evaluation aborted on #<TYPE-ERROR expected-type: (OR CONS (VECTOR CHARACTER) (VECTOR NIL) BASE-STRING PATHNAME SYMBOL)
7:29:10
pjb
whoman: see also hemlock
7:37:25
whoman
ah yea! swi-prolog has a nice editor also
7:37:27
jackdaniel
hem, I've tried to start hemlock (both clx and tty) but it failed
7:37:59
whoman
well, we can run some things with cl-lib in emacs perhaps. =P
8:37:41
schweers
minion: memo for phoe: I do read manuals from time to time in order to spot things I missed on earlier passes (or didn’t understand yet), but that setting was still not something I was aware of.
8:37:41
minion
Remembered. I'll tell phoe when he/she/it next speaks.
8:40:40
borodust
Xach: tried on a different machine (macbook pro 2012, no homebrew, no devtools, probably nothing that could potentially pollute environment) and guess what? it worked D:
8:41:52
borodust
Xach: on that note, I have another suggestion, but i need to get back to my dev machine to update the code (basically, just supress SBCL FPE check) and push it, so in a few hours
Wednesday, 6th of December 2017, 8:48:05 UTC