Daniel Keep

Results 27 comments of Daniel Keep
trafficstars

Given that `cargo install` means we're starting to get more actual _binaries_ on `crates.io`, this should be even _more_ useful.

I implemented a `PositionRead` wrapper type that builds a table for mapping byte offsets to line:column positions transparently, then added some extra methods to `Reader` for doing the lookup. That...

`test_multiline_pos` in `tests/unit_tests.rs` was where I more or less threw up my hands. Before the second event, the `Reader` reports a buffer position of `10`, which puts it after the...

The issue with piecemeal forwarding of methods is that you're going to run out of recursion space _really fast._ I actually did something similar-sounding with https://github.com/DanielKeep/rust-numeric-float. In particular, see [`src/macros/std_impls.rs`](https://github.com/DanielKeep/rust-numeric-float/blob/master/src/macros/std_impls.rs)...

Seems like a good idea for the import/export section. One thing I'm a little leery about, however, is that I've started getting "this will be a hard error in future"...

Unfortunately, you can't. The problem is that the macro uses traits to dispatch things like `Display` to the individual error cases. These traits often have to be implemented on non-local...

I'll leave this open as a reminder that this could _theoretically_ be improved. :)

It is _technically_ doable, but horrible in every respect to the point that I'm not sure it'd be worth it. There are two approaches: 1. Parse the top-level item, filter...

To be even more muchly explicit, I used these two archives: - https://static.rust-lang.org/dist/2016-02-13/rust-nightly-i686-pc-windows-gnu.msi - https://static.rust-lang.org/dist/2016-02-13/rust-std-nightly-x86_64-pc-windows-msvc.tar.gz

This isn't a problem with Windows: _I_ build it on Windows. The only thing I can think of is that you're using an incompatible version of Python. I'm using Python...