Elektrine lite

← Feed

@alice@marrow.haus

2023-05-25 11:55 UTC

@ramsey@phpc.social @katalyst@infosec.exchange @jerry@infosec.exchange It kinda is, if you can embed it as a really terrible template engine within Python. The link I provided was for a PHP implementation in Python; is totally is usable as a template engine like Mako or Genshi. (Blast from the past, that last.) It's just not very good, to put it /mildly/. Need to add it to my benchmark suite; it's still probably better than Django, which is hilariously bad: https://github.com/marrow/cinje/wiki/Benchmarks#python-38

Replies (3)

  • @ramsey@phpc.social 2023-05-25 12:01

    @alice@marrow.haus @katalyst@infosec.exchange @jerry@infosec.exchange The last commit to HippyVM was when PHP 5.5 was the current modern version. We’re now up to PHP 8.2, and PHP 5 was end-of-life as of January 2019. If something is a “subset” of something else, I would expect it to be very similar and have a smaller feature set. That’s not the case here. Syntactically, PHP is more like C or Java.

    Open ##2960156

  • @alice@marrow.haus 2023-05-25 12:11

    I'll also add that JavaScript is a subset of Python. I haven't needed Node in many years; I run Babel, Babili, autoprefixer, &c., &c. within Python without it. Ex. https://github.com/illico/dukpy/blob/master/dukpy/webassets/babelfilter.py Things get weirder when I write Python for my ES6 front-end: https://gist.github.com/amcgregor/9040e2e6be9249bcd73c (screenshot at bottom) I rarely like to point at update frequency, but I strongly suspect a lack of interest in or desire for self-harm would be a contributor. 😜 I'd be curious to benchmark, but not enough to do so myself.

    Open ##2960167

  • @chucker@norden.social 2023-05-27 06:39

    @alice@marrow.haus @ramsey@phpc.social @katalyst@infosec.exchange @jerry@infosec.exchange by that logic, it’s also “a subset of” .NET 🤔

    Open ##2960168