How to run multiple languages in one project ?????? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

How to run multiple languages in one project ??????

Like a have to made an app for it , i write somecode in java and some code in python .How to interact to make an app

1st Aug 2023, 9:48 AM
Harveer Batth
Harveer Batth - avatar
19 Antworten
+ 1
Like cross platform applications???
1st Aug 2023, 10:25 AM
RezaForoozesh
RezaForoozesh - avatar
+ 5
Harveer Batth you said something that can run multiple languages...that site can run multiple languages. But yes, maybe that's not what you want. You want interaction between programs written in different languages. Having different languages interact is not easy. Some have to be compiled first, others need interpreters to run. Data have to be transferred and they must be compatible. Functions have to be called. Input outputs have to be handled... etc. It's not as simple as you think... if you only want Java-Python interaction, maybe visit this SO thread.. https://stackoverflow.com/questions/1984445/interaction-between-java-app-and-python-app
1st Aug 2023, 12:24 PM
Bob_Li
Bob_Li - avatar
+ 4
To create an app with multiple languages, you can: 1. Develop a backend/API using one language (Python, Java, etc.) to handle app functionalities. 2. Use JSON or XML for data exchange between the backend and frontend (Android app). 3. Optionally, consider using cross-language frameworks like React Native or Flutter for a smoother integration of different languages in the app.
1st Aug 2023, 4:09 PM
‎ ຸ
+ 2
RezaForoozesh in your answer git meant github or what . Thank you
1st Aug 2023, 10:35 AM
Harveer Batth
Harveer Batth - avatar
+ 2
like godbolt.org? https://gcc.godbolt.org/
1st Aug 2023, 12:21 PM
Bob_Li
Bob_Li - avatar
+ 1
I Know, if run your code with git you can merge multiple language
1st Aug 2023, 10:34 AM
RezaForoozesh
RezaForoozesh - avatar
+ 1
Harveer Batth app is a vague concept. First decide on WHAT your app is supposed to do. Then decide on WHO is going to use it. Then on HOW it is going to be used. finally decide on what programming language or languages you are going to use to code it in. If you want a Python app with user interface, maybe you should learn Tkinter, Pygame, Kivy, Pysimplegui, PySide, etc. Be aware that gui apps, while easier to use, are harder to code than console apps.
1st Aug 2023, 6:28 PM
Bob_Li
Bob_Li - avatar
+ 1
Bruh this is not what they mean by creating apps in multiple languages. Apps that uses multiple languages actually have little to no interactions at all. The languages are there to serve different purpose. In most cases tho, it's easier for compiled languages to call other compiled languages "executables" . You will have to ship the executable with the app so java can call the executables not the language source code. this however will increase the size of the app
2nd Aug 2023, 3:37 PM
White Shadow
White Shadow - avatar
0
RezaForoozesh what areyou saying man
1st Aug 2023, 10:30 AM
Harveer Batth
Harveer Batth - avatar
0
no i mean git(!github). when you put your project in it you need define whatever language you used and you can see your project (with multiple lang)running .
1st Aug 2023, 10:38 AM
RezaForoozesh
RezaForoozesh - avatar
0
Bob_Li what are you typing man
1st Aug 2023, 12:23 PM
Harveer Batth
Harveer Batth - avatar
0
Bob_Li thank you man a lot
1st Aug 2023, 2:58 PM
Harveer Batth
Harveer Batth - avatar
0
Bob_Li please tell me that if i make an app using python how to save it in computer and display on screen
1st Aug 2023, 3:00 PM
Harveer Batth
Harveer Batth - avatar
0
python interacts with c/c++ under the hood. Some standard functions and modules are written in these languages to boost performance. https://www.geeksforgeeks.org/libraries-in-python/
2nd Aug 2023, 11:21 PM
Bob_Li
Bob_Li - avatar
0
Yes, you can run multiple languages in one program. There are various methods to achieve this, such as using language-specific interfaces, API calls, or embedding one language within another. However, the implementation may vary depending on the specific languages you want to use together. Let me know if you need more details or have a particular scenario in mind.
3rd Aug 2023, 5:58 AM
Saisanket Abhale
Saisanket Abhale - avatar
0
Hi phton mobile me run kaise kare
3rd Aug 2023, 6:40 AM
Vikas Thengde
Vikas Thengde - avatar
0
Yes
3rd Aug 2023, 6:45 AM
Vikas Thengde
Vikas Thengde - avatar
0
How I can built an simple application by python or C++ ?
3rd Aug 2023, 7:22 AM
SIDDHARTHA KUSHWAHA
SIDDHARTHA KUSHWAHA - avatar
0
HTML kaise sekhe
8th Aug 2023, 4:07 PM
Vikas Thengde
Vikas Thengde - avatar