lile.cl es uno de los varios servidores independientes de Mastodon que puedes usar para participar en el fediverso.
Servidor chileno de Mastodon cuyo nombre hace referencia a un ave nativa del país. Aspiramos a ser una comunidad acogedora y respetuosa de la privacidad de nuestros usuarios. Banner por Marcisol

Administrado por:

Estadísticas del servidor:

229
usuarios activos

I *think* I'm doing this in pforth, for the simple reason that gforth, uh, isn't maintained anymore it seems, and so got dropped out of Debian Testing (which I have now)? I *think* I'd be *happier* using RetroForth, which is a "modern" Forth, but I guess it's better to learn the standardized, ANS Forth first. Even though everyone hates ANS Forth? Including the inventor of Forth…?

My biggest fear is there appears to be no way to read numbers written in ASCII from a file. We're predating ASCII

First problem I hit is comments don't work. The documentation specifically says text in parenthesis are comments, but it isn't accepted.

After some staring at the docs, I realize in all the examples, there are spaces. It turns out (Comment) is not a comment, but ( Comment ) is a comment. Because ( isn't a pure operator built in the language, rather there's a FORTH word ( that eats all words until ) is found. Holy crap. I never thought I'd say this but maybe it IS possible to self-host too hard

So this documentation is kinda very bad!

Lacunae I have noticed:

- They define a `KEY` operator for taking a character from STDIN, but don't explain what happens if `KEY` receives an EOF (experimentally: I seem to get a -1?)

- They explain a special syntax `CHAR n` for inserting the ASCII value of n directly into the code, but don't explain how the fuck you're supposed to represent the ASCII value for a non-character symbol such as a space or newline

More pforth documentation horrors

- The pforth tutorial is not a tutorial for pforth but rather a general forth tutorial, and therefore hedges itself frequently. For example, notice this section where it explains that "many forths" have a CASE statement. "Many forths"? What about THIS forth I'm reading the documentation to RIGHT NOW?

- ABORT not documented. The documentation lists it as a reserved word but not what it does

Adriano

@mcc There you go again, you silly goose, pretending programming is an exact science.