• Re: Recognizer proposal

    From Hans Bezemer@the.beez.speaks@gmail.com to comp.lang.forth on Mon Oct 12 20:01:27 2026
    From Newsgroup: comp.lang.forth

    On 12-02-2026 01:35, dxf wrote:
    I get it but IMO f/p isn't something one simply LOADs - even if Forth-94 sold it that
    way as a nod to minimalists.
    Well, in 4tH it is ;-) Literally!

    With the exception of folks like me (and perhaps you)
    who want to be able to load a variety of f/p packs,
    I have two. If tomorrow someone climbs in my DMs showing me a wonderful implementation that runs on 4tH, it will be three.

    f/p is there when one boots forth.
    Not in my case ..

    What the eyes don't see, the heart doesn't grieve.
    I see it in 'ls'.

    Hans Bezemer

    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From dxf@dxforth@gmail.com to comp.lang.forth on Tue Oct 13 14:21:00 2026
    From Newsgroup: comp.lang.forth

    On 13/10/2026 5:01 am, Hans Bezemer wrote:
    On 12-02-2026 01:35, dxf wrote:
    I get it but IMO f/p isn't something one simply LOADs - even if Forth-94 sold it that
    way as a nod to minimalists.
    Well, in 4tH it is ;-) Literally!

    -a With the exception of folks like me (and perhaps you)
    who want to be able to load a variety of f/p packs,
    I have two. If tomorrow someone climbs in my DMs showing me a wonderful implementation that runs on 4tH, it will be three.

    -af/p is there when one boots forth.
    Not in my case ..

    What the eyes don't see, the heart doesn't grieve.
    I see it in 'ls'.

    This was so long ago I had to go back and read the context. The first line references
    the ANS requirement that the interpreter auto-magically recognize floats when floats
    are loaded. Only way to do that is hooks in the interpreter. It's a detail ANS
    understood but chose not to explain. While floats can be entered via other means e.g.
    F# 1.234e5 it won't be 'standard'.

    Hooks in the interpreter indeed makes it vulnerable e.g. what happens when the fp is
    unloaded or exchanged. It's an issue that goes back to FORGET. Forths that have dealt
    with the latter will know how to deal with fp. Would Moore find all this intolerable?
    I imagine he would. But then he didn't even like what polyFORTH had become.

    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Krishna Myneni@krishna.myneni@ccreweb.org to comp.lang.forth on Tue Oct 13 13:50:31 2026
    From Newsgroup: comp.lang.forth

    On 2/9/26 1:49 AM, Anton Ertl wrote:
    A more fleshed-out version of the current recognizer proposal is
    online: <https://forth-standard.org/proposals/recognizer-committee-proposal-2025-09-11?hideDiff#reply-1614>

    After many years this proposal is in transition from being fluid to
    solid, so if you want major upheavals, I doubt that your input will be
    acted upon (but you might still want to give it). OTOH, if you find
    any mistakes, missing parts or unclear parts, now is the time when
    your input will be most effective. In either case, please report any feedback by clicking on the Reply button on the web page above.


    Some interesting and useful possibilities with recognizers:

    1) A stack diagram recognizer which will allow the compiler to have
    internal knowledge of the arguments for a word.

    2) A REC-STRUCT recognizer which will parse a notation like <name>%<fieldname>. The recognizer will validate that <name> is an
    instance of a structure and that <fieldname> belongs to name.

    3) REC-NAME in compilation state can keep track of all dependencies of
    the word being defined.

    --
    KM


    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From albert@albert@spenarnc.xs4all.nl to comp.lang.forth on Wed Oct 14 10:14:07 2026
    From Newsgroup: comp.lang.forth

    In article <698d205a$1@news.ausics.net>, dxf <dxforth@gmail.com> wrote:
    I would say by the time ANS-TC began its deliberations the die had
    already been cast.
    The 'Standard Floating Point Extension' published in 1985 by the Forth >Vendors Group
    (LMI and Micromotion with input from several vendors) required input in
    the form:

    If the floating point extension word set has been overlaid onto a
    83-Standard Forth system, a string of the following form will be
    compiled or interpreted as a real number:

    nnnn.nnnExx


    Adopting the hex digit E as an exponent sign in Forth
    is a severe mistake of language designers.

    Groetjes Albert
    --
    The Chinese government is satisfied with its military superiority over USA.
    The next 5 year plan has as primary goal to advance life expectancy
    over 80 years, like Western Europe.
    --- Synchronet 3.22a-Linux NewsLink 1.2