4 ms·
Python is not unique nor innovative in that respect. Even FORTRAN and COBOL programs from the early days had very strict rules about indentation and blocks. T
by cratermoon 5y ago
Python is not unique nor innovative in that respect. Even FORTRAN and COBOL programs from the early days had very strict rules about indentation and blocks.
The thing is, there's no reason we have to store the code like text. Even the punch card got this right: the program wasn't stored as text, it was stored as physical holes in paper. A very experience programmer could often look at a card with just the holes and have a rough idea what it encoded, provided they knew if it was EBCDIC or ASCII or whatever, but the computer didn't care. The printed representation across the top line of the card was just that: a representation.
- thaumasiotes 5y ago> Even the punch card got this right: the program wasn't stored as text, it was stored as physical holes in paper. We still do that, storing executable programs as executable binary rather than text. What else could you do?
- cratermoon 5y agoWe store them as serialized text. We could store them as nodes in an AST; we could store them as OLE/CFBF structures like older versions of Microsoft Word, or do what Ted Nelson suggested decades ago: T. H. Nelson, “Complex information processing: a file structure for the complex, the changing and the indeterminate,” in Proceedings of the 1965 20th national conference, New York, NY, USA, Aug. 1965, pp. 84–100. doi: 10.1145/800197.806036.
- thaumasiotes 5y agoWe do not store executables as serialized text, unless they are meant to be executed by an interpreter.
- dotancohen 5y agoIn the context of this thread, where we are discussing Git as a medium for storing the form of the programs in a format that is meant to be read and maintained by humans, we do store the programs in text.
- thaumasiotes 5y agoNo, in the context of this thread we are storing programs as punch cards, which are not meant to be read or maintained by humans. They are the executable form of the software, that's all.
- cratermoon 5y agoNo, punch cards are not the binary. Punch cards contain source which is compiled.
- dotancohen 5y agoI didn't claim that Python is unique nor innovative. However, FORTRAN and COBOL are not modern languages in the sense that one can reasonably expect a large selection of first- and third- party libraries for most common situations, and their availability on e.g. servers is far more limited, thus learning them just for scripting is not as good a choice as is Python.