David Wong

Results 393 comments of David Wong

First of all, I love love love it! This is amazing. I'm going to give a demo of noname next week and will use this! Is it possible to easy...

BTW the example compilation is incorrect o.o but I can't reproduce this locally. Perhaps it's because it's on a version that was buggy. A cool thing would be to display...

This is great! I think the `public_output` example is not the same one as the one in `example/`. Also was it a pain to set the private/public inputs for each...

BTW feel free to add a link to your repo on the README here

I'm wondering if it could be that I implement `FromValue` on references on my custom types: ```rust unsafe impl for &$name { fn from_value(value: ocaml::Value) -> Self { let x:...

OK so I isolated the exported Rust function that was crashing (using lldb), and I changed the parameter from `&MyOpaqueType` to `ocaml::Pointer` and it works. I guess I need to...

it's kind of weird because to book actually works with references: https://zshipko.github.io/ocaml-rs/02_type_conversion.html (and it doesn't even have to implement `FromValue`, I'm guessing the last beta version implements it for you...

the examples in the [tests](https://github.com/zshipko/ocaml-rs/blob/v0.22.4/test/src/custom.rs) seem to only use `ocaml::Pointer` as arguments of functions as well

do you know why I was getting this errors with that implementation? ```rust unsafe impl for &$name { fn from_value(value: ocaml::Value) -> Self { let x: ocaml::Pointer = ocaml::FromValue::from_value(value); x.as_ref()...

note that we also import all std libs right now because we have no way of knowing the dependency graph in advance