🪄 I Got Tired of the Timeline Again So I Wrote a Language
The games helped. For a minute. Then the feed came back, same three arguments, same volume, and I did the reasonable thing. I ignored it and wrote a language.
It’s called MAGIC. I’m not apologizing for the name.
It mixes Lua and BASIC, and it compiles to JavaScript. A newline ends a statement. end closes the block. @canvas is a picture. @terminal is a grid of text. There’s also 3D, a UI kit, sound, hex boards, and the usual game helpers, because a language that cannot move a sprite is just a slower way to be annoyed. magic run runs a file. magic app writes an Electron project. Alpha. It can still change. A committee did not review this. You can tell.
Editing .magic files in whatever tab was already open got old, so there’s MAGIC Studio. Dark window, project tree, editor, run console, and a terminal. It starts black. The status bar says Black. Click that if you want the lights on. Shift+F10 runs the file in front of you. Ask can use a model on your own machine, and that mode keeps the prompt there. Grok is on the list when the grok command is already installed. I have notes about letting it edit unsupervised. Still early. Still MIT. No account. No “share to unlock.”
RETRO MAGIC is the other compiler. A script still looks like this one. The output is BASIC and assembly for the Commodore 64, the Apple II, and the TI-99/4A. @3d stays with MAGIC. It does not fit those machines.
- MAGIC — JavaScript
- MAGIC Studio — the window
- RETRO MAGIC — the 8-bit compiler
- RETRO Studio — the window for that one
No paid posts. No quiet sponsors. If it does something stupid, argue with the code.
You’re welcome. Or sorry. Depends on the evening.