Many institutes and engineering departments rely on routines that have produced dependable results for a long time but that hardly anyone dares to touch: fixed-form source, COMMON blocks, implicit typing or MATLAB scripts without tests. Modernising Fortran and MATLAB code starts with certainty about what the existing code does. This masterclass shows how coding agents explain code, generate characterisation tests and translate routines step by step, to Python, to modern Fortran or behind a new interface. You learn when bit-for-bit equality is realistic and when justified tolerances apply.
Who the code modernisation masterclass is for
Experienced developers, computing teams and research groups who look after long-lived Fortran or MATLAB code and want to modernise it, move it to Python or connect it to new systems.
What you'll walk away with
- Map, document and assess existing Fortran and MATLAB code with the agent's help
- Generate characterisation tests with recorded inputs and outputs before anything changes
- Recognise typical translation traps such as index base, memory order, implicit typing and rounding differences
- Choose a migration strategy: wrapping with f2py, modernising in Fortran or rewriting in Python
- Justify and document tolerances for comparing results
Typical scenarios
- A fluid dynamics institute wraps a proven Fortran solver with f2py so that new analyses can be written in Python while the computational core stays untouched.
- An engineering department moves MATLAB scripts for vibration analysis to Python and compares every translated function with stored MATLAB results.
- A research group replaces COMMON blocks with modules and has the agent run the characterisation tests after every step.
Does this fit your team?
Pick a few dates that suit you. The request is non-binding, and the agenda is tailored in a short call beforehand.
What the code modernisation masterclass covers
- Understand before you changeThe agent explains call structure, data flow and side effects; you verify the explanations at selected points.
- Freezing behaviourCharacterisation tests with representative inputs, stored outputs and documented tolerances.
- Translation trapsOne-based indexing, column-major storage, integer division, implicit typing and differences in standard library functions.
- Three migration routesWrap, modernise or rewrite: criteria, effort and risks, worked through on one running example.
- Step by step with the agentSmall changes, tests after every step and pull requests reviewed by a person who knows the science.
Before the code modernisation masterclass: prerequisites
- Experience with Fortran or MATLAB and with Python
- An extract of your own code with sample inputs and outputs, if you are allowed to bring it
- Version control with Git
Materials you keep
- A decision guide for wrapping, modernising or rewriting
- A template for characterisation tests with a rationale for tolerances
- A checklist of common translation traps between Fortran, MATLAB and Python