« first day (2587 days earlier)      last day (903 days later) » 

1:55 PM
@DenysSéguret the first thing you use is until I didn't code it yet xd
my until is very general purpose
my the way you don't parse ip you just take until space and stock the str in a box
 
2:33 PM
Yeah, I stopped parsing the IP because it's useless and expensive
(the comment may be outdated here)
 
well if you box it it's quite expensive too
 
I benchmarked. IP parsing is very slow, so it was much faster to keep the str.
 
2:54 PM
ah you don't use it ?
make sense
but you don't verify that the ip is correct
 
Why would I ?
I also found that text based searches were good enough for IP (in the use cases of Rhit)
 
well for rhit it's not that important
 
 
1 hour later…
4:06 PM
error[E0210]: type parameter `Input` must be covered by another type when it appears before the first local type (`NoContext<Input>`)
  --> src\context.rs:41:6
   |
41 | impl<Input> From<NoContext<Input>> for Input {
   |      ^^^^^ type parameter `Input` must be covered by another type when it appears before the first local type (`NoContext<Input>`)
   |
   = note: implementing a foreign trait is only possible if at least one of the types for which it is implemented is local, and no uncovered type parameters appear before that first local type
this is really a pain in the ass
even the long explanation is hard to understand
really I don't get why I can't do that
and I can't implement into
error[E0119]: conflicting implementations of trait `std::convert::Into<_>` for type `context::NoContext<_>`
  --> src\context.rs:41:1
   |
41 | impl<Input> Into<Input> for NoContext<Input> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: conflicting implementation in crate `core`:
           - impl<T, U> Into<U> for T
             where U: From<T>;
it's just lame
 

« first day (2587 days earlier)      last day (903 days later) »