[{"data":1,"prerenderedAt":234},["ShallowReactive",2],{"family-c":3,"family-members-c":203,"family-siblings":208},{"id":4,"title":5,"author":6,"body":7,"description":160,"extension":168,"family":169,"features":170,"homepage":177,"logo":178,"meta":179,"name":5,"navigation":180,"note":181,"path":182,"references":183,"relations":178,"seo":198,"status":199,"stem":200,"urls":178,"year":201,"__hash__":202},"families\u002Ffamilies\u002Fc.md","C","Dennis Ritchie (Bell Labs)",{"type":8,"value":9,"toc":159},"minimark",[10,15,19,23,42,46,125,133,137,140,144,147],[11,12,14],"h2",{"id":13},"overview","Overview",[16,17,18],"p",{},"C's family resemblance is a memory model, not a syntax. A C-family program\nthinks in terms of objects with addresses, manual lifetime, and a translation\nunit compiled separately through a preprocessor. Members keep that substrate\nand add layer upon layer above it — which is why they interoperate so easily\nand why their safety stories differ so sharply.",[11,20,22],{"id":21},"distinctive-traits","Distinctive traits",[24,25,26,30,33,36,39],"ul",{},[27,28,29],"li",{},"Pointers are values and arithmetic on them is defined. Addressable memory is\nthe abstraction the language is built on, not a hidden implementation detail.",[27,31,32],{},"Storage duration is explicit. Automatic, static, and allocated lifetimes are\nthe programmer's decision; there is no collector in the base language.",[27,34,35],{},"Value semantics by default. Assignment copies, and references are opt-in via\npointers or (in descendants) reference types.",[27,37,38],{},"The translation unit is the compilation boundary, with a textual preprocessor\nin front of it. Header inclusion and conditional compilation are part of the\nprogramming model, not tooling.",[27,40,41],{},"A minimal runtime: no required garbage collector, no reflection, no runtime\ntype information — which is what makes the family usable for kernels and\nembedded targets.",[11,43,45],{"id":44},"members-and-what-each-one-changed","Members and what each one changed",[47,48,49,65],"table",{},[50,51,52],"thead",{},[53,54,55,59,62],"tr",{},[56,57,58],"th",{},"Language",[56,60,61],{},"Lineage",[56,63,64],{},"What it changed",[66,67,68,83,97,111],"tbody",{},[53,69,70,77,80],{},[71,72,73],"td",{},[74,75,5],"a",{"href":76},"\u002Flanguages\u002Fc",[71,78,79],{},"K&R C (1972), ANSI C89, C99, C11, C17, C23",[71,81,82],{},"— (the reference point)",[53,84,85,91,94],{},[71,86,87],{},[74,88,90],{"href":89},"\u002Flanguages\u002Fcplusplus","C++",[71,92,93],{},"C with classes (1979), standardized 1998",[71,95,96],{},"classes, templates, exceptions, RAII, and references — while keeping C's memory model and value semantics",[53,98,99,105,108],{},[71,100,101],{},[74,102,104],{"href":103},"\u002Flanguages\u002Fd","D",[71,106,107],{},"C++-influenced redesign (2001)",[71,109,110],{},"garbage collection as an option, slices, compile-time function evaluation, and a module system replacing headers",[53,112,113,119,122],{},[71,114,115],{},[74,116,118],{"href":117},"\u002Flanguages\u002Fcyclone","Cyclone",[71,120,121],{},"a dialect of C (2001)",[71,123,124],{},"region-based memory management and type qualifiers for pointer safety, keeping C syntax",[16,126,127,128,132],{},"The shared move is ",[129,130,131],"em",{},"retrofitting safety onto an unsafe substrate",": Cyclone adds\nregions, D adds slices and optional GC, C++ adds RAII and templates. All of them\nstill compile to the same calling convention, which is what makes a C header a\nworking interface between members.",[11,134,136],{"id":135},"status","Status",[16,138,139],{},"Active and foundational. C is the ABI that other languages bind to, and C++ and\nD remain in wide production use; Cyclone is dormant but historically\nsignificant as the safe-dialect experiment.",[11,141,143],{"id":142},"history","History",[16,145,146],{},"Ritchie developed C at Bell Labs around 1972 to rewrite the Unix kernel, based\non Thompson's B and on the typeless-then-typed transition described in his 1993\nretrospective. Kernighan and Ritchie's 1978 book defined the de facto language;\nANSI standardized it in 1989 and ISO adopted it in 1990. Stroustrup began C\nwith classes in 1979 and documented the path to C++ in his HOPL-II paper. D\narrived in 2001, and Cyclone was developed at AT&T and Cornell in the same\nperiod.",[148,149,150],"note",{},[16,151,152,153,155,156,158],{},"Read ",[74,154,90],{"href":89}," for the abstraction route and\n",[74,157,118],{"href":117}," for the safety route; membership means keeping the\npointer-and-lifetime model, not keeping the syntax unsafened.",{"title":160,"searchDepth":161,"depth":161,"links":162},"",2,[163,164,165,166,167],{"id":13,"depth":161,"text":14},{"id":21,"depth":161,"text":22},{"id":44,"depth":161,"text":45},{"id":135,"depth":161,"text":136},{"id":142,"depth":161,"text":143},"md","c",[171,172,173,174,175,176],"explicit-memory-management","value-semantics","pointer-arithmetic","static-typing-with-implicit-conversions","preprocessor","minimal-runtime","https:\u002F\u002Fwww.open-std.org\u002Fjtc1\u002Fsc22\u002Fwg14\u002F",null,{},true,"The family defined by the machine model: values live in memory addressed by pointers, storage is allocated and freed explicitly, and the translation unit plus preprocessor is the compilation contract. Ritchie's C at Bell Labs began it; C++, Objective-C, D, and Cyclone keep that model while adding safety, abstraction, or metaprogramming.","\u002Ffamilies\u002Fc",[184,187,189,192,195],{"url":185,"title":186},"https:\u002F\u002Fweb.archive.org\u002Fweb\u002F2023\u002Fhttps:\u002F\u002Fwww.bell-labs.com\u002Fusr\u002Fdmr\u002Fwww\u002Fchist.html","The Development of the C Language — Dennis M. Ritchie (1993)",{"url":177,"title":188},"ISO\u002FIEC JTC1\u002FSC22\u002FWG14 — C standard committee",{"url":190,"title":191},"https:\u002F\u002Fwww.stroustrup.com\u002Fhopl2.pdf","A History of C++: 1979-1991 — Bjarne Stroustrup (HOPL-II, 1993)",{"url":193,"title":194},"https:\u002F\u002Fdlang.org\u002F","D Programming Language — official site",{"url":196,"title":197},"http:\u002F\u002Fcyclone.thelanguage.org\u002F","Cyclone — safe dialect of C (project site)",{"title":5,"description":160},"active","families\u002Fc",1972,"Nz9fHpWnGyPed2nBsa_41dZ-pm5F145dkD5gaLnqM3w",[204,205,206,207],{"name":5,"path":76,"logo":178,"year":178,"kind":178,"status":178,"note":178,"paradigms":178,"typing":178},{"name":90,"path":89,"logo":178,"year":178,"kind":178,"status":178,"note":178,"paradigms":178,"typing":178},{"name":118,"path":117,"logo":178,"year":178,"kind":178,"status":178,"note":178,"paradigms":178,"typing":178},{"name":104,"path":103,"logo":178,"year":178,"kind":178,"status":178,"note":178,"paradigms":178,"typing":178},[209,212,213,216,219,222,225,228,231],{"name":210,"path":211},"ALGOL","\u002Ffamilies\u002Falgol",{"name":5,"path":182},{"name":214,"path":215},"ECMAScript","\u002Ffamilies\u002Fecmascript",{"name":217,"path":218},"HCL","\u002Ffamilies\u002Fhcl",{"name":220,"path":221},"Lisp","\u002Ffamilies\u002Flisp",{"name":223,"path":224},"ML","\u002Ffamilies\u002Fml",{"name":226,"path":227},"OBJ","\u002Ffamilies\u002Fobj",{"name":229,"path":230},"PL\u002FI","\u002Ffamilies\u002Fpl-i",{"name":232,"path":233},"Smalltalk","\u002Ffamilies\u002Fsmalltalk",1795219071594]