Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Universal meta-language for "simple" programs

I realize that it is impossible to have one language that is best for everything.

But there is a class of simple programs, whose source code looks virtually identical in any language.

I am thinking not just "hello world", but also arithmetics, maybe string manipulation, basic stuff that you would typically see in utility classes.

I would like to keep my utilities in this meta-language and have it automatically translated to a bunch of popular languages. I do this by hand right now.

Again, I do not ask for translation of every single possible program. I am thinking a very limited, simple language, but superportable.

Do you know of anything like that? Is there a reason why it should not exist?

like image 999
Roman Zenka Avatar asked Oct 24 '25 14:10

Roman Zenka


1 Answers

Check Haxe, and its Wikipedia page. It's open source and its main purpose is what you describe: generating code in many languages from only one source.

like image 120
Jem Avatar answered Oct 27 '25 00:10

Jem



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!