Tag Archives: c++

Multi-step iterators using coroutines.

I wanted to turn this multi-step iteration function into an iterator: It turns out that it can be done very simply using boost::asio::coroutine: I thought that was kind of neat. It’s not very often I find a practical use of … Continue reading

Aside | Posted on by | Tagged | Leave a comment

Stack-based template metaprogramming in C++ (11)

Many months ago right after G++ 4.7 was released I discovered a nifty syntax for writing metaprograms using a stack language similiar to Forth and Factor. I started writing a small library around it, but got sidetracked and never finished … Continue reading

Posted in Programming | Tagged , , , | Leave a comment

Glyph cache

I needed a fast way to render unicode text, and so EoM is using a glyph cache. The glyph cache stores a subset of unicode character glyphs, and attempts to minimize changes to the set. ASCII text is not “cached,” and so normal english … Continue reading

Posted in Programming | Tagged , , , | 1 Comment