freenode/#lisp - IRC Chatlog
Search
14:54:10
zmyrgel
its odd as make-pathname call seems to create proper pathname for the sub directory
14:54:41
zmyrgel
but then the directory-files seems to list files at 'alerts' directory for some reason
14:56:12
zmyrgel
I'd like to have the list-customer-alerts function return list of *.net files in customers directory
14:59:26
_death
zmyrgel: if it's a subdirectory, you should (merge-pathnames (make-pathname :directory (list :relative customer)) *alert-dir*)
15:09:19
schweers
I have not tried this, but I think using :name customer is a mistake. This means that you have a file with the name of the value of CUSTOMER, instead of appending said value to the directory part of the path.
18:11:36
Oladon_work
xivh: How are you determining that it "doesn't actually rewrite the function"? Are you sure you're not dealing with closures?
18:13:34
xivh
I have a defun in a file, I can do C-c C-c to recompile as I edit it. Then I load a file with unit tests, and after it runs, C-c C-c says it is compiling but the function will not change unless I restart slime.
18:15:09
xivh
I know it isn't rewriting the function because if I start slime and run the unit tests, then do C-c C-c and try to use the function, it says it hasn't been defined.
18:18:20
Oladon_work
That doesn't sound like a slime issue. Have you tried the same thing in your basic REPL?
20:35:08
vms14
I want to read some lisp code, I still being a lisp noob, do you have some suggestion to look at?
20:38:39
moldybits
quicklisp? i don't know. any project that interests you. it's not like you have to read all of it to learn something.
20:40:00
vms14
but wanted to know if someone had a recommendation of some code that thinks it's well written or easy to understand for a beginner in order to learn
20:47:06
vms14
Josh_2: I'm more interested atm to convert oop code to fp, but no idea about how, I know closures are the way, but that's all
20:48:28
White_Flame
but I really recommend against the LoL style in practice, because it's opaque and not interactively editable
20:48:48
White_Flame
also, it's not functional programming. It stores the object in a closure, but is still all about mutation
20:49:14
Josh_2
Why not just leave OOP as it is and then write some other stuff as functional programming
20:49:19
aeth
vms14: As far as FP goes, I think CL is best when the FP is limited to simple values, and the complicated data structures are mutable. So at the top level you SETF slots (standard-objects, structs, hash-tables, arrays, conses, whatever... you can avoid doing this for variables, though), but most of the functions from that level can be pure
20:49:49
aeth
vms14: I mean, a trivial example that seems pointless is (setf (aref foo 42) (+ x y)) ; pure function feeds into a mutable data structure
20:50:32
White_Flame
it's good to limit a lot of your internal processing to being functional, and at the outer periphery manage your mutations. Deep internal mutations is usually where problems leading to a fp solution occur
20:50:55
vms14
would fp be a good way to represent a product, item, whatever has some data to represent, over oop?