Michael Färber
Michael Färber
A Rust program that does the task I described is here: ~~~ rust use std::fs::File; use std::io::{BufRead, BufReader}; fn main() { let file = File::open("test8GB").unwrap(); let reader = BufReader::new(file); let...
To generate test data, I wrote the following program: ~~~ rust fn main() { let mut str = String::from(""); loop { str.push('a'); println!("{}", str); } } ~~~ You can run...
By the way, I know that `fold` is overkill for the application of counting lines (in particular, because `|acc, x| acc + 1` does not use `x`). However, in my...
Hello @Marwes! Thank you for your work on generalizing the redis-rs code. I am however still a bit puzzled as to how to implement this functionality in my own program...
Thanks, that makes more sense!
I would also appreciate this behaviour.
Thanks a lot for your contribution! Would you mind adding some tests for your new filters to `jaq-std/tests/std.rs`?
I found a difference between your implementation and jq's one: `until(.; (1, 2))` with input `null` yields `1 2` with jq's builtin `until`, whereas with your implementation of `until`, it...
Thanks for your tests, by the way. Just to be clear: If you find a nice (read: jq-compliant and performant) way to implement `until`, then I'll be happy to merge...
Thanks a lot! I felt inspired by your effort and implemented `until` in 9cda5b086507014d5d48074749d156bda71400f5 as core filter --- it turned out that this was just a slight generalisation of the...