frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Implementing a Forth

https://ratfactor.com/forth/implementing
23•todsacerdoti•1d ago

Comments

jshprentz•19h ago
I went down the "make your own Forth" rabbit hole about 45 years ago.

In January 1979, Byte Magazine's Language Forum contained the article, "IPS, An Unorthodox High Level Language."[1] The article described IPS, a language based on Forth, but with the word names translated to German. Thus, Forth's SWAP became VERT, short for vertauschen. The intriguing article concluded with a reference to Charles Moore's 1974 paper, "FORTH, a New Way to Program a Minicomputer,"[2] which was discussed on HN in 2022.[3]

I had recently assembled a Quest Electronics Super Elf computer[4] with an expanded memory size of 4 KB. The IPS article mentioned implementations under 6 KB for 8080, 6502, and RCA COSMAC microprocessors, so I thought Forth might fit. The Super Elf included an 1861 video display controller chip, with a resolution of 64 x 128 pixels (big pixels!). I designed a font of 3 x 5 pixel characters to provide 21 lines of 16 characters. Good luck distinguishing M, N, H, U, and W without some context. I bought a (possibly surplus) keyboard from Radio Shack and screwed it onto a wedge of wood to achieve a usable typing angle.

Moore's paper described about 75 Forth words. I wrote them on index cards and jotted down Forth definitions or RCA 1802 assembly code. I wrote an 1802 assembler in Fortran to ease the conversion into 1802 machine code. I still have the printouts and punch cards in storage.

Development proceeded slowly. During a break at work, I would punch my assembly code for a few Forth words, run the assembler, and bring home the printout. That night I would load previous work into the Super Elf from cassette tape, key in the new words (and changes) via the Super Elf's hex keypad, and save back to another cassette tape. Then I would test the new Forth words and note any changes needed on the printout. Lather, rinse, and repeat until, at last, it all worked.

The finished Forth system consumed a little more than 3 KB of the 4 KB of memory. User programs, data, and Forth stacks occupied the remaining memory. The R key stuck. The @ symbol was a 3 x 5 pixel blob (this is the very important Forth memory fetch operator). But it worked!

I demonstrated the system at the local personal computer club--spun off from the local ham radio club. Based on their enthusiasm, I advanced to developing tinyForth[5] for the TRS-80, a story for another day.

[1] https://archive.org/details/BYTE-MAGAZINE-COMPLETE/197901_By...

[2] https://articles.adsabs.harvard.edu/pdf/1974A%2526AS...15..4...

[3] https://news.ycombinator.com/item?id=33134663

[4] https://www.oldcomputermuseum.com/super_elf.html

[5] https://archive.org/details/80-microcomputing-magazine-1980-...

Two Paths for A.I

https://www.newyorker.com/culture/open-questions/two-paths-for-ai
1•fortran77•4m ago•0 comments

Grassroots groups sue over Louisiana law that censors air quality data

https://grist.org/accountability/louisiana-groups-sue-over-air-monitoring-law-camra/
2•rntn•4m ago•0 comments

Ukraine launches major drone attack on Russian bombers, security official says

https://www.theguardian.com/world/2025/jun/01/ukraine-launches-major-drone-attack-on-russian-bombers-security-official-says
1•petermcneeley•5m ago•0 comments

The University of Manchester Launches Groundbreaking 'Digital Dante Library'

https://www.manchester.ac.uk/about/news/groundbreaking-digital-dante-library/
1•gnabgib•7m ago•0 comments

WhatsApp Adds One-Tap Mute for Groups: Total Peace Control

https://techday.blog/2025/05/26/%d9%88%d8%a7%d8%aa%d8%b3%d8%a7%d8%a8-%d9%8a%d8%b7%d9%84%d9%82-%d9%85%d9%8a%d8%b2%d8%a9-%d9%83%d8%aa%d9%85-%d8%a7%d9%84%d8%a5%d8%b4%d8%b9%d8%a7%d8%b1%d8%a7%d8%aa-%d8%a7%d9%84%d8%ac%d9%85%d8%a7%d8%b9/
1•audai•8m ago•0 comments

Trumpkin's Notes on Building a Sauna

https://localmile.org/trumpkins-notes-on-building-a-sauna/
1•stevekemp•8m ago•0 comments

5 Years in Software Engineering

https://kormosi.com/5years/
1•kormosi•10m ago•0 comments

Going to an office and pretending to work: A business that's booming in China

