Back to News
Advertisement
Advertisement

⚡ Community Insights

Discussion Sentiment

72% Positive

Analyzed from 2214 words in the discussion.

Trending Topics

#https#indentation#com#more#miniscript#code#www#basic#language#why

Discussion (82 Comments)Read Original on HackerNews

K0balt1 day ago
I’d love to see something like this but designed to run on esp32 or raspberry pi 2530. Either can handle basic HDMI and USB. Or a little <$100 laptop with a 7” display.

Easy to think raspberry pi, but with a full Linux you won’t get that intrinsic understanding that you fully control the hardware, you never control the “bare metal” unless you are a much more advanced user.

IMHO the feeling of not being in full control of your computing device is not a good starting point. I’m very fortunate to have started out on my 8kb BASIC machine.

Lercabout 23 hours ago
I have been thinking along those lines myself.

I have been playing around with a per scanline generated display on a rp2350 outputting to a tiny LCD. I think there's potential for some pretty fancy stuff on HDMI. A 2350 with PSRAM, HDMI connector plus a MicroSD for bulk filesytem, and USB for input could be quite a fun micro PC.

I would be tempted to make somthing that had a second RP2350 with its own PSRAM sitting unutilized just as a temptation to users to figure out how to get more out of the gadget and learn about different multiprocessing architectures.

One of these https://www.waveshare.com/core2350b.htm

With one of these https://www.waveshare.com/rp2350-matrix.htm

Mounted on top, and an HDMI connector squeezed in somewhere,

I am a bit reminded of what GeoWorks Ensemble managed on a 640k 8086. Theoretically you could make a tiny system like this do even more.

mysterydipabout 22 hours ago
> I am a bit reminded of what GeoWorks Ensemble managed on a 640k 8086.

I was looking at similar recently for a project, and came across FrankOS: https://github.com/rh1tech/frank-os

cdcarterabout 19 hours ago
Check out the Adafruit Fruit Jam, its got pretty much everything you need.
pjmlpabout 22 hours ago
Yes, they are more powerful than classical MS-DOS PCs, so there is plenty of juice in them.
poyuabout 19 hours ago
There's PicoMite: https://geoffg.net/picomite.html

It's a BASIC interpreter/OS for the RP2040

UncleSlackyabout 2 hours ago
You could just use RISC OS on the PI for BBC Basic.
Tepixabout 18 hours ago
jan_Sateabout 23 hours ago
Not sure on the performance but it might be possible to port this Mini Micro to those platforms.
Narishmaabout 21 hours ago
Doubtful. Isn't Mini Micro build on Unity? That has much higher system requirements.
prmoustacheabout 24 hours ago
why not just use a vintage computer or game console then?
Lercabout 23 hours ago
The main thing is video output. Even VGA is fading away now. HDMI is kind of what you need to be relevant to a lot of potenial users.
LastTrainabout 17 hours ago
The machines were simple but the technology constraints of the day also made them very inconvenient. Lots of wires, bulky & slow storage, limited connectivity.
joshuabout 13 hours ago
i haven’t seen hdmi on esp32. any example projects?
october81401 day ago
Also check out Pico8 and Picotron.

https://www.lexaloffle.com/

popcar2about 20 hours ago
And TIC-80! https://tic80.com/
Someoneabout 23 hours ago
https://miniscript.org/files/MiniScript-QuickRef.pdf:

“A class or object is a map with a special __isa entry that points to the parent. This is set automatically when you use the new operator.

  Shape = {"sides":0}
  Square = new Shape
  Square.sides = 4
  x = new Square
  x.sides  // 4

So

- Shape is a map (it is created using the syntax defined earlier, using a literal string as key)

- Square is a class?

- x is an object?

Or is this language prototype based? If so, why mention the word “class”? If not, isn’t it confusing to use “new someMap” to create a class and “new someClass” to create an object?

I also find it curious to see that division is defined on lists and strings. What would that mean?

Edit: reading https://miniscript.org/files/Strout_iSTEM-Ed2021.pdf, it is prototype based. That’s interesting for a teaching language.

