libera/#commonlisp - IRC Chatlog
Search
2:49:15
masinter
what I learned from working in the IETF and W3C was that agreement wasn't enough, you had to have compatibility. Although WHATWG took it too far (IMHO)
3:14:40
copec
I like that both LOOP and MAP are in CL and that you can use the one that makes sense for the situation.
3:19:49
masinter
in the middle of writing a FOR you need a WHEN ... that you hadn't thought of, you'd have to go back and change the MAP function
3:20:10
beach
masinter: Perhaps you can answer the question we had a few days ago. The grammar for LOOP does not allow for termination clauses anywhere, but there is a passage in the text that says it is allowed. Which one is right?
3:23:02
masinter
i kept the fanfold paper but i donated all of my lisp stuff to the computer history museum because ... lisp was dead i thought
4:06:13
jeosol
masinter: thanks for sharing the last link. Are you following any of recent results from deep-learning paradigms? What happened to the gofai techniques of the early 80s(?)
9:17:33
Demosthenex
functionwithparen( sorthasnoparen @{$ting->{$$whoopie}}[9] ); and they say ()'s are too hard or complex
10:47:09
nij-
After a structure is defined, we can make a structure instance easily by, say, #S(person :name "John" :email "john@gmail.com"). I wonder why such functionality isn't default to classes as well. Is it because classes are too powerful and general?
10:48:15
beach
You can do it with a simple reader macro. We do that for abstract syntax trees in SICL.
10:50:16
beach
Just define [ to be a reader macro that does (apply #'make-instance (read-delimited-list #\] stream t)) or something like that.
10:50:38
jackdaniel
nij-: structure objects are simpler - i.e all their slots are allocated on a list or on a vector
10:54:17
Josh_2
Does anyone else have an issue with very latest lisp-unit2? I clone the repo but when I load my system lisp-unit2:*test-db* is nil so the loading fails
10:55:32
Josh_2
If I set the value of *test-db* to an instance of a test-database everything loads fine (after the fact). How can I set this value just before my system loads?
10:56:15
nij-
beach, thanks.. but my question is why we can't do that for all classes like structures, and if we can why isn't it a default.
10:57:08
Josh_2
Annoyingly I have to wait for my system to fail, set the value and then load my system :(
10:57:13
beach
You can do it for all classes. I can't answer the question as to why there is no such reader macro by default.
10:58:35
beach
nij-: Lots of people want lots of thing to be predefined in Common Lisp. But Common Lisp makes it easy to define things yourself, and the language would be absolutely huge (way more than now) if those desires of everyone were met.
10:58:36
jackdaniel
in the case of structures you may decided how they are stored with the :type argument
10:59:23
beach
nij-: Perhaps a better question is why this technique for creating structure instances was not removed in the standard.
10:59:57
nij-
beach I understand your frustration. I don't mean to whine for the lack of such functionality. I'm just curious if classes are too general for such default functionality. And if so, how?
11:00:59
splittist
nij- Yes. Because there are many ways and times one might want to initialize the slot of a class instance.
11:01:53
nij-
beach's answer seems to conflict to splittist's and jackdaniel's.. but yeah beach's solution seems to take care of it..
11:02:05
Josh_2
Idk if I timed out before my message was ssent but I sorted my problem. Tard moment :sunglasses:
11:06:17
pfdietz
One should be leery of putting functionality into the reader, since it can immediately lead to incompatibilities between different software components.
11:46:14
Demosthenex
beach: work. perl is preinstalled with basic core mods. can't install anything else
13:07:12
jcowan
beach: What would be the reason for removing #s when the standard was being written?