David Cole

Results 11 comments of David Cole

Cool! I'm glad it's faster than the PHP implementation (haha). I wonder if there's anything we could speed up (I assume a C version would be faster, albeit more of...

> Which reminds me I should document how I build and load PHP rust extensions inside Docker.Should have a look and see if there's any tooling we should build to...

@vodik Just for context around the stub builder, the `#[php_module]` macro exports an additional C function from the extension, `ext_php_rs_describe_module`, which returns a struct containing information about the extension. The...

You can use `Binary` as an argument for binary data. Internally it is represented (and dereferences to) a `Vec`. See here for more: https://davidcole1340.github.io/ext-php-rs/types/binary.html

Seems there is more work to be done regarding extending PHP classes when having a Rust struct backing the new class. In the meantime for exceptions, can use the following...

Yeah, the macro crate uses a global state (which is unrecommended and actually UB by the compiler). I ran into issues with this when using `rust-analyzer` (see #99), so I...

You can fork the repository and work on it there if you like. I'll still need to work out how the language structure will work.

Not 100% sure what you mean about converting all keys to constants, could you show an example? Since you can set a permission via `$permission->manage_channels = true` ideally you don't...

No reason -- I just haven't had time to do it. PRs are greatly appreciated if you are working on it! Some references if you would like to have a...