Skip to content

Instantly share code, notes, and snippets.

View baharev's full-sized avatar

Ali Baharev baharev

View GitHub Profile
@baharev
baharev / Main.hs
Last active August 29, 2015 14:23 — forked from paulkoerbitz/Main.hs
data Lit = Lit Int
data Add l r = Add l r
class Eval x where
eval :: x -> Int
instance Eval Lit where
eval (Lit x) = x
instance (Eval l, Eval r) => Eval (Add l r) where
@baharev
baharev / O2
Created October 20, 2013 13:20
.file "main.cpp"
.text
.p2align 4,,15
.type _ZL3addRKiS0_.isra.0, @function
_ZL3addRKiS0_.isra.0:
.LFB3:
.cfi_startproc
leal (%rdi,%rsi), %eax
ret
.cfi_endproc
@baharev
baharev / Os
Created October 20, 2013 13:15
.file "main.cpp"
.text
.type _ZL3addRKiS0_.isra.0, @function
_ZL3addRKiS0_.isra.0:
.LFB3:
.cfi_startproc
leal (%rdi,%rsi), %eax
ret
.cfi_endproc
.LFE3: