9:56:18sirabenFizzbuzz can be done so easily in Lisp
9:57:05ShinmeraAn exercise a friend of mine tried to solve recently has a really elegant solution in lisp, I think: Determine whether a list is a palindrome.
9:57:26ShinmeraWhich is just (equal list (reverse list))
10:15:59beachShinmera: For ELS registration, when I click on "Early regular", it says that the banquet is included, but the banquet option is also selected. Shall I deselect the option?
13:39:10beachasarch: In Common Lisp, they are called "conditions", and we "signal" conditions, whereas other languages "raise" "exceptions".
13:43:50ShinmeraThere are THROW and CATCH special forms in Lisp as well, but those provide a non local return mechanism, rather than anything to do with "exceptional situations"
14:03:12dxtrIs it possible to simply "dump" an object with all of its contents?
14:08:49beachdxtr: All of its contents could be very large.
14:09:26beachdxtr: The class, the class of the class, the subclasses of those classes, the generic functions that specialize on those classes, etc. etc.
19:20:47Bikeso when returning the value from (setf mref) it has to box the value, which is a small performance hit. probably pretty small since the input value is probably boxed anyway
19:38:37fouricShinmera: Spiffy! I'm going to try it out. Thank you!
20:28:18troydmI was wondering if there is anything more prettier than HyperSpec? because everytime I try to read it my inner sense of modern web is shuttered into small pieces
20:29:04asarchHow do you compile a file from SBCL REPL? (compile-file "arithmetics.lisp") and (compile-file "/home/asarch/arithmetics.lisp") don't work
20:29:19Shinmera"don't work" is the best way to describe a problem
20:29:53asarchFailed to find the TRUENAME of arithmetics.lisp: No such file or directory
20:31:20fouricIt's still being worked on, but I've begun to use it instead of CLHS for function/macro/special form documentation lookups, and it's very servicable.
20:31:31fourictroydm: If you have some extra time you should consider contributing!
21:36:22pjbasarch: notice that you can write a conforming compiler with a conforming loader so that you could distribute compiled code to all the CL implementations.
21:36:29asarchI thought there was an specification for this binary file
21:36:51pjbasarch: the specification for a minimal implementation is the CLHS!
21:36:53asarchAnd I was about to asking the way to use this binary file in other programming languages like C
21:37:03pjbie. you can just save and load the lisp sources!
21:38:43asarchI was thinking last night when I was re-reading my notes (a sea of notes) about a situation when a programmer in Lisp forgot to check a value to prevent a division by zero
21:39:10asarchThe programmer only supplied the binary file of his modules
21:39:45asarchAnd I was wondering if there is a way to override a function written in a binary file
21:43:30asarchThank you very much for clarify my mind :-)
21:45:25asarchOne last question: if I (load "the-original-binary-file-from-the-programmer.fasl") and the I (load "my-source-code-with-the-corrections.lisp"), can I dump this modified environment into a file?
21:48:10Bikeimplementation dependent (or rather it's not in the standard at all, just a common extension). images are a different concept from fasls; it's more like save/load mechanism.
21:54:46aethWould it be hard to write a decompiler for popular CL implementations? I guess it wouldn't have the macros, so it would look very low-level (e.g. iteration would just be go in a tagbody), but guessing the macros could be an extra step (and if you knew the implementation, you'd at least know exactly what a built-in macro would generate)