Re:500 Lines or Less – Writing a useful program in fewer tha...
by jhonsrid on Sunday October 08, 2023 @11:31AM
(#37811349)
Yeah, working in C and python you definitely have to reinvent the wheel less in Python ;-)
I recently wrote an 8bit style CPU simulator (with it's own simple but perfectly usable instruction set) and assembler, together they fit into 1000 lines of C... To be fair that's a fairly specific case where C works really well though!
I recently wrote an 8bit style CPU simulator (with it's own simple but perfectly usable instruction set) and assembler, together they fit into 1000 lines of C... To be fair that's a fairly specific case where C works really well though!