Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(stdlib)!: Convert unsafe Wasm functions to operators #1734

Merged
merged 9 commits into from
Apr 6, 2023

Conversation

spotandjake
Copy link
Member

This pr changes the names of some of the Wasm Unsafe Runtime Operations such as WasmI32.add to be operators instead.

Currently Completed is WasmF32 and WasmF64

Breaking: This is breaking because we are chaining the module apis.

This is a Draft because I still have todo WasmI32 and WasmI64.

@spotandjake spotandjake self-assigned this Mar 7, 2023
@spotandjake spotandjake force-pushed the spotandjake-fix-wasm-style branch 2 times, most recently from 44de3b7 to ec0ea2b Compare March 7, 2023 21:48
) {
from WasmI64 use { (>>), (<), (>) }
// TODO(#1736): Remove the formatter ignore when parsing is fixed
//formatter-ignore
Copy link
Member Author

Choose a reason for hiding this comment

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

If #1736 gets patched before this is merged then this should be removed.

@spotandjake spotandjake changed the title feat!: Convert Wasm calls to operators chore!: Convert Wasm calls to operators Mar 7, 2023
@spotandjake spotandjake changed the title chore!: Convert Wasm calls to operators chore(runtime)!: Convert Wasm calls to operators Mar 7, 2023
@spotandjake spotandjake marked this pull request as ready for review March 8, 2023 22:30
compiler/test/input/memoryBase/asserts.gr Outdated Show resolved Hide resolved
package-lock.json Outdated Show resolved Hide resolved
stdlib/rational.gr Outdated Show resolved Hide resolved
stdlib/runtime/atof/lemire.gr Outdated Show resolved Hide resolved
package-lock.json Outdated Show resolved Hide resolved
@ospencer ospencer changed the title chore(runtime)!: Convert Wasm calls to operators feat(stdlib)!: Convert unsafe Wasm functions to operators Apr 6, 2023
Copy link
Member

@ospencer ospencer left a comment

Choose a reason for hiding this comment

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

I know this one was a huge undertaking! Truly excellent work getting this done 🥳

@ospencer ospencer enabled auto-merge April 6, 2023 15:58
@ospencer ospencer added this pull request to the merge queue Apr 6, 2023
Merged via the queue into grain-lang:main with commit 114d17b Apr 6, 2023
av8ta pushed a commit to av8ta/grain that referenced this pull request Apr 11, 2023
…ng#1734)

* feat!: Move `WasmF32` to operators

* feat: Move `WasmF64` to operators

* feat: Move `WasmI64` to operators

* Feat: `WasmI32` to operators

* chore: Update tests and docs

* chore: Undo Global Scope's

* chore: Apply suggestions from code review

* fix: mistake in rebase

* chore: Revert changes to `package-lock`
av8ta pushed a commit to av8ta/grain that referenced this pull request Apr 18, 2023
…ng#1734)

* feat!: Move `WasmF32` to operators

* feat: Move `WasmF64` to operators

* feat: Move `WasmI64` to operators

* Feat: `WasmI32` to operators

* chore: Update tests and docs

* chore: Undo Global Scope's

* chore: Apply suggestions from code review

* fix: mistake in rebase

* chore: Revert changes to `package-lock`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants