5 ms·
Has anyone done one of these (or wants to) for PHP?
by simonhamp 4y ago
Has anyone done one of these (or wants to) for PHP?
- skor 4y agoYeah, I’ve wanted this for a long time. I’m going to try but can’t promise anything.
- notpushkin 4y agoSame but for Python. I'll probably look into it when I'm sufficiently bored with my current projects.
- tmtvl 4y agoTo quote the blogpost: After stumbling upon Gautham's APE Python port (https://ahgamut.github.io/2021/07/13/ape-python/) [...]
- deleted 4y ago[deleted]
- eesmith 4y ago5 months ago on HN, "Python is Actually Portable", https://news.ycombinator.com/item?id=32245430 https://news.ycombinator.com/item?id=32245430 (120 comments)
- jart 4y agoWe managed to get it to build I think last year. https://github.com/ahgamut/php-src/tree/cosmo_php73 https://github.com/ahgamut/php-src/tree/cosmo_php73 See also https://github.com/shmup/awesome-cosmopolitan https://github.com/shmup/awesome-cosmopolitan
- ahgamut 4y agoAdding on to jart's answer -- I ported PHP 7.3 back in July 2021 (building on alganet's work), and got up to a simple "hello-world". Have never used PHP, so I didn't know what else could be done with it at the time. However, the libc has grown a lot over the last year (Cosmo has a pthreads API now!) -- the updated libc enabled a quick experimental port of Python 3.11.0rc1 back in August (https://github.com/ahgamut/cpython/tree/cosmo_py311 https://github.com/ahgamut/cpython/tree/cosmo_py311), so I would expect that a newer version of PHP can be ported similarly. Let's see....
- ahgamut 4y agoah, here we are: https://github.com/ahgamut/php-src/tree/cosmo_php81 https://github.com/ahgamut/php-src/tree/cosmo_php81 (note it's an experimental port, I just put it together).