AI Use Case: Assembly to Delphi code - gaddlord/mtg.studio GitHub Wiki

I do understand developers who avoid using AI for code generation (ecven if unit tests). Yet here is an use case whichI found extremely useful:

I am currently getting rid of Assembly (the so called non-PUREPASCAL) lines of code from my codebase. The reason is that the support for 64-bit and cross-platform (Windows, Linux, MacOS, iOS, Android) on Intel and ARM processors requires different instruction sets and the code becomes a big pile of {$if defined(XXX)}.

Assembly to Delphi

Turned out that the Smart CodeInsight of Delphi 12 (Alexandria) can convert my ASM instrructions quite nicely to Delphi code.

Btw, if you are not on latest Delphi version you can achieve the same with cnWizards IDE extension which supports even more AI vendors and models:

image

or consider using the GetIt plugin "Delphi AI Developer" https://github.com/Code4Delphi/Delphi-AI-Developer

image