Hacker News new | ask | show | jobs
by kamaal 3 days ago
I learned some Forth and played around right before the LLM trend began.

It was a mind bending experience, although I quit after a while as the programs were kind of glass sheet quality brittle as they grew.

Sometimes I feel I need to start again to keep my brain from losing thinking skills over time.

1 comments

Similar here, though I didn't quite get as far. I started wondering about performance of all the things, when one has only 2 stacks to work with, and then discovered some library that implemented arrays somehow. I tried using GForth in Advent of Code and needed to read in lines from a file. Lines of different lengths and so on and that's where I failed. I think I would have had to learn a lot about how to use and manage the "pad" or some other surprising technique, that I didn't see anywhere. Since I couldn't manage to read in the lines and discard the old contents of a line, if the next line was shorter, remnants of the previous line persisted and I got wrong line readings. That's where I stopped.

I am sure someone more knowledgeable would have been able to breathe right past that issue somehow.

But I remember one moment that actually humbled me a little: There was a puzzle, where the input were some kind of "instructions" of how to move or for some device. Of course I built some logic that interprets those instructions and only then does something.... but then I saw on reddit, that people simply defined the words that literally are the instructions and took the input as Forth code, duh!!! So simple! Made me feel a little silly.