3 ms·
Imagine if a programming language had at least two compilation targets from the start: machine code/byte code and prose.
by avgcorrection 4y ago
Imagine if a programming language had at least two compilation targets from the start: machine code/byte code and prose.
- PerryCox 4y agoThis is a really neat idea! I wonder how close you could get the prose to actually explaining the codes purpose as opposed to just saying "this is a for loop"?
- avgcorrection 4y agoThe purpose (intent) wouldn’t be explained, but it could be useful for tools which have oddball syntax and are only used sometimes (infrequent enough for you to forget).
- Palomides 4y agoran into this one recently: https://en.wikipedia.org/wiki/Noweb https://en.wikipedia.org/wiki/Noweb along with other related literate programming tools
- _tom_ 4y agoThe Lucene search library has something like this. Data is stored /retrieved via codecs. Most write binary data, but one codec actually writes out all data as text. It is, of course, too slow for production use, but it is great for figuring out what is going on under the covers. https://blog.mikemccandless.com/2010/10/lucenes-simpletext-codec.html?m=1 https://blog.mikemccandless.com/2010/10/lucenes-simpletext-c...
- everybodyknows 4y agoNominated: go build go doc -all