In article <2026…@mips.complang.tuwien.ac.at>,
<SNIP>
>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.
With ciforth I aspired to get a common denominator right.
That works portably around ciforth and windows. Note that most
of this is stored in the Library Accessible by Blocks.
I had real strings long before. As prefixes for HEX etc.
C has trail based the way for much things
Operating system connection:
"HOME" GET-ENV \ Why need a special notation?
ARGC ARGV 1 ARG[] \ modelled after arg argcount and arg[]
This is in the context of real native executable, for Windows too.
Only available after
WANT GET-ENV
WANT ARG[]
[ARGC must be in the kernel, to provide a hook. The remainder is in
conditional libraries. The implementation of GET-ENV is totally
non-portable.]
All ciforth have three guises, interactive, script and executable.
All observe the aforementioned os interface.
<FORTH> -a
Make the library accessable
Scripts starts with
#!<FORTH-PATH> -s
(Accepting parameters in the script)
I recently got the metacompiler for noforth running.
This is a turnkey system that accepts -u (for writing uf2 files) -v (for
building in vocabularies, i.e. wordlist) etc.
It can be compiled on linux and ms windows, 32 and 64 bit.
And also on riscv and arm 64 bit, probably on BSD, only 64 bit.
The executable can be run without need of a ciforth installed, or
even the notion that it was build by ciforth.
(Caveat, tested on wine only.)
I have made a midi player for windows.
Likewise the executable can be run without need of a ciforth installed, or
even the notion that it was build by ciforth.
It cannot be run by linux, because linux has no drivers to play a midi event.
(Nor can it run on a Windows if the multimedia stuff is lacking in SYSTEM32,
but this is common in a PC that has a soundcard. )
I doubt that drawing more and more stuff into the kernel is a good way.
E.g. I would divide the "recognizers" in two groups:
- general, available after ONLY
- compartilised, in a wordlist.
E.g. with a slight modification of WORD ( alias PARSE-NAME )
and the help of PREFIX ciforth can parse lisp.
However you cannot tolerate the renaming of e.g. `` ( '' without a
context. That is simple, get lisp on top of the search order.
https://github.com/albertvanderhorst/forthlisp
Note that Forth parses a regular lisp file like coins.csm and run
it like a lisp, then flips back with PREVIOUS to regular Forth.
>- anton
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.