HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
skx
gobasic
Go2018–2026
skx / gobasic · Archived

gobasic

A BASIC interpreter written in golang.

2Distinct people
27Mentions
0Explicit recommenders
341GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A BASIC interpreter written in golang.

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 8–Nov 15 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/15/2026, 7:24:48 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year27 dated mentions

Observed mentions: 2018-10-20 13:10:31 UTC to 2026-05-12 12:40:15 UTC.

024682018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 5 mentions; 3 submissions, 2 comments20182019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 5 mentions; 1 submissions, 4 comments2020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 8 mentions; 0 submissions, 8 comments2021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 3 mentions; 0 submissions, 3 comments2022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments20222023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2025-01-01 00:00:00 UTC to 2026-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2026-01-01 00:00:00 UTC to 2027-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments. Incomplete calendar period.2026*

* An incomplete calendar period is marked with an outlined bar. Its count is not directly comparable with a full period.

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC532
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC514
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC808
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC303
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC101
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC101
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC202
20252025-01-01 00:00:00 UTC2026-01-01 00:00:00 UTC101
2026 (partial)2026-01-01 00:00:00 UTC2027-01-01 00:00:00 UTC101

What Hacker News says

5 sources
I had a lot of fun with this book, after belatedly buying it. I've read a couple of similar online-books in the past, but this was the first one I worked my way through completely. As a result I later had a lot of fun writing a simple compiler for a reverse-polish calculator, to generate AMD64 assembly language https://github.com/skx/math-compiler/ , wrote a simple BASIC intepreter https://github.com/skx/gobasic , and put together a couple of DSL-projects which followed a similar approach. All in all I'd recommend reading it, and definitely working through the code. Once you're done you can continue to experiment - adding support for regular expressions, a standard-library, etc, etc. My version of the language is here and contains a fair number of improvements/additions. After covering the core in such detail it wasn't hard to extend
Read the rest
further, even if that was primarily for fun, rather than for a real purpose: https://github.com/skx/monkey/
In Writing An Interpreter In Go (2016)
I did embed it in a web-server, so that the user can enter BASIC into a <textarea> and have the output rendered by their browser as an image. I called it "visual basic" ;) https://github.com/skx/gobasic/#80-print-visual-basic Just a small example really of embedding, I suspect to make it really useful for new-programmers it'd need a lot of overhaul. When my child gets old enough I'll probably just give them a BBC-emulator, or similar to get started with.
In Show HN: Old School Graphics Algorithms
stevekemp·Mar 16, 2019Submission

Ask HN: Tell me of your niche languages?

I've been interested in programming languages for a long time, and I know that frequently people post links to their own implementations here. Have you created your own programming language? Be it a compiler, and interpreter, or a virtual-machine? If you've not created one of your own are there any niche, small, modern, or new languages you enjoy experimenting with, even if not used in production? (Not directly related, but if you do have an interest in writing a language I'd highly recommend the "Writing an interpreter in Go" book, by Thorsten Ball. I had fun working through the code, and my own version of the monkey interpreter became pretty advanced https://github.com/skx/monkey/ it also lead to me writing a simple BASIC interpreter https://github.com/skx/gobasic/ - then later still an assembly-language compiler for a calculator.)
5 points · Open discussion

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.