I would like to create a challenge for Community users as described below. I would welcome comments and suggestions from the Community as to how to improve the description of the challenge, or its structure.
The aim of the challenge will be to create a WL code generator capable of producing one-liner programs that are ‘sufficiently interesting’ to place (i.e. 1st, 2nd or 3rd) in the Mathematica one-liner competition. It is up to the developer to decide what ‘sufficiently interesting’ means in this context.
A monetary reward will be offered to the participant whose generator-produced one-liner is placed in a future Mathematica one-liner competition.
[Question for moderators: is the proposed challenge permissible?]
-
The challenge is to write a program capable of generating WL code of a specified maximum number of characters in a single line of code
-
The generator program must be written entirely in WL and produce code that is 100% WL
-
No external libraries or datasets may be used either in the generator program or in its output code (WL libraries and datasets are allowed)
-
All code produced by the generator program must be executable in MMA v12.3
-
The generator program should include logic to test generated code to ensure that it is executable
-
In addition to the character length parameter, a second parameter of the generator program should specify the type of required output (e.g. chart, animation, formula, etc)
-
The generator must be capable of producing an unlimited number of one-line WL programs
-
Execution speed should be a consideration in the design of generator program (hence consideration of parallel or GPU processing, for example)
This is not intended to be prescriptive: however, I envisage a genetic programming algorithm performing a local tree search using the WolframLanguageData function, combined to with a ‘random jump’ algorithm to explore branches of the tree that are farther afield.