freenode/lisp - IRC Chatlog
Search
20:48:29
paule32
it is an advanture programming with lisp, if you have much code - that means, if you have forget a open or closed parenthese, you fail
20:51:37
djeis[m]
paule32: it is difficult at first, but if you learn some paren management packages it’ll become a lot easier.
20:52:23
aeth
if I want to move the (* 3 4) in (+ 1 2 (* 3 4)) I don't want to have to do anything other than move the ( before the *
20:52:29
adlai
managing them by hand builds character, and eventually you lose patience with unbased chars
20:54:20
no-defun-allowed
On the blackboards he was checking himself. He only missed one in lecture 2b.
20:55:09
aeth
The problem with parentheses is that the level they're at often changes, especially if you e.g. refactor (+ 1 2 (* 3 4)) into (let ((a 0) (b 1) (c 2) (d 4)) (+ a b (* c d)))
20:58:01
no-defun-allowed
I'd say usually program stacks are around 1000 calls long in interpreters.
21:02:08
makomo
paule32: that's not how you're supposed to use SETQ. the syntax is (setq <var1> <value1> <var2> <value2> ...)
21:05:59
makomo
paule32: also, the size of the stack is irrelevant here, because who knows how the parameters are actually passed (it's an implementation detail)
21:07:10
aeth
well, it won't crash, it'll just say "the integrity of this image has been compromised. continuing with fingers crossed" or whatever the exact message is.
21:08:54
aeth
Ah, it's "The integrity of this image is possibly compromised.\nContinuing with fingers crossed.\n" I looked it up in the source.
21:10:02
White_Flame
paule32: there's the CALL-ARGUMENTS-LIMIT constant that will tell you the max things you can pass to a function
21:11:32
Bike
when paul came around here last january it was suggested they read a book about the language, but they don't seem to have gotten around to it.
21:12:22
paule32
my plan is it (atm), to have a database of nouns, vocals ... these what you can see in the paste, i try to place it into real database like mysql
21:12:26
aeth
SBCL and CCL and CMUCL are native compilers. ABCL compiles to JVM bytecode. CLISP compiles to its own bytecode. ECL compiles to C, but has a backup interpreter.
21:12:48
White_Flame
paule32: honestly, Prolog is probably what you want to play with, as it combines symbolic inference with a database
21:17:32
adlai
paule32: skip the screenshot, study p-adic arithmetic and see if you can't find a more efficiently verifiable proof of Fermat's Last.
21:17:54
adlai
trust me, Top Men are hard at work on "supporting lisp ansi standard ide programming" or whatever it is.
21:23:15
White_Flame
paule32: CL is a language steeped in issuing custom commands, from the language to the editor. I don't think colors, buttons, & forms will garner much interest, but rather any useful helper call that those invoke
21:23:49
aeth
no-defun-allowed: it's done without any consideration of aesthetics or design... very 90s retro
21:23:52
White_Flame
unless you have something genera-like, where all those elements are active Lisp objects
21:29:36
minion
Blackbeard: cl-decentralise: cl-decentralise is a consensus building protocol designed for fast prototyping and development
21:29:54
no-defun-allowed
There you go. (They asked in a different room and I'm too lazy to type that out.)
21:33:16
Blackbeard
netfarm / cl-decentralise · GitLab - https://gitlab.com/netfarm.gq/cl-decentralise
21:41:17
no-defun-allowed
To understand it, you must balance weasels on a rake while reading the sources.
22:10:16
pjb
paule32: Try: https://www.informatimago.com/develop/lisp/com/informatimago/small-cl-pgms/sedit/index.html
22:17:18
White_Flame
yes. Also, maybe these sorts of questions are more appropriate for #clschool than #lisp
22:22:12
pjb
aeth: that's and advice. Learning the GPS should help somebody who wants to do NLP but don't seem to care for learning lisp before trying to write NLP in lisp…
22:22:39
pjb
aeth: cf. https://www.informatimago.com/develop/lisp/com/informatimago/small-cl-pgms/sedit/index.html
22:27:34
pjb
White_Flame: now, granted, sedit would need a new command to insert a new list. I took the easy path, by using the lisp reader.
22:46:29
White_Flame
pjb: btw, #. #+ and #- are part of source code, but are not part of serialized "lisp source" as you refer to
22:48:00
pjb
White_Flame: you can look in com.informatimago, there are a few examples of serializing #. #+ #-
22:48:21
White_Flame
sure, you may have created sexpr-level constructs for those, but they aren't part of the lisp core
22:56:45
pjb
White_Flame: and furthermore, #+ #- are very problematic. Try to write a documentation generator on serialized forms full of #+ #-!
23:01:04
White_Flame
serialized means there's some canonical object form that has been converted into a serial form
23:01:56
White_Flame
true it is a "serial" format, but it is not "serialized" from any prior data structure
23:17:45
pjb
White_Flame: there's a data structure in your brain, and again, in com.informatimago and elsewhere, there's code to generate them!
23:18:19
White_Flame
there isn't a data structure in my brain, and even if there were, it's external to the lisp image, so the interface between is still the original source
1:13:47
aeth
asarch: You can open multiple files if you can express them as a wildcard, so C-x C-f ~/your/path/*lisp RET will open all of your lisp files in that directory.
4:28:21
ealfonso
I feel very insecure whenever I just run into 404s and domain errors when trying to find the website of a recommended CL library
4:31:08
ealfonso
https://stackoverflow.com/questions/123234/what-is-the-best-sql-library-for-use-in-common-lisp points to CLSQL (http://clsql.b9.com/ => not found), google search for CLSQL => https://www.cliki.net/clsql => http://clsql.kpe.io/documentation.html => not found
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).