albe…@spenarnc.xs4all.nl writes:
>In article <2026…@mips.complang.tuwien.ac.at>, >Anton Ertl <ant…@mips.complang.tuwien.ac.at> wrote: > >I applaud that a modern version of gforth can be integrated in >newer linux distribution, such that lazy people are inclined >to install it. > >apt install gforth
This will take some more time, as there are signature issues to sort out. And then it will appear in Debian unstable, then testing, and only when Debian 14 is released, in stable.
>>## Headline features >> >>* The text interpreter can recognize more things: >> * Additional ways to write literals in source code: scaled notation >> for FP numbers (6k5, 23%); strings ("string"), xts (`word), >> nts (``word), body addresses (<word>, <word+8>). >> * You can specify the vocabulary (or several) of a word, e.g., >> `forth:and` vs. `assembler:and`. >> * Nonparsing syntax for dealing with value-flavoured and >> defer-flavoured words (`v` and `d` in the following examples): `->v` >> for `to v`; `+>v` for `+to v`; `'v` for `addr v`; `@>d` for >> `action-of d`; `=>d` for `is d`. >> * Contents of environment variables: `${LANG}` >> * You can extend the text interpreter with more **recognizers**
> >Does the gforth team aspire to add these to upcoming standards?
What is proposed for standardization and is at the call-for-vote stage can be found at https://forth-standard.org/proposals/recognizer-committee-proposal-2025-09-11?hideDiff#reply-1686 With that you can add the recognizers for scaled notation, strings, xts, nts, body addresses and voc:word notation (with caveats) yourself. For dealing with value-flavoured and defer-flavoured words, one would need to standardize a lot of carnal knowledge where the systems have little common ground, so I don't see standardization of the internals happening. Maybe at one point the various recognizer syntaxes will be standardized, but I don't expect that soon, and I will not work in that direction. For environment variables, one would need to standardize something like Gforth's getenv. The caveat about the voc:word notation is that we have no standardized way to know that voc is a vocabulary, so if somebody writes +:- or somesuch, a user-written recognizer will do things the user probably does not want (while Gforth's scope-recognizer with carnal knowledge sees that + is not a vocabulary and just does not recognize +:- ).
>>* C interface enhancements, includig callbacks.
> >Interesting. What are the requirements in Forth speak of callbacks?
?
>It does contribute gui applications in Forth, but then >a native MS-windows versions is indicated, I guess.
If you want GUI applications, Bernd Paysan provides MINOS2 for that. If you want to use some GUI framework written in C, you can use that, and call back from that into Forth code with the callback interface. As for MS Windows, I expect that you cannot call Windows GUI stuff from a Linux application running in WSL, at least not in the same process; maybe with an RPC interface: the Linux process does an RPC for some Windows call that is received by a Windows process that does the call to the OS. But if you want that, write it! There are no plans to build Gforth for Windows, but if anybody wants to give it a shot, go ahead. But take into account that Bernd Paysan has been there and eventually gave up. And he is not the guy who tends to pass such challenges. When I saw that Apple wanted us to jump through hoops to do native-code generation for MacOS, I was all for falling back to threaded code (with a resultant performance hit) on MacOS. Bernd took up the challenge and jumped through the hoops, so now the MacOS users get a fast Gforth despite MacOS. - anton