Incremental kompilation

Open
#4,224 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
compilers

Research direction

Start by reading pyk and the existing kompile flow, including how it produces definition.kore and interacts with the K Frontend. Define the incremental boundaries for unchanged syntax, modules, and syntax sentences before considering an inner parser JSON-RPC interface. Done means a validated design and implementation that avoids unnecessary parsing and compilation while supporting efficient compiled-artifact updates.

Written by the indexing model from the issue text.

Description

outer-parsing pyk

With access to a K outer parser pyk can potentially implement its own, incremental kompilation pipeline that relies on kompile to do inner parsing but ultimately does everything else.

Examples for cases where incrementality can be taken advantage of:

  • if some syntax is not changed do not regenerate the inner parser for it
  • if a module and its syntax is not changed do not kompile it
  • if a syntax sentence and its syntax is not changed do not inner-parse and kompile it
  • ...

An output representation more granular than definition.kore that allows efficiently checking and modifying part of the kompiled artifact is probably needed for performance.

An inner parser JSON RPC interface would make interacting with the K Frontend more convenient and simple.

Dominant language
Python
Stars
591
Forks
163
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from runtimeverification/k

All issues in runtimeverification/k

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.