Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
1.00/5 (5 votes)
Can I compile Java ,C++ , Python ,PHP & Ruby On Rail at Once ?? And Can i build web application using these all Programming Languages at Once??

What I have tried:

I haven't tried ever.Cause of confusion .I want to Compile Or built a web application using Java ,C++ , Python , PHP & Ruby on Rail at Once Or into One ,But there is lot of confusion .So not trying yet.
Posted
Updated 29-Aug-18 20:33pm
Comments
Mohibur Rashid 29-Aug-18 20:21pm    
You should give better thought with your question. Your 'want to compile at once' does not make much sense. C++, Java can be compiled. Others are not suitable for compilation. So, difficult understand the motive of your question.

Your question can be 'can I have an web server where various components or modules would be developed by various programming language'. I do not see why not. This can be achievable. But the question would be will it be a good idea? It depends on the volume project. It depends on the architecture you are going to implement. For project purpose we use multiple tools. Even in case of most simplest project we are using 20+ various tools. And various part of the project is managed by various teams(5 teams). So, programming language is also various. But if your '5 of this programming language web server' project is going to be managed by one or two teams then maintenance will be a nightmare.

Short answer: You can't.

All these languages are build differently. C++ for example is compiled to executable code for a specific platform. Other languages are full interpreted (an interpreter is "compiling" at run time to executable code) or semi interpreted (the compiler creates a platform independant intermediate output called byte code that is finally translated to platform specific code when executed). Many semi interpreted languages can also create platform specific executables making them also a "compiled" language.

But you can use modules created with one language by others that support them. A common example are shared libraries (DLLs with Windows) created with C/C++ and used with other languages like Java and PHP.

Another option is to use system calls to execute other applications. But this method is somewhat restricted regarding data interchange or requires implementing data exchange (keyword IPC, inter process communication).

In any case I would try to reduce the number of languages used for the parts of an project. Using multiple languages makes projects more complex and harder to maintain.
 
Share this answer
 
v2
I think you can, but you will have a bunch of more basic problems like writing the code and testing.

You must dig in all documentations of the languages and work out some command line build process like for instance in Java and glue all in one big batch which triggers the others.

This only makes sence in massive projects, but for some home usage I would do it manually, because it is an additional subproject.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900