What would be the impediments to creating an “Europanto” type universal scripting language?

Almost all scripting languages have facilities to do much the same things, which is why people tend to master one that they use consistently, and stick with it.

I would suggest that the main problem is recognising what the syntax of each statement is supposed to be. In any case, what is the point? Almost all scripting languages have facilities to do much the same things, which is why people tend to master one that they use consistently, and stick with it.

The main difficulty would to be to allow people maintain it. With a well defined language you can only print a certain way and do sys. Argv a certain way.

Once you allow multiple syntaxes there is no sane way to search for all the sys. Argv in the code base you have.

I have begun to see that syntax is but one property of a language. And most of them look like C to me. The purpose of a language (object oriented, strong typing, etc) is something else again.It starts to look like syntax is not the most important aspect.

I went and read the wikipedia entry... Europanto is a linguistic jest presented as a "constructed language" with a hodge-podge vocabulary "Hodge-podge" sounds like the way Perl has been described to me!

I found a rather detailed discussion of closures in Ruby. It sounds like getting Ruby's behavior to coexist with JavaScript's or Python's would require some kind of ugly disambiguation. If anybody were to add Perl to the list of languages to be covered, I think its lexical scoping rules would present a related problem?

At the syntactical level the only problem I can see would be to detect which block has which syntax, then separate them and parse them with specific parsers. Of course given very small statements there could be ambiguities as to which language it is and you could argue that it doesn't matter, but it just may be the case, that in different languages the same string of characters does different things so this could be a subtle issue. At the API level you would have lots of different methods of doing the same thing but in a subtly different way or subset of doing it.So for example you could have no way of doing Java's string.startsWith() in let's say PHP, so you would do something different, or no way of doing PHP's strstr() (which returns a part of the string from the found needle to the end) and you would implement something different for that or even think differently about the problem.

Then you would have to have all those different API methods of doing the same things and that would be huge API to implement, support and (god forbid) learn. At the wetware level the code written by others would be totally unreadable unless you know a ton of languages and their subtle differences. I think it is difficult enough to learn a single programming language to the smallest details and so it is not practical at all to have this kind of frankensteinish beast created.

I can think of an exception for use as an algorithm description language which it already is used in universities all over the world, where teacher takes some language of his liking and makes the code as readable as it can be for a human without needing to implement a parser for it. As a side note I think this kind of system could be implemented at the least effort by somehow utilizing . NET's CLR where you have a ton of different languages each compiling to the same bytecode and accessing the same variables and stuff.

All you'd need to do is split the code to clusters of different languages, then compile them separately on their respective compilers and then just merge the bytecode and somehow make sure they all point to the same variables and functions when mentioning the same names across the different languages.

At the wetware level the code written by others would be totally unreadable unless you know a ton of languages and their subtle differences. I think it is difficult enough to learn a single programming language to the smallest details and so it is not practical at all to have this kind of frankensteinish beast created. I can think of an exception for use as an algorithm description language which it already is used in universities all over the world, where teacher takes some language of his liking and makes the code as readable as it can be for a human without needing to implement a parser for it.

As a side note I think this kind of system could be implemented at the least effort by somehow utilizing . NET's CLR where you have a ton of different languages each compiling to the same bytecode and accessing the same variables and stuff. All you'd need to do is split the code to clusters of different languages, then compile them separately on their respective compilers and then just merge the bytecode and somehow make sure they all point to the same variables and functions when mentioning the same names across the different languages.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions