freenode/lisp - IRC Chatlog
Search
16:53:10
jmercouris
I don't want to make two systems, I want to be able to specify some flag or option somewhere
16:56:45
jmercouris
I remember something someone said about a year ago on this topic ,but I can't find it
17:06:50
p_l
there was also at one time "ASDF-system-connections" that provided conditionals based on presence of other ASDF systems
18:51:31
jcowan
Does SBCL provide a compact format for (vector boolean), or is it better to use (vector bit) and a few shim macros?
19:27:39
Bike
i was going to say that might trip the u-a-e-t rules but i guess it's "okay" as long as you have nil arrays
19:33:04
Josh_2
I do love it when I'm typing a question to ask for help on a problem I've had for the last hour and I figure it out :P
19:38:03
aeth
And shouldn't they work because they're "immutable"? In the sense that you can't unintern them, etc.. Sure, you can symbol plist them or whatever.
19:38:22
hjudt_
a question about :around methods: i use an around method to track the time a method takes. in this around method, i do not use the multiple values that the method returns. do i need to capture these multiple values and return them in the around method in this case or not?
19:41:33
hjudt_
in the keene book (Object-Oriented Programming in Common Lisp) they say "It is customary but not required for around-methods to return the value or values of call-next-method."
19:41:55
pjb
Bike: it's only an internal optimization. aref would still return a boolean, ie. either cl:t or cl:nil.
19:42:30
hjudt_
so is it really that customary? in my case, it is only causing more lines of code and further indentation.
19:43:06
pjb
Bike: and (upgraded-array-element-type 'boolean) -> boolean doesn't break any rule AFAICS.
19:43:45
pjb
hjudt_: it's not a more lines of code. It's whether you want to return the same value or not!
19:43:59
Xach
hjudt_: it is customary in the sense that that is the typical default behavior, but returning some other value is not explicitly forbidden. some value must be returned.
19:44:12
pjb
hjudt_: for example, you could have a around method weight that adds a tare to the weight returned by the main method.
19:45:05
Bike
like, if the method you're wrapping will always return exactly one value, you don't need to worry about it
19:45:43
Bike
and then have to be like "hey, how come when i enable the profiling method my code stops working?", which is never a good bug to have