New blog: Compiled and Interpreted Languages: Two Ways of Saying Tomato https://tratt.net/laurie/blog/2023/compiled_and_interpreted_languages_two_ways_of_saying_tomato.html
I had been wondering - "if I create my own iterator structure, how do I implement map and all the rest on it?" During this talk it clicked for me why I don't have to.
Also loved the bit at the end between bound and unbound.
A waltz through iterators in #Rust, while discussing how type-driven API designs can help.
https://blog.ammaraskar.com/roku-tv-philips-hues/
A great walkthrough of finding bugs and putting them together to get execution on an embedded device. I especially appreciate this because I have a couple old #Roku at home and now I can consider using them as general purpose Linux boxes.
Another year, another blog post. I'm closing out 2022 by channeling my inner
@fasterthanlime with a deep dive into the basic TFTP protocol and my approach
to parsing packets in Rust. Please enjoy!
https://tuckersiemens.com/posts/parsing-tftp-in-rust/
#rust #rustlang #rustdev #tftp #networking #parsing #nom #blogging
A sad story about User Agent strings.
https://miketaylr.com/posts/2022/12/how-the-IE-11-ua-string-broke-sites-in-firefox.html
Just had a fantastic virtual #LANParty with some high school buddies. #JustinCON 2022 baby, one for the books.
Whoa, I didn't know rustdoc had an (unstable) "scraped examples" feature. #rust
See it in action on the aws-sdk-s3 docs: https://docs.rs/aws-sdk-s3/latest/aws_sdk_s3/error/struct.HeadObjectError.html#method.unhandled
Docs: https://doc.rust-lang.org/nightly/rustdoc/scraped-examples.html
I'm not sure why a container-based build isn't the default recommendation on the dd-wrt or OpenWrt forums. But here's mine:
It's my first container-based build environ. I'm not sure what other folks do, but I'm mounting the source dir in the container (with -v), changing to that dir (with -w), and running the compiler. When that's all automatic via make, it's seamless and easy. So I think I like it.
Cross-compile build environs usually screw up my normal host environ more than I like, and compete with each other, so I'm putting it in a container.
Never heard of anybody using that before. Fortunately, the algorithm for generating balanced ternary basically worked.
Nice ending to #AdventOfCode - I'd seen balanced ternary before, but never had to figure out an algorithm to generate it. Then the complexity got bumped just a little for #BalancedQuinary.
Computer science guy, electrical engineer, US Air Force officer, jogger, likes teaching programming, aka KC0BFV.
Likes programming in: Rust, Python, JavaScript, C
Reluctantly uses: Roku's BrightScript, C++, anything