Skip to content

Conversation

@dolio
Copy link
Contributor

@dolio dolio commented Dec 16, 2025

This adds support for 16-bit integers and 32-bit integers and floats to the DLL based FFI. The unison analogues used are the 64-bit versions of each, and they are down/up converted at the boundary with C.

I added test cases for each to the transcript, so we should be testing all the FFI types now (except void, which isn't

@dolio dolio requested review from aryairani and pchiusano December 16, 2025 21:16
@aryairani
Copy link
Contributor

agreed, void isn't; joking but serious

Copy link
Member

@pchiusano pchiusano left a comment

Choose a reason for hiding this comment

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

Nice!!

Though I can't tell if CI has actually passed yet.

@aryairani
Copy link
Contributor

Nice!!

Though I can't tell if CI has actually passed yet.

Not yet

@aryairani
Copy link
Contributor

I'm not sure what's going on with the runtime tests. Doesn't seem related to FFI but still?

@dolio
Copy link
Contributor Author

dolio commented Dec 17, 2025

The tests are failing because it's getting the wrong kind of error. It's expecting NameMismatch but getting HandshakeFailure. Or something like that.

I don't understand the test well enough to know how this could possibly be related to what I changed, though. But I reran one of these in another PR and it didn't seem to fail.

Maybe @stew or @ceedubs has a better idea?

Edit: actually, if I run it locally on this and a different branch, both seem to fail. So I think it's unrelated to this PR. Is it just some transient problem with example.com?

@dolio
Copy link
Contributor Author

dolio commented Dec 18, 2025

I'm not sure what's happening now. It can't lock the codebase?

@aryairani
Copy link
Contributor

@dolio I cleared the cache entries, which no one should ever have to do, and then re-ran it, and that thankfully worked

image image image

@aryairani aryairani merged commit 722b464 into trunk Dec 19, 2025
83 of 87 checks passed
@aryairani aryairani deleted the topic/ffi-types branch December 19, 2025 16:54
@aryairani
Copy link
Contributor

Somehow it cached a locked file? I don't get it.

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.

4 participants