libera/#commonlisp - IRC Chatlog
Search
14:25:25
Josh_2
The MOP is a very good example of the divide between MIT and New Jersey, its pretty complicated but can create a very simple interface
14:28:38
pjb
Josh_2: is CLOS more complex than Smalltalk Meta Object System? (I'd say yes, but that's because multiple-inheritance, and methods attached to generic functions vs. classes).
14:30:00
pjb
flip214: and even, while (the nil (values)) seems logical, there's no specification that no values returned by (values) is of type NIL! We just know that NIL is an empty type.
14:30:39
pjb
flip214: on the contrary, it's specified that (values) = NIL as soon as you need something.
20:16:30
Josh_2
Can I make all instances of a metaclass funcallable without using initialize-instance?
20:19:30
Bike
or do you want these classes to have funcallable-standard-object as their default superclass instead of standard-object like usual?
20:20:15
Josh_2
I've made instances of a class funcallable and tried it, but I'd like the setting of the funcallable function to be done when the class is defined rather than when and instance of that class is initialized
20:22:22
Bike
could you like, provide some context, maybe? i don't understand what you're doing. why would you want to call a class?
20:22:50
Josh_2
I want the funcall function to be set when the class is defined not when an instance is made
20:23:47
Bike
it sounds like maybe you want a default function but i still don't understand what you're doing. what's the problem with doing it in initialize-instance?
20:32:58
saturn2
according to this, there is no other way to set the funcallable-instance-function than calling set-funcallable-instance-function on each instance
22:12:42
hendursaga
Anyone aware of some CL equivalent to this? https://github.com/jgoizueta/sys_cmd
22:13:18
hendursaga
Basically a DSL for 'building up' commands + their arguments to be called on a shell
22:18:21
Alfr
hendursaga, you're after the escaping part of it? Maybe uiop:escape-shell-command fits your needs?
22:20:37
hendursaga
Alfr: like, some kind of macro that takes something say unix-opts might use to parse command-line arguments, but instead of parsing, generate a function that would take in arguments and then output the string of the resulting command to call externally..
22:21:10
copec
hendursaga, I would google using common lisp as shell, I bet that would link to lots of useful things