News for hackers. Stuff that matters.
Re:Raspberry Pi 4 OpenBSD based home computer/gaming console by onurcel on Wednesday June 02, 2021 @05:17PM (#27374149)
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.

Re:Raspberry Pi 4 OpenBSD based home computer/gaming console by xeeeeeeeeeeenu on Wednesday June 02, 2021 @05:56PM (#27374510)
You can configure RISC OS to boot directly into the BBC BASIC interpreter: https://www.riscosopen.org/forum/forums/5/topics/15793
Re:Raspberry Pi 4 OpenBSD based home computer/gaming console by sleepybrett on Wednesday June 02, 2021 @05:41PM (#27374346)
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.
Re:Raspberry Pi 4 OpenBSD based home computer/gaming console by alehyze on Wednesday June 02, 2021 @05:45PM (#27374383)
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 :-)
Re:Raspberry Pi 4 OpenBSD based home computer/gaming console by 0-_-0 on Thursday June 03, 2021 @04:36AM (#27378565)
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

Re:Raspberry Pi 4 OpenBSD based home computer/gaming console by alehyze on Thursday June 03, 2021 @06:33AM (#27379275)
Thanks :-) I like especially the pico-8, as it's fairly easy to write an emulator for that, as far as I understand.
Re:Raspberry Pi 4 OpenBSD based home computer/gaming console by 0-_-0 on Thursday June 03, 2021 @06:36AM (#27379293)
It's also way more popular, with lots of games. The most impressive one in my opinion:

https://freds72.itch.io/poom

Re:Raspberry Pi 4 OpenBSD based home computer/gaming console by alehyze on Thursday June 03, 2021 @07:06AM (#27379460)
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.