Path: ...!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: rbowman Newsgroups: alt.folklore.computers,comp.os.linux.misc Subject: Re: The joy of FORTH (not) Date: 23 Oct 2024 23:02:45 GMT Lines: 33 Message-ID: References: <20241021075543.00000494@gmail.com> <20241021151652.00005675@gmail.com> <20241022095931.00001d38@gmail.com> <299011000.751331039.035254.peter_flass-yahoo.com@news.eternal-september.org> <20241023080437.00003148@gmail.com> <20241023143625.00004792@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net 0rCF02v/ht9VrC6fGS4jZg0QEkzHlKry4Akl3sfX6o0MoozNFj Cancel-Lock: sha1:qGyUp5DW3HnuT9vAsM/6CbcBo6Q= sha256:NWVbV4qcdMYXuShZ1XGajfbsXqRwXiB105fgfNBA4XQ= User-Agent: Pan/0.149 (Bellevue; 4c157ba) Bytes: 3160 On Wed, 23 Oct 2024 14:36:25 -0700, John Ames wrote: > On Wed, 23 Oct 2024 20:57:51 -0000 (UTC) > Lawrence D'Oliveiro wrote: > >> 512kiB seems to be the recommendation for MicroPython. For the 32kiB >> one, I would want to use a cross-compiler for some more >> resource-efficient language, like C. > > Which you certainly could do! Or, alternatively, you could embed a more > resource-efficient but interactive threaded interpreter, like Forth ;) So far working with C++ and the Pico W has been interesting. Putting the board in the BOOTSEL mode and copying the .uf2 works but I haven't been able to get the 3 pin SWD interface with a Raspberry Pi 5 working. Not insurmountable but the documentation isn't great. Getting to the BOOTSLE mode requires holding down a button while unplugging/plugging the microUSB which is cumbersome. It's even more complicated for a generic computer without the Pi's GPIO pins. Loading MicroPython the first time is similar but then the device comes up on /dev/ttyACM0 and is faster to develop since it doesn't require recompiling every time. I've got another Pico W that I may try with one of the Forth variants. Working with C++ and the Arduino Nano 33 BLE Sense was much easier but it has the mbed RTOS as a loader. Unfortunately mbed is going away. Digging into the Forth internals is instructive. When compared to CPython it is either elegant or a kludgy mess depending on how much you hate Forth.