Hacker News new | ask | show | jobs
by vlucas 634 days ago
Great feature from the Bun team.

It's worth noting that similar functionality is what allowed PHP to be useful well beyond its original capabilities when companies hit scale and needed more performance out of it. Companies would just write a C module for their critical path code, and load it in as a PHP extension.

An article from Facebook in 2010 about them writing and using a custom C extension for PHP, that was probably the precursor to JSX:

https://www.facebook.com/notes/10158791323777200/

An article from Zend in 2011 about how to write a PHP extension in C:

http://web.archive.org/web/20110222035803/http://devzone.zen...