IRC channel logs
2025-06-24.log
back to list of logs
<wingo>generally speaking i am trying to move away from managing Scheme objects from C via SCM_CELL_OBJECT etc and instead using C struct types <wingo>there are new inline functions like "scm_to_string" that gives you a "struct scm_string*", giving more type safety and fewer checks; and allowing for access to struct members instead of word offsets <wingo>i started to write a precise tracer with just word offsets and i saw that it was just going to bitrot into a bug farm. that is when i switched to types and it's been a pretty good experience <wingo>anyway at some point we will probably need to do the same for the ut8 work <wingo>of course the scheme compiler emits code that works on word offsets. there will be something to make the C compiler assert that it's placing members at the expected offsets and fail to build otherwise <wingo>rlb: regarding your comment, that is all correct and good afaiu <wingo>veqq: i admired guile for its impertinence <wingo>however more seriously it is all a bit random, as things usually are <dsmith>wingo, "bitrot into a bug farm" Love it! <rlb>wingo: thanks, I'll need to look a that more carefully. And you only converted stringbuf/symbol there -- presumably still need to do som4thing similar for string? <rlb>(and then probably changed things further later) <veqq>wingo: thank you for finding and linking that! <veqq>I should also read some Austin.