4 ms·
Well, like it or not that stuff is a) here to stay and b) familiar for people working with this tooling. Personally I find that graphics part pretty easy to rea
by aidos 4y ago
Well, like it or not that stuff is a) here to stay and b) familiar for people working with this tooling. Personally I find that graphics part pretty easy to read.
For comparison here's a sample of a graphics stream from a PDF:
Q
9469 1441 m
9549 1433 l
9549 1433 9549 1483 9469 1441 c
S
q
In this context Q means push/save the graphics state and q is pop, but again, it's all very similar.
- throwaway4good 4y agoSure. But if you are designing something new it is fair to question whether to continue the style. An alternative is to have two representations; a binary format to be used by computers and a textual format for humans (programmers) designed for readability, maintainabilty etc.
- josefx 4y ago> In this context Q means push/save the graphics state and q is pop, but again, it's all very similar. is there a point in saving one or two letters on each command? Shld w ll g bck t th gd ld dys f C nd drp rndm lttrs?
- throwaway4good 4y agoYou will save space and make the language suitable as a format for computer programs to work directly with (saving in, sending to printer etc.). However compared to a binary version, this format probably uses 3 times as much space.