Using multiple languages ​​in one project

From the discussions that I talked about language design, it seems that many people make the argument that there is no and never will be "one true language." The alternative, according to these people, should be familiar with several languages ​​and choose the right tool for the job. This makes sense at the level of the whole project or a large subproject, which should interact only with the rest of the project through a very narrow, well-defined interface.

On the other hand, using many different languages ​​seems very inconvenient when you are trying to solve many small subtasks elegantly. In other words, IMHO, generic languages ​​worthy are still important. As a trivial example, suppose you need to do the following:

  • Read a bunch of data in arbitrary format from a file. Check it for errors, etc. (It’s best to do something like Perl).
  • Load this data into matrices, make a bunch of hardcore matrix ops on it (it’s best to do something like Matlab).
  • Run on it a customizable, intensively computational procedure, which should be fast and economical (best done in C or C ++).

This is a fairly simple project, except for writing a calculation-based user matrix processing procedure, but the only good answer about which language to use seems to be universal, which is worthy of everyone.

What am I missing here? How to effectively use multiple languages ​​to take advantage of each of your strengths?

+3
6

, . .NET, . , webapp PHP java. , " " .

.NET java vm , . , . .net , , . F # , , , , .NET. Java Java java-, , java.

, IDE. , .

+3

, Lua, . Lua - Ruby Python . C, , C/++ , C ++.

script, , , Matlab, Perl , , Matlab, C - . , , , , - .

+1

. ? .

? Matlab, .

? ? 90% , , C/++.

, . , , , , , . , : , , . , , , .

, .

0

, . n- , , (SOAP/XML/COM ..), .

, , , , , , , com, corba, xml,.net, DLL, ftp . , lanugage.

- Coldfusion ASP/PHP/Java Ruby. , . COldfusion , -. c, , , .

Coldfusion, , Java .NET . , , .

, PHP , , Asp.net .

0

# ++/CLI (, ++ .NET, ). , , , .NET Visual Studio , , , - Visual Studio . , .NET- - , F #, IronPython, IronRuby, JScript.NET - Visual Studio - .

, , , , Visual Studio, , , - , . , . , , , , , , . , .

0

, , : ) , b) , .

c: , , - . , , JVM CLR, .

LAMP Rails (, ) - HTML, Javascript, Ruby, C Rails. ( ), - . .

0
source

Source: https://habr.com/ru/post/1702327/


All Articles