IRC channel logs
2026-01-10.log
back to list of logs
<ecraven>ArneBab: thanks, I promise to look at this next week! <ecraven>(and my apologies for not doing it when you originally opened the MR) <graywolf>Hello :) Question about the C API and garbage collector. If I have globabl static variable (static char *s_foo) and fill it using (s_foo = scm_to_latin1_string(foo)), do I need to call free later? Or is setting s_foo = 0; enough and garbage collector will take care of the string? <graywolf>I admit I do not have a good mental model here (yet, hopefully). <identity>graywolf: i would guess it is malloc'ed, so you need to free it manually <graywolf>identity: would you happen to know what is difference between malloc and scm_malloc? Is the only difference that I do not need to check for failures, but otherwise there are no special implications regarding the gc? <identity>graywolf: from a cursory look, it seems that scm_malloc has stronger guarantees around scm_malloc(0) (always returns null) than standard malloc does (return NULL or a pointer to a zero-sized allocation), and it also tries to GC if there is not enough space to allocate <identity>though if you assume GNU libc, i think malloc(0) guarantees a zero-sized allocation <oskarw>Hi, is there difference between ipython repl and guile repl from pov of user? Guile doesn't have image, this is why I'm asking. <oskarw>Another question is, do you miss interactivity that is associate with image of common lisp? Or geiser is just fine?