Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@lukaszcz
Copy link
Collaborator

@lukaszcz lukaszcz commented Sep 2, 2025

  • Renames AVM.Class.Member.Body to AVM.Program
  • Implements compilation of Applib.Program to Anoma.Program, via AVM.Program

@lukaszcz lukaszcz self-assigned this Sep 2, 2025
@lukaszcz lukaszcz marked this pull request as ready for review September 2, 2025 12:26
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements a translation pipeline from Applib to Anoma programs by refactoring the AVM layer to use a dedicated Program type and establishing compilation methods.

  • Renames AVM.Class.Member.Body to AVM.Program throughout the codebase
  • Implements Applib.Program.compile method that translates Applib programs to Anoma programs via AVM
  • Updates Task composition to handle optional messages and multiple consumed objects

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
Applib/Translation.lean New compilation method from Applib to Anoma programs
Applib/Surface/Program.lean Renames toBody method to toAVM to match new naming
Applib/Surface/Member.lean Updates method calls to use toAVM instead of toBody
Applib.lean Adds import for the new Translation module
AVM/Task/Translation.lean Enhances task translation to handle optional messages
AVM/Task.lean Updates Task structure to support optional messages and universe polymorphism
AVM/Program/Translation.lean New AVM program compilation to Anoma programs
AVM/Program.lean Renames Member.Body to Program' and adds Program type alias
AVM/Class/Translation.lean Updates references from Member.Body.tasks to Program.tasks
AVM/Class/Member.lean Updates type signatures to use Program instead of Member.Body
AVM.lean Adds imports for new Program modules

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@janmasrovira janmasrovira merged commit b90a2f3 into main Sep 4, 2025
2 checks passed
@janmasrovira janmasrovira deleted the applib-translation branch September 4, 2025 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants