3 ms·
Why is that funny? Python seems like the perfect language for this kind of thing. You can see the logic with minimal noise.
by chubot 10y ago
Why is that funny? Python seems like the perfect language for this kind of thing. You can see the logic with minimal noise.
- unwind 10y agoIt's funny since it's not very accurate: the Python is used to generate C code from tables describing instruction encodings (that's my understanding, haven't cloned this and built it). But there is plenty of actual C code in there too, and the resulting "thing" is a C library. Python would not be as suitable as the full implementation language, since C is much more easily accessed from other languages, which is a good property for a library like this.