Group Abstract Group Abstract

Message Boards Message Boards

3
|
6.4K Views
|
3 Replies
|
3 Total Likes
View groups...
Share
Share this post:

Wolfram Language one-liner meta-programming challenge

POSTED BY: Jonathan Kinlay
3 Replies

The point, of course, is not to win the Mathematica one-liner competition. That's just a benchmark - I see it as a kind of mini Turing test in Computer Science.

The ultimate goal is to see if we can create an engine that can program itself to produce interesting/useful software.

POSTED BY: Jonathan Kinlay

Hi Jonathan, not clear to me should it create a question in natural language and give a Wolfram expression as the answer?

POSTED BY: Sander Huisman

Hi Sander,

I didn't envisage that the program generator would create a question, as such. It would simply generate a single, random line of WL code that produces "interesting" output of some kind.

I envisage the generator function taking perhaps two parameters. The first would specify the max no of characters in the generated WL code (or else we could see a "one-liner" comprising 100,000 characters of code!). The second would specify the form of output that the generated code would produce, such as a graphic, a manipulate, a 3D plot, or formula. So it might look like this:

genCode = WLGenerator[250, "Formula"]

which might produce an expression, say:

genCode = "Exp[i*Pi] ", which could be evaluated to produce the result -1.

Don't ask me how WLGenerator decides that the above expression is "interesting" - that's part of the challenge!

I suppose one could create a WL Generator function, have it produce a bunch of expressions, tag each of them as interesting or uninteresting and then use that data to build a ML model to try to learn which is which.

POSTED BY: Jonathan Kinlay
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard