4 ms·
I initially thought this was a PHP implementation in Rust.... but it's not Will Mago implement a PHP runtime? Absolutely not. The PHP runtime is incredibly co
by anta40 1y ago
I initially thought this was a PHP implementation in Rust.... but it's not
Will Mago implement a PHP runtime?
Absolutely not. The PHP runtime is incredibly complex. Major efforts by large companies (e.g., Facebook's HHVM, VK's KPHP) have struggled to reach full parity with Zend Engine. Achieving this as a smaller project is infeasible and would lead to community fragmentation. We are focused on tooling, not runtimes.
https://mago.carthage.software/faq https://mago.carthage.software/faq
- ivanjermakov 1y ago> The PHP runtime is incredibly complex Say this to the team behind Ladybird browser: https://awesomekling.substack.com/p/how-were-building-a-browser-when https://awesomekling.substack.com/p/how-were-building-a-brow...
- lillecarl 1y ago80/20, also they're not implementing JIT and such because of complexity.
- peterfirefly 1y agoThey have the benefit of a project leader with many years of browser implementation experience AND much lower performance goals. (Items 5 and 3 on the list in the linked page.)
- password4321 1y agohttps://www.peachpie.io https://www.peachpie.io compiles PHP to .NET.
- VoidWhisperer 1y agoIsn't this more transpiling than compiling?
- tialaramex 1y agoNot really? .NET has a "Common Language Runtime", which you can think of as analogous to the Java VM or to Beam. A transpiler might read PHP and spit out C, or Java or some other existing programming language, spitting out the code for a virtual machine doesn't make you a transpiler unless you're going to argue that all compilers are just transpilers, it's like one of those "Actually goats are fish" arguments. OK, but now the word "fish" is useless so why go to this bother ?