Re: [PHP-DEV] Mono & PHP

2003-02-06 Thread Harald Radi
> >   Why PECL and not add it to ext/rpc?
> 
> ext/rpc should be able to load "rpc backend" modules, or PECL is the only
> sensible place to put it (especially when it's experimental!).  We really
> don't want to mix java, mono, xmlrpc, soap and whatnot into a single
> package.

in case you don't know, there is no need for rpc backends to live inside
ext/rpc nor do they have to be compiled into a single extension. rpc backends
can be ordinary php extensions that register their rpc entry at the rpc
extension just like they would register their class entry at the engine. so
moving php-mono to pear doesn't mean that it can't be a rpc backend.
the only valid reason atm is that ze2 beeing alpha, ext/rpc beeing alpha and
mono beeing whatever together with sterlings bad coding style :) would result
in a phreaky peace of software with totally unpredictable results.

harald


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




Re: [PHP-DEV] Mono & PHP

2003-02-05 Thread Sterling Hughes
On Wed, 2003-02-05 at 17:26, George Schlossnagle wrote:
> On Wednesday, February 5, 2003, at 05:22  PM, Stig S. Bakken wrote:
> 
> > On Mon, 3 Feb 2003, Sebastian Bergmann wrote:
> >
> >> Sterling Hughes wrote:
> >>> I'll be adding it into PECL in a little bit
> >>
> >>   Why PECL and not add it to ext/rpc?
> >
> > ext/rpc should be able to load "rpc backend" modules, or PECL is the 
> > only
> > sensible place to put it (especially when it's experimental!).  We 
> > really
> > don't want to mix java, mono, xmlrpc, soap and whatnot into a single
> > package.
> 
> Nor (as cool as it may be), is there a reason it should be in the 
> 'core' (extension-wise) of php.

Once stable, i think that could be up to a debate :-)

For one, if this ends up being fast enough, I think it should definitely
be in the engine core.  Accessing .NET/CIL will allow PHP to integrate
and leverage quite a few external technologies, and will allow it to
directly access *any* C library function call directly, or with a few
line wrapper.

But its a debate for when its more stable.

-Sterling

-- 
"The computer programmer is a creator of universes for which he  
 alone is responsible. Universes of virtually unlimited complexity  
 can be created in the form of computer programs." 
- Joseph Weizenbaum


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




Re: [PHP-DEV] Mono & PHP

2003-02-05 Thread George Schlossnagle

On Wednesday, February 5, 2003, at 05:22  PM, Stig S. Bakken wrote:


On Mon, 3 Feb 2003, Sebastian Bergmann wrote:


Sterling Hughes wrote:

I'll be adding it into PECL in a little bit


  Why PECL and not add it to ext/rpc?


