Re:Counting Objects
by tmm1 on Tuesday September 22, 2015 @02:40PM
(#10260670)
Yes, much of GitHub's core infrastructure is written in C.
[ Parent
| on HN ]
That's awesome. You don't find many people that enjoy writing in C. I assumed it was Ruby.
Re:Counting Objects
by scott_karana on Tuesday September 22, 2015 @03:59PM
(#10261250)
Ruby MRI and YARV are both written in C, so to be a true Ruby hacker you need some C chops. :-)
Interesting. I've heard that thrown around before, but I've never heard someone say the same thing about Python, even though the main Python implementation is C.
Re:Counting Objects
by scott_karana on Tuesday September 22, 2015 @07:49PM
(#10262520)
Really? Lots of the most famous Python modules are partially implemented in C(++) for performance reasons too, it's not exclusive to Ruby.
For example, Numpy is 56% C. https://github.com/numpy/numpy
Re:Counting Objects
by saidajigumi on Tuesday September 22, 2015 @07:14PM
(#10262356)
From my own experience with Ruby and MRI, there's quite a strong culture of "transparency of code". It's not unusual if you're really down into some "interesting" problem to delve first into your gems/frameworks, and eventually even into MRI itself. Being a PL polyglot pays off in spades in these cases, since you get a solid understanding of the underpinnings of everything.
Note that there's very rarely any need to go there, but the fact that it's both possible and culturally encouraged makes a huge difference for those of us who've needed it.
From the Python docs:
Extending and Embedding tutorial for C/C++ programmers
Python/C API reference for C/C++ programmers
... right between "Distributing Python Modules" and "FAQs"
Re:Counting Objects
by steveklabnik on Tuesday September 22, 2015 @11:57PM
(#10263240)
I have a talk at a Ruby conference last week and even put a small amount of assembly on the screen... While many Rubyists aren't expert C programmers, they know enough to look at Ruby's source every once in a while to figure out what's going on.