• Re: S\" question

    From Hans Bezemer@21:1/5 to dxforth on Sun Jul 17 03:55:56 2022
    On Saturday, July 16, 2022 at 8:54:55 AM UTC+2, dxforth wrote:
    I have LOCALS| as an add-on as there may be times I'll want to try out
    code that uses locals. I also supply a Hayes-converter - not because
    I consider the form superior but because it could be implemented so
    easily. The 'how' impressed me far more than the 'what' it did.
    I got locals as well - but in a quite different form. And yes, it is documented as well. I cannot implement the "Hayes" variant without embedding it in the
    4tH kernel - and it's not worth it IMHO.

    Yes, I've used locals when porting some stuff and it works quite reliably. But it represents a style I do not want to adopt. I'd rather return to C before doing
    that.

    When I designed 4tH it was primarily because I wanted to make a language
    that could be embedded into another program. Yeah, as a matter of fact, it's basically a "side project" that completely got out of hand.

    A language needs programs, though. So I started to make a few examples. I
    was convinced the language needed an editor - because all languages I had
    known so far always came with an editor.

    And before I knew it, I did most development in 4tH - only getting back to C when enhancing the compiler. Then I found out that for some strange reasons (which I still haven't completely figured out yet) I could do MUCH more complex programs faster in 4tH than I ever could in C.

    E.g. the preprocessor came out of a CASE..ENDCASE converter - I just had that one lying around and it seemed a good base to build upon. Now it has a functionality that challenges M4 - and I'm not quite sure how for Petes sake I got there. I wouldn't even dream to convert it to C. I wouldn't know where to begin.

    And that goes for lots of programs. I use 4tH for work as well - you know, these
    simple tools dedicated to do one single nagging task. I've often produced solid working code in time frames I wouldn't imagine to be achievable with C.
    With stack stuff and all.

    That's my fascination with this language.

    Hans Bezemer

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From dxforth@21:1/5 to Hans Bezemer on Mon Jul 18 12:17:00 2022
    On 17/07/2022 20:55, Hans Bezemer wrote:
    On Saturday, July 16, 2022 at 8:54:55 AM UTC+2, dxforth wrote:
    I have LOCALS| as an add-on as there may be times I'll want to try out
    code that uses locals. I also supply a Hayes-converter - not because
    I consider the form superior but because it could be implemented so
    easily. The 'how' impressed me far more than the 'what' it did.
    I got locals as well - but in a quite different form. And yes, it is documented
    as well. I cannot implement the "Hayes" variant without embedding it in the 4tH kernel - and it's not worth it IMHO.

    Yes, I've used locals when porting some stuff and it works quite reliably. But
    it represents a style I do not want to adopt. I'd rather return to C before doing
    that.

    When I designed 4tH it was primarily because I wanted to make a language
    that could be embedded into another program. Yeah, as a matter of fact, it's basically a "side project" that completely got out of hand.

    A language needs programs, though. So I started to make a few examples. I
    was convinced the language needed an editor - because all languages I had known so far always came with an editor.

    And before I knew it, I did most development in 4tH - only getting back to C when enhancing the compiler. Then I found out that for some strange reasons (which I still haven't completely figured out yet) I could do MUCH more complex
    programs faster in 4tH than I ever could in C.

    E.g. the preprocessor came out of a CASE..ENDCASE converter - I just had that one lying around and it seemed a good base to build upon. Now it has a functionality that challenges M4 - and I'm not quite sure how for Petes sake I
    got there. I wouldn't even dream to convert it to C. I wouldn't know where to begin.

    And that goes for lots of programs. I use 4tH for work as well - you know, these
    simple tools dedicated to do one single nagging task. I've often produced solid
    working code in time frames I wouldn't imagine to be achievable with C.
    With stack stuff and all.

    That's my fascination with this language.

    It appears you're entirely comfortable with the forth you've got.
    If that's not the goal of Forth, what is?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)