开发者

Which programming languages work well together for simulations? [closed]

开发者 https://www.devze.com 2023-02-08 22:25 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 12 years ago.

Every programming language has advantages and disadvantages which make it more suitable to a specific solution. Sometimes it makes sense to combine the advantages of two (sometimes more) languages 开发者_Go百科to solve the "bigger picture" problem in the most efficient manner (execution time vs programming time, etc.).

Some programming languages play better together than others because they are closely related in design, and some also provide better interfaces to other programming languages, which are not directly related.

I know it's impossible to list all the different combinations, but I'm interested in the interaction capability for simulation work between the most commonly used programming languages.

Typically there is a requirement for the following:

  • Grunt work (fast as possible calculations) should support multi-threading
  • Good code library support (e.g. math, statistics)
  • User interface (e.g. simulation setup, plotting results)
  • Operating system independence (Windows/Linux/Mac)

It's obviously possible to use any two languages together in some way or another, but I know there are instances where it definitely makes more sense to do so.


Almost any scripting language (Perl, Python, Ruby, Lua, etc.) and C. You use the scripting language for rapid prototyping and then C to reimplement the slower parts.

C++ can also be used, but it has some features that are difficult to integrate as, for instance, virtual methods.

Then you have Jython, that's a version of Python running on top of the JVM that plays quite nicely with Java, and there are a bunch of other JVM languages in the same position.

If you use .Net or Mono, at least in theory, all the languages supported should be able to call code in other languages.


You should probably change that to top 11, because JavaScript is invaluable when it comes to combining languages. Why? Because that's the only one you can run in a browser!

So, my answer is exactly that: Two languages that work well together are JavaScript and X (where X is any top 10 language from your list); JavaScript on the client, X on the server.


Your question is very general, but basically, most Win32 languages can work together. You can write fast dll's in C++ and then use Visual Basic 6 to make slow calls to it. ;) Delphi and C++ work well together too, although there isn't much reason to use C++ dlls in Delphi because Delphi will perform just as well.

The same goes for .NET assemblies. All of them can work together, so you can write a framework in C#, while choosing a language with an easier syntax (like VB.NET or Prism) to allow beginning programmers (or those migrating from VB) to use that framework.


C#/ASP.NET/JavaScript(jQuery/jQueryUI/jQueryMobile)

That pretty much sums up my life, haha

This is a very broad question, which will have far too many answers. Just because putting two languages together may be difficult for one person, it might be easy for another.


For web design, HTML, CSS, JAVASCRIPT, JQUERY/YUI, PHP, MYSQL. Perfect blend. If you are just starting out, learn the languages in the order i have them listed.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号