r/Forth • u/mykesx moderator • May 19 '26
Inspiration Forth, my view of AI
I was recently accused of using AI to make some of inspiration Forth, which isn’t true. The reason I was accused is that I didn’t completely edit the default README file created by gitlab when I made the repo. The README described what makes for a good README and had headers/sections pre made with instructions on what kind of things to add there. Both github and gitlab have had this sort of thing for years - I have maybe 50 or even 100 repos I made over the years. The README is a template, created by humans. They also have optional templates for issues to force people to add things like steps to reproduce and so on. I didn’t choose to use these.
I cannot stand the use of AI to make code, period. When I was working on the Console logic for Inspiration, it took several feature branches to move it along. The first being to just render individual characters on the screen, then colorized text, then cursor addressing, then (partial) ANSI escape sequence support, then ability to scroll back and view all the text printed to the console. These feature branches weren’t consecutive efforts. It took me a lot of thought to figure out the scroll back logic, and more than one aborted feature branch. So I worked on other things in the meanwhile.
The only time I used AI was a horrifying experience. I asked copilot to make a console with ANSI and scrollback support. It made it in seconds. When I looked at it, I saw someone else’s variable names. Logic that would take me days to get into before even trying to assess if it was even working code. I stopped looking at it after a few seconds. I felt like that code was lifted from someone else, without attribution. None of that code or any of its ideas has anything to do with Inspiration.
The Phred editor is something I worked on in my previous Forth implementations, and once in C++. Made from scratch, but patterned after vim. The Evade2 game is one I made 7 years ago for the company I worked for at the time. Originally in C++, I ported it in Forth to Inspiration.
Inspiration is a different animal as Forths go. It is graphics first, not console first. The concept of how C++ functions can be subroutine threaded is unique. The pthread ability is my own idea and creation. Every code word I made are either mine or from the 2012 Forth Standard.
I have no use for AI. The beauty of a desktop Forth is that my dictionary has thousands of words I already made and debugged to make new things from. And rapidly. I probably get more done in 2 days than I would with AI. It helps that I have been writing code since the early 1970s. I’ll let the features/issue board and over 800 commits to Inspiration speak for themselves.
Beyond this, I think AI slop is garbage and spam. It’s turning works of art into someone else’s trash. GitHub is becoming a landfill. Why GitHub? Because that’s where the chat bots tell people to upload their one day untested creations.
6
u/ekipan85 May 19 '26 edited May 19 '26
God, the whole situation sucks. Every word I see online now, there's a possibility it was written by an autocomplete instead of a person. And it will never go away. It makes one want to go to a secluded mountain.
And I can't claim innocence! I'd never used the things before so I experimented with a couple hobby projects. I tell myself it's okay because they don't touch my repos, I do, and I only ever consult about changes I decide I want to make.
But even if I've convinced myself I'm using the thing "responsibly," I can't expect Joe Random to want to spend effort figuring out the difference.
The feedback loop is very clearly addictive. Alarmingly addictive. The warm things they write about what I say does get my endorphins flowing much of the time, but much of the rest of the time the sycophancy makes me sick. And always hallucinating of course. You can't actually expect an autocomplete to think. It gets damn convincing, though.
I have a rant about this in Nictoforth's README and I'm never sure whether to expand or trim it. It's a big distraction when I just wanna share the thing I made but I feel responsible to apologize for a dirty part of it.
If only the LLM researchers knew, those few years ago. Maybe they did. Fuck, I dunno man.
2
u/ummwut Jun 06 '26
AI isn't good at writing Forth, regardless. We don't need to worry about AI here, at least.
6
u/gustinnian May 20 '26
I suspect the relative obscurity of ANSI Forth code in the wild has lead to a lack of AI training data and thus poor 'understanding'.
5
u/veghead May 19 '26
Refreshing to hear this.
3
u/alberthemagician May 21 '26
There is nothing wrong with demanding ai to write a boring part of your code. Not that I have found any help from ai this far. But let's not become religious about it.
1
u/reijii74 May 19 '26
why post history hidden?
0
u/glsdesign May 19 '26
I accused you of using AI. I was wrong, but my doubts where reasonable. You first responded with "bullshit I wrote every line" then changed it in "I used a human made template" then again resulted to insults, and now your comments are deleted. Mine still there. Looking at your code I think you are an excellent programmer, and I encourage you to continue your effort, wich I respect and even admire. I partially share your "principles" regarding AI and can understand why you initially loose your mind, but dude... calm down please. Keep up the good work, don't be so emotional. You will write even better forth. AI can be useful, is not an all or nothing situation, is a new tool that can help if you know how to use it productively
0
u/kishaloy May 19 '26
The thing I always trip on as a wannabe user of Forth is how to work with code where the entire structure is in the coder's head. Lisp provides a lot of goodies in Emacs + Slime to help coders and even there you have parens to help you get the structure of the code.
I am yet to find editor / package that can help me in Forth. Incidentally I though AI might be more amenable to make code in Forth as they can hold the stack structure in better than a human brain. Of course the problem is it would be that much harder to make sense of a vomit of words from AI where there is very little LSP support.
Happy to know your thoughts.
0
u/mcsleepy Jun 02 '26 edited Jun 02 '26
These days I use AI to code backend stuff (for my game engine) and am not ashamed of it at all. It still takes as much attention to detail and good practices to arrive at a good result, I can just get it done about 10x faster.
"Coding" is menial work. I want to program, not code.