[{"data":1,"prerenderedAt":230},["ShallowReactive",2],{"generation-1gl":3,"generation-members-1gl":216,"generation-siblings":217},{"id":4,"title":5,"author":6,"body":7,"description":181,"extension":191,"features":192,"generation":198,"homepage":6,"logo":6,"meta":199,"name":5,"navigation":200,"note":201,"path":202,"references":203,"seo":211,"status":212,"stem":213,"urls":6,"year":214,"__hash__":215},"generations\u002Fgenerations\u002F1gl.md","First-generation language",null,{"type":8,"value":9,"toc":180},"minimark",[10,15,41,45,102,106,113,117,125,133,144,148,160],[11,12,14],"h2",{"id":13},"overview","Overview",[16,17,18,19,23,24,27,28,35,36,40],"p",{},"A first-generation language is the numeric ",[20,21,22],"strong",{},"machine instruction encoding"," of\none processor, entered without a ",[20,25,26],{},"translator",". ",[29,30,34],"a",{"href":31,"rel":32},"https:\u002F\u002Fwww.rogerclarke.com\u002FSOS\u002FSwareGenns.html",[33],"nofollow","Clarke's 1991\nmodel"," places it at the bottom\nof the ladder: the programmer expresses the solution \"in the machine's terms\",\nand the highest level of machine activity is the computation itself — there is no\ntranslation step at all. Its successor, ",[29,37,39],{"href":38},"\u002Fgenerations\u002F2gl","second-generation\nlanguage",", inserts exactly one: the assembler.",[11,42,44],{"id":43},"defining-characteristics","Defining characteristics",[46,47,48,64,70,76,96],"ul",{},[49,50,51,54,55,59,60,63],"li",{},[20,52,53],{},"No layer between program and machine."," A source file ",[56,57,58],"em",{},"is"," the\n",[20,61,62],{},"directly executable"," bit pattern; no assembler, compiler, or interpreter\nstands in the way. Early machines took these patterns through front-panel\nswitches or paper tape rather than from a text file.",[49,65,66,69],{},[20,67,68],{},"Encoding is numeric."," Instructions appear as binary, or octal\u002Fhexadecimal\nshorthand for human convenience. The vocabulary is the instruction set and\nnothing else: there are no names for locations, no expressions, and no loops\nbeyond branch instructions.",[49,71,72,75],{},[20,73,74],{},"Hardware-specific by construction."," The notation is defined by one\nprocessor's instruction set, so portability is not merely poor — it is\nundefined. A program for one machine is meaningless on another.",[49,77,78,81,82,85,86,91,92,95],{},[20,79,80],{},"It demands constant attention to the irrelevant."," Perlis's definition of\n\"low level\" is not positional: ",[56,83,84],{},"\"A programming language is low level when its\nprograms require attention to the irrelevant\""," (",[29,87,90],{"href":88,"rel":89},"https:\u002F\u002Fwww.cs.yale.edu\u002Fhomes\u002Fperlis-alan\u002Fquotes.html",[33],"epigram 8","\nin ",[56,93,94],{},"Epigrams in Programming","). Here the irrelevant is almost everything —\nbinary encoding, register assignment, address arithmetic, instruction\nscheduling — none of which is part of the problem being solved but all of\nwhich the program cannot omit.",[49,97,98,101],{},[20,99,100],{},"One-to-one with machine activity."," Every encoded instruction corresponds to\na single operation the hardware performs, which is what separates this tier\nfrom every later one.",[11,103,105],{"id":104},"status","Status",[16,107,108,109,112],{},"Historical as a way of writing programs, universal before assemblers and still\nreachable — modern compilers emit machine code, and disassemblers read it — but\nnobody authors applications in it. The tier exists today as a ",[56,110,111],{},"target"," format\nrather than a notation.",[11,114,116],{"id":115},"naming-and-retroactivity","Naming and retroactivity",[16,118,119,120,124],{},"The term is back-formed. \"Third generation\" entered use first, in the\nmid-1960s, and machine code and assembly were labelled first and second\ngeneration only afterward, to fill out the ladder below it. Clarke records the\nconvention as distinguishing machine language from \"in succession, assembler and\nprocedural languages\" — a retrospective ordering of things that already existed,\nnot a design program. The point is argued at length in\n",[29,121,123],{"href":31,"rel":122},[33],"Clarke's paper",", which treats\nthe whole ladder as a set of levels of abstraction from the hardware rather than\nas a historical sequence.",[11,126,128,129,132],{"id":127},"why-this-tier-is-the-reference-low-level","Why this tier is the ",[56,130,131],{},"reference"," low level",[16,134,135,139,140,143],{},[29,136,138],{"href":88,"rel":137},[33],"Perlis's criterion"," is\nworth using as the yardstick for the whole ladder, because it survives the\nobjection that the generations are a marketing artifact. First-generation code is\nnot low level because a diagram puts it at the left edge — it is low level\nbecause a correct program cannot be written without deciding things that the\nproblem does not mention. Every later tier is best read as removing one named\nclass of that ",[56,141,142],{},"irrelevant"," attention: assembly removes instruction encoding, the\nthird generation removes instruction selection and storage layout. That framing\nalso explains why the ladder stalls at the top: a tier only earns its number by\ndeleting a specific kind of irrelevant work, and once nothing irrelevant is left\nto delete, adding a generation number adds a word rather than a capability.",[11,145,147],{"id":146},"a-note-on-the-date","A note on the date",[16,149,150,151,155,156,159],{},"The ",[152,153,154],"code",{},"year"," recorded here is ",[20,157,158],{},"1943",", and it should be read as an era marker\nrather than a first-appearance date. Machine code has no single author, no\nrelease, and no first program: it is whatever encoding a given processor accepts,\nand processors of the 1940s were largely programmed by reconfiguring them rather\nthan by loading a stored program. 1943 is therefore an anchor near the start of\nthe stored-program era, not a sourced claim about when first-generation code was\nfirst written.",[16,161,162,163,167,168,171,172,175,176,179],{},"No sharper date exists on the same evidentiary footing as the rest of this page.\n",[29,164,166],{"href":31,"rel":165},[33],"Clarke"," dates the ",[56,169,170],{},"ladder",",\nnot its bottom rung — he records that the 1GL and 2GL labels were back-formed\nafter \"third generation\" entered use in the mid-1960s — so the strongest\ndefensible statement is that machine code predates every other tier and has no\ndocumented birthday. Treat the field as approximate. Unlike this page's\nneighbors, it does not mark a coining: ",[152,173,174],{},"4gl","'s 1981 is the year Martin published\nthe term, and ",[152,177,178],{},"5gl","'s is the year the Japanese project launched.",{"title":181,"searchDepth":182,"depth":182,"links":183},"",2,[184,185,186,187,188,190],{"id":13,"depth":182,"text":14},{"id":43,"depth":182,"text":44},{"id":104,"depth":182,"text":105},{"id":115,"depth":182,"text":116},{"id":127,"depth":182,"text":189},"Why this tier is the reference low level",{"id":146,"depth":182,"text":147},"md",[193,194,195,196,197],"machine-instruction-encoding","no-translator","hardware-specific","directly-executable","attention-to-irrelevant-detail","1gl",{},true,"The instruction set of a particular processor written in its own numeric encoding: no translator stands between the program and the machine, and nothing in the notation survives a change of hardware.","\u002Fgenerations\u002F1gl",[204,207,209],{"url":205,"title":206},"https:\u002F\u002Farchive.org\u002Fdetails\u002Fcomputerscienceo0000broo_e5b8","Computer Science: An Overview (11th ed.) — J. Glenn Brookshear, ch. on levels of abstraction",{"url":31,"title":208},"A Contingency Approach to the Application Software Generations — Roger Clarke (1991)",{"url":88,"title":210},"Epigrams in Programming — Alan J. Perlis (ACM SIGPLAN Notices, September 1982), epigram 8",{"title":5,"description":181},"historical","generations\u002F1gl",1943,"ZFFSb-LACSfRkNySiBzn0InTLIsJ2Xev6Rx6aKPQcDo",[],[218,219,221,224,227],{"name":5,"path":202},{"name":220,"path":38},"Second-generation language",{"name":222,"path":223},"Third-generation language","\u002Fgenerations\u002F3gl",{"name":225,"path":226},"Fourth-generation language","\u002Fgenerations\u002F4gl",{"name":228,"path":229},"Fifth-generation language","\u002Fgenerations\u002F5gl",1795219071720]