Skip to content

Dynamically Generating PNGs with IP Addresses in Them

tuckersiemens.com
4 pointsnfrmatk2 comments
On HN

Comments

This article looks a lot like "this thing here can be done in 10 lines of easily understandable php, or you can read ten pages of text to see how to do it in rust"

In truth, that's exactly what it is. My point in writing this wasn't to say "Ooh, look at Rust being so much better". The original PHP is wonderful and there is definitely something lost in a Rust translation. Other things gained as well. ¯\_(ツ)_/¯

This blog post is just a personal journey winding through the thought process it took to replicate that PHP in Rust, something I did because I thought I might learn something.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.