Hacker News new | ask | show | jobs
by stevepike 4613 days ago
If you're curious, I wrote implementations of the Knuth-Plass line breaking algorithm in ruby [1] and clojure [2]. Nothing you'd want to use in production but it was a fun experiment.

1. https://github.com/scpike/word-wrapping/blob/master/ruby/lib...

2. https://github.com/scpike/word-wrapping/blob/master/clojure/...