Skip to content

wasm-compatible float32 and float64 arithmetic#40

Merged
sunfishcode merged 1 commit intomasterfrom
float-bits
Sep 16, 2015
Merged

wasm-compatible float32 and float64 arithmetic#40
sunfishcode merged 1 commit intomasterfrom
float-bits

Conversation

@sunfishcode
Copy link
Member

This PR is not yet ready for merging!

This is some exploratory code implementing wasm-compatible float64 arithmetic in OCaml. This is my first ML code and I'm still learning, so please don't be gentle. Also, it doesn't compile yet because I haven't figured out how to use int64 yet. And, it doesn't have tests yet. And nothing is using it yet. And it may be buggy. I'm interested in any and all feedback about the approach, how best to structure the code, coding style, or anything.

I expect to eventually refactor this code to support float32 as well.

@sunfishcode sunfishcode changed the title wasm-compatible float64 arithmetic wasm-compatible float32 and float64 arithmetic Sep 14, 2015
@sunfishcode
Copy link
Member Author

Updated to address review feedback. Lots of changes including using modules and abstract types, and using the new operators in spec code. This still lacks tests.

@sunfishcode
Copy link
Member Author

The functor refactoring is looking like it's going to take me a while, and this is starting to slow progress elsewhere; would you be ok if we deferred the functor refactoring and just checked in this branch as it stands here? The redundancy isn't actually that bad.

Also, while there are no tests here yet, I am planning to write extensive tests for all the code here, and it would actually be more convenient to submit these tests incrementally instead of bundling them all up into a single monolithic patch.

@rossberg
Copy link
Member

On 16 September 2015 at 18:14, Dan Gohman notifications@github.com wrote:

The functor refactoring is looking like it's going to take me a while, and
this is starting to slow progress elsewhere; would you be ok if we deferred
the functor refactoring and just checked in this branch as it stands here?
The redundancy isn't actually that bad.

Also, while there are no tests here yet, I am planning to write extensive
tests for all the code here, and it would actually be more convenient to
submit these tests incrementally instead of bundling them all up into a
single monolithic patch.

Sure. I'm also happy to do the refactoring after you land this version.

@sunfishcode
Copy link
Member Author

Ok, great. I'll merge this now and we can continue to iterate on this code in tree.

sunfishcode added a commit that referenced this pull request Sep 16, 2015
wasm-compatible float32 and float64 arithmetic
@sunfishcode sunfishcode merged commit 9af4d9a into master Sep 16, 2015
@sunfishcode sunfishcode deleted the float-bits branch September 17, 2015 15:49
littledan pushed a commit to littledan/spec that referenced this pull request Mar 4, 2018
dhil pushed a commit to dhil/webassembly-spec that referenced this pull request Mar 2, 2023
backes pushed a commit to backes/spec that referenced this pull request Jul 12, 2023
Separate simd tests to a separate file
dhil pushed a commit to dhil/webassembly-spec that referenced this pull request Oct 3, 2023
Additional conversion instructions
CharlieTap pushed a commit to CharlieTap/spec that referenced this pull request Sep 25, 2025
stevenfontanella pushed a commit to stevenfontanella/spec that referenced this pull request Nov 12, 2025
…ebAssembly#40)

I guess the simd repo updated its branch name but none of the
others.
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