Skip to content

Conversation

@rbino
Copy link
Owner

@rbino rbino commented Aug 9, 2023

Reduce some of the mechanical noise of argument conversion and make parameter types more evident

rbino added 6 commits August 5, 2023 23:37
Check if a passed type is a resource created with the Resource generic function
Make it more clear than the type refers to the type of a single item
Allow wrapping an (almost) arbitrary function with a NIF wrapper that exposes
the interface that the Erlang runtime expects. This allows to remove some
boilerplate and makes the function interfaces clearer.
Have I already mentioned how much I love comptime?
Remove some more boilerplate by moving setter generation in batch.zig and making
it generic over the item type.
Also generate submit_fn generic over operation using comptime
@rbino rbino force-pushed the refactoring/nif-wrapper branch from 2867276 to 85acb28 Compare August 9, 2023 21:28
@rbino rbino merged commit bf5424a into main Aug 9, 2023
@rbino rbino deleted the refactoring/nif-wrapper branch August 10, 2023 15:04
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