Hacker GitHub

← All repos

skx/gobasic

View on GitHub ↗ ★ 340 Go archived

A BASIC interpreter written in golang.

27 mentions on Hacker News by 2 people: 4 stories, 23 comments · first 2018-10-20 · latest 2026-05-12

Mentions per year 27 mentions · busiest year 2020 (8)
20082026
  1. I wrote a golang BASIC interpreter a few years ago, which was inspired by my ZX Spectrum: https://github.com/skx/gobasic And later still I wrote an adventure game in Z80: https://github.com/skx/lighthouse-of-doom The Spectrum was how I got…
    comment by stevekemp · 2026-05-12 · in Boriel BASIC
  2. …"that was too high", "that was too low", and we talked about choosing the number in the middle: https://github.com/skx/gobasic/blob/master/examples/55-game.... Later still things got more interesting when he could both type but also read,…
  3. …modern games don't really appeal to me as much as Dizzy did, or the old-school fighting games. https://github.com/skx/gobasic https://github.com/skx/lighthouse-of-doom/
    comment by stevekemp · 2024-12-21 · in Ascending Mount FujiNet
  4. …few years back, and somehow the child really fell in love with the classic "guess the number" game: https://github.com/skx/gobasic/blob/master/examples/55-game.... I taught him how to divide the range in half to cut down on the number of…
    comment by stevekemp · 2024-05-19 · in Show HN: A Golang CP/M emulator
  5. …interpreters out there, my own isn't so complex or thorough, but I definitely had fun writing it: https://github.com/skx/gobasic/ My own vision was to reproduce something akin to the ZX Spectrum, rather than the more advanced Microsoft…
    comment by stevekemp · 2023-05-11 · in TwinBASIC is a modern BASIC compiler
  6. …I deliberately concentrated on the line-numbers and facilities of the ZX Spectrum I remembered: https://github.com/skx/gobasic Being standalone it doesn't have the graphic support or the interactivity, but it was still a fun project to…
    comment by stevekemp · 2022-06-08 · in EndBASIC
  7. …I think "real" BASIC interpreters would fall-through to the 10-line. I know my own toy BASIC does: https://github.com/skx/gobasic Edit : Have reported issue, so it doesn't get lost in this thread.
  8. I wrote a trivial BASIC interpreter too, in golang: https://github.com/skx/gobasic
  9. I wrote a simple BASIC too, for nothing more than a sense of nostalgia: https://github.com/skx/gobasic
    comment by stevekemp · 2021-01-24 · in Why am I wasting time on EndBASIC?
  10. …a PNG of the output. I called that "visual basic" even though it is nowhere near the same thing! https://github.com/skx/gobasic I had way more fun than I expected tinkering with it though, made me very nostalgic for the ZX Spectrum which…
    comment by stevekemp · 2020-11-29 · in 30 years later, QBasic is still the best
  11. …fun to tinker with, and at the end of the day it doesn't matter if others don't care/like it too https://github.com/skx/gobasic
  12. …a simple BASIC interpreter for golang, and did something a little more high-level, but not by much: https://github.com/skx/gobasic
    comment by stevekemp · 2020-07-28 · in Show HN: An Actually-Tiny Basic for Arduino
  13. …is to blame I can't say. My own BASIC is very simple, but easy to embed/extend: https://github.com/skx/gobasic I sometimes consider extending it with WHILE/WEND, named functions, and similar. But then I remember the constraints are part o
    comment by stevekemp · 2020-07-04 · in QuickBasic64: Basic for the Modern Era
  14. I wrote a simple BASIC interpreter inspired by the Sinclair, over here https://github.com/skx/gobasic
    comment by stevekemp · 2020-06-07 · in Let's make a Teeny Tiny compiler
  15. …little languages, so you'll probably want to have fun and try making more! I went with BASIC: https://github.com/skx/gobasic But then you start thinking about assembly language: https://github.com/skx/math-compiler
  16. I hacked up a simple BASIC interpreter in golang a while back, tons of fun. https://github.com/skx/gobasic I also added a simple HTTP-server, with a <textarea> inside it for writing your program. I figured that server should be called…
    comment by stevekemp · 2020-05-03 · in Pg-Basic
  17. …had a lot of fun recently writing a simple BASIC interpreter, largely inspired by Sinclair's basic: https://github.com/skx/gobasic I'm pretty pleased with the ability to write images, via a browser-editor, even if it is static and not…
  18. …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…
    comment by stevekemp · 2019-11-25 · in Writing An Interpreter In Go (2016)
  19. …<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…
    comment by stevekemp · 2019-07-08 · in Show HN: Old School Graphics Algorithms
  20. …choice about implementation I picked the choice that was closest to the Sinclair-BASIC I remembered: http://github.com/skx/gobasic/
    comment by stevekemp · 2019-02-25 · in Why 80s BASIC still matters
  21. …write a program that would draw graphs/images: * https://blog.steve.fi/a_visual_basic_server.html * https://github.com/skx/gobasic/ Pretty fun learning experience, but even with the browser-based input I'm not sure it's hands-on enough.…
    comment by stevekemp · 2019-01-04 · in A Review of Tiny Languages (2016)
  22. I just committed a version that works in my golang BASIC interpreter: https://github.com/skx/gobasic/blob/master/examples/15-fizz-... Perhaps not the cleanest, since I support neither `CASE` nor `ELSE IF`. But it seems to be correct.
    comment by stevekemp · 2018-11-02 · in Fifty Fizzbuzzes
  23. …are hard: 10 LET a = 3+4*5 20 PRINT a, "\n" Produces the expected outcome: -> 23 Bug filed: https://github.com/skx/gobasic/issues/41
    comment by stevekemp · 2018-10-27 · in Show HN: I wrote a BASIC interpreter in Go