Magnus
Magnus
@turion @SeokminHong @neosimsim Maybe you can take a look into this PR? Note that I will not be very responsive the next two weeks.
@SeokminHong I added your tests as-is as a simple compile tests. Do you think that's ok for now? I think we might hit one-or-another issue some time down the road...
> The solution for Decoder seems to be that every declared lifetime in the struct must be the Decoder lifetime. So that would mean `'decoder_lifetime : 'b`? for a type...
@SeokminHong That sounds reasonable. I think we should use that approach. @turion what do you think? @neosimsim this would also resolve #470, as lifetimes are only generated if needed.
@turion, @SeokminHong I pulled in your prior work/ideas into https://github.com/rusterlium/rustler/pull/483. I added both of you as `Co-authored-by` to the initial commit, are you ok with that? I want to give...
Using `println!` repeatedly is a costly operation, as a lock has to be acquired on each invocation. By acquiring the lock only once, this can possibly be worked around. The...
I can trigger it reliably with https://github.com/evnu/rustler/commit/6d1ce19271193806f2a2270482c0e5eadbfee17c if I run it through rust-gdb and an ERTS Debug VM. When running the example directly with rust 1.40 and alacritty, the panic...
I added `env_logger` to the test with https://github.com/evnu/rustler/commit/ec6427d6ee1bf09263cd0c8bec7ba2e0a9430dd2. I can no longer reproduce the panic with gdb: ``` RUST_LOG=info rust-gdb --args bash /home/evnu/tools/otp/bin/cerl -kernel shell_history enabled -pa $(find /usr/lib/elixir/lib/*/ebin) -elixir...
I tried to get some more info using `lldb`. While I wasn't able to break at `rust_panic`, I got some more info on the specific error. Maybe this can help...
I [wrote a small helper](https://gist.github.com/evnu/f1da2ae067423bbe760a28936deee716) to find all documented NIF functions. The escript allows filtering by version prefix.