freenode/lisp - IRC Chatlog
Search
6:25:27
russellw
http://www.lispworks.com/documentation/HyperSpec/Body/f_search.htm - does the test default to eql?
6:30:43
specbot
Satisfying a Two-Argument Test: http://www.lispworks.com/reference/HyperSpec/Body/17_ba.htm
6:30:54
Shinmera
"If neither a :test nor a :test-not argument is supplied, it is as if a :test argument of #'eql was supplied."
7:27:27
specbot
Specifiers for optional parameters: http://www.lispworks.com/reference/HyperSpec/Body/03_dab.htm
7:30:05
Shinmera
no-defun-allowed: ??? optional init-forms are not evaluated if the opitonal argument is given
7:31:54
Shinmera
He's already gone (why do people do that?), but: ((lambda (&optional (a (print "a default"))) a) :a)
8:15:22
pjb
(furthermore, I'm on macOS, I would have to boot a linux box, and I won't have the time today).
8:33:42
White_Flame
I do appreciate that my prior comment was enshrined in the screenshot: https://i.imgur.com/cC3XGdp.png
8:34:15
aeth
paule32: the infix "result" operator that's used in lisp documentation is "=>" so it isn't confused for a valid lisp function like =
8:37:07
adlai
no-defun-allowed: i think paule32 is trying to make an IDE for teaching people how to use nested syntax?
8:40:54
White_Flame
those sorts of parsers are incredibly easy to write, and that's what I thought "+ 1 2 = 3" was implying at first
8:41:17
aeth
"(+ 1 2) => 3" is the correct way to write it, as you would expect to see it in the hyperspec examples. e.g. http://www.lispworks.com/documentation/HyperSpec/Body/f_pl.htm
8:43:19
aeth
Its examples are very clearly for implementors. Do any of the replacements have a better examples section?
8:43:58
paule32
White_Flame: sorry, it comes to picture while i chat with #lisp, sorry, don't imagine it
8:44:30
paule32
pjb: the ide is Qt5 based, Qt5 is a cross development framework for Mac, Linux, and Windows
8:44:31
White_Flame
anyway, my quote that was captured on the snapshot is still important to this whole thing as a whole
8:45:11
adlai
pjb: there was this game i used to play on the toilet, years ago... basically the computer asked the person on the other side of the screen to route a PCB on its behalf. wonderful way to while away a constipated afternoon.
9:24:38
no-defun-allowed
paule32: in common lisp, + at the start of an expression and + in the rest are not equivalent
9:25:36
no-defun-allowed
(+ ...) refers to the function +, whereas (... + ...) refers to the variable + which is defined by your REPL
9:27:21
Shinmera
please stop trying to help him, it is not productive. It's been close to two years of this guy getting advice in this channel and not heeding any of it
10:16:02
russellw
If I understand http://www.lispworks.com/documentation/lw50/CLHS/Body/02_dfa.htm correctly, 'x is equivalent to (quote x) but `x is /not/ equivalent to (backquote x) ?
10:17:55
russellw
sb-int:quasiquote ... guessing that means sbcl-internal, so the representation is purely an implementation detail?
10:19:18
Shinmera
The representation could be handled by a struct or anything, as long as the readably printed variant uses the standard backquote notation
10:33:49
White_Flame
the lack of specification also is a problem if you're walking through code in a macro
10:34:27
White_Flame
there's a fare-quasiquote package which overrides the backquote & comma and ensures it's nice nested sexpr lists for easier traversal
10:59:11
White_Flame
same thing if it's ,(foo bar) or whatever. you'd have to dig into the COMMA object
11:00:40
|3b|
it used to be, but there were too many edge cases when printing them nicely or something like that, so switched to structs
11:01:15
|3b|
(and if you don't care about printing them nicely, just expand to QUOTE, LIST, APPEND, etc
11:05:55
makomo
this post describes the pretty printing issue http://christophe.rhodes.io/notes/blog/posts/2014/backquote_and_pretty_printing/
11:16:08
jackdaniel
when I create a broadcast-stream with s1 and s2: (make-broadcast-stream s1 s2) and call file-position on it, file position of s2 should be returned, right?
11:16:31
jackdaniel
excerpt from the standard: " The functions file-length, file-position, file-string-length, and stream-external-format return the value from the last component stream."
11:23:01
jackdaniel
(a bit of context: ecl takes first component, so queried for a second opinion that it is wrong)
12:28:29
phoe
What is test-op supposed to do when a test failure happens in modern ASDF and Quicklisp configurations?
12:28:49
phoe
For example, when Quicklisp builds its systems each month, what should be done to make it know that there was a test failure?
12:54:38
oni-on-ion
does CLHS say something like "would be good idea for implementation [to implement] for debug/trace purpose"
15:24:58
_death
Demosthenex: yesterday I worked a bit on editor windows like you can see in the second demo.. still there's much more to do there. I think the next step is to add mouse support and moving/resizing windows
15:30:41
_death
I'm thinking a small demo application would indeed be something like a "turbo lisp".. with a repl and a file editor
15:41:01
Demosthenex
_death: all my usecase is about data entry forms.... i'm tinkering with trying to make some editing widgets
15:47:35
Demosthenex
_death: not laying the burden on you, i'm trying to see what i can come up with. i already got my async inputs and such going
16:07:01
phoe
I have a SBCL thread that just hangs with 100% CPU usage. Its backtrace shows pretty much nothing, https://plaster.tymoon.eu/view/929#929 - how can I debug it?
16:07:28
phoe
I want to figure out where exactly it is and what it's doing, but a lack of a backtrace makes it pretty hard for me.
16:43:02
Demosthenex
hrm, i found justification in format, but not how to replace the default padding char while using center ie: (format nil "~70:@<~A~>" "Whee"), but what if i wanted .'s instead of spaces?