[CM] SDL is unchanged still but here's another for ImGui
Norman Gray
gray at nxg.name
Mon Jul 8 07:43:21 PDT 2024
Matthew, hello.
On 7 Jul 2024, at 20:32, chohag at jtan.com wrote:
> On the other hand in both cases what's left is mostly writing the
> S7 interface functions which for the most part should require only
> naming the constant or function. Anyone like writing long lists of
> repetetive code?
Writing no; generating... sometimes.
Faced with a similar problem, I've used s7 to generate C before. Specifically, I can point towards util-extra.c.in at [1], which includes #(...) forms within the source, which expand to C, using a very simple function in scheme-macro-filter.scm there.
I take the opportunity to mention this, partly to join in very late on a snd/s7 list thread of a month or so ago, expressing communal enthusiasm for s7 (thread 's7 got some love in the Lisp game jam'). The program I'm pointing to does a lot of its work in s7, although (in the terms of the blogpost which started that thread) I can't tell if it uses the 'icing' or 'cake' model: C calls s7 main calls C calls s7. The point of this paragraph is to log that I've become more and more of an s7 fan, in the sense that it seems to have exactly the right tone to match the extension problem very well. So thanks, Bill.
Best wishes,
Norman
[1] https://heptapod.host/nxg/beastie/
--
Norman Gray : https://nxg.me.uk
More information about the Cmdist
mailing list