Inspiration
Polyglot was created based off of real-life challenges faced by many Computer Science students and programmers today when needing to translate code written in one programming language, such as C, into another language like Python. This issue highlighted the lack of efficient tools for developers working across multiple languages, inspiring us to create a solution that would simplify cross-language coding.
What it does
Polyglot is an innovative web application designed to convert code from one programming language into another. Users can input code in a chosen language and, with just a few clicks, receive an accurate translation into a different selected language.
How we built it
We brainstormed the idea with a focus on addressing a common problem faced by developers globally. Using JavaScript, HTML, and CSS, we built an interactive front end and connected it to an OpenAI API to handle the translation of code.
Challenges we ran into
One of our major challenges was attempting to implement advanced translation features, such as converting Assembly code into C using reverse engineering techniques. This challenge was due to the need for a specialized processing that couldn't be replicated within a standard browser environment.
Another challenge was securely storing the OpenAI API key because it is not supposed to be visible on the client-side and is a major cyber-security threat.
Accomplishments that we're proud of
We are proud of venturing into new areas such as web development, connecting a custom domain, and integrating third-party APIs. We are proud of our UI/UX development and are proud of how it looks.
What we learned
Throughout this project, we learned the basics of creating and deploying websites from scratch on VSCode/Vercel, using custom domains, and effectively working with JavaScript, HTML, CSS, etc. We gained valuable experience in integrating APIs, improving our understanding of client-server interactions, and enhancing the overall user experience.
What's next for Polyglot
The future of Polyglot involves moving beyond AI-based solutions and incorporating true reverse engineering to do Assembly-to-C translations. This enhancement will make Polyglot a more versatile and robust tool for developers, further pushing the boundaries of what automated code translation can achieve.
Log in or sign up for Devpost to join the conversation.