Search results for 'whoa'
The curse of strong typing
Read more
...impl Display ) {
println ! ( "{v}" ) ;
}
fn main ( ) {
show ( get_char_or_int ( true ) ) ;
show ( get_char_or_int ( false ) ) ;
}
Shell session $ cargo run --quiet
C
64
Whoa. Whoa whoa whoa, that could be...
Day 1 (Advent of Code 2020)
Read more
...find ( | ( a , b ) | a + b == 2020 )
}
Whoa.
We're still building the whole Vec though - even if we "find" a
pair that sums to 2020 early on.
Correct! Let's fix that...
Implementing "Log in with GitHub"
Read more
...Result < FutileCredentials > > + Send + ' b > > ;
}
What's interesting here is that the returned future is Send , and Unpin
(since it's on the heap), a-
Whoa whoa whoa...
Day 4 (Advent of Code 2020)
Read more
...count ( ) ;
println ! ( "{} passport records were valid" , num_valid ) ;
}
Shell session $ cargo run --quiet
194 passport records were valid
Whoa, we actually got it right the first time!
We always do 😎
Until next...
In the bowels of glibc
Read more
...But what is it? Shell session (gdb) info sym 0x00007ffff7fd20e0
rtld_lock_default_lock_recursive in section .text of /lib64/ld-linux-x86-64.so.2
Whoa. WHOA! It's a function...
Day 2 (Advent of Code 2020)
Read more
...RangeInclusive < usize > ,
}
Whoa!
Does that work because both u8 and RangeInclusive<usize> implement
PartialEq and Debug ?
Yup! And they're not implemented by default for all new structs...
A simple ping library, parsing strings into IPv4 address
Read more
...unwrap ( ) } ;
IcmpSendEcho (
handle ,
dest ,
request_data ,
request_size ,
request_options ,
reply_buffer ,
reply_size ,
timeout ,
)
}
Whoa. Okay, yeah, we're definitely going to need to come back to that. But for now...
Day 11 (Advent of Code 2022)
Read more
...Constant ( c ) => c ,
}
}
}
And then, whoa here we go: Rust code use nom :: {
branch :: alt ,
bytes :: complete :: tag ,
character :: complete as cc ,
character :: complete :: { one_of , space1 } ,
combinator :: { map , value } ,
error...
Why is my Rust build so slow?
Read more
...18.07s (vs 1m11s for 1.57.0)
Whoa. WHOA.
Yeah. It's a pretty bad regression. And it is
known . Apparently Rust 1.58 should improve the situation. Does that mean...
Truly headless draw.io exports
Read more
...1 amos amos 65K Nov 17 11:35 /tmp/elf-file-header.svg
Whoa, that's much larger than draw.io's original svg output!
It is! But it looks great in...
Done scrolling? Go back to the homepage.