this post was submitted on 25 Jun 2026
85 points (94.7% liked)

Programmer Humor

32002 readers
869 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS
 
all 7 comments
sorted by: hot top controversial new old
[โ€“] Beanie@programming.dev 11 points 2 days ago (1 children)

god dammit this is actually good ๐Ÿ˜ญ. i literally did semantics of programming languages last term too

[โ€“] davidgro@lemmy.world 5 points 1 day ago (2 children)

Would you be up for explaining it please?

ฮ“ is typically used to denote the context, or the type environment for an expression. It is a mapping from variables to types. for example we could have

ฮ“ = x:A, y:B, z:C

then

ฮ“ |- y: B

is a typing judgment. Means "In the context of ฮ“, y has type B."

Type derivation is a process where you start with an expression and an empty context and then figure out what the type of that expression is by building it up from scratch using typing rules. It's what compilers do to figure out whether your program is correct.