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.
Matching moments
07:45 MIN
Using large language models for voice-driven development
Speak, Code, Deploy: Transforming Developer Experience with Voice Commands
00:27 MIN
Addressing the core challenges of large language models
Accelerating GenAI Development: Harnessing Astra DB Vector Store and Langflow for LLM-Powered Apps
28:37 MIN
How to effectively leverage AI for legacy code
Getting to Know Your Legacy (System) with AI-Driven Software Archeology
28:51 MIN
Using large language models as a learning tool
Google Gemini: Open Source and Deep Thinking Models - Sam Witteveen
03:36 MIN
The rapid evolution and adoption of LLMs
Building Blocks of RAG: From Understanding to Implementation
00:48 MIN
Understanding the risks of large language models
Inside the Mind of an LLM
08:22 MIN
How LLMs excel at understanding and documenting code
AI-Powered Code Documentation: Simplify the Complex
17:00 MIN
Designing developer tools and documentation for LLMs
WAD Live 22/01/2025: Exploring AI, Web Development, and Accessibility in Tech with Stefan Judis
Featured Partners
Related Videos
Using LLMs in your Product
Daniel Töws
Inside the Mind of an LLM
Emanuele Fabbiani
Large Language Models ❤️ Knowledge Graphs
Michael Hunger
Bringing the power of AI to your application.
Krzysztof Cieślak
Useful AI friends for developers – building a multilingual app
Andreas Erben & Tim Cadenbach
Creating Industry ready solutions with LLM Models
Vijay Krishan Gupta & Gauravdeep Singh Lotey
Self-Hosted LLMs: From Zero to Inference
Roberto Carratalá & Cedric Clyburn
Three years of putting LLMs into Software - Lessons learned
Simon A.T. Jiménez
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.



Data Scientist- Python/MLflow-NLP/MLOps/Generative AI
ITech Consult AG
PyTorch
Tensorflow
Machine Learning

AI/ML Team Lead - Generative AI (LLMs, AWS)
Provectus
Remote
€96K
Senior
PyTorch
Tensorflow
Computer Vision
+2

Senior Data Scientist - LLM & Generative AI
Predict42 GmbH
Remote
€48K
Senior
PyTorch
Tensorflow
Natural Language Processing

Computerlinguist / Informatiker NLP und Generative KI
IQ Buddy GmbH
Remote
Node.js
Data analysis
Performance Testing
Natural Language Processing

Product Owner Generative AI & NLP
Schwarz Dienstleistung KG

Lead Developer - Health Sector (LLMs, Python, Generative AI)
iO Associates
Belfast, United Kingdom
Senior
Machine Learning

AI/LLM-Entwickler - Automatisierung & KI-Lösungen
lucesem
AI/LLM-Entwickler - Automatisierung & KI-Lösungenlucesem
Klagenfurt, Austria
€40K