Am Mi., 1. Juli 2020 um 14:36 Uhr schrieb Hal Finkel <hfinkel at anl.gov>: > When I teach my compilers class, I tell my students to liberally add the > ability to serialize to interpretable text all of their internal data > structures. It will seem like extra work at first, but when they're > trying to debug things later, it will be really helpful. I think this is > a key lesson that I, at least, have learned from LLVM. It makes us all > more productive in the end (in part because we often spend much more > time debugging our code than writing it in the first place). Firing up > an actual debugger is slow and (despite our best efforts) fragile, > changing a textual input and running it through something that produces > textual output is fast. One of the first things I write for my data structure is indeed a dump function. However, the output is not stable since I regularly change/remove/add information that is dumped depending on whether information is relevant, adds too much noise, or found a better textual representation of the same thing. Michael
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4