[PHP-DEV] PHP compiler

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default [PHP-DEV] PHP compiler

    ------=_NextPart_000_00AF_01C35BF7.DD94EBC0
    Content-Type: text/plain;
    charset="us-ascii"
    Content-Transfer-Encoding: 7bit

    After seeing the conversation on the PHP archive idea (having a PHP
    equivalent of a jar file), it reminded me of an idea I had a long time
    ago. Has anyone ever thought of writing a PHP compiler which would
    compile a PHP script into native machine code? If you have thought of
    it, what stopped you from building it? I would be highly interested in
    joining a team which wanted to push the limits of PHP by doing something
    like this. I think this is the next logical step in the "PHP for
    anything and everything" goal.

    Jeremy

    ------=_NextPart_000_00AF_01C35BF7.DD94EBC0--


    Jeremy S. Johnstone Guest

  2. Similar Questions and Discussions

    1. CHM Compiler
      Has anyone come across a DW extension that'll compile to CHM files? - Maybe using H tags for topics or ...? Thanks, Corona
    2. php compiler
      Hello, Sorry I dont know a great deal about programming or much about the language PHP, but I am after a 'PHP compiler' if there exists such a...
    3. Re[4]: [PHP-DEV] PHP compiler
      Hello Antony, Wednesday, August 6, 2003, 8:43:13 PM, you wrote: AD> If archive is all what you want to get, then what prevents you to write...
    4. Re[2]: [PHP-DEV] PHP compiler
      The only problem with that approach is that you have to distribute the php executable and your program is loaded using a command line similar to: ...
    5. Compiler Error Message: The compiler failed with error code 128.
      Hi. I am having trouble running my aspx code. I created two simple webforms, which i try to run from two different directories one is giving me...
  3. #2

    Default Re: [PHP-DEV] PHP compiler


    I would have thought the big thing against a compiler which produced native
    machine code is that sooner or later differences between Operating Systems
    and the library functions they provide would mean that the language would
    no longer be machine independent. >Which for me (and a lot of other
    developers) is one of the key features of PHP.

    ==========================================
    Richard Black
    Senior Developer, DataVisibility Ltd - [url]http://www.datavisibility.com[/url]
    Tel: 0141 951 3481
    Email: [email]rblack@datavisibility.co.uk[/email]



    "Jeremy S.
    Johnstone" To: <internals@lists.php.net>
    <jsjohnst@rockets cc:
    ervers.net> Subject: [PHP-DEV] PHP compiler

    06/08/2003 14:50






    After seeing the conversation on the PHP archive idea (having a PHP
    equivalent of a jar file), it reminded me of an idea I had a long time
    ago. Has anyone ever thought of writing a PHP compiler which would
    compile a PHP script into native machine code? If you have thought of
    it, what stopped you from building it? I would be highly interested in
    joining a team which wanted to push the limits of PHP by doing something
    like this. I think this is the next logical step in the "PHP for
    anything and everything" goal.

    Jeremy






    --
    PHP Internals - PHP Runtime Development Mailing List
    To unsubscribe, visit: http://www.php.net/unsub.php

    rblack@datavisibility.co.uk Guest

  4. #3

    Default Re: [PHP-DEV] PHP compiler

    --=_salem-13806-1060178399-0001-2
    Content-Type: text/plain
    Content-Transfer-Encoding: quoted-printable

    On Wed, 2003-08-06 at 15:50, Jeremy S. Johnstone wrote:
    > After seeing the conversation on the PHP archive idea (having a PHP
    > equivalent of a jar file), it reminded me of an idea I had a long time
    > ago. Has anyone ever thought of writing a PHP compiler which would
    > compile a PHP script into native machine code?
    Not to discourage you or anything, but I doubt that would be a very good
    idea. Because of the nature of PHP (being loosely typed and highly
    dynamic), I think you would be disappointed with the speed result -- it
    wouldn't be very much faster than the current PHP interpreter.

    But then again, for distributing binary-only applications it would
    perhaps be a good idea.
    --
    Best regards,

    Per Lundberg / Capio ApS
    Phone: +46-18-4186040
    Fax: +46-18-4186049
    Web: [url]http://www.nobolt.com[/url]

    --=_salem-13806-1060178399-0001-2
    Content-Type: application/pgp-signature; name="signature.asc"
    Content-Transfer-Encoding: 7bit
    Content-Description: This is a digitally signed message part

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.2 (GNU/Linux)

    iD8DBQA/MQnfTN4aRo9LnpERAr0kAJ0XsRpVloztfTkm6l4ZugFt7uzKyQ CgqEch
    H8Hb1rhMdrWUHmT1oALqc+c=
    =6AQ4
    -----END PGP SIGNATURE-----

    --=_salem-13806-1060178399-0001-2--
    Per Lundberg Guest

  5. #4

    Default Re: [PHP-DEV] PHP compiler

    Even there is "bcompiler" in PEAR.


    Andrey

    ----- Original Message -----
    From: "Simeon Koptelov" <xi@newmail.ru>
    To: <internals@lists.php.net>
    Sent: Wednesday, August 06, 2003 6:07 PM
    Subject: Re: [PHP-DEV] PHP compiler

    > Hello Jeremy,
    >
    > Wednesday, August 6, 2003, 7:50:57 PM, you wrote:
    >
    > JSJ> After seeing the conversation on the PHP archive idea (having a PHP
    > JSJ> equivalent of a jar file), it reminded me of an idea I had a long
    time
    > JSJ> ago. Has anyone ever thought of writing a PHP compiler which would
    > JSJ> compile a PHP script into native machine code? If you have thought of
    > JSJ> it, what stopped you from building it? I would be highly interested
    in
    > JSJ> joining a team which wanted to push the limits of PHP by doing
    something
    > JSJ> like this. I think this is the next logical step in the "PHP for
    > JSJ> anything and everything" goal.
    >
    > There are pruducts such as Zend Accelerator or Turck MMCache. Did you
    > mean that type of compiling?
    >
    > --
    > Best regards,
    > Simeon mailto:xi@newmail.ru
    >
    >
    > --
    > PHP Internals - PHP Runtime Development Mailing List
    > To unsubscribe, visit: http://www.php.net/unsub.php
    >
    >

    --
    PHP Internals - PHP Runtime Development Mailing List
    To unsubscribe, visit: http://www.php.net/unsub.php

    Andrey Hristov Guest

  6. #5

    Default Re: [PHP-DEV] PHP compiler

    Wez Furlong wrote:
    > more technical issues actually related to the internals of PHP ? :-)
    Like how to use the Streams API to implement the JAR-like functionality?

    SCNR,
    Sebastian

    --
    Sebastian Bergmann
    [url]http://sebastian-bergmann.de/[/url] [url]http://phpOpenTracker.de/[/url]

    Das Buch zu PHP 5: [url]http://professionelle-softwareentwicklung-mit-php5.de/[/url]

    --
    PHP Internals - PHP Runtime Development Mailing List
    To unsubscribe, visit: [url]http://www.php.net/unsub.php[/url]

    Sebastian Bergmann Guest

  7. #6

    Default Re: [PHP-DEV] PHP compiler

    Sebastian,
    accordint to this
    [url]http://entwickler.com/itr/online_artikel/psecom,id,368,nodeid,114.html[/url]
    article written by Wez :
    [snip]
    We have touched on all the key features of wrappers, and you should now be
    capable of implementing your own protocol wrappers as PECL extensions. This
    has a number of applications, ranging from just providing useful protocol
    support, to using these features to implement your own storage for encrypted
    or encoded PHP source files - remember that the Zend Engine is also tied
    into the wrappers system, so you can include files via your own custom
    wrappers.
    [/snip]

    Andrey

    ----- Original Message -----
    From: "Sebastian Bergmann" <sebastian@php.net>
    To: <internals@lists.php.net>
    Sent: Wednesday, August 06, 2003 6:40 PM
    Subject: Re: [PHP-DEV] PHP compiler

    > Wez Furlong wrote:
    > > more technical issues actually related to the internals of PHP ? :-)
    >
    > Like how to use the Streams API to implement the JAR-like functionality?
    >
    > SCNR,
    > Sebastian
    >
    > --
    > Sebastian Bergmann
    > http://sebastian-bergmann.de/ http://phpOpenTracker.de/
    >
    > Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/
    >
    > --
    > PHP Internals - PHP Runtime Development Mailing List
    > To unsubscribe, visit: http://www.php.net/unsub.php
    >
    >

    --
    PHP Internals - PHP Runtime Development Mailing List
    To unsubscribe, visit: http://www.php.net/unsub.php

    Andrey Hristov Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139