OpenAI says its latest models are better at COBOL, Fortran and Visual Basic
In OpenAI’s own evaluations, GPT-6 Astra passed an average of 87.4 per cent of SQLite tests across 20 languages at maximum reasoning effort, and GPT-6.1 Sol succeeded in 86.6 per cent of COBOL migrations at low reasoning effort. The predecessor, GPT-5.6 Sol, reached 26.8 and 5.4 per cent in the same evaluations.
On 19 October, OpenAI said in a blog post and on its X account that its latest models are better than before at building software and migrating it from one language to another when the language is, for example, COBOL, Fortran or Visual Basic. The claim rests on two evaluations that the company developed itself. All the results are OpenAI’s own measurements.
The company calls these languages low-resource because less code and documentation is available for them than for languages such as Python or JavaScript, and this is the material models learn from. Even so, many critical systems are written in them. OpenAI cites IBM, which says COBOL is used in more than 40 per cent of online banking systems and 95 per cent of ATM transactions.
SQLite from scratch in 20 languages
In the MultiLangBench evaluation, the model builds an SQLite-compatible database engine in a given language. This is a program that stores data in a database file and processes it with SQL queries. The evaluation covers 20 languages, and the same tests work for all of them because the tests check the database file. The model’s program takes a starting database and a query as input and produces a modified database, and the original SQLite then checks the contents of that database. The tests are adapted from SQLite’s own test suite. The evaluation measures what share of the tests the model passes during a long coding session and how much the work costs when the model is used through the API.
At maximum reasoning effort, GPT-6 Astra passed an average of 87.4 per cent of the tests, against 26.8 per cent for GPT-5.6 Sol. Astra’s score improved in every language and exceeded 83 per cent in 19 of them, OpenAI said. COBOL was the hardest language. The cheaper GPT-6 Luna reached 40.3 per cent. Luna’s estimated API cost averaged $0.77 per sample, about 78 per cent lower than GPT-5.6 Sol’s $3.48. The company does not give Astra’s cost. The table shows the languages that OpenAI singled out.
| Language | GPT-5.6 Sol | GPT-6 Luna | GPT-6 Astra |
|---|---|---|---|
| Average, 20 languages | 26.8% | 40.3% | 87.4% |
| COBOL | 10.9% | 17.1% | 72.1% |
| Fortran | 21.4% | 31.4% | 83.5% |
| OCaml | 25.6% | 34.1% | 85.8% |
| Visual Basic | 27.5% | 41.6% | 89.4% |
MultiLangBench, share of tests passed. Figures reported by OpenAI; Luna and Astra at maximum reasoning effort.
Migrating COBOL programs
In the second evaluation, the model rewrites COBOL programs in C++, Java, Kotlin, Python or Rust, and the new program must behave like the original. In OpenAI’s example, COBOL calculates with a fixed number of decimal places (fixed-point arithmetic) and drops any extra decimals unless rounding is explicitly requested. A new version that rounds will run without errors but produce different sums of money. Hidden tests check the migrated program, and its output must match the original program’s output byte for byte. A migration is accepted only if it passes all the tests.
At low reasoning effort, GPT-6.1 Sol succeeded in 86.6 per cent of migrations, compared with 5.4 per cent for GPT-5.6 Sol at the same setting. The new model’s API cost was 61 per cent of the old model’s. At higher reasoning effort, the success rate rose to 97.9 per cent. OpenAI said the results are then so close to a perfect score that the evaluation barely separates the models any more. The company notes that experts must still review migrations intended for production and test whether the code follows the system’s business rules and works with its dependencies.
The figures from the two evaluations cannot be compared with each other: MultiLangBench measures the average share of tests passed, while the migration evaluation measures the share of fully successful migrations. The two evaluations also tested different models.
OpenAI has published the MultiLangBench test environment, test suite and per-language results on GitHub (github.com/openai/MultiLangBench). The models are available through OpenAI’s API.