J
Josh Millard
joshmillard.com · Personal blog · on HN since 2008
Josh Millard builds playful projects, such as Garkov, which generates Garfield strips with Markov chains, and image histogram tricks.
What HN saysHN cites Garkov as a favorite example of Markov-chain text generation and links his histogram-fitting follow-up as a clever trick.
21HN people shared it
13linked it in comments
8stories submitted
199story points
2 years agolast shared
2008people per year2026
Most-shared posts
- 1Garkov — Markoved Garfield Strips9 people · 6 points · first shared 2008 · discussion on HN
- 2Calvin and Markov: Randomly generated C&H comic strips2 people · 19 points · first shared 2015 · 12 comments on HN
- 3Retro histo making an image fit your histogram2 people · first shared 2012
- 4Making a Menger sponge in stained glass1 people · 171 points · first shared 2019 · 29 comments on HN
- 5Painting math on the wall1 people · 2 points · first shared 2016 · discussion on HN
- 6A poem: "Programming Is", by hello1 people · 1 points · first shared 2011 · discussion on HN
- 7Calvin1 people · first shared 2015
- 8Calvin1 people · first shared 2015
- 9Calvin1 people · first shared 2015
- 10Wanna help edit calvin and hobbes transcripts1 people · first shared 2015
- 11Calvin and markov1 people · first shared 2015
What HN people wrote when they linked it
justjonathan · 2020-06-26
One of my favorite examples is Garkov, the auto generation of Garfield strips using Markov chains.
http://joshmillard.com/garkov/
pc2g4d · 2015-07-07
Maybe the language model could use some smoothing? It seems to frequently regurgitate lines from existing comics rather than composing new ones. For example, [1] has "Either mom's cooking dinner, or somebody got sick in the kitchen..." in panel 3, which is almost entirely the 1 June 1986 comic [2] which has "Either mom's cooking dinner, or somebody got sick in the furnace duct."
Cool work nonetheless, and a fun way to re-encounter a favorite.
[1]: http://www.joshmillard.com/markov/calvin/?6570264084521539584
[2]: http://www.gocomics.com/calvinandhobbes/1986/06/01
robinhouston · 2012-03-27
Even though this is five years old, I hadn’t seen it before. It’s a very cute trick. The followup by Josh Millard is even better: http://www.joshmillard.com/2007/10/04/retro-histo-making-an-image-fit-…
npteljes · 2025-04-10
The derivative I also like, and don't see it here is the markov chain garfield - from back when markov chains were the bee's knees in text generation. The generator is fed by existing garfield comic text, and the generated text is superimposed to a template of existing comics. It might take a few refreshes, but I always manage to amuse myself with the absurdity that it spits out.
https://joshmillard.com/garkov/
29athrowaway · 2021-06-09
GPT3 can answer questions, in comparison this model works a little bit better than a markov chain.
http://joshmillard.com/garkov/
Amorymeltzer · 2015-07-07
FWIW you can help out http://www.joshmillard.com/2015/07/06/wanna-help-edit-calvin-and-hobbe…
joshmillard · 2015-07-06
Heya, that's me! I also wrote up some details on the how and why of the whole thing, if you're interested:
http://www.joshmillard.com/2015/07/06/calvin-and-markov/
quotedmycode · 2015-07-06
I like mine, but it's one that has the least text...
http://www.joshmillard.com/markov/calvin/?2159343074602731008
teraflop · 2015-07-06
This is awesome. The first one I got is incredibly sinister: http://www.joshmillard.com/markov/calvin/?7952922445356769280
voltagex_ · 2014-05-18
A script for generating images with self-similar histograms (read the first article!) - http://www.joshmillard.com/2007/10/04/retro-histo-making-an-image-fit-…
adimitrov · 2011-01-09
I'll leave this here, since it's loosely on-topic (of Markov chains:) http://www.joshmillard.com/garkov/ — Garfield strips with MC-generated text instead of the original. I've had countless hours of fun with them.
sublimino · 2019-04-11
Markov Chains can be quite amusing when applied to a corpus of similar texts, and often stunningly human-like. I maintain a list of humourous applications: https://github.com/sublimino/awesome-funny-markov
Some favourites:
- Erowid trip reports and tech recruiter emails - https://twitter.com/erowidrecruiter
- Calvin and Markov - Calvin and Hobbes strips reimagined http://joshmillard.com/markov/calvin/
- Generate your future tweets based on the DNA of your existing messages - http://yes.thatcan.be/my/next/tweet/
- Fake headlines created by smashing up real headlines - https://www.headlinesmasher.com/best/all
- The most confusing subreddit (often on the front page) - https://www.reddit.com/r/subredditsimulator
The original Markov-generated content prank: "I Spent an Interesting Evening Recently with a Grain of Salt" https://web.archive.org/web/20011101013348/http://www.sincity.com/penn…
And of course (un-amusingly!) - Google's PageRank algorithm is built on Markov Chains https://en.wikipedia.org/wiki/PageRank#Damping_factor
n.b. there used to be parodies of Hacker News, but both are down: https://news.ycombniator.com/ and https://lou.wtf/phaker-news
silentbicycle · 2008-07-30
Closer still:
http://www.joshmillard.com/garkov/