Skip to content

Instantly share code, notes, and snippets.

View JarrettBillingsley's full-sized avatar

Jarrett Billingsley JarrettBillingsley

View GitHub Profile
@JarrettBillingsley
JarrettBillingsley / gist:3803064
Created September 29, 2012 03:31
Language sketch
// =====================================================================================================================
// MemPool interface (???)
// "Interfaces" could be fat pointers.. pointer to a "vtbl" and the "this" object.
// Of course if the type is statically known, you don't have to pass the vtbl around.
struct MemPoolMark { ... }
interface MemPool
{
function mark(): MemPoolMark