3 ms·
I can't imagine wanting to convert another language to PHP, except for JavaScript maybe but that's not exactly useful. Now converting PHP to a different, more-u
by ComputerGuru 18y ago
I can't imagine wanting to convert another language to PHP, except for JavaScript maybe but that's not exactly useful. Now converting PHP to a different, more-useful language? that would be something :)
- koblas 18y agoThe Resin server (http://caucho.com/ http://caucho.com/) converts PHP => Java which conceptually sounds better, though I've never heard of anybody doing it for production purposes.
- ComputerGuru 18y agoI've tried it time and time again, along with Phalanger (PHP -> ILDASM) and RoadRunner (PHP -> C) and they all fail.
- emmett 18y agoPerhaps I misunderstand you, but isn't the opposite true? Presumably you would target PHP with the compiler for the same reason many people target C: it's a fairly universal language, supported on many platforms. A Ruby => PHP compiler would be very interesting because it would allow you to write Ruby code (fun!) on any system that runs PHP (many!). A PHP => Ruby compiler would be of questionable use because it would allow you to write PHP code (yuck!) on any system that runs Ruby (not so many!).
- ComputerGuru 18y agoPerhaps. However, my goal would be to take a large project already written in a nasty, buggy language and translate it to something fun to maintain and modify and easy/reliable to run.