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

It seems like it doesn't answer it's own question, so I'll pose another.

The entire Lua core is 15kLoC. Is that more than or less than what's needed for python's "a + b", assuming a and b are defined.

I'm genuinely curious.



Yes, it's a very tootsie-roll-center kind of answer, but it's clearly more than a few.

To answer your question, 15kLoC is more than enough to implement dynamic dispatch and the PyObject base struct, along with the special method logic for __add__ on any python object type.. but still a lot less than what's needed for all the special method types and a lot of boilerplate for the C-compatible interface around those methods.


I wonder what percent of this audience got the tootsie-roll reference. Does anyone under 40 know it?


I'm in Gen Z and I think I got it. The Tootsie pop commercial with the owl used to play all the time on Canadian TV.


Onne... Two-hooo!


I am about to turn 38 and I got it, so it's at least slightly lower than 40.


Hey Steve, loved your work on Rust and your goodbye letter. Nice to see you in my comment chain


Thanks!




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

Search: