Languages used in demos?

category: general [glöplog]
let's try powershell for demo

why not
added on the 2021-06-26 17:00:07 by waffle waffle
Dutch language works best for demos
Struggling with pointers seems to be a thing that only happens to people who start with C or higher level languages.

That's because C has an amazingly stupid syntax for them.
added on the 2021-06-26 22:29:59 by absence absence
That's because C has an amazingly stupid syntax for them.

Was there a better implementation for points in 1972?
added on the 2021-06-27 03:49:06 by xernobyl xernobyl
I use a mix of C (the logic) and Assembly (the time critical parts), so I can enjoy the best of the 2 worlds.

In general I believe that the programming language is one of the tools needed.
added on the 2021-06-27 09:24:06 by AlienTech AlienTech
Most of the scrolltexts are written in English
added on the 2021-06-27 14:09:41 by ok3anos ok3anos
At one time I had all system setup in assembly and the time critical parts in C as I was rebuilding from a 100% asm demo codebase. The demo “Software makes the dance foam oil” was using this architecture anomaly
added on the 2021-06-27 17:29:26 by rloaderro rloaderro
I like to roll my own. Apart from being fun and challenging, making your own language has a number of advantages (all of which are generally advantages of making demotools):
- Because the concepts in the language can more closely match the central concepts in the domain (e.g. it can have closely integrated mechanisms for expressing time) it is more natural to express the demo, enhancing the creative process.
- It can be easier to understand than an ordinary programming language, which means you can give it to someone who has not spent many years learning to code demos, and they can make something with it.
- It is usually more amenable to integration into a tool with instant visual feedback. Once you have tried not having to recompile and restart your demo on every change, you are never going back. This can also be done with embeddable languages such as Lua. And for your shaders of course, if you are targeting that kind of platform.


Mentor and I made a demotool with a visual scripting language. It's boxes and connections rather than text, but the same principles apply. It was used for Atrium, Ikadalawampu, the Wishful trilogy and many others.

Rose is a turtle-style language for Amiga. Hoffman picked it up and did wonders with it.

And, as Ferris mentioned, Phosphorizer was written in a simple, Rose-inspired scripting language embedded into Lua. I call it o, since R is already taken. ;)

I generally compile the DSL into bytecode to be included in the intro and compiled to machine code on startup. This also has the advantage of being smaller than expressing the same thing with fully compiled code directly.
added on the 2021-07-01 18:14:43 by Blueberry Blueberry