Skip to content

Easier prototyping of code #748

Open
@tanyongkiam

Description

@tanyongkiam

This issue is about speeding up prototyping of code that is (to be) verified using the translator and/or CF.

Currently, the process I used is roughly:

  1. write HOL definitions (to be translated)
  2. write CakeML code (to be verified by CF)
  3. do the standard boilerplate to extract a full program
  4. compile in the logic

Now, to optimize the resulting code, one does:

  1. Go back to Step 1 and/or 2, make changes, repeat.

Overall, this process is rather tedious because one has to wait for compilation in the logic for each prototype.

One way to speed this process is to use the binary compiler. However, this requires concrete syntax.

It would be nice to provide a facility/library so that Step 1-3 above can easily be made to dump the full program in concrete syntax using e.g.: astPP (https://github.com/CakeML/cakeml/blob/master/semantics/astPP.sml)

Metadata

Metadata

Assignees

No one assigned

    Labels

    dev experienceMakes tasks developing cakeml itself easierhigh effortlow effortMay still assume familiarityuser experienceTime needed to perform tasks not related to compiler development

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions