Skip to content

[STDLIB] Implement mbstring #3

Closed
Closed

Description

@blacktrs

Implement mbstring extension bindings to achieve parity with Zend

Activity

  1. self-assigned this
    on Jul 20, 2026
  2. added
    enhancement
    on Jul 20, 2026
  3. added theissue type on Jul 20, 2026
  4. elcreator commented on Sep 20, 2026

    @elcreator

    Great work! I run it on the Evolution CMS sources + vendor and Manticore successfully compiled it. But looks like due to stdlib it works two times slower. I asked Claude about the reasons and got an answer: Compiled user code is faster (concat 5×, its own suite: 36/45 cases faster, fib 20×), but Manticore's stdlib is PHP-compiled-to-native and loses to Zend's C: htmlspecialchars 2.5× slower, crc32 9× slower — and a CMS page is mostly escaping.

  5. blacktrs commented on Sep 21, 2026

    @blacktrs
    ContributorAuthor

    Great work! I run it on the Evolution CMS sources + vendor and Manticore successfully compiled it. But looks like due to stdlib it works two times slower. I asked Claude about the reasons and got an answer: Compiled user code is faster (concat 5×, its own suite: 36/45 cases faster, fib 20×), but Manticore's stdlib is PHP-compiled-to-native and loses to Zend's C: htmlspecialchars 2.5× slower, crc32 9× slower — and a CMS page is mostly escaping.

    Thanks for reporting that issue. I didn't spend enough time on those functions. Will try to improve that.
    You can create a separate issue with examples if wish to track the progress 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions