Hacker News new | ask | show | jobs
by onurcel 1838 days ago
On my TO-DO project list, there is "BASIC compiler/interpreter for raspberry(-like) computers".

I am nostalgic of Commodore64 too.

The thing that made many of us go down the rabbit hole was the immediacy of the interpreter, begging you to enter some commands 2 seconds after turning on your computer.

The perceived small gap between the commands you enter in a programming language and the games you could play with the machine contributed largely to the curiosity and willing to learn more.

On a modern computer, building the right interpreter is challenging. There is a trade-off between the simplicity of the language and what you can achieve with it. You won't impress today's kids if it allows you to only print text on a scrolling page.

But I think one can build something really great. There could be an integrated sprite editor (with a graphic UI) and the interpreter can use them right away with something like: Sprite1.visible Sprite1.x = 10

emphasising again the immediacy. Those "sprites" could be 3d objects as well.

3 comments

You can configure RISC OS to boot directly into the BBC BASIC interpreter: https://www.riscosopen.org/forum/forums/5/topics/15793
Yeah there is something really special about essentially booting into a basic prompt/interpreter. You get some of that from booting into a bash/zsh/sh/ksh/blah shell, but it's not quite the same.
As mentioned in another comment, I am planning to add a C/C++ interpreter and I have put GNUstep in there, so that people can easily build their sprite editors and other game dev tools :-)
Something to look at if you want to encourage simple game development is supporting PICO-8 [0], or the compiled Nim version Nico [1].

[0]: https://www.lexaloffle.com/pico-8.php?page=faq

[1]: https://github.com/ftsf/nico

Thanks :-) I like especially the pico-8, as it's fairly easy to write an emulator for that, as far as I understand.
It's also way more popular, with lots of games. The most impressive one in my opinion:

https://freds72.itch.io/poom

Yep, that's amazing!!!

And it illustrates perfectly why what I am doing is cool.

I played that game in the browser and it looks great. But the controls are quite a bit laggy. That is not the developer's fault, they cannot do much about it. The medium that they chose is not designed for low latency.

My project enables developers to make a game like that more fun when you actually play it.