freenode/#lisp - IRC Chatlog
Search
2:13:10
Josh_2
I export a macro called 'pkv' from my main package and in a sub package, I use this macro extensively, this package has (use <main package>) in its defpackage, why am I getting an error telling me that pkv isn't defined?
2:16:00
Bike
well, from that description it should work, so clearly there's some devil in the details
2:55:40
White_Flame
if you just C-c C-c an expression, instead of C-c C-k'ing the entire file, it might not have actually run the in-package. I've hit that on simple files
2:59:07
White_Flame
it's weird not to load the full contents of a package before loading another one, though
3:13:10
White_Flame
restarting fixes a lot, but doesn't always tell you where the problem is, especially if it's dynamically munged
13:31:23
huonib
does anyone know of a compiled, dynamic language that doesn't use a garbage collector? I think an academic one might exist, but I am not sure
13:31:41
huonib
I am unsure if being dynamic requires a garbage collector... and I cannot find anything making that claim online
13:35:43
jackdaniel
put in your init (ext::disable-gc) and there you go, common lisp doesn't use the garbage collector ;-)
13:36:29
Krystof
I seem to recall stories about Lisp Machines needing to be power-cycled because they really really believed in tenure
13:37:04
Xach
I recently learned that Allegro has an operation "panify" to ensure that certain objects never grow old
13:40:39
jcowan
huonib: GC is what you do to the heap, and Forth has no heap, only two stacks. (Which at that is better than Fortran II, which has neither heap nor stack.)
13:44:00
phantomics
Here's a question, not sure if this is completely off the wall ridiculous or not: how practical would it be to create a dialect or DSL within CL that runs code without GC? Meaning inside the code written in this DSL, you would have to manually manage memory and there would be functions for that
13:44:40
Bike
it would be difficult for objects in a managed space to refer to objects in an unmanaged space and vice versa. though it's possible. i mean, most implementations can handle foreign pointers.
13:45:19
Bike
but if an object in unmanaged space has a pointer to an object in managed space, and the collector tries to move things, problems will happen
13:45:59
phantomics
Yeah, if CFFI is possible I'd think something like this should be, I don't know if CLs have any functions that let you turn off GC for objects created within a particular block of code
13:49:09
Nilby
phantomics: When heavily using a C FFI objects you have to somewhat restrict yourself to such a dialect. Thank goodness for with- macros. There are also some foreign calls which necessitate turning off GC in some implementations.