Using multiple languages in one project -


From my discussions about language design, it seems that many people argue that it is not and not Should never be "a true language" alternate, according to these people, to be familiar with many languages ​​and to choose the right tools for the job. This makes perfect sense at the level of the entire project or a large sub-project, which is to interact with the rest of the project through a very narrow, well-defined interface.

On the other hand, in other words when small Sbprablems try to solve elegantly like to use several different languages ​​is very strange, Aimaco, general-purpose languages Whatever things are good, there are still problems as a trivial example, suppose you need to do the following:

  1. Read a bunch of data in some arbitrary format from a file. Check it for errors, etc. (Something like the best Pearl is done).
  2. Load this data into the matrix, make a bunch of hardcore matrix ops (something done in some of the best metalbags).
  3. To run a custom, computational intent routine on which to be fast and location-efficient (done in best C or C ++).

This is a very simple project, computational intensive custom matrix processing in addition to writing routine, even though the only good answer about the language to use it seems a common purpose which is That everything is fine.

What am I missing here? How many languages ​​are used effectively to take advantage of each of their languages?

I have worked on many people such projects that contain a very diverse mix of languages ​​until it is a .NET is not a project, you usually use these different languages ​​at various levels or in different processes. Your webpage may be in PHP and your application server in Java. So you do not actually "mix and match" at the level of the level.

Rules change for .NET and some Java VM languages, because you can mix very freely. But the features of these languages ​​are defined by most class libraries - which are common, motivation is usually driven by other factors, such as the developer who knows the language, to change languages ​​in the net. F # is actually something The language features that are specific to that language, it seems that there is a small exception in this.NET. Some of the Java VM languages ​​add standard Java library methods, which are not available in Java.

You really use enough to work with many languages, unless everyone has good IDE support, without it I really feel that I will lose.


Comments