volemoabout 22 hours ago
Yeah, I guess it’s prototype-based and the authors meant classes are indistinguishable from objects. And they all are just special cases of map.
rokickiabout 21 hours ago
It's so odd that the only nontrivial example code in the paper is completely buggy. The find longest common prefix function of a list of strings fails (try ["a", "bc", "ade"]).
janandonly1 day ago
I was a bit confused until I realized that https://miniscript.org/ isn't the same programming language as https://bitcoin.sipa.be/miniscript/.
layer81 day ago
Apparently it’s high-level only, i.e. no underlying machine instruction set or addressable memory.
rm445about 22 hours ago
So... It's an interpreter (together with a virtual filesystem and some utilities) packaged into a program with a graphical display window? Still good for lots of interesting uses, I suppose, but surprising. Since it's introduced as a "virtual computer", I thought underneath the hood it would be emulating a machine. Then people, if they wanted, could tinker a level deeper than the scripting language, write an assembler etc.
Rohansi1 day ago
That's how most of these fantasy machines are. Most people are only going to want to use a high-level language so it makes more sense this way.
joshmarinacciabout 22 hours ago
True , but if it had a real ISA underneath then we could write custom emulators for them.
utopiahabout 21 hours ago
I don't get why this kind of projects need :

- a manual

- an installer

when you have Web pages can now

- be offline (PWA)

- be responsive and run on pretty much any device

- run pretty much anything thanks to WASM but anyway already have JS/HTML/CSS as bare minimum

- can have the instructions AND the runtime on the same page, on any device, instantly

- can connect with physical hardware, see recent https://hacks.mozilla.org/2026/05/web-serial-support-in-fire... or even with APIs.

bigstrat2003about 16 hours ago
Web browsers suck as an app platform. Give me native any day, personally.
d--babout 21 hours ago
> Mini Micro is a neo-retro virtual computer. Learn to code, play some games, and join a friendly, enthusiastic community of hobbyists!

Apparently not that friendly on HN :-D

utopiahabout 17 hours ago
What's unfriendly in questioning the delivery mechanism or design choices?

I can think a project is cool or useful without thinking it's perfect. In fact ALL projects I encounter, including mine, are like that, imperfect. I think native is a barrier to entry so IMHO it should only be relied on when it's truly necessary. I'm just stating my opinion and others are welcomed to disagree and explain why they think so.

fivetomidnight1 day ago
Free but not Open Source? Did I miss that?
helsinkiandrew1 day ago
> Free but not Open Source? Did I miss that?

The miniscript language itself is MIT License:

https://github.com/JoeStrout/miniscript

The Minimicro code doesn't seem to have any license in the repository or code:

https://github.com/JoeStrout/minimicro-sysdisk

tokaiabout 24 hours ago
So Open Source but not Free (Libre).
jrmgabout 21 hours ago
For miniscript: the Free Software Foundation considers the MIT license (which they call the ‘Expat License’ to distinguish it from the ‘X11 License’) to be ‘free’ (and GPL compatible), but not ‘copyleft’.

https://www.gnu.org/licenses/license-list.html#Expat

For minimicro-sysdisk: I am suspicious that the author just forgot to include a license. Their other repos are mostly MIT or ‘The Unlicensed (also ‘free’ but not ‘copyleft’), and some have licenses added after creation. Suspicion is not something to be legally relied on of course…

debugnikabout 17 hours ago
That's usually called "source available", since most people, including some governmental orgs around the world, already follow OSI's definition for "open source".
mmmlinuxabout 17 hours ago
Am I the only one that hates that programmers now have to also be lawyers?
debugnikabout 17 hours ago
What do you mean now? The peak of debating the merits of varied FOSS licenses must have been 20 years ago.
bmenrigh1 day ago
Mini Micro seems to be built on Unity. The MiniScript portion of it is open source https://github.com/JoeStrout/miniscript but the version packaged for use by Unity costs some money. I can't tell if the people behind MiniScript are the same people behind the Mini Micro.
fefal64about 22 hours ago
Also check out this one. It is a real physical computer: https://www.francksauer.com/index.php/micro-8
p2detar1 day ago
Looks cool. I most enjoyed the zombies game someone uploaded on itch.io. One thing to note is that game speeds feel very fast to me. I barely did anything in the asteroids game and the others also seem to run quite fast. It could be just me.
pietje1 day ago
I wonder how hard it would be translate this to Dutch. I would like my kids to start experimenting but that’s a bit impractical if they need to learn English first..
janandonly1 day ago
Ik denk dat Claude dat zo voor je doet in een paar minuten tijd.
Advertisement
__natty__1 day ago
Why not for 3 eur buy some basic arduino or other tiny hardware to tinker with and for another few eur, tiny i2c/oled display, wires and set of basic switches? You start programming with option to expand to the larger project in the future. You have constraints of real device, community is much larger and there are more learning resources.
layer81 day ago
Because those don’t boot into a fixed interactive programming environment with a BASIC-like language and REPL to easily do simple things on the same screen and using the same keyboard you also use for programming. Your proposed setup has more complexity and is less intuitive for a learner.
Tepix1 day ago
For starters, there is way more friction both in buying hardware and waiting for it to arrive and developing on real hardware in general.

I agree however that it's super cool to have real hardware to run this on.

jrmgabout 21 hours ago
Because those require you to get to grips with “a tiny i2c/oled display, wires and set of basic switches” when you’re interested in coding, not hardware.
newswasboring1 day ago
Because moving a sprite is much more exhilarating than blinking an LED.
yard20101 day ago
Well how about moving a sprite by blinking a few leds?
boundless881 day ago
I think that's really cool. I wonder when this started development?
neomechabout 23 hours ago
Shame there isn't a Raspberry Pi version available.
Rohansiabout 23 hours ago
It is built in Unity which doesn't let you build for ARM Linux without paying an unknown amount of money.
jan_Sateabout 23 hours ago
Couldn't someone just rebuild the source code for Raspberry Pi?
Narishmaabout 21 hours ago
What source code?
Tepixabout 18 hours ago
There‘s Pico-8 for the Pi!
alex_x1 day ago
I wonder why all these easy-to-learn languages use indentation to denote scope, not something like curly braces. Isn't it actually harder to explain?
Wowfunhappyabout 23 hours ago
Fifth grade teacher here. Significant whitespace is a major reason I prefer Python for teaching programming.

1. I want kids to indent their code anyway; they may not realize it (or won't admit it), but this makes the code much easier for them to read. Kids will not do this unless they have to.

2. Unbalanced brackets are a major source of mistakes and confusion for my students. Relying purely on indentation resolves this problem—at the real cost of introducing indentation mistakes, but since I want kids to indent their code anyway, this is okay.

By the way, an adjacent recommendation is to configure the editor to indent with tabs instead of spaces (regardless of how you feel about tabs vs spaces in production code). Otherwise, kids will invariably end up with lines indented by 3 or 7 or some other wacky number of spaces. If possible, highlight the tabs in a different color so the kids don't use spaces by accident.

talkingtababout 23 hours ago
Interesting point. I wonder if "easier for them to read" is too simple. I took "read" as in "read words" or "read a book". But "reading" a program is not I think the same as reading words. Reading words could be this:

for i = 0 i < 10 i++ if i = 7 printf("hello 7") else printf("who are you");

But with a more pictorial presentation, it is easier to read the program.

for i = 0 i < 10 i++ if i = 7 printf("hello 7")

I'm just wondering - if we had a more pictograph based programming language would it be easier to understand?

UncleSlackyabout 2 hours ago
Sounds like Scratch:

https://scratch.mit.edu/

christophilusabout 23 hours ago
This is the job of a tool like go fmt. Obviously, it’s good discipline to indent, but I wouldn’t choose this as the deciding factor for picking a first programming language.
eddierogerabout 23 hours ago
Formatters and linters fix the mistakes made by people who know what they're doing. They do nothing to teach someone how to do something for the first time in a way that supports comprehension, only regurgitation.
Wowfunhappyabout 23 hours ago
go fmt can fix #1, but not #2, and won't work if #2 is causing problems.
layer8about 14 hours ago
The alternative is what the Visual Basic editor does: It indents automatically; not only when pressing return, but whenever the caret is moved to another line. This means you virtually can’t fail to notice that you missed an END IF or similar, because subsequent lines will be indented as part of the IF body.
jim_lawless1 day ago
It looks like MiniScript uses the keyword "end" followed by another keyword to denote the end of a specific type of block.

From the Quick Reference guide here:

https://miniscript.org/files/MiniScript-QuickRef.pdf

"Indentation doesn't matter (except for readability)."

NooneAtAll3about 24 hours ago
while everyone already pointed out that this time it's not the case, I want to literally answer the question you asked

"easy-to-learn languages" use indentation because otherwise newbies would not indent at all

I you try teaching programming, you'll find that indentation is one of things students "optimize out" - it is not important to the program, it is opposite of lazy and it's not noticeably harmful on the tiny scale of programs you learn programming from

Indentation discipline only starts to matter when you need to work on the same code for quite some time and code itself takes a lot of space - the "read more then written" situation. And most study paths do not encounter this regime

alex_xabout 22 hours ago
Easy-to-learn and built-for-learning-good-practices are two different things;

I think your point is perfectly correct but it's mostly about the second one

graemep1 day ago
I think indentation is more intuitive. Even people using languages that use braces or similar usually use indentation to make code readable. If doing that you end up explaining both ideas (use braces and indent).
Gormoabout 24 hours ago
There's an important form/function distinction here, though. Indentation is useful for human readability, but braces function to give unambiguous direction to the compiler or interpreter. I think conflating these two different purposes together is a mistake: you shouldn't risk altering or breaking the logic flow of a program simply by adjusting its visual formatting.

The fact that we use whitespace for layout is precisely why it's a bad idea to assign it semantic value. I'm a fan of both braces and semicolons for that reason.

Wowfunhappyabout 23 hours ago
I think this is probably correct for an experienced programmer but incorrect for someone who is new.
latexr1 day ago
I get why people like indentation for this. I don’t think there’s a right or wrong answer and it’s a matter of personal preference.

That said, my preference is curly braces (or whatever) because I’ve found indentation is often a bother. Yes, most of the time you use indentation together with braces, but not every time. There are many occasions where code is clearer without (or with custom) indentation. Furthermore, indentation-based parsing makes experimentation and finding issues more difficult. Sometimes you need to extract a small part of a larger block to bung in a REPL or something and now you’re fighting with stupid errors because of formatting, adding to the frustration.

Regarding intuitiveness, for beginners I have some doubts it makes much of a difference, and if it does I also doubt indentation wins. If you know how to write (which is a prerequisite), you know what parenthesis and quotation marks are, you understand they encapsulate something separate from the rest. Indentation is a different concept.

btreecat1 day ago
I get why people blame indentation like this. I don't think it's right or wrong to ignore the tooling that directly addresses minor issues with indentation or matching braces honestly.

That said, my preference is to use the tools built into my editor and available on the CLI or web to assist and fix formatting and syntax. You get instant feedback on incorrect formatting, and I generally find that synthetic scope mistakes (regardless of method) are eliminated.

cestithabout 20 hours ago
I think indentation tries to step towards an outline, but without the item indicators we’d use in an outline format. This might actually be a selling point for something like YAMLScript.

https://yamlscript.org/

layer81 day ago
The language (MicroScript) doesn’t require indentation, it’s only used for readability, like in BASIC, FORTRAN, PASCAL, and similar languages. Blocks are delimited by key words (“end if” etc.).
echoangle1 day ago
It makes sure the thing you use to judge scope (indentation) matches the think the computer uses.
alex_x1 day ago
That's a fair point for students, but as a beginner who simply wants to tinker with fun stuff, you can go very far without knowing of a program stack.

I think I had the wrong audience in mind

sibidharan1 day ago
This feels nostalgic!
swayam_41about 22 hours ago
really like the creativity, cool stuff
eliotthbyrnes1 day ago
Ah the nostalgia
the_afabout 23 hours ago
Is this a similar project to the existing Pico8?
neomechabout 23 hours ago
Probably more like Picotron. https://www.lexaloffle.com/picotron.php
qsera1 day ago
Only virtual? That is sad!