Skip to content

feat: update Miden VM in client#913

Merged
tomyrd merged 2 commits intonextfrom
tomyrd-update-miden-vm
May 22, 2025
Merged

feat: update Miden VM in client#913
tomyrd merged 2 commits intonextfrom
tomyrd-update-miden-vm

Conversation

@tomyrd
Copy link
Contributor

@tomyrd tomyrd commented May 19, 2025

This PR brings the updates from 0xMiden/miden-base#1353 to the client.

One of the main changes is the introduction of the SourceManager for the executor. Right now we are just using the default implementation, but ideally we would use the source manager from the assembler used to compile code. The main problem with this is that generally we compile code with freshly instantiated assemblers each time (e.g. for account/note/transaction code) and we mostly don't have access to each one.

We should look to refactor miden-base and miden-client to allow to share assemblers at every stage so that the used SourceManager can contain all the debug information.

@tomyrd tomyrd added no changelog This PR does not require an entry in the `CHANGELOG.md` file no docs This PR does not require an update to documentation files bypass-sdk-version-bump This PR does not require bump to web-client package.json version labels May 19, 2025
@tomyrd tomyrd force-pushed the tomyrd-update-miden-vm branch 2 times, most recently from eb39a11 to c0b154a Compare May 20, 2025 12:45
@SantiagoPittella
Copy link
Collaborator

Should we serialize the SourceManager and store it as part of the account in the DB?

@tomyrd tomyrd force-pushed the tomyrd-update-miden-vm branch from c0b154a to 96f853e Compare May 20, 2025 14:30
Copy link
Collaborator

@igamigo igamigo left a comment

Choose a reason for hiding this comment

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

LGTM, thanks! Could you add an issue to track the source manager work?

@tomyrd tomyrd force-pushed the tomyrd-update-miden-vm branch from 057ca9d to d617a23 Compare May 21, 2025 20:40
@tomyrd tomyrd merged commit 870119f into next May 22, 2025
21 checks passed
@tomyrd tomyrd deleted the tomyrd-update-miden-vm branch May 22, 2025 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bypass-sdk-version-bump This PR does not require bump to web-client package.json version no changelog This PR does not require an entry in the `CHANGELOG.md` file no docs This PR does not require an update to documentation files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants