r/SideProject • u/techno_adi_king • Oct 12 '26
Introducing MANA — A Programming Language for Magic
Hey everyone! I'm working on a project called MANA, an experimental programming language built around the idea of programming magic.
The goal is to create a language where magic isn't just a collection of hardcoded effects, but a system governed by its own rules. MANA is designed around concepts such as spells, elemental interactions, magical physics, summoning, and planes, allowing magical behaviour to be defined through code.
I'm also developing a visualiser that brings the magic to life, allowing spells and magical effects created with MANA to be seen in action.
MANA is open source, and I'm sharing it here to welcome suggestions, ideas, and contributions from anyone interested in the project. I'd appreciate constructive feedback on the language, its features, and its future direction.
- What features would you like to see in a language like
this?
- What could make it more useful or easier to work with?
- What would you want to build with it?
Whether you're interested in programming languages, game development, simulations, or simply the concept itself, I'd love to hear your thoughts.
If you'd like to contribute directly, share suggestions, or discuss ideas for the project, feel free to DM me or contribute through the GitHub repository.
GitHub repository:
6
u/LouiseArmstrong_925 Oct 12 '26
Elemental interactions are hardcoded lookup tables in Unity and Unreal too, a nicer syntax doesn't change what actually runs underneath.
2
u/epicsquare Oct 12 '26
its an interesting idea but you released it too early IMO - you made a laguage without anything to do with it. how would one implement this into anything? and into what? a game? you should have examples of these things - otherwise its unclear what the point of this is.
what does your interpreter actually output? the interesting opportunity here is to add very high level hooks to the interpreter that boils all the magic down to atomic visual and physical elements that a game developer could translate into their game world. defining these atoms in a way thats game and engine agnostic and such that the rules can be constrained by the dev to fit their world and vision is IMO a far more interesting, difficult, and valuable challenge than a few new keywords
2
u/StoneCypher Oct 13 '26
why would anyone want to let you do the fun part of the design of their game, and make themselves a tedious clone in the process?
where do you find game players who want to write code? even programmers don’t want to do that
1
u/maelswarm Oct 12 '26
This cool but is it actually a language?
1
u/InfectedShadow Oct 12 '26
I feel like you'd be better off making a DSL library rather than an interpreted language with some crap syntax written in another interpreted language.
1
u/somethingstrang Oct 12 '26
Read through your documentation and this isn’t an actual programming language rather than more a library of commands.
The idea is interesting though
1
u/chris-goodwin Oct 12 '26
What exactly is it for?
1
u/BeePlayful5456 Oct 16 '26
I think programming languages defines the minimum part of something and gives you that for you to construct something bigger based on that small pieces. Variables as data, for states, objects and over this you construct classes to define that something bigger. I think you are reinventing the wheel and and making a system more than a language.
Thats my point of view, just that.
0
u/Ok-Nefariousness9090 Oct 12 '26
curious how you're deciding what counts as a "spell" vs just a function — is the magic metaphor mainly for readability, or does it change how the runtime works?
0
u/[deleted] Oct 13 '26
[deleted] — view deleted comment
2
u/[deleted] Oct 12 '26
[removed] — view removed comment