5 ms·
Apart from intellectual entertainment, why would anyone create another general purpose language ? Isnt there more than enough choice already ? I really want t
by codeshaman 11y ago
Apart from intellectual entertainment, why would anyone create another general purpose language ?
Isnt there more than enough choice already ?
I really want to, but I struggle to come up with enough features or syntactic tricks to justify creating a new language.
What would your motivation be?
- kamac 11y agoFind a specific field your language would be useful to. I tend to think that having it be a scripting language (eg. one that's ment to be used as, for example, creating quests / scripting events. Like old Gothic [I and II] used to have) justifies creating it (and potentially could be useful, since the main contenders as far as I am aware are AngelScript, LUA and Squirrel - so there's not a plethora of choices to choose from). Though you could find any other field where the language could be used for. Perhaps processing data, or maybe analyzing human language. Whatever you can come up with. Then it kind of makes sense :D
- sklogic 11y agoThere is no reason whatsoever for the so called "general purpose" languages to exist at all, no matter old or new ones. But, LLVM is a very useful tool for implementing DSLs.
- dominotw 11y agohow about a general purpose language targeted for a specific domain, like Elm.
- 127 11y agoFor practice. Understanding what LLVM is and how it works. Gaining more mastery over the language you are currently using. Understanding parsing and the inner workings of programming languages better.
- Rusky 11y agoPerhaps this isn't what you mean, but "isn't there more than enough choice already" always comes across to me as "isn't there at least one language with zero flaws for your use case?" I think the answer to that question is definitely "no"- this is why people write DSLs for niche use cases, but it also applies to general purpose languages. If we had just stopped where we were and were content with existing languages we'd be missing out on a lot of useful features today.
- agsamek 11y agoWe care about code quality. So http://nianiolang.org http://nianiolang.org is as limited as possible, but enables for complex logic implementation. It is like a functional language with imperative syntax, no higher order functions, but has optional types, etc. We embed it in other languages (c, js, perl, Java) without the need for a vm.