• Re: Resources to learn common lisp?

    From Lawrence D?Oliveiro@3:633/10 to All on Mon Nov 16 20:25:50 2026
    On Wed, 26 Aug 2026 15:43:38 -0300, Anton Antimo wrote:

    Paul Rubin <no.email@nospam.invalid> writes:

    tfb <tfb@work.it.out> writes:

    It should be possible to write functions in an existing language
    which map constructs expressing that new (or borrowed) idea into
    the existing language. Those functions have a name: macros.

    Meh, if the old language can express the new idea at all, then the
    new idea isn't that big of a change. Like try implementing Scheme
    continuations as macros in CL.

    Doug Hoyte does it in Let Over Lambda. But even if we have here a
    case where things don't work out so well, one case won't break the
    efficacy of all other cases.

    I implemented continuations without macros, because I came up with a
    homoiconic language that didn?t need macros.

    <https://gitlab.com/ldo/gxscript>

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From tfb@3:633/10 to All on Tue Nov 17 08:29:46 2026
    Lawrence D?Oliveiro <ldo@nz.invalid> wrote:

    I implemented continuations without macros, because I came up with a homoiconic language that didn?t need macros.


    Nobody claims you need macros to have continuations: the question is, if
    you have a language without continuations that does have macros, can you
    add continuations? The answer depends on what you mean by 'add': since
    macros are functions between languages, you can obviously use them to
    implement a language with continuations, but is that an addition to the substrate language or a new language? Is Coalton an addition to CL or is
    it a new language?

    This is an old question about languages, with a famous answer: a shprakh iz
    a dyalekt mit an armey un flot. That's not the whole answer, of course.

    --
    tfeb.org/computer/

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Chris M. Thomasson@3:633/10 to All on Tue Nov 17 23:16:58 2026
    On 11/17/2026 12:29 AM, tfb wrote:
    Lawrence D?Oliveiro <ldo@nz.invalid> wrote:

    I implemented continuations without macros, because I came up with a
    homoiconic language that didn?t need macros.


    Nobody claims you need macros to have continuations: the question is, if
    you have a language without continuations that does have macros, can you
    add continuations? The answer depends on what you mean by 'add': since macros are functions between languages, you can obviously use them to implement a language with continuations, but is that an addition to the substrate language or a new language? Is Coalton an addition to CL or is
    it a new language?

    This is an old question about languages, with a famous answer: a shprakh iz
    a dyalekt mit an armey un flot. That's not the whole answer, of course.


    Macros are fun! ... Well, oh yeah. Remember this gem? Its a fun one, and
    can be useful:

    https://github.com/rofl0r/chaos-pp

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)