https://english.elpais.com/international/2025-05-31/going-to-an-office-and-pretending-to-work-a-business-thats-booming-in-china.html
2•geox•10m ago•0 comments

Convert articles, blog posts or any web pages into ePub

https://epub.sauleau.com
1•svensauleau•10m ago•0 comments

Show HN: Penpot MCP Server

https://github.com/montevive/penpot-mcp
1•jmrobles•11m ago•0 comments

How a new type of AI is helping police skirt facial recognition bans

https://www.technologyreview.com/2025/05/12/1116295/how-a-new-type-of-ai-is-helping-police-skirt-facial-recognition-bans/
1•laurex•12m ago•0 comments

The End of Computing Science (2000) – Edsger W. Dijkstra [pdf]

https://www.cs.utexas.edu/~EWD/ewd13xx/EWD1304.PDF
1•nathan-barry•13m ago•1 comments

Galaxy S25 Edge: Redefining Phones with Bold Design and AI

https://techday.blog/2025/05/26/%d9%85%d8%b1%d8%a7%d8%ac%d8%b9%d8%a9-galaxy-s25-edge-%d8%a7%d9%84%d9%87%d8%a7%d8%aa%d9%81-%d8%a7%d9%84%d8%b0%d9%8a-%d9%83%d8%b3%d8%b1-%d9%82%d9%88%d8%a7%d8%b9%d8%af-%d8%a7%d9%84%d8%aa%d8%b5%d9%85/
1•audai•14m ago•0 comments

Did Water Form in the Earliest Years of the Universe?

https://www.smithsonianmag.com/science-nature/did-water-form-in-the-some-of-the-earliest-years-of-the-universe-180986670/
1•bookofjoe•14m ago•0 comments

Show HN: I built an LLM benchmark for Svelte 5

https://github.com/khromov/svelte-bench
1•khromov•16m ago•0 comments

JFK files expose family secrets: Their relatives were CIA assets

https://www.washingtonpost.com/investigations/2025/03/22/family-secrets-jfk-files-cia-assets/
2•nabla9•22m ago•0 comments

Aitechhub

https://aitechhub.netlify.app
1•blackpc•26m ago•0 comments

BGone Backgound Remover

https://fj.ix.tc/bgone/
1•elemcontrib•27m ago•0 comments

My First Month with Math Academy

https://lmsherlock.substack.com/p/my-first-month-with-math-academy
1•gmays•28m ago•0 comments

It Is Not Too Late

https://mitchhorowitz.substack.com/p/it-is-not-too-late
1•mathgenius•28m ago•0 comments

Twitter/X: Bring Back the Bird

https://twitter.com/AnthonyCFox/status/1926391791969874112
2•foxanthony•29m ago•0 comments

The mystery of Ireland's worst driver (2009)

http://news.bbc.co.uk/2/hi/uk_news/northern_ireland/7899171.stm
3•Tomte•31m ago•0 comments

AI has painfully disrupted dreams of young software engineering graduates

https://economictimes.indiatimes.com/tech/artificial-intelligence/job-losses-how-ai-has-painfully-disrupted-dreams-of-young-software-engineering-graduates/articleshow/121538950.cms?from=mdr
3•MarcoDewey•31m ago•0 comments

Roborock Saros Z70 Review: This Robovac's Robotic Arm Is a Swing and a Miss

https://gizmodo.com/roborock-saros-z70-review-this-robovacs-robotic-arm-is-a-swing-and-a-miss-2000607909
3•rolph•34m ago•0 comments

AI Chess Coach

https://lichess.org/@/nightfox/blog/ai-chess-coach/4uMrWhR9
1•anantdole•34m ago•1 comments

Show HN: I made tool for students to learn faster

https://www.fourgpa.com/
2•ata11ata•35m ago•0 comments

Study explores nicotine patch to treat mild cognitive impairment

https://medschool.vanderbilt.edu/vanderbilt-medicine/study-explores-nicotine-patch-to-treat-mild-cognitive-impairment/
1•bilsbie•36m ago•0 comments

GitHub and Gitlab CI runners – fast, cheap, billed per true CPU second

https://www.runmyjob.io/
1•beslanb•38m ago•1 comments

Never Violence (2007)

https://web.archive.org/web/20201108100547/https://www.swedishbookreview.com/article-2007-2-never-violence.asp
1•Tomte•39m ago•0 comments

San Francisco to Seattle by Local Transit

https://seattletransitblog.com/2025/06/01/san-francisco-to-seattle-by-local-transit/
2•aaronbrethorst•43m ago•0 comments