Skip to content

Added separate class + function for (only) wasm module validation#1250

Merged
andreaTP merged 1 commit intodylibso:mainfrom
jeff-schram:add_separate_validate_option_to_wasm-tools_module
Mar 24, 2026
Merged

Added separate class + function for (only) wasm module validation#1250
andreaTP merged 1 commit intodylibso:mainfrom
jeff-schram:add_separate_validate_option_to_wasm-tools_module

Conversation

@jeff-schram
Copy link
Copy Markdown
Contributor

@jeff-schram jeff-schram commented Mar 23, 2026

My use case requires only validation of a wasm module, hence the proposal for creating a class + function that does just that.

@andreaTP
Copy link
Copy Markdown
Collaborator

Hey @jeff-schram ! Happy to see you around!

I'm on the phone now, but looks a perfectly legit improvement, will review tomorrow 👍

@jeff-schram
Copy link
Copy Markdown
Contributor Author

Hey @andreaTP, there's no rush, so take your time.

BTW This morning I also set out to reproduce the issue I had with and Exception being thrown when running a module with exception proposal opcodes, but apparently that already got fixed with 0.7.3, so the next time we meet the first round at the free after party is on me ;)

@andreaTP
Copy link
Copy Markdown
Collaborator

Quick check, most of the fixes in 1.7.3 are in the interpreter. Use at least the runtime compiler for maximum performance, but maybe you are emitting very, very small WASM files (which would be a great thing, though) where execution is not dominating.

I'm in for the after-party!

@jeff-schram
Copy link
Copy Markdown
Contributor Author

Most likely the interpreter. I have no configuration for Chicory at all and every instance is only used once. The use case is unit tests, so (very) small modules with less than ten (exported) functions and each of them is only called once.

Copy link
Copy Markdown
Collaborator

@andreaTP andreaTP 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 a lot for the improvement @jeff-schram !

@andreaTP andreaTP merged commit 5fa487f into dylibso:main Mar 24, 2026
25 checks passed
@andreaTP
Copy link
Copy Markdown
Collaborator

@jeff-schram those changes are available in the 1.7.5 release, have fun!

@jeff-schram
Copy link
Copy Markdown
Contributor Author

@andreaTP Just wired it into my project :). To quote the great Eric Theodore Cartman: "sweeeeet". I will create a (draft) PR for the binaryen addition after Easter.

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.

2 participants