Tweaking DWScript for AI consumption

Recent changes to the DWScript  repository have been oriented towards making it more AI-friendly, because let’s face it, humans writing code is going the way of the Dodo. Last post announced the DWScript Compendium, which lists all the new language changes below (and a few more).

dwsRunner utility which has been in limbo for quite a while got a small revival with new command line parameters which match AI’s best guesses (and there is a short help in case they miss), key changes are:

  • ability to pass code in the command line instead of a file
  • sampling profiler runs
  • ability to specify paths
  • better error reporting

As for DWSScript language and RTL, these target patterns AI would try first:

  • Added FormatFloat
  • Added {$PUSH} and {$POP}, FreePascal compatible (which alas Delphi lacks)
  • New UnregisterInternalFunction
  • Synapse dependency is now optionnal and controlled by ALLOW_SYNAPSE (default Off)

The DWScript Compendium was also moved to serverless deployment, and is now hosted on Cloudflare Pages. The compendium backend creates a fully static site (but that still supports dynamic search) which is pushed to a repo.

Other work in progress revolve around strengthening test cases and supporting more intrinsics for the JiT, a new experiemental Kernel Compiler Library (KCL) which aims for JiT compilation of TFLite neural networks, a rewrite/replacement for the MPIR DLL (BigIntegers).

Leave a Reply

Your email address will not be published. Required fields are marked *