Chat GPT can create one language in future that works on both browsers, Android and IOS
Under the Hood
Now this is a real-world problem and I’ve confronted it just now.
The game is on, it’s 5 AM in the morning and the whole night is gone solving one problem.
It’s not even a problem it’s an entire application and let me explain.
We are unlucky but not the future
Here we go, I am developing a web3 non-custodial app and the Dapp.
So I have to use AlphaWallet under the Hood or as the base. So my non-custodial wallet app should be built on top of Alphawallet.
I can easily clone the github repository and starts developing my Dapp on top of the AplhaWallet.
But their repository is not in react-native it’s in Android and Swift both, so we have extensive Android and Ios app github repositories.
Not react-native and as cross-platform application requirements emerge we have decided to use react-native.
Now we don’t have a react-native repository to clone so the only option left is to translate literally most of the ios or Android code base repository into react-native.
It might sound easy but harder to execute and you should know the language very well the combination of javascript and Swift is not deadly but not easy also.
Chat GPT in the picture
Let’s ask Chat GPT. He can translate the code to react from Swift. But how to translate the entire repository?
I am also not sure, we need tools for that.
I want to understand one repository in one language that I don’t know for that I need to translate it first.
How to translate?
Translation can begin using transpilers.
Javascript transpilers convert new JS or ES6 into ES5 or older version javascript, so why can’t be developed to translate horizontally rather than vertically?
This is where AI can help fast and accurately.
Humans have to give a lot of thought, chat GPT might give a hint to proceed and even the best direction to follow.
But what about the flow of the repository to run the entire application?
Well, the javascript application follows a single entry point application concept and that helps to develop the entire dependency and flow graph easily.
A dependency graph can help to understand the file structure and dependencies and create an accurate translation.
One language for IOS, Android, Browsers
This is just a hypothetical situation. If I can translate code from one language to another and can convert one repository from IOS to Android, Swift to Java, the game is OVER.
You can understand and imagine the situation, I don’t need to elucidate, it’s self-explanatory.
Then on top of this AI translation, we can create one language that will help developers to develop any kind of application.
WOW, I am scared a bit, is this possible?
Not sure, time will tell, I hope the Open AI team does read this story 😁.
Time to leave, back to work, I need some jogging to induce some oxygen in my blood to think better.
For the time being, I need to understand Swift code using Chat GPT and translate it into React on my own.
Harsh days,
But the good thing is if 5/10 years down the line someone picks this story, they will laugh at us to this day😅 because the world evolves and they will be lucky to write only one language.
Keep developing
Shrey
iHateReading