https://github.com/barrettotte/forth-http
A small web server written to get more practice with Forth
https://github.com/barrettotte/forth-http
forth http
Last synced: 28 days ago
JSON representation
A small web server written to get more practice with Forth
- Host: GitHub
- URL: https://github.com/barrettotte/forth-http
- Owner: barrettotte
- Created: 2021-03-02T00:45:38.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-10T03:22:23.000Z (almost 5 years ago)
- Last Synced: 2025-02-03T13:13:19.828Z (about 1 year ago)
- Topics: forth, http
- Language: Forth
- Homepage:
- Size: 19.5 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# forth-http
A small web server written to get more practice with Forth.
I was originally planning on writing an assembler and emulator for the
Little Man Computer (LMC), but I found out that I suck at writing Forth.
So, that project idea will get used with a different language.
Rather than spend multiple weeks trying to get better at Forth, I decided
to just make something small and fun so I could move on to the next dumb side project.
## Summary
- Client sends requests for a file
- Server responds with file if it exists, otherwise sends 404 page
- Yeah, that's it
Usage: ```gforth server.fth```
Server listens on ```127.0.0.1:8004```
## References
- [Starting Forth](https://www.forth.com/starting-forth/)
- [And so Forth...](https://thebeez.home.xs4all.nl/ForthPrimer/Forth_primer.html)
- [Gforth Manual](https://www.complang.tuwien.ac.at/forth/gforth/Docs-html/)