News for hackers. Stuff that matters.
Re:Enter a command to see help text for each arg by avgcorrection on Monday May 30, 2022 @11:38AM (#31560155)
Imagine if a programming language had at least two compilation targets from the start: machine code/byte code and prose.
Re:Enter a command to see help text for each arg by _tom_ on Monday May 30, 2022 @04:34PM (#31563365)
The 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-c...

Re:Enter a command to see help text for each arg by Palomides on Monday May 30, 2022 @02:07PM (#31561806)
ran into this one recently: https://en.wikipedia.org/wiki/Noweb

along with other related literate programming tools

Re:Enter a command to see help text for each arg by PerryCox on Monday May 30, 2022 @12:17PM (#31560539)
This 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"?
Re:Enter a command to see help text for each arg by avgcorrection on Monday May 30, 2022 @01:30PM (#31561377)
The 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).
Re:Enter a command to see help text for each arg by everybodyknows on Monday May 30, 2022 @05:07PM (#31563632)
Nominated:

  go build
  go doc -all