This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
onelang with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
git clone --recursive https://github.com/koczkatamas/onelang,
OneLang has a hard time defining itself.
Some may call it a transpiler, a special compiler which can compile source code from an input language to another. Those will have a hard time using it, as OneLang has its own rules and does not respect those of the input language, sometimes not even its syntax.
So the question arises, is OneLang a new programming language? Although we can talk about it with words like object-oriented or generic or strongly-typed, it has its own type system and AST, would you call something a programming language which does not have its own syntax?
Thus let's just define OneLang as the following for the time being: OneLang is a tool which helps writing code in multiple langauges at the same time.
It doesn't solve the problem for you, it just helps you a bit in it. You still need to master the target languages and OneLang to be able to produce anything usable.
So you may ask:
OneLang is the love child of @koczkatamas and it was not a planned child. It just happened to be conceived on a long flight home from Vegas.
Thanks to its luck and its parent's enthusiasm for understanding different programming languages, it survived the threatening monster of early abortion (this sadly cannot be said about its brother and sister projects which may rest in peace in the Git heavens...)
So in the end, we can say OneLang came into this world without explicit purpose.
OneLang is six months old at the time of writing and it already speaks, but don't expect any comfortable conversation with it yet. It cannot grow without a loving family, and as a single dad I cannot take care of it alone. It needs more mommies and daddies who can help raise it up.