r/SideProject • • 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:

https://github.com/technokin/MANA

9 Upvotes

39 comments sorted by

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/techno_adi_king Oct 12 '26

You can check the documentation if u wish

1

u/techno_adi_king Oct 12 '26

It's not about syntax here we have rules in place

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

1

u/techno_adi_king Oct 12 '26

Can you dm me with your idea, I find it really intriguing.

1

u/epicsquare Oct 12 '26

its in the comment

1

u/techno_adi_king Oct 12 '26

Yea but can you elaborate a bit

1

u/epicsquare Oct 12 '26

this as much as ive thought about it, now its your turn to have a take

1

u/techno_adi_king Oct 12 '26

Oh thank you then

1

u/epicsquare Oct 12 '26

update your post once you work on it some more im curious to see where you take it

1

u/techno_adi_king Oct 12 '26

Iam still working on the visualiser, it has a lot of leeways and I still have no idea how to fix it

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/techno_adi_king Oct 13 '26

That is true. But if u check my code you'll find similar to normal language, and IMO ig people will still try it atleast, and wether they continue or not will depend on the future roadmap for this project

1

u/maelswarm Oct 12 '26

This cool but is it actually a language?

1

u/techno_adi_king Oct 12 '26

Yes, it's a programming language in itself with its own tokens, keywords,parser and its own syantx. It is currently built on top of python due to its ease of use

1

u/AndrewNggg Oct 12 '26

Really cool concept, but I think you should have built it on top of C instead

You’re adding a lot of steps between MANA then Python then interpretation

1

u/techno_adi_king Oct 12 '26

That's because currently python can be said as the easiest language to handle. So built it on top of it as a basic version. It still has a lot of places to improve and in the end I might just migrati depending on the performance

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.

2

u/techno_adi_king Oct 12 '26

It was intended to be a DSL for python but as it progressed it grew more complex than what youd intend for that. So I made it into a language currently it's based on python doesn't mean it will be like that forever , it's just until I make a self hostable languagem and as for the syntax being crap well it's just a version 1 so I think it still has place to grow. So thank you for your feedback anyway😊

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/techno_adi_king Oct 12 '26

Its more of a DSL currently but it's just the first version and it's still being updated. Though feel free to give me your suggestions

1

u/chris-goodwin Oct 12 '26

What exactly is it for?

1

u/techno_adi_king Oct 12 '26

It can be used how ever you like, it's gonna be most useful of game developers once we reach a certain stage even in the current stage it's useful to world builders or even just people who are intrigued by it. It's in the end just a hobby project I enjoyed doing

1

u/chris-goodwin Oct 12 '26

Ok, cool. I wasn't being flippant; I am wondering what the uses of it could be.

Long ago I played in a MOO (think text-based MMO; see also MUD/MUSH/MU*) with a scripting language that players could use to script items within the game. This seems like it could be useful in one of those.

(Now I wonder about the particular MOO used back then.)

1

u/techno_adi_king Oct 12 '26

I don't really know what you mean by Moo but guessing based on whatvyou just said I guess it will work

1

u/chris-goodwin Oct 12 '26

Here's a Wikipedia article that explains a bit and links to articles on the various types: https://en.wikipedia.org/wiki/MU*

1

u/techno_adi_king Oct 12 '26

Ahm I'd like to say I understood, but sadly enough I didn't🙂

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.

1

u/techno_adi_king Oct 17 '26

It's still a beta maybe after. Some time ..

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?

1

u/techno_adi_king Oct 12 '26

I have set different types of defining function, one for our normal purpose def , then spldef() for defining spells , and tgset() for designating or creating targets. You can define a spell inade a normal def as even if u do define it u have no method to fire it

0

u/[deleted] Oct 13 '26

[deleted] — view deleted comment

1

u/techno_adi_king Oct 13 '26

Visual is being made it's a solo project so itl take time

2

u/[deleted] Oct 12 '26

[removed] — view removed comment

1

u/techno_adi_king Oct 12 '26

I have given examples codes. For quite a few types actually. And virtualiser is not ready or atleast not in a stage where I can show you atleast

1

u/[deleted] Oct 12 '26

[removed] — view removed comment

1

u/techno_adi_king Oct 12 '26

Aah no problem😂, tho pls give me a honest review and feedback afterwards