ext/rpc should be able to load "rpc backend" modules, or PECL is the 
only
sensible place to put it (especially when it's experimental!).  We 
really
don't want to mix java, mono, xmlrpc, soap and whatnot into a single
package.

Nor (as cool as it may be), is there a reason it should be in the 
'core' (extension-wise) of php.


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



Re: [PHP-DEV] Mono & PHP

2003-02-05 Thread Stig S. Bakken
On Mon, 3 Feb 2003, Sebastian Bergmann wrote:

> Sterling Hughes wrote:
> > I'll be adding it into PECL in a little bit
> 
>   Why PECL and not add it to ext/rpc?

ext/rpc should be able to load "rpc backend" modules, or PECL is the only
sensible place to put it (especially when it's experimental!).  We really
don't want to mix java, mono, xmlrpc, soap and whatnot into a single
package.

 - Stig


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




Re: [PHP-DEV] Mono & PHP

2003-02-03 Thread Sterling Hughes
On Mon, 2003-02-03 at 03:51, Alan Knowles wrote:
> I'm having fun with it :)
> /usr/src/php/php5/ext/sockets/php_sockets.h:89: conflicting types for 
> `SOCKET'
> /usr/include/mono/io-layer/uglify.h:38: previous declaration of `SOCKET'
> 
> also had a bit of trouble with mono's exception.h including config.h 
> (which wasnt installed into the bulid stuff)
> 
> (hacked mono's header for the time being)
> 
> not sure if that's an old version of mono though..
> 

Ahh, should have mentioned that.  I hacked php_sockets.h, just change
the typedef to a #define.

-Sterling

> Regards
> Alan
> 
> Sterling Hughes wrote:
> 
> >I spent a little time this weekend implementing an extension that allows
> >PHP to load .NET classes on the Unix environment - 100% open source, by
> >leveraging the mono library(*).  For more information, view the README
> >file in the distribution by downloading the file
> >http://www.edwardbear.org/php_mono_0_1.tar.gz.
> >
> >Its PHP5 only, as that's what I've switched to for all new development.
> >Hi Ho.
> >
> > >$Console = new Mono('System.Console');
> >$Console->WriteLine('Hello World, PHP is .NET ready!');
> >?>
> >
> >- Sterling "No More Extensions Needed" Hughes
> >
> >(*) Mono is much more than library, of course.  But it links to/uses the
> >mono library.
> >
> >PS:  I'll be adding it into PECL in a little bit, I want to finish the
> >type proxying code.  I'd also like to add all of the object and method
> >caching.
> >
> >PPS: If anyone has suggestions for a better way of doing type proxying
> >than what's described in the README, please let me know.
> >
> >  
> >
-- 
"Whether you think you can or think you can't -- you are right." 
- Henry Ford


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




Re: [PHP-DEV] Mono & PHP

2003-02-03 Thread Maxim Maletsky
Seems like it :)
In a pre-alpha phase ;)

Ans, I also want to do the same for Ruby (in case you haven't heard ;) )


--
Maxim Maletsky
[EMAIL PROTECTED]



"Dan Hardiker" <[EMAIL PROTECTED]> wrote... :

> Is it true you can catch mono from using php?
> 
> 
> -- 
> Dan Hardiker [[EMAIL PROTECTED]]
> ADAM Software & Systems Engineer
> First Creative
> 
> 
> 
> -- 
> PHP Development Mailing List 
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


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




Re: [PHP-DEV] Mono & PHP

2003-02-03 Thread Dan Hardiker
Is it true you can catch mono from using php?


-- 
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative



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




Re: [PHP-DEV] Mono & PHP

2003-02-03 Thread Alan Knowles
I'm having fun with it :)
/usr/src/php/php5/ext/sockets/php_sockets.h:89: conflicting types for 
`SOCKET'
/usr/include/mono/io-layer/uglify.h:38: previous declaration of `SOCKET'

also had a bit of trouble with mono's exception.h including config.h 
(which wasnt installed into the bulid stuff)

(hacked mono's header for the time being)

not sure if that's an old version of mono though..

Regards
Alan

Sterling Hughes wrote:

I spent a little time this weekend implementing an extension that allows
PHP to load .NET classes on the Unix environment - 100% open source, by
leveraging the mono library(*).  For more information, view the README
file in the distribution by downloading the file
http://www.edwardbear.org/php_mono_0_1.tar.gz.

Its PHP5 only, as that's what I've switched to for all new development.
Hi Ho.


$Console = new Mono('System.Console');
$Console->WriteLine('Hello World, PHP is .NET ready!');
?>

- Sterling "No More Extensions Needed" Hughes

(*) Mono is much more than library, of course.  But it links to/uses the
mono library.

PS:  I'll be adding it into PECL in a little bit, I want to finish the
type proxying code.  I'd also like to add all of the object and method
caching.

PPS: If anyone has suggestions for a better way of doing type proxying
than what's described in the README, please let me know.

 



--
Can you help out? 
Need Consulting Services or Know of a Job?
http://www.akbkhome.com



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



Re: [PHP-DEV] Mono & PHP

2003-02-02 Thread Sebastian Bergmann
Sterling Hughes wrote:
> I'll be adding it into PECL in a little bit

  Why PECL and not add it to ext/rpc?

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/ http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

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




Re: [PHP-DEV] Mono & PHP

2003-02-02 Thread nicos
They will probably be into PECL.

P.S: very nice work mister Hugues :-)

PSS: I see nothing better than your way of doing type proxying.

--
Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

"Maxim Maletsky" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
>
> I read the code, quite nice!
>
> It's been a while I was thinking to integrate Ruby into PHP, which would
> probably be a very very similar extension as this one. Are they going to
get
> into the official PHP distr or PECL?
>
> --
> Maxim Maletsky
> [EMAIL PROTECTED]
>
>
> On 02 Feb 2003 18:13:10 -0500 Sterling Hughes <[EMAIL PROTECTED]>
wrote:
>
> > I spent a little time this weekend implementing an extension that allows
> > PHP to load .NET classes on the Unix environment - 100% open source, by
> > leveraging the mono library(*).  For more information, view the README
> > file in the distribution by downloading the file
> > http://www.edwardbear.org/php_mono_0_1.tar.gz.
> >
> > Its PHP5 only, as that's what I've switched to for all new development.
> > Hi Ho.
> >
> >  > $Console = new Mono('System.Console');
> > $Console->WriteLine('Hello World, PHP is .NET ready!');
> > ?>
> >
> > - Sterling "No More Extensions Needed" Hughes
> >
> > (*) Mono is much more than library, of course.  But it links to/uses the
> > mono library.
> >
> > PS:  I'll be adding it into PECL in a little bit, I want to finish the
> > type proxying code.  I'd also like to add all of the object and method
> > caching.
> >
> > PPS: If anyone has suggestions for a better way of doing type proxying
> > than what's described in the README, please let me know.
> >
> > --
> > "First they ignore you, then they laugh at you,
> >  then they fight you, then you win."
> > - Gandhi
> >
> >
> > --
> > PHP Development Mailing List 
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>



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




Re: [PHP-DEV] Mono & PHP

2003-02-02 Thread Maxim Maletsky

I read the code, quite nice!

It's been a while I was thinking to integrate Ruby into PHP, which would
probably be a very very similar extension as this one. Are they going to get
into the official PHP distr or PECL?

-- 
Maxim Maletsky
[EMAIL PROTECTED]


On 02 Feb 2003 18:13:10 -0500 Sterling Hughes <[EMAIL PROTECTED]> wrote:

> I spent a little time this weekend implementing an extension that allows
> PHP to load .NET classes on the Unix environment - 100% open source, by
> leveraging the mono library(*).  For more information, view the README
> file in the distribution by downloading the file
> http://www.edwardbear.org/php_mono_0_1.tar.gz.
> 
> Its PHP5 only, as that's what I've switched to for all new development.
> Hi Ho.
> 
>  $Console = new Mono('System.Console');
> $Console->WriteLine('Hello World, PHP is .NET ready!');
> ?>
> 
> - Sterling "No More Extensions Needed" Hughes
> 
> (*) Mono is much more than library, of course.  But it links to/uses the
> mono library.
> 
> PS:  I'll be adding it into PECL in a little bit, I want to finish the
> type proxying code.  I'd also like to add all of the object and method
> caching.
> 
> PPS: If anyone has suggestions for a better way of doing type proxying
> than what's described in the README, please let me know.
> 
> -- 
> "First they ignore you, then they laugh at you,  
>  then they fight you, then you win."  
> - Gandhi
> 
> 
> -- 
> PHP Development Mailing List 
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


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




[PHP-DEV] Mono & PHP

2003-02-02 Thread Sterling Hughes
I spent a little time this weekend implementing an extension that allows
PHP to load .NET classes on the Unix environment - 100% open source, by
leveraging the mono library(*).  For more information, view the README
file in the distribution by downloading the file
http://www.edwardbear.org/php_mono_0_1.tar.gz.

Its PHP5 only, as that's what I've switched to for all new development.
Hi Ho.

WriteLine('Hello World, PHP is .NET ready!');
?>

- Sterling "No More Extensions Needed" Hughes

(*) Mono is much more than library, of course.  But it links to/uses the
mono library.

PS:  I'll be adding it into PECL in a little bit, I want to finish the
type proxying code.  I'd also like to add all of the object and method
caching.

PPS: If anyone has suggestions for a better way of doing type proxying
than what's described in the README, please let me know.

-- 
"First they ignore you, then they laugh at you,  
 then they fight you, then you win."  
- Gandhi


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