logoalt Hacker News

MycroftJonesyesterday at 5:15 PM1 replyview on HN

Check out this port of microgpt to C, posted 5 months ago. It got a 2500x speedup over the python version. https://github.com/moebiusV/cugpt


Replies

pjmlptoday at 8:54 AM

Of course, an interpreted language implementation, versus a compiled language designed to port UNIX.

Even if counting that it is basically calling into C or C++ libraries, there is lots of boilerplate that the CPU has to consume, that just won't happen on the pure C implementation.