3 ms·
I don't think most or even many programmers would say it is "impossible" to write a Forth interpreter in Bash. If you changed "impossible" to "worth the effort"
by daenz 5y ago
I don't think most or even many programmers would say it is "impossible" to write a Forth interpreter in Bash. If you changed "impossible" to "worth the effort", I would agree. For the same reason it's (in the absence of real constraints), it's not worth the effort (nor impossible) to write a Forth interpreter with a hex editor.
From an interviewers perspective of "value", I would be both impressed at the perseverance demonstrated, but horrified at the deliberate masochism.
>completely maintainable
This is far less maintainable than a clean Forth interpreter written in Java. Maintainability is relative, so saying that something "is maintainable" has no meaning unless you compare it to something else.
>absolutely there is value in creating something as a vehicle for developing your abilities
I agree, but applying that to this is like saying "let's learn to build a house by using a hammer that has no handle, and a saw that is made out of raisins."
- ColinWright 5y agoPerhaps I'm reading you wrongly, but everything you are saying here and elsewhere implies to me that you take the attitude that everything you do must have value to other people in the world. Do you do crosswords? Sudoku? Wordle? Do you play chess? Go? Backgammon? Do you play any video games? Do you watch movies? Do you play a musical instrument? Do you paint or draw? If so ... why? What value do these provide for the rest of the world? If not, fair enough ... that's just you, and maybe you won't ever understand that sometimes other people do things purely for the challenge, and sometimes on the way these things hone skills, increase knowledge, and provide satisfaction.
- daenz 5y agoI think we are talking past eachother. I don't play Sudoku without writing, or chess using only my pinky toe, or video games with a glitchy controller, or watch movies backwards, etc. There is a difference between doing X for pleasure/learning, and doing X as difficultly as possible for the sake of being difficult. Maybe my point would be more clear about this project, if instead of using Bash, it was "using only GOTOs and single-letter variables."
- ColinWright 5y agoWell, I guess I just don't understand your question. They've implement a Forth interpreter in a programming language. I don't see why you equate this with using hammers without handles, or saws made of raisins, or doing sudoku without writing. Using bash is perhaps unexpected, but it's not like writing machine code in raw, unadorned, inscrutable hex by toggling bits in through a front panel. It's just a programming language, and it's interesting and instructive to see the end result, unlike watching someone playing chess with their pinky. I don't see why you think it's so bizarre. It's not doing it in a way that's as difficult as possible .. really, it isn't. But ... I guess I just won't understand your question.
- deleted 5y ago[deleted]