Peter Goodspeed-Niklaus

Results 32 issues of Peter Goodspeed-Niklaus

[Running example on Rust Playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=5bb594ff7de5bf3b24520eb131930511). Note: the example above uses two external libraries. This adds some complexity in the event that you want to avoid `cargo` for some reason. ##...

Given the following library code: ```rust extern crate skiplist; use skiplist::SkipList; pub const TWENTY_SEVENTEEN: usize = 2017; pub const FIFTY_MILLION: usize = 50_000_000; type List = Vec; pub struct Spinner...

If you're doing a bunch of bit-twiddling, it's tedious to append `:09b_4` to every expression. Better to do `output :09b_4` and have it automatically apply to every subsequent expression unless...

It should be possible for us to parse evaluation type metadata in parallel with the expression itself and use that instead of a CLI switch. This will improve the usability...

Use case: ```sh $ calc "load $history_path; history" [0]: 1+1 2 [1]: 3*pi**2 29.608813203268074 $ calc "load $history_path; @ + 1; save $history_path" 30.608813203268074 ```

The parser should be able to evaluate commands like `help`, `help FOO`, `exit`, etc. `eval_and_print` should be able to delegate to appropriate command handlers in that case. Minimal commands necessary...

Add arbitrary precision integer support. - `bigint`: signed arbitrary-precision integer operations building on the [`num_bigint` crate](https://crates.io/crates/num_bigint)

We should allow both fixed and arbitrary precision rational support. - `rat64`: signed 64-bit rational operations building on the [`num_rational` crate](https://crates.io/crates/num_rational) - `bigrat`: signed arbitrary-precision rational operations building on the...

Allow arbitrary fixed-position decimal operations using the [`bigdecimal` crate](https://crates.io/crates/bigdecimal)`.

I'd accidentally written an [incorrect grammar](https://github.com/coriolinus/adventofcode-2020/blob/7369d05e0941b1dad215f4ff0105695b4e1e8e87/day19/src/parser.lalrpop). The problem is the trailing `.` on [this line](https://github.com/coriolinus/adventofcode-2020/blob/7369d05e0941b1dad215f4ff0105695b4e1e8e87/day19/src/parser.lalrpop#L47). LALRPOP did not flag this grammar as incorrect, but just pasted the action, including the...