Michael Niebisch
Leveraging Large Language Models for Legacy Code Translation: Challenges and Solutions
#1about 5 minutes
Motivations for translating legacy MATLAB code to Python
The project aimed to explore LLMs for modernizing a large, legacy MATLAB codebase due to the scarcity of MATLAB developers and the rise of Python.
#2about 4 minutes
Using a semi-automatic workflow with ChatGPT for translation
The initial approach involved a manual copy-paste workflow using the ChatGPT web interface, which saved time on boilerplate but struggled with large code chunks and introduced errors.
#3about 4 minutes
Overcoming language-specific challenges in code translation
Key translation challenges arose from fundamental differences between MATLAB and Python, such as array indexing and memory layout, requiring a divide-and-conquer approach and robust unit tests.
#4about 5 minutes
Developing an automated pipeline for translation and auto-fixing
To improve efficiency, an automated pipeline was built to first annotate code with type and shape information before translation and then use an agent-based tool to automatically fix bugs based on test failures.
#5about 4 minutes
Evaluating LLM performance and providing debugging support
A framework was developed to evaluate translation quality by testing against known failure cases, and a debugging tool uses LLMs to compare execution logs from both languages to pinpoint errors.
#6about 3 minutes
Considering local LLMs for security and summarizing key learnings
Due to IP and security concerns with cloud APIs, local models like Llama 2 were explored, and the project concluded that while LLMs are promising tools, fully automated, error-free translation remains a significant challenge.
Related jobs
Jobs that call for the skills explored in this talk.
Wilken GmbH
Ulm, Germany
Senior
Kubernetes
AI Frameworks
+3
Picnic Technologies B.V.
Amsterdam, Netherlands
Intermediate
Senior
Python
Structured Query Language (SQL)
+1
Matching moments
06:28 MIN
Using AI agents to modernize legacy COBOL systems
Devs vs. Marketers, COBOL and Copilot, Make Live Coding Easy and more - The Best of LIVE 2025 - Part 3
04:59 MIN
Unlocking LLM potential with creative prompting techniques
WeAreDevelopers LIVE – Frontend Inspirations, Web Standards and more
05:03 MIN
Building and iterating on an LLM-powered product
Slopquatting, API Keys, Fun with Fonts, Recruiters vs AI and more - The Best of LIVE 2025 - Part 2
05:55 MIN
The security risks of AI-generated code and slopsquatting
Slopquatting, API Keys, Fun with Fonts, Recruiters vs AI and more - The Best of LIVE 2025 - Part 2
04:57 MIN
Increasing the value of talk recordings post-event
Cat Herding with Lions and Tigers - Christian Heilmann
04:09 MIN
The emerging market for fixing AI-generated code
Devs vs. Marketers, COBOL and Copilot, Make Live Coding Easy and more - The Best of LIVE 2025 - Part 3
07:43 MIN
Writing authentic content in the age of LLMs
Slopquatting, API Keys, Fun with Fonts, Recruiters vs AI and more - The Best of LIVE 2025 - Part 2
03:45 MIN
Preventing exposed API keys in AI-assisted development
Slopquatting, API Keys, Fun with Fonts, Recruiters vs AI and more - The Best of LIVE 2025 - Part 2
Featured Partners
Related Videos
Using LLMs in your Product
Daniel Töws
Inside the Mind of an LLM
Emanuele Fabbiani
Useful AI friends for developers – building a multilingual app
Andreas Erben & Tim Cadenbach
Large Language Models ❤️ Knowledge Graphs
Michael Hunger
Bringing the power of AI to your application.
Krzysztof Cieślak
Unlocking the Power of AI: Accessible Language Model Tuning for All
Cedric Clyburn & Legare Kerrison
The State of GenAI & Machine Learning in 2025
Alejandro Saucedo
Self-Hosted LLMs: From Zero to Inference
Roberto Carratalá & Cedric Clyburn
Related Articles
View all articles

.png?w=240&auto=compress,format)
.gif?w=240&auto=compress,format)
From learning to earning
Jobs that call for the skills explored in this talk.

Forschungszentrum Jülich GmbH
Jülich, Germany
Intermediate
Senior
Linux
Docker
AI Frameworks
Machine Learning

FRG Technology Consulting
Intermediate
Azure
Python
Machine Learning

Startup
Charing Cross, United Kingdom
PyTorch
Machine Learning

Robert Ragge GmbH
Senior
API
Python
Terraform
Kubernetes
A/B testing
+3

Deloitte
Leipzig, Germany
Azure
DevOps
Python
Docker
PyTorch
+6



