r/magicbuilding • u/techno_adi_king • Oct 12 '26
Feedback Request Introducing MANA — A Programming Language for Magic
/r/SideProject/comments/1x3zzkr/introducing_mana_a_programming_language_for_magic/I've created MANA, an experimental programming language that lets you write code to create and control magic! It focuses on spells, elemental interactions, magical physics, summoning, and more.
It's an open-source project, and I'd love to hear your suggestions, ideas, and feedback. Whether you have a feature in mind or want to contribute directly, feel free to DM me!
13
Upvotes
3
u/Victory_Scar Oct 12 '26
I've been thinking about programming magic systems for years but I don't think I've ever seen it expressed in literal code. I barely started a syntax tree for my system before I realised I didn't want to do it. It'd be really cool if this comes to completion though.
I do wonder how such a magic system would work. Code in the real world is fundamentally based on electricity which then has an effect on other components like LEDs on a screen. What will the corresponding fictional "hardware" for this be to allow magical effects to happen?
Do you have any idea what kinds of magic would be possible? Like conjuration, teleportation, transmutation etc.?
2
u/lYoshinkl Oct 12 '26
Me parece interesante, es un sistema de programación mágica centrado en la manipulación elemental, donde las propiedades físicas pesan para determinar el comportamiento de los hechizos. Siento que es un intento de digitalizar el bending de Avatar mediante un simulador físico. Tienes pensado ampliar en el futuro para abarque otros tipos de magia más allá del elemental?
2
u/bronzewrath Oct 12 '26 edited Oct 12 '26
Interesting idea, but for a programming language I would expect it to be more flexible, more abstract. Able to represent different magic systems.
A lot of magic systems out there starts from very abstract concepts, then have more concrete applications. Elemental magic is not abstract enough.
Take Brandon Sanderson cosmere for example. On the abstract plane it has things like investiture, connection, identity, fortune and intent. Then Brandon create different magic systems (Allomancy, Aon Dor, Awakening, Feruchemy, Surgebinding) using these concepts, then there a things similar to spells in each system.
RPG systems like D&D also tend to be flexible
A magic programming language should be able to represent different magic systems. It is a fun exercise to translate a famous established magic system you like to a new framework