hackworthltd / primer

A pedagogical functional programming language.
GNU Affero General Public License v3.0
13 stars 1 forks source link

[Primer] Program synthesis #131

Open dhess opened 3 years ago

dhess commented 3 years ago

Edwin Brady has some sort of Idris program synthesizer. I'm not sure it's public yet, but here's the output from a session where he asked it to synthesize append on lists:

https://gist.github.com/edwinb/9b5dfda2ddf402133ab5d2ce47e85f3e

There's also Barliman:

https://www.youtube.com/watch?v=er_lLvkklsk

Ed Kmett was working on guanxi and coda, but those seem to be stalled:

https://github.com/ekmett/guanxi https://github.com/ekmett/coda

brprice commented 3 years ago

Some other similar projects:

justdoit mentions the following similar tools:


Looking at that append example it strikes me that linear types would help the search out massively (or even just a bias in the search engine to use all the input data preferentially)

Also, as Drew mentioned in a meeting, test cases would help filter the results!

dhess commented 3 years ago

I think this should be our 3rd (and final?) prototype project, before we move on to productizing Primer.

dhess commented 2 years ago

This ended up being several steps too far for our initial version of Primer, so I'm marking it as a long-term goal. I'll keep it open, however.