Skip to content

♻️ migrate to new FFI api#413

Merged
hayleigh-dot-dev merged 4 commits intomainfrom
migrate-ffi
Jan 10, 2026
Merged

♻️ migrate to new FFI api#413
hayleigh-dot-dev merged 4 commits intomainfrom
migrate-ffi

Conversation

@yoshi-monster
Copy link
Contributor

Move constructors and instanceof checks that do not use our kind - system to the new official FFI interface.

I didn't migrate field names to the accessor functions yet EXCEPT for built-in types defined in the prelude. I expect them to change as Result is one of the motivations for these changes in the first place, and the list accessors have suspiciously different names from the fields.

We depend on the data representation / field names to send values across the wire, so until we solve that there's not much reason to try to migrate those.

case "autocomplete":
if (config.on_form_populate instanceof Some) {
this.dispatch(config.on_form_autofill[0](state));
if (Option$isSome(config.on_form_autofill)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like this is a typo in the current version?

we do not migrate field names to accessors yet except for built-in types
defined in the prelude.

We depend on the data representation to send values across the wire, so
until we solve that there's not much reason to try to migrate at all.
@hayleigh-dot-dev hayleigh-dot-dev merged commit 519572e into main Jan 10, 2026
1 check passed
@yoshi-monster yoshi-monster deleted the migrate-ffi branch January 10, 2026 12:42
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