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

Skip to content

Conversation

@lukaszcz
Copy link
Collaborator

@lukaszcz lukaszcz commented Aug 8, 2025

  • Adds Messages which are translated to Resources.
  • Adds Tasks which are intermediate data structures that comprise of: 1. ids of objects to fetch, 2. a sent message, 3. function creating actions from fetched objects. Translating AVM message sends to Transactions first generates Tasks as an intermediate step. Tasks enable modularity of the translation – they are at the right level of abstraction to compose translations of different message sends, enabling nested method calls and subobjects.
  • Removes Ecosystems, Functions and Intents (to be re-added in future PRs).
  • Adapts the translation to generate Tasks.
  • Implements composition of Tasks and generation of Anoma Programs from Tasks.
  • Removes the FixedKudos app.
  • Adapts Applib and the remaining Apps. This version restricts method bodies to create one object - updated self. General solution needs a systematic way to deal with object id update/generation - left to future PRs.

@lukaszcz lukaszcz self-assigned this Aug 8, 2025
@lukaszcz lukaszcz changed the title Simple programs and messages Tasks and messages Aug 11, 2025
@lukaszcz lukaszcz mentioned this pull request Aug 21, 2025
@lukaszcz lukaszcz marked this pull request as ready for review August 25, 2025 09:41
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 introduces a new task-based architecture to AVM by replacing the existing model with Messages and Tasks. The major changes include adding Messages as communication primitives that translate to resources and implementing Tasks as intermediate data structures for modular translation of message sends.

  • Introduces Messages and Tasks as core abstractions for AVM message passing
  • Removes Ecosystems, Functions, and Intents
  • Adapts existing Apps and translation logic to work with the new Task-based system

Reviewed Changes

Copilot reviewed 38 out of 38 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
AVM/Task.lean Implements the Task data structure with parameters, messages, and actions
AVM/Message.lean Defines Message structure for object-to-object communication
AVM/Class/Translation.lean Updates class translation to generate Tasks instead of direct transactions
Apps/*.lean Adapts existing apps to use the new Class-based structure without Ecosystems
Prelude/HList.lean Adds heterogeneous list support for Task parameter handling

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

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@lukaszcz lukaszcz requested a review from janmasrovira August 26, 2025 08:33
@janmasrovira janmasrovira merged commit cc73fe5 into main Aug 26, 2025
2 checks passed
@janmasrovira janmasrovira deleted the simple-programs branch August 26, 2025 09:09
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