Konstantin A. Olkhovskiy
Konstantin A. Olkhovskiy
It's possible to wrap JS class with OCaml one, and it's possible to have some other OCaml class inherit from that base JS class and provide alternative implementation for some...
I'm trying to bind the following TypeScript definition: ```typescript export type ValueCallback = (err: Error, val: T) => void; ``` Naive approach results in this error: ``` File "out.mli", line...
The below snippet causes refmt to say "Unknown error: please file an issue at github.com/facebook/reason": ```reason let foo = () => { switch (whatever) { | Some(_) => [%expr fun...
I've been playing around with Rely and stumbled upon this weird formatting behavior while writing tests: ```reason expect.option( Some("a very very very very very very very very very very long...
I wonder if it's possible to implement a tool to do a static analysis of OCaml program in a similar way to Rust's borrow checker. It seems that merlin has...
I have `ocaml-rs` vendored along with dependencies in `ocaml-lwt-interop`, nothing special there, and it builds just fine when I build it locally. It fails in Github CI though, see [job...
I'm thinking about some sound approach to distribute bindings for `ocaml-rs` as separate libraries. I have a project, [ocaml-lwt-interop](https://github.com/Lupus/ocaml-lwt-interop), which provides some OCaml C stubs, that are wrapped by some...
I'm spawning some tokio task from my `#[ocaml::func]` Rust function, that is called from OCaml. The task itself does not call any OCaml code inside, but when a panic happens...
Maybe I've missed this in the documentation, but I didn't realize that storing `ocaml::Value` somewhere outside of `#[ocaml::func]` will lead to crashes after OCaml GC disposes the value. After adding...
Would be nice of `ocaml::sig` performed some validation on the signatures provided, like: make sure number of constructors or struct fields match, or number of arguments for a function. One...