+ 8

How to convert from one programming language to another?

ÂżCĂłmo convertir de un lenguaje de programaciĂłn a otro?

6th Mar 2022, 3:28 AM
CGO!
CGO! - avatar
16 Respostas
+ 7
Got it, you're asking a new question for the same question "How to create Android apps with Python"... Well Caleb, converting from one language to another is a very difficult task, you must have a good understanding of those two languages. That is the only real and safe way to do what you want. I recommed you to learn the fundamentals of computer programming, but I won't lie to you, even when you learn it, your code would be a disaster, because each programming language has its own characteristics. There are also some programs that convert the code given in one programming language to another, for example C to assembly, but there is an intermediary there, a program converts the C code to assembly code, however, there are more problems than that, it has to be a program that ensures fast code, makes some changes to the code in the conversion process, but ensures that those changes won't make your code slower than expected, etc.
9th Mar 2022, 12:34 AM
Hacker-KR4636
Hacker-KR4636 - avatar
+ 5
Simba What is an Apple translator?
6th Mar 2022, 1:02 PM
CGO!
CGO! - avatar
+ 4
Write pseudo code using source code. Now, write code in target language using pseudo code you written. Pseudo code: Code irrespective of language focused on logics and process. Hope it helps you.
7th Mar 2022, 11:55 AM
Stony
Stony - avatar
+ 4
Rational Yes and no, because I need how to convert, for example, .java to .cpp, no knowing the other language.
7th Mar 2022, 1:07 PM
CGO!
CGO! - avatar
+ 4
If you are crazy enought you could try to compile your code in one language and then decompile it with other language, fix the errors and pray for all to be working.
7th Mar 2022, 4:41 PM
Ismael Perbech
Ismael Perbech - avatar
+ 3
Yes, Brian A, something that.
7th Mar 2022, 1:34 PM
CGO!
CGO! - avatar
+ 3
Caleb Guerra Ortega search the internet for “java to c++ converter”. i see that converters exist but Ive never tried those so I cant tell you how well it will work.
7th Mar 2022, 2:18 PM
Brian A
Brian A - avatar
+ 3
I would recommend learning the fundamentals of coding. Typical things like data types and how to make loops get out of loops and etc
. Once this is achieved you would be able to go to different coding languages with ease as there are subtile differences like syntax. There is a caveat there are strongly typed languages and loosely typed ones as well. Start off on a lossely typed language like javascript or python get good then try to write the same code in a different language.
8th Mar 2022, 12:37 AM
David
David - avatar
+ 3
9th Mar 2022, 2:07 AM
CGO!
CGO! - avatar
+ 2
Maybe, you need an Apple translator? You just have to learn the syntax of the both languages.
6th Mar 2022, 3:43 AM
Simba
Simba - avatar
+ 2
I'm working on one...
6th Mar 2022, 7:25 AM
Sancho Godinho
Sancho Godinho - avatar
+ 2
i don’t think you can do it without knowing both languages to some extent. It sounds like you want a converter program to do it automatically?
7th Mar 2022, 1:22 PM
Brian A
Brian A - avatar
+ 2
Caleb Guerra Ortega As you mentioned you need to convert .Java to .CPP . I suggest you to understand .Java code. And write code modules or functions used in sequential order. Mainly focus on objective of the problem. Now convert it to .CPP . Prerequisites: 1. Know the syntax of source and target languages 2. Get the what exactly the problem is, and solution is, it's process. I don't think I'm deviated from original discussion.
7th Mar 2022, 2:18 PM
Stony
Stony - avatar
+ 2
Para convertir de un lenguaje a otro primero debes entender los lenguajes ya que debes adaptar un cĂłdigo a otro.
8th Mar 2022, 1:31 AM
Cmurio
Cmurio - avatar
+ 2
In this case decompiling the code in java can't work because of the way of functioning of the java language. It works in an emulated virtual machine thus it has a pseudo machine language which doesn't match with the original machine 😅😅😅
8th Mar 2022, 7:05 AM
Ismael Perbech
Ismael Perbech - avatar