I’ve been writing C lately, and despite frustrations around grokking pointers, I can say, without a doubt, it’s still easier than JavaScript.


This is the C project I’ve been working on. It’s a extension. github.com/ramsey/ecma_intl

I'm not sure why I didn't think about this earlier, but I decided to check out WebKit's implementation, and they're basically doing the same thing I'm trying to do, so that provides me with some good example code to look at. github.com/WebKit/WebKit/blob/

@dragnucs what do you want to know that the repository description doesn’t say?

(I do plan on improving the README before I make any releases.)

@ramsey I know that PHP is a programming language and ECMA is a spec for a different competting language. But how is EMCA Intl work inside of PHP?

@dragnucs I’m porting the same interfaces into PHP, and the functionality is all the same. So something like `new Intl.Locale('en')` in JavaScript will be `new Ecma\Intl\Locale('en')` in PHP.

Sign in to participate in the conversation
PHP Community on Mastodon

Open source. Open community. We are dedicated to building and enriching the PHP community.