views:

117

answers:

1

I've been using Dtrace for a while, and as time goes by I've began to wonder what's the programming paradigm of the D language used in Dtrace.

It's not an imperative language, I guess, so that means it's some sort of declarative functional language, but I'm no expert in language taxonomy, so what should the D language officially (or semi-officially) be classified as?

+1  A: 

The D language seems to be a subset of C with added builtins (variables, functions) specific to tracing. It can be compared to awk or YACC programs in structure: it consist of a list of one or more instrumentation points (probes, rules), and each probe is associated with an action.

My 2 cents.

dfa