Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In addition to this, I highly recommend just reading the codebase. I haven't written C since college and it's remarkably readable.

I once tried to catalogue all the stdlib operations which release the GIL, meaning if you use only those (well, only those "heavy" bits, you can still use other small blocking glue bits), you can do "real" multithreading.

It was a fun exercise!



There's a really nice (although old now) walk through of the cpython code base on YouTube. I watched it on a long 24 hour flight between Canada and Sweden a couple of years back.

Edit: Found it! You're in for about 9 hours of quality watching. https://youtube.com/playlist?list=PLwyG5wA5gIzgTFj5KgJJ15lxq...


That's amazing. Wish there was something similar for the JVM and V8.


Excellent, thanks for sharing!


And it helps much more in the actual job of writing software than in say, practicing coding puzzles


> I highly recommend just reading the codebase

Me too. When I used to write Ruby I read a lot of CRuby source code. I achieved a much deeper understanding of the language that way. Even answered some really fun stackoverflow questions.

Now the first thing I do when I see a new language is read its source code.


Yep, when I was writing PHP I found myself digging into php-src on a regular basis to see what exactly was going on. PHP's documentation is good but the code is much more explicit.


Agreed. CPython makes readability and maintainability a priority